Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 12-04-2007, 07:13 PM
Ely Offline
pp regular
 
Join Date: Nov 2007
Posts: 40
Previous - Next Image: Can this be looped?

Hi all,

I am using the previous and net template tags. At present if you progress through all images you come to the start / end of your images. Is there a way to make this loop so you go straight to the beginning / end of your images?

Thanks
Reply With Quote
  #2  
Old 12-05-2007, 06:09 AM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
right now it can't be looped as far as I know
__________________
Uh!log Photoblog
My Addons
Reply With Quote
  #3  
Old 12-06-2007, 11:18 AM
xact Offline
pp regular
 
Join Date: Oct 2007
Posts: 46
Perhaps with something like this:

Code:
<script type="text/javascript">
	function browsing(){
		var existprev = "<IMAGE_PREVIOUS_ID>";
		var existnext = "<IMAGE_NEXT_ID>";
		if (existprev != "<IMAGE_ID>"){
			document.write('<a href="#" id="menu_browse_prev" onclick="document.location=\'index.php?showimage=<IMAGE_PREVIOUS_ID>\';"></a>');
		}
		if (existnext != "<IMAGE_ID>"){
			document.write('<a href="#" id="menu_browse_next" onclick="document.location=\'index.php?showimage=<IMAGE_NEXT_ID>\';"></a>');
		}
		if (existnext = "<IMAGE_ID>"){
			document.write('<a href="#" id="menu_browse_next" onclick="document.location=\'index.php??????????????\';"></a>');
		}
		if (existprev = "<IMAGE_ID>"){
			document.write('<a href="#" id="menu_browse_next" onclick="document.location=\'index.php\';"></a>');
		}
		
		
	}
</script>
The "??????????????" should be replaced with something like <PSEUDO_FIRST_IMAGE>

... just an idea.
Reply With Quote
  #4  
Old 12-07-2007, 06:08 AM
Vernon.Trent's Avatar
Vernon.Trent Offline
pixelpost guru
 
Join Date: Apr 2006
Location: Germany
Posts: 341
Send a message via ICQ to Vernon.Trent
there is already an addon for such a loop.
look for pixelpost Wraparound Images addon.
__________________
best regards
~~~~~~~~
photoblog: XoverIP
Reply With Quote
  #5  
Old 12-11-2007, 05:19 AM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
As Vernon already pointed out, an addon has already been created for quite some time. Here's the link to the forum post and download:

http://www.pixelpost.org/forum/showthread.php?t=3360
Reply With Quote
  #6  
Old 12-11-2007, 02:32 PM
Ely Offline
pp regular
 
Join Date: Nov 2007
Posts: 40
Thanks for that. I didn't see that before so thanks for the nod

Karl
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 04:41 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs