PDA

View Full Version : Forum Display Enhancements - Facebook like advance image on click


iflymyhelishigh
10-26-2009, 10:00 PM
This modification is one of the simplest and dirtiest I have ever made, yet no one has ever posted here about it.

You know how on Facebook you can advance to the next photo when you click on the photo itself?

We're going to do that here.

Open up your style in your style manager, and browse to Album Templates > album_pictureview

Search for the code

<img src="picture.php?$session[sessionurl]albumid=$albuminfo[albumid]&amp;pictureid=$pictureinfo[pictureid]" alt="$pictureinfo[caption_censored]" />

Make sure you copy and paste this code snippet, so you have a backup.

Replace this snippet of code with

<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>

After doing this, you should be able to go back to your album (album.php) and progress to the next photo by clicking this picture and going to the previous photo by hitting the back space key.

tmiland
10-27-2009, 03:05 AM
https://vborg.vbsupport.ru/showthread.php?t=192798 (https://vborg.vbsupport.ru/showthread.php?t=194628) :)

SEOvB
10-27-2009, 12:00 PM
This is a great modification. Good job!

TheLastSuperman
10-27-2009, 03:24 PM
Simple yet Brilliant!

/me runs off cheering look everyone, easy and simple!

Rickeo
10-27-2009, 03:51 PM
Genius :)

JacquiiDesigns
11-05-2009, 06:07 AM
Ha! Sweet addition = Thanks for the share iflymyhelishigh ;)

Jacquii.

ForumUser210
11-09-2009, 08:55 AM
I think I added that on the first day I upgraded from phpBB to vBulletin lol. I was like -- what the hell? *clicking the picture* Are you seriously going to make me use the Next link? Ergh!

michael million
11-10-2009, 04:08 AM
so simple, but great... thx

iflymyhelishigh
11-17-2009, 07:15 PM
Alright guys. I know that VB4 has come out. I'm not sure if the template edits are the same on VB4. This is a simple mod though.

Dr.LoVe
11-18-2009, 07:24 PM
Really loved it

Thanx

al2thero
12-02-2012, 01:00 AM
Thanks a lot

sleepyboy2004
12-03-2012, 04:31 AM
Awesome. I always wanted this option.. Dont even know how I came across this but works sweet :) Thanks again

ricardoNJ
02-01-2013, 06:58 PM
Nice!