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


All times are GMT. The time now is 09:35 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.03430 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)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