rhysbwaller
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Conditionally load scripts and stylesThanks for the plugin tip, it makes it easy.
I can also just enqueue the script without perviously registering it right? So this is the code I have now, but there is still a lot of duplication. The reason I have the two functions is that the script and style is added via a different hook (wp_print_scripts and wp_print_styles). Is there another hook I can use which will enable me to combine the functions?
$nivoSlider_pages = array('home','news'); $slidingBoxes_pages = array('test','about'); function rl_enqueue_scripts(){ if (!is_admin()){ global $nivoSlider_pages; global $slidingBoxes_pages; // Nivo Slider if(is_page($nivoSlider_pages)){ wp_enqueue_script('nivo_slider', (get_bloginfo('template_directory') . '/scripts/nivo.slider/jquery.nivo.slider.pack.js'), array('jquery')); } // Sliding Boxes if(is_page($slidingBoxes_pages)){ wp_enqueue_script( 'slidingBoxes', (get_bloginfo('template_directory') . '/scripts/slidingBoxes/slidingBoxes.js'), array('jquery')); } } } add_action('wp_print_scripts','rl_enqueue_scripts'); function rl_enqueue_styles(){ if (!is_admin()){ global $nivoSlider_pages; global $slidingBoxes_pages; // Nivo Slider if(is_page($nivoSlider_pages)){ wp_enqueue_style('nivo_slider', (get_bloginfo('template_directory') . '/scripts/nivo.slider/rl-nivo-slider.css')); } // Sliding Boxes if(is_page($slidingBoxes_pages)){ wp_enqueue_style('slidingBoxes', (get_bloginfo('template_directory') . '/scripts/slidingBoxes/slidingBoxes.css')); } } } add_action( 'wp_print_styles', 'rl_enqueue_styles' );
+1
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Separate RSS Feeds Per Gallery+1
This would be fantastic
hey jfrye
This doesn’t appear to be an issue with NextGEN Gallery.
Is there a page named ‘001’ in your ‘Pages’ admin menu? If so you will need to restrict the page from appearing in your navbar and the method will depend on how the menu is being generated. Are you using the new WP 3.0 nav menu feature, or is your template using wp_list_pages()?
Rhys
+1
I would also like the option to display the next/prev post’s category (as a hyperlink to the archive page) just like you can display the title using %title. This would then allow the next/prev links to be displayed without restricting to the current category, but the indication of what it belongs to.Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] add share/like/tweet button into the lightbox+1
Forum: Plugins
In reply to: nextgen-gallery filename in a lightbox+1
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Private client password-access gallery?have a look at this plugin. pretty versatile and might suite your needs.
I would also like to add data to the Lightbox output, but cant seem to work out which file to edit.
Forum: Fixing WordPress
In reply to: if current page is in branch of sub-pageswhats the best way to dump the variables? Do I need to use FirePHP in order to retrieve php variables with Firefox and Firebug, or is there a better way to handle it?
Thanks for the help
Forum: Plugins
In reply to: Send Private Message Plugin and Community PlugiForum: Plugins
In reply to: [Plugin: WP Private Messages] Any widgets, notifications on web side?Forum: Fixing WordPress
In reply to: Problem with permalinks after changing permalink settingsi am having the same problem. did you get a solution?
Forum: Themes and Templates
In reply to: Theme needed with specific photo gallery functionbump
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] password protect an album?hopefully with the improvements in the WP 2.9 pipeline, some of these basic functions will be built into the core.