Back to vBulletin 3.8 Template Modifications

(Album) Click on Picture to go to Next Picture - Like Facebook & VB4 Albums Work
Mod Version: 1.1, by BirdOPrey5

vB Version: 3.8.x Rating: (6 votes - 4.83 average) Installs: 39
Released: 22 Nov 2010 Last Update: 14 Dec 2010 Downloads: 59
Not Supported Template Edits Re-usable Code  

This is a simple template edit to make vBulletin Albums work like Facebook and vBulletin 4.x Albums... In VB 3.8 you have to find the small "Next" link in the corner of the page to go to the next photo in an album. With this template modification you can click anywhere on the image itself to go to the next image automatically. When you get to the last image in an album you will be taken back to the first.

Demo: http://www.juot.net/forums/album.php?albumid=1&pictureid=96
Note: While there would never be any porn in this album, some pictures may not be entirely work safe.

Go to the album_pictureview template, find the code:

Code:
<img src="picture.php?$session[sessionurl]albumid=$albuminfo[albumid]&amp;pictureid=$pictureinfo[pictureid]" alt="$pictureinfo[caption_censored]" />
Replace it with:
Code:
<a href="album.php?$session[sessionurl]albumid=$albuminfo[albumid]&amp;pictureid=$pic_location[next_pictureid]"><img src="picture.php?$session[sessionurl]albumid=$albuminfo[albumid]&amp;pictureid=$pictureinfo[pictureid]" alt="$pictureinfo[caption_censored]" /></a>
NEW - Add this to Social Group Pictures as well.

It was suggested this functionality be added to Social Group Pictures as well...

In the template socialgrouops_picture

Find the line:

Code:
<img src="picture.php?$session[sessionurl]groupid=$group[groupid]&amp;pictureid=$pictureinfo[pictureid]" alt="$vbphrase[picture]" />
Replace With this:

Code:
<a href="group.php?$session[sessionurl]do=picture&amp;groupid=$group[groupid]&amp;pictureid=$pic_location[next_pictureid]"><img src="picture.php?$session[sessionurl]groupid=$group[groupid]&amp;pictureid=$pictureinfo[pictureid]" alt="$vbphrase[picture]" /></a>

Download the .txt file for a backup of these instructions.

Please Mark as Installed if you use this.

Download

File Type: %1$s Albums Click in Picture For Next Picture Instructions.txt (1.8 KB, 45 downloads)

Similar Mods

Social Group and Album Enhancements Album Picture Clicks to Next Picture in Album vBulletin 3.7 Template Modifications

vblts.ru supports vBulletin®, 2022-2024