bobbingwide
Forum Replies Created
-
Shouldn’t wp_reset_query() deal with this?
I think this is a problem with WordPress 3.3. It doesn’t occur in 3.2.1
3.2.1 code was:
$GLOBALS[‘wp_query’] =& $GLOBALS[‘wp_the_query’];
3.3 code is currently:
$GLOBALS[‘wp_query’] = $GLOBALS[‘wp_the_query’];Was this a change for php 5.3?
I can’t find the plugin anymore!
Forum: Plugins
In reply to: [oik] [Plugin: oik] Parse error: syntax error, unexpected T_STRINGHi, yes, It’s a missing quote after ediv. I’ve fixed it in the latest version (1.3.1) and the development version (1.4). But I had a(nother) problem with 1.4, so reset the stable level to 1.3.
But 1.3 wasn’t stable at all.. it should have been 1.3.1
So I have now set the stable level to 1.3.1.
Hope that fixes it for you.Forum: Plugins
In reply to: [Slideshow Gallery Pro] Slide Show Gallery Pro doesn't work, missing filesHi, there are two versions of slideshow gallery pro. The free one and a pro version. I’ve been using this plugin for a while. Even though there is no preloader.js file in the free version the code does appear to work.
Forum: Plugins
In reply to: [Widget Wrangler] Feature Req-Use WW on posts tooHi, just to let you know that I still saw the problem with 1.3.2.
Forum: Requests and Feedback
In reply to: [oik] Is oik version 1.2 going to appear soon?Answering my own question, having received help from [email protected]. Even though I’d tagged version 1.2 and set the readme.txt file to say that version 1.2 is the stable version, I had failed to update the version in the most important of the oik plugin files – oik.php
So the version number that you see in “Download Version x.x” button when viewing the Plugin Directory is taken from the ‘base’ plugin file… and that can actually be different from the zip file which you end up downloading.So, to cut a long story short. oik version 1.2 IS NOW AVAILABLE.
Just to let you know that this problem still exists in 1.6.13.3
Before finding this topic I’d read
https://www.ads-software.com/support/topic/plugin-all-in-one-seo-pack-the-plugin-doesnt-work-for-me-on-wp-30?replies=14There was a “solution” by @domst3r which disabled half of the logic.
I reworked this and got similar code to Tavy315if ( (isset($_POST['aiosp_enabled']) && $_POST['aiosp_enabled']=='0' ) || (isset($aioseop_options['aiosp_enabled']) && $aioseop_options['aiosp_enabled']!='1') ){
I didn’t bother to check whether or not the index is ever actually set in $_POST
WIBNI this code was corrected in the official version of the plugin
Thanks. I had a bit more fun with slideshow-gallery-pro last weekend – a combination of user error AND poor coding.
You can read about it at
https://www.bobbingwidewebdesign.com/2011/07/17/help-needed-with-oik-at-wordcampuk/I have subsequently changed my oik plugin so that I can I avoid the problem in the future.
add_shortcode( 'gpslides', 'bw_gp_slideshow' ); function bw_gp_slideshow( $atts, $hmm=NULL, $tag=NULL ) { if ( 'the_content' == current_filter() ) { $Gallery = new Gallery(); $content = $Gallery->embed( $atts ); } else $content = '[' . $tag . ']'; return $content; }
The reason I did this was to prevent the shortcode from being expanded when do_shortcodes is invoked for ‘the_title’
PS. IMHO I think there could be some improvements in WordPress’s shortcode handling.
The reasons I didn’t register the shortcodes in my own routines were multi-fold.
- I wanted to make people aware of the problem
- I didn’t really want to develop a workaround as that could end up being more effort than it’s worth
- I didn’t know how to code the second parameter given that both of the plugins were written as classes
But now I have persevered.
For the NextGen slideshow I wrote one line of code
add_shortcode( 'ngslideshow', 'NextGEN_shortcodes::show_slideshow' );
For slideshow gallery pro, I didn’t know what name to use for the ’embed’ function which is defined in class Gallery extends GalleryPlugin
So I wrote the following
add_shortcode( 'gpslideshow', 'bw_gp_slideshow' ); function bw_gp_slideshow( $atts ) { $Gallery = new Gallery(); $content = $Gallery->embed( $atts ); return $content; }
As you can see I haven’t tested to see if the method exists and the plugins are enabled. But at least I have got them working without the hacks. So thanks for that.
Hi stinkylead. the readme.txt file (line 87 onwards) describes what you need to do if you want to override the original templates. You should not have been forced to copy them. Can’t help with the other problem as I get access denied to your site today.
Hi stinkyleaf. I went to your site and it looks OK. What did you want it to display by default?
Hi, when I try to navigate to https://www.gogo-gringo.com/category/events it shows the /events page.
Do you have something odd in your permalinks for category?
( wp-admin/options-permalink.php )Are you creating the events as Posts rather than pages?
And are you ticking the “Is this post an event?” checkbox?I created two new posts on the https://www.twenty-tenners.co.uk site where I played with different settings for category. Maybe you can get some clues from those.
Forum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] I found an errorJust mytheme/events
The only files you need to copy are the ones you need to change. For example:- events-list-load-widget-display.php – to change the layout of the event list widget
- list.php – if you want to change the events list
- single.php – to change the layout when displaying a particular event
- gridview.php – for the events calendar
If you want to alter the CSS you can also copy the events.css file from the resources directory into the mytheme/events subdirectory
Michael, for the sidebar you now have to get the call to “get_sidebar()” in the right place in the template file and/or enclose the events calendar in the appropriate div tags.
The notes I wrote in the first link showed how I achieved that in my site, working both with an Artisteer 3.0 generated theme and also with the default twentyten theme.
I didn’t have time to attempt to reduce the class definitions for .art-content-layout and .art-content-layout and .art-content-layout-row to the minimum necessary. But if you play with the CSS styling you should eventually manage to get the right sidebar nicely positioned.
Regarding the URL name. You could try using URL redirection provided by the permalink-redirect plugin
Forum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] I found an errorDid you copy the file to an events directory in your own theme?
That way, you protect yourself when events calendar gets updated.
Although the downside is you won’t get any fixes straight away.