View Full Version : showphoto.php?photo=23&limit=all -- After rate photo it strips "&limit=all"
December 22nd, 2006, 12:59 PM
The problem here is that if you're browsing all of the photos and going on a rating spree, you end in peoples galleries instead of continuing down the viewing all path.
Know of a simple fix?
December 22nd, 2006, 04:30 PM
I dont think we have ever passed limit to commenting
typecast($_REQUEST, array('limit' => STRING, 'notify' => STRING, 'photo' => INT, 'cedit' => INT, 'notifyid' => INT));
forward( "showphoto.php?photo=$photo&limit=$limit", $Globals['pp_lang']['success'] );
Adding the bold things in comments.php might help you do that although this is not technically a product bug.
December 22nd, 2006, 10:54 PM
Getting me close.....My second line doesn't have product=$product it has photo=$photo, which I believe is correct.
Anyways, I now have "limit=" in the return link, but the string which is defined in the first snippet of code you pointed me to is not being placed following the =.
Thoughts? And thanks for you help.
December 23rd, 2006, 10:50 AM
Did you typecast the limit variable in the top of comments.php as noted in the edit cause thats what is going to pass it.
I think you might also want to edit quickrate template and add the line in bold
<input type="hidden" name="photo" value="$photo" />
<input type="hidden" name="limit" value="$limit" />
December 23rd, 2006, 12:33 PM
Yes I did do what you suggested in your first post. I just added the template modification and things seem to be working fine now.
Thanks a bunch Chuck!
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.