luckdragon
Forum Replies Created
-
Forum: Plugins
In reply to: Time based post displayplease use pastebin for your code, so that we can see it and hopefully find what you are doing wrong
if you use the code I gave you, it would be:
<? $myhour = date("H"); $myminute = date("i"); if ($myhour >= 7 && ($myhour <=2 && $myminute <= 30)) { ?> we are closed <? } else { ?> we are open <? } ?>Forum: Fixing WordPress
In reply to: Hide entire content on front pagein home.php, at the very top
<? if (is_front_page()) ?> include("home1.php"); <? else { ?> the rest of home.php goes herethen, at the very end of the file:
<? } ?>
Forum: Fixing WordPress
In reply to: insering database into a siteall that plugin does is add extra fields to the posts, what you need is something to read an entirely separate database table, I haven’t seen a plugin that will do that.
might be something simple.. like
if (in_category($category,$_post))
Forum: Hacks
In reply to: Editing header.phplooks like you are trying to open a url, not a file
it should be doing like:
fopen(get_stylesheet_directory().'/'.$filename);Forum: Fixing WordPress
In reply to: Hide entire content on front page<? if (is_front_page()) {?>
Leave this blank if you want nothing to show
<? } else { ?>
put the stuff here to show when it’s not the front page
<? } ?>Forum: Hacks
In reply to: Editing header.phpwordpress should have permission to access the files, since you can edit files from other places in the admin area, so yes, fread/fwrite.
Forum: Fixing WordPress
In reply to: Fatal Error, can't access wp-admin anymore!di niente, il mio amico
Forum: Hacks
In reply to: Editing header.phpall you have to do is read the template, then parse through it, put in your code, and then write it back to itself, you might want to move/rename the original to like templatename.php.orig or something similar, just in case something breaks.
Forum: Hacks
In reply to: Editing header.phpthe problem with your idea is that themes are so different, some use the standard wp stuff, some use Themator, some use gantry, etc… so trying to find the code would be difficult depending upon the theme.
Forum: Themes and Templates
In reply to: Shopping cart plugin wantedpersonally, I’m fond of thecartpress, it has alot of extra addons/plugins for it to make it as robust as it can be.
Forum: Plugins
In reply to: Time based post displayyou might have to create a template specific to that post, and in the template put your code, i.e.
<? $myhour = date("H"); $myminute = date("i"); if ($myhour >= 7 && ($myhour <=2 && $myminute <= 30)) { ?> html for contact information goes here <? } else { ?> html for store hours goes here <? } ?>Forum: Plugins
In reply to: Widget Logic If user doesn't have an Avatar$user_info = get_userdata(get_current_user_id); echo "<PRE>".print_r($user_info,true)."</PRE>";that will give you all of the user info variables that are set, look for the one containing the avatar.
Forum: Fixing WordPress
In reply to: Fatal Error, can't access wp-admin anymore!yes, either delete the folder, rename it, or move it somewhere else
Forum: Plugins
In reply to: using sweet captcha in template fileusually, if using it within a template, rather than calling the shortcode, you call the function directly.
so you can try something like: <?php echo sweetcaptcha_shortcode(); ?>