The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
(Album) Click on Picture to go to Next Picture - Like Facebook & VB4 Albums Work Details »» | ||||||||||||||||||||||||
(Album) Click on Picture to go to Next Picture - Like Facebook & VB4 Albums Work
Developer Last Online: Aug 2023
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...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]&pictureid=$pictureinfo[pictureid]" alt="$pictureinfo[caption_censored]" /> Code:
<a href="album.php?$session[sessionurl]albumid=$albuminfo[albumid]&pictureid=$pic_location[next_pictureid]"><img src="picture.php?$session[sessionurl]albumid=$albuminfo[albumid]&pictureid=$pictureinfo[pictureid]" alt="$pictureinfo[caption_censored]" /></a> 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]&pictureid=$pictureinfo[pictureid]" alt="$vbphrase[picture]" /> Code:
<a href="group.php?$session[sessionurl]do=picture&groupid=$group[groupid]&pictureid=$pic_location[next_pictureid]"><img src="picture.php?$session[sessionurl]groupid=$group[groupid]&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 Now
Show Your Support
|
Comments |
#12
|
||||
|
||||
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]&pictureid=$pictureinfo[pictureid]" alt="$vbphrase[picture]" /> Code:
<a href="group.php?$session[sessionurl]do=picture&groupid=$group[groupid]&pictureid=$pic_location[next_pictureid]"><img src="picture.php?$session[sessionurl]groupid=$group[groupid]&pictureid=$pictureinfo[pictureid]" alt="$vbphrase[picture]" /></a> |
#13
|
||||
|
||||
Thanks for this Joe.
Quick question, I know you can do it Can you make up a mod or style/graphics thread about how to change the next/last links to buttons please? Thanks. |
#14
|
||||
|
||||
Quote:
In the same album_pictureview template find this code: Code:
<a href="album.php?$session[sessionurl]albumid=$albuminfo[albumid]&pictureid=$pic_location[prev_pictureid]">$pic_location[prev_text_short]</a> | <a href="album.php?$session[sessionurl]albumid=$albuminfo[albumid]&pictureid=$pic_location[next_pictureid]">$pic_location[next_text_short]</a> Code:
<a href="album.php?$session[sessionurl]albumid=$albuminfo[albumid]&pictureid=$pic_location[prev_pictureid]"><img src="images/buttons/prev.gif" alt="$pic_location[prev_text_short]" border="0" /></a> | <a href="album.php?$session[sessionurl]albumid=$albuminfo[albumid]&pictureid=$pic_location[next_pictureid]"><img src="images/buttons/next.gif" alt="$pic_location[next_text_short]" border="0" /></a> This assumes you have two images named prev.gif and next.gif in your images/buttons/ directory. |
Благодарность от: | ||
viper357 |
#15
|
||||
|
||||
First class, thanks. :up::up::up:
|
#16
|
||||
|
||||
Thanks. This should be default in vb. Please add to JIRA.
|
#17
|
||||
|
||||
I don't think they are considering any more changes for the VB 3.8 series. It is default in VB 4.
|
#18
|
||||
|
||||
Ah, I didn't notice that yet in vb4. Thats cool.
|
#19
|
||||
|
||||
I just want to let everyone know that this works on vBulletin? v3.8.7 Patch Level 3. Thank you, BirdOPrey5!
|
Благодарность от: | ||
BirdOPrey5 |
#20
|
||||
|
||||
Hi,
I have this mod installed - works great. Question - I have a google ad in the picture area in the album view template, the ad shows when first going to the album view area, once you click for next pic with your mod, the ad is gone and only can be seen upon refresh of the page. Any way around this so ad shows with every click? Thanks in advance. |
#21
|
||||
|
||||
Sorry- no idea how or why that would happen... maybe with a link I can see it first hand and get a better idea?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|