greencode
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Run plugin tags from header?Basically, I’d like to have content on the blog that is country specific. The Content by Country plugin offered that solution for my posts and pages but not for the header of my blog.
Forum: Installing WordPress
In reply to: Failing validation with WP pngfixWhere do I insert the && symbols?
Forum: Fixing WordPress
In reply to: Multiple Sidebar Call ProblemI’m at a loss as to know what to do here. I have this:
<?php if ( is_page('4') ) : get_sidebar('1'); elseif ( is_page('12') ) : get_sidebar('2'); elseif ( is_page('14') ) : get_sidebar('3'); elseif ( is_page('16') ) : get_sidebar('4'); endif; ?>
and in the functions I’ve created these:
if ( function_exists('register_sidebar') ) { register_sidebar(array('name'=>'sidebar-1', 'before_widget' => '', 'after_widget' => '', 'before_title' => '<h2>', 'after_title' => '</h2>', )); register_sidebar(array('name'=>'sidebar-2', 'before_widget' => '', 'after_widget' => '', 'before_title' => '<h2>', 'after_title' => '</h2>', )); register_sidebar(array('name'=>'sidebar-3', 'before_widget' => '', 'after_widget' => '', 'before_title' => '<h2>', 'after_title' => '</h2>', )); register_sidebar(array('name'=>'sidebar-4', 'before_widget' => '', 'after_widget' => '', 'before_title' => '<h2>', 'after_title' => '</h2>', )); }
The sidebars appear to be showing up okay in my Widgets panel as:
sidebar-1
sidebar-2
sidebar-3
sidebar-4So I have no idea why it’s not working. It seems to just default to the first sidebar I have?!
Forum: Fixing WordPress
In reply to: Multiple Sidebar Call ProblemI’ve managed to insert one of the sidebars I created (just to see if they were working!) by using this code:
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar-4') ) : ?> <?php endif; ?>
But I really need differerent sidebars for each of the 4 pages.
Forum: Fixing WordPress
In reply to: Multiple Sidebar Call ProblemUmm, I’m getting a little confused with this!?
I’ve changed pages for page ids and called the sidebars 1-4, so it now reads:
<?php if ( is_page(‘4’) ) get_sidebar(‘2’);
elseif ( is_page(’12’) ) get_sidebar(‘2’);
elseif ( is_page(’14’) ) get_sidebar(‘3’);
elseif ( is_page(’16’) ) get_sidebar(‘4’);
?>It just appears to be bringing in the same sidebar on each page even though I have different widgets on each.
With the sidebar.php files do I simply duplicate the first one and title them sidebar-1.php etc etc.
I’m a bit confused?!
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Unable to use LightboxI’ve managed to use this version of WP-Slimbox2 and all appears to be working okay
Forum: Fixing WordPress
In reply to: Funny characters after moving serverOkay, I think (and hope) that I’ve resolved this issue… In the wp-config.php file I changed the following line:
define(‘DB_COLLATE’, ”);
to
define(‘DB_COLLATE’, ‘utf8’);
Seems to have done the trick?!
Forum: Plugins
In reply to: [Plugin: Hackadelic Widget Voodoo] Specify open and close state?Thanks for this – very much appreciated
Forum: Plugins
In reply to: [Plugin: Hackadelic Widget Voodoo] Specify open and close state?I didn’t mean that in a negative way – sorry, if you felt that way? It was more of a feature request – I don’t know how hard these things are to code and so it might have been something that took 5 minutes or it might be something that would be really difficult and therefore not worth the time.
Please don’t take things the wrong way as that’s not how it was intended.
Forum: Plugins
In reply to: [Plugin: Hackadelic Widget Voodoo] Specify open and close state?That’s a real shame – is there no easy way to code that in somehow?
Forum: Fixing WordPress
In reply to: 777 and suPHPTo be honest, that’s great when it’s me updating my own plugins etc because I know what to do but if I’m developing a site for a client I’d need to keep it as easy as possible for them to do stuff themselves.
Forum: Fixing WordPress
In reply to: Show different page whilst in development?By the way I’ve read this How to hide a WordPress Test Area but this will surely hide everything in the public_html folder
Forum: Plugins
In reply to: [Plugin: MapPress Easy Google Maps] Exact positioning of marker?Fantastic – thanks for the letting us know
Forum: Fixing WordPress
In reply to: Change wp_ prefix – now pages have reverted to default templateThanks for your reply… I went ahead and did this manually but that’s good to know for future sites.
Forum: Plugins
In reply to: [Plugin: WP Security Scan] How do I add ALTER rights to my databaseMmmm, I’ve just checked the user and the ALTER checkbox is set to yes. I went back and tried to do it again but this is what is said from the plugin:
Your User which is used to access your WordPress Tables/Database, hasn’t enough rights( is missing ALTER-right) to alter your Tablestructure. Please visit the plugin documentation for more information. If you believe you have alter rights, please contact the plugin author for assistance.