View Full Version : <IMAGE_THUMBNAIL_ROW> question
Hi all,
I use the tag <IMAGE_THUMBNAIL_ROW> but would really love to omit the current thumbnail as this is obviously displayed as the main image. Is there an easy way to do this? What file controls <IMAGE_THUMBNAIL_ROW> and what would I need to change so current image thumbnail is not shown in the thumbnail row.
Thanks for all the assists people :)
Regards
Karl
austriaka
12-06-2007, 07:59 AM
try the simple way and use the css for that:
img.current-thumbnail { display:none; }
See, thats what happens when I post from the UK at 6am. Never thought of that :)
Thanks for the heads up.
Karl
austriaka
12-06-2007, 04:49 PM
I hope it will work, I did not test it :-)
Darn, didn't work. It removed active image thumb but in a row of 5 thumbs only showed 4. When I changed to show 6 in admin it showed 6. Very strange.
What file controls image thumb template tags?
Thanks
Karl
austriaka
12-07-2007, 09:27 AM
index.php
it works only with odd number of thumbs, hide one and you get a even number :-(
Finner
01-23-2008, 08:47 AM
Thought I'd revive this thread instead of starting a new one...
Am just playing around with the thumbnail row and would like 10 thumbs, but you say it only works with an odd number - can this be changed..? seems a bit strange that this would be so..
Dkozikowski
01-23-2008, 08:54 AM
you can use an even number. nothing is going to break or fail.
Finner
01-23-2008, 09:45 AM
For some reason it does break... if I enter in '10', I get 11... hrm..
Dkozikowski
01-23-2008, 10:02 AM
And what version of Pixelpost are you using?
austriaka
01-23-2008, 10:36 AM
Let me explain:
the <THUMBNAIL_ROW> tag contains a list of thumbnails before and after the actual image AND includes the actual image as well.
This is the reason why there is always an odd number:
Using 11 you are receiving 5 previous and 5 next images in a row, the actual one between them: 5+1+5 = 11.
Using 10, the script does not know if you want 4 previous and 6 next or vice versa, so it simply takes 5 previous and 5 next, putting the actual image between: 5+5 = 10 +1 = 11
The calculation of next and previous images is quite complicated, so it is not recommended to hack the function itself. But if you really rely on 10 images, you can easily remove the line of code which places the actual image between previous and next row (in index.php), showing only before and after thumbs which counts up to 10 then :-)
Finner
01-23-2008, 10:08 PM
Just doing a new layout with 1.7.1...
I'm now only using 9 thumbs, but does seem odd that I couldn't have 10.. i'll try some other lower even numbers tonight, see if it's just 10, or if I have the problem with all evens.
austriaka
01-24-2008, 08:35 AM
If you read my explanation you should understand that the problem is there with all even numbers
Finner
01-24-2008, 11:22 AM
If you read my explanation you should understand that the problem is there with all even numbers
sorry, didn't see it there - makes sense now, thanks :)
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.