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

BirdOPrey5 12-14-2010 12:22 PM

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>

viper357 07-01-2011 06:20 PM

Thanks for this Joe.

Quick question, I know you can do it :p Can you make up a mod or style/graphics thread about how to change the next/last links to buttons please? Thanks. :)

BirdOPrey5 07-01-2011 07:31 PM

Quote:

Originally Posted by viper357 (Post 2215591)
Thanks for this Joe.

Quick question, I know you can do it :p Can you make up a mod or style/graphics thread about how to change the next/last links to buttons please? Thanks. :)

That's pretty easy, not sure it's worth it's own thread.

In the same album_pictureview template find this code:

Code:

<a href="album.php?$session[sessionurl]albumid=$albuminfo[albumid]&amp;pictureid=$pic_location[prev_pictureid]">$pic_location[prev_text_short]</a> |
                                <a href="album.php?$session[sessionurl]albumid=$albuminfo[albumid]&amp;pictureid=$pic_location[next_pictureid]">$pic_location[next_text_short]</a>

Replace it with:
Code:

<a href="album.php?$session[sessionurl]albumid=$albuminfo[albumid]&amp;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]&amp;pictureid=$pic_location[next_pictureid]"><img src="images/buttons/next.gif" alt="$pic_location[next_text_short]" border="0" /></a>

Note the text in RED has been added.

This assumes you have two images named prev.gif and next.gif in your images/buttons/ directory.

viper357 07-02-2011 04:08 AM

First class, thanks. :up::up::up:

Alfa1 08-02-2011 09:49 PM

Thanks. This should be default in vb. Please add to JIRA.

BirdOPrey5 08-02-2011 10:26 PM

Quote:

Originally Posted by Alfa1 (Post 2228400)
Thanks. This should be default in vb. Please add to JIRA.

I don't think they are considering any more changes for the VB 3.8 series. It is default in VB 4.

Alfa1 08-02-2011 10:31 PM

Ah, I didn't notice that yet in vb4. Thats cool.

Blueracer66 08-24-2012 04:32 AM

I just want to let everyone know that this works on vBulletin? v3.8.7 Patch Level 3. Thank you, BirdOPrey5! :)

tommydamic68 09-03-2012 11:26 AM

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.

BirdOPrey5 09-03-2012 12:27 PM

Sorry- no idea how or why that would happen... maybe with a link I can see it first hand and get a better idea?

tommydamic68 09-04-2012 10:04 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2362227)
Sorry- no idea how or why that would happen... maybe with a link I can see it first hand and get a better idea?

Sent link via pm.

Thanks!

al2thero 11-25-2012 06:00 PM

thank you


All times are GMT. The time now is 09:23 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.01682 seconds
  • Memory Usage 1,767KB
  • 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
  • (8)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete