Lane Lester
Forum Replies Created
-
Getting closer! 🙂
The slider is now displaying where it should be: at the bottom of the post.
However, only the captions are displaying, not the images.
You’ll have to visit http://the.mountaingallery.net/ to see the problem. The slider is still at the top of the first post (it should be at the bottom, just above the slider in the next post).
You’ll see it’s displaying code instead of images.
Forum: Plugins
In reply to: [Responsive Slider] Three Problems SolvedHal suggested changing the 10 to -1, so now my file has no limit on the number of slides.
Forum: Plugins
In reply to: [Responsive Slider] [Plugin: Responsive Slider] Create more than 1 sliderChanging my file from 10 as the max to -1 works fine.
Forum: Plugins
In reply to: [Responsive Slider] [Plugin: Responsive Slider] Create more than 1 sliderHa, ha! I got someone to provide a fix, but mine sets the max to 10, so yours is better.
But for some reason, a problem from 0.1.4 is back with your file: instead of the post title being displayed, one of the captions is displayed.
See my thread “Three Problems Solved” for the file that’s working best for me. Well, the thread that has three posts.
The only problems still remaining is the slider going to the top of a post, regardless of the position of the shortcode, and a lot of wasted space at the bottom of the slider, about 100px on this site where I’m experimenting: http://the.mountaingallery.net/
Forum: Plugins
In reply to: [Responsive Slider] Three Problems SolvedHere’s the new link: http://www.drlanelester.com/responsive-slider.txt
Forum: Plugins
In reply to: [Responsive Slider] Three Problems SolvedWhoops! I see I need to change the file on my server to a .txt so you can download it.
Forum: Plugins
In reply to: How to Change Maximum-Posts-Per-Page Setting in PluginAm I ever embarrassed! I copied the code directly from this web page and pasted it into the PHP file. The single quote was converted to the &# code, and that was what was generating the errors.
Your original code works just fine. I went ahead and tried your simplied solution, and it works as well.
Thank you so much for this help. I was beginning to despair of finding a responsive slider that would work.
Forum: Plugins
In reply to: How to Change Maximum-Posts-Per-Page Setting in PluginI tried putting the code inside the function that does the main job:
function responsive_slider($id = 0) { /* Set max-posts-per-page option */ $temppp = get_option( 'posts_per_page' ); update_option( 'posts_per_page', 10 ); $slides = new WP_Query( array( 'post_type' => 'slides', 'order' => 'ASC', 'orderby' => 'menu_order', 'meta_key' => '_slider_id', 'meta_value' => $id ) );The error generated was:
Parse error: syntax error, unexpected ‘=’, expecting ‘)’ in /home/jmountai/public_html/the/wp-content/plugins/responsive-slider/responsive-slider.php on line 244
Line 244 is the last line in the code above.
Forum: Plugins
In reply to: How to Change Maximum-Posts-Per-Page Setting in PluginI just stuck the code inside and at the end of a previous function: function responsive_slider_setup()
I got a different kind of error then:
Parse error: syntax error, unexpected ‘}’, expecting T_STRING or T_VARIABLE or ‘$’ in /home/jmountai/public_html/the/wp-content/plugins/responsive-slider/responsive-slider.php on line 96
Line 96 is the closing } for that function.
Forum: Plugins
In reply to: How to Change Maximum-Posts-Per-Page Setting in PluginThanks for the suggestion! It seems no matter where I put it, it generates an error at the next function. Here’s an example bit of code:
/* Set max-posts-per-page option */ $temppp = get_option( 'posts_per_page' ); update_option( 'posts_per_page', 10 ); /** * Do things on plugin activation. * * @since 0.1 */ function responsive_slider_activation() {The last line is 102, and this is the error:
Parse error: syntax error, unexpected T_FUNCTION, expecting T_STRING or T_VARIABLE or ‘$’ in /home/jmountai/public_html/the/wp-content/plugins/responsive-slider/responsive-slider.php on line 102
Forum: Plugins
In reply to: [Responsive Slider] [Plugin: Responsive Slider] Create more than 1 sliderSorry to keep posting, but it doesn’t look like posts here can be edited.
I determined what I think is the only difference between 0.1.4 and 0.1.5. Add this code to Hal’s file:
274 275 wp_reset_query();That fixed the post title problem for me.
Forum: Plugins
In reply to: [Responsive Slider] [Plugin: Responsive Slider] Create more than 1 sliderHal’s file seems to be working OK, except that on my site it’s showing a bug that went away with the 0.1.5 update: The post title shows as the caption of the first slide, not the actual post title.
Forum: Plugins
In reply to: [Responsive Slider] [Plugin: Responsive Slider] Create more than 1 sliderI see on the developer’s website you have to buy a membership to get any support. So perhaps he is ignoring this free forum.
Hal, any chance you can figure out how to override the maximum slides being based on the Reading / Blog pages show at most x pages setting?
Once again I regret not being a PHP expert.
It seems a workaround would be to save the maximum_pages value, redefine it to some higher number, and then restore it at the end of the plugin.
I did a google, and it looks like the value is: posts_per_page
I gave it a shot, but it didn’t work. At the top of responsive-slider.php, I put:
$temppp = $posts_per_page; $posts_per_page = 10;and at the bottom I put:
$posts_per_page = $temppp;But I still got only two slides, the setting in Reading.