View Full Version : Current photo 'next' link to fist image..?
Finner
12-15-2005, 02:14 AM
Does anybody know if it is at all possible to have the 'next' link on the current photo link to the first images so you are essentially going around in a circle when viewing the images?
Can just be confusing to some when they click 'next' and nothing happens...
:D
Connie
12-15-2005, 04:59 AM
correct me, if I am wrong, but:
when there is no next image, the next-link will not be displayed
Finner
12-15-2005, 05:02 AM
Depends how you link to the next images - I'd like people to be able to go round in a circle though...
Is to be used for my folio - http://digerati.farfromreal.com/folio/ - so there sort of is not start nor finish to the images I'm displaying..
Connie
12-15-2005, 08:57 PM
Finner,
people are all so uncreative with the language-file, but there is big potential there as well, without any hacks!
why not try to do something with the language-file?
It sits in the folder /lang
if you use english language, make a backup of lang-english.php and then start to experiment with the following entries there:
$lang_no_previous = "No Previous Image";
$lang_no_next = "No Next Image";
try to integrate for example the following code there:
$lang_no_previous = "<a href='index.php?showimage=1'>startover</a>";
for sure you must enter the number of the very first image in your PP
be aware to use apostrophes instead of "
this is just an idea, but it could work, I myself did not try it
Finner
12-16-2005, 02:16 AM
Hrmm.. just tested that idea, tis a good one, but this obviously becomes an issue of how to call the links...
At the moment i'm using
<a href="index.php?showimage=<IMAGE_NEXT_ID>">next</a>
Obviously this doesn't work so well when you get to either end as it's not clear that there isn't anywhere to go.. hence my problem.
If I use <IMAGE_PREVIOUS_TITLE> to make use of $lang_no_next, then when there is an image, it displays its full title and I only ever want it to say "prev || next"
If I use <IMAGE_NEXT_TITLE> I can set 'prev' and 'next', but it doesn't display anything when it gets to either end..
I could be mistaken in any of that as i'm no PP expert, but that's what happened when playing with the lang file..
Connie
12-16-2005, 04:40 AM
so maybe my idea will not work so well, as I told you, I did not try it
sorry...
Finner
12-16-2005, 05:40 AM
Don't be sorry! Is a good idea - but perhaps needs to be tweaked a bit.. but there's also a good chance I'm missing something too *grin*
Finner
12-17-2005, 10:58 PM
Just thought I'd let you know that after some fiddling, I've managed to find a way to do this..
I ended up editing the index.php file, and with using <image_next_link> which by default says "next" or is blank if there is no next, I added $lang_no_next where the value was previously left blank in the index.php file. I guess you could edit any of them, but I felt this was the best to use. . .
From there you can just modify the lang file to say whatever you want.. :D
Connie
12-18-2005, 10:08 AM
that is a good hint and suggestion!
But please keep your index.php when you update PP your modification will be overwritten
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.