vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Social Group and Album Enhancements - (Album) Click on Picture to go to Next Picture - Like Facebook & VB4 Albums Work (https://vborg.vbsupport.ru/showthread.php?t=254064)

BirdOPrey5 11-21-2010 10:00 PM

(Album) Click on Picture to go to Next Picture - Like Facebook & VB4 Albums Work
 
1 Attachment(s)
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]&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. :)

EddyMaxx 11-22-2010 02:14 PM

Worked great. 3.8.6

Thanks

yotsume 11-24-2010 05:34 AM

Works great and I plan to keep this installed. However its breaks a custom tagging mod I have that allows members to tag their album photos like on Facebook.

BirdOPrey5 11-24-2010 03:05 PM

Quote:

Originally Posted by yotsume (Post 2125246)
Works great and I plan to keep this installed. However its breaks a custom tagging mod I have that allows members to tag their album photos like on Facebook.

Is that mod available for download anywhere? I could see if I could work around it.

yotsume 11-24-2010 04:37 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2125361)
Is that mod available for download anywhere? I could see if I could work around it.

After looking at the code of some of my other mods the conflict is more then likely to do with the [AJAX] Album Next & Prev Links Use AJAX mod I have installed for albums as well.

The album photo tagging mod is a for sale item only here:

vBulletin Album Picture Annotation Hack (Tagging Photos like Facebook)

All three of these mods need to work together to remove any conflicts. :)

BirdOPrey5 11-24-2010 05:34 PM

Quote:

Originally Posted by yotsume (Post 2125388)
After looking at the code of some of my other mods the conflict is more then likely to do with the [AJAX] Album Next & Prev Links Use AJAX mod I have installed for albums as well.

I had never seen that mod before... in it the author links to a template edit that is basically the same as mine and says the template edit IS compatible with the AJAX mod... Did you try his template edit first? https://vborg.vbsupport.ru/showthread.php?t=192798

If it isn't working I'd assume it's probably a conflict with the premium tagging mod like you mentioned.

FreshFroot 11-25-2010 04:38 AM

Really nice Idea.. I will bookmark this for sure.

ricardoNJ 11-29-2010 01:02 PM

Great idea.

Narkissos 12-07-2010 07:42 PM

Nice :)

ShawneyJ 12-09-2010 08:08 AM

nice thanks ;)


All times are GMT. The time now is 05:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02680 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete