Plogger Support Forum - how to put looping function in Navigation Thu, 28 Mar 2024 21:02:43 +0000 http://www.plogger.org/forum/ Lussumo Vanilla 1.1.10 how to put looping function in Navigation http://www.plogger.org/forum/comments.php?DiscussionID=3538&Focus=13688#Comment_13688 http://www.plogger.org/forum/comments.php?DiscussionID=3538&Focus=13688#Comment_13688 Thu, 24 Mar 2011 04:54:09 +0000 omarfarooque When you got last image then click next button then go to first image .. and when you got first image then click to previous button then you go to last

Please help me to make this
Thank you]]>
how to put looping function in Navigation http://www.plogger.org/forum/comments.php?DiscussionID=3538&Focus=13689#Comment_13689 http://www.plogger.org/forum/comments.php?DiscussionID=3538&Focus=13689#Comment_13689 Thu, 24 Mar 2011 05:48:58 +0000 Dianamo
Go to your plog\includes\plog-functions.php
in function: plogger_get_next_picture_url()
C&P this:
if($current_picture==sizeof($image_list)-1) {
$next_link = generate_url('picture', $image_list[0]);
}
before
return $next_link;

and in: plogger_get_prev_picture_url()
C&P this:
if($current_picture==0) {
$prev_link = generate_url('picture', $image_list[sizeof($image_list)-1]);
}
before
return $prev_link;

and that's it.

Regards,
Dianamo]]>
how to put looping function in Navigation http://www.plogger.org/forum/comments.php?DiscussionID=3538&Focus=13690#Comment_13690 http://www.plogger.org/forum/comments.php?DiscussionID=3538&Focus=13690#Comment_13690 Thu, 24 Mar 2011 06:11:01 +0000 omarfarooque it's working
waoowwwww !!!!]]>