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)
-   -   Forum Display Enhancements - Facebook like advance image on click (https://vborg.vbsupport.ru/showthread.php?t=226846)

iflymyhelishigh 10-26-2009 10:00 PM

Facebook like advance image on click
 
1 Attachment(s)
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

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

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

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


All times are GMT. The time now is 08:04 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.01036 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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