vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   Need support for an idea ... (https://vborg.vbsupport.ru/showthread.php?t=312991)

K4GAP 07-15-2014 08:07 PM

Need support for an idea ...
 
I am seeking support for an idea I have pertaining to an official add on for all versions of vb back to about 3.8.x

Preface:

This post is NOT for those who may think this is a stupid or bad idea. If there is a reason that you can explain as to why the idea will not work, please share with your explanation why.

If you agree that this is a good idea, please make a favorable comment.

My suggestion for the add on:

When viewing photos in vb's Gallery, have the photo open up with lightbox effect when clicked on.

Do I need to explain further or is this enough information?

Thanks'
Gary

K4GAP 07-22-2014 03:46 AM

Every time I click on an attachment and it opens up using that lightbox effect I ask myself, how hard would that be to set up when viewing photos from the vb albums.

Does anyone have any idea how this could be done?

Lionel 07-22-2014 04:00 AM

If you are familiar with Jquery use the jquery lightbox. It's very easy

click on userpages
http://www.vbcover.com/customdev/use...r.php?1-Lionel

K4GAP 07-22-2014 04:22 AM

Quote:

Originally Posted by Lionel (Post 2507731)
If you are familiar with Jquery use the jquery lightbox. It's very easy

click on userpages
http://www.vbcover.com/customdev/use...r.php?1-Lionel

How did you do that?

I've been waiting for soooo long!

Lionel 07-22-2014 04:26 AM

Do a view source or Google for jquery prettyphoto. They have good documentation and is even better than previous link (with like for facebook)

K4GAP 07-22-2014 04:30 AM

But what I'm trying to achieve is having it to work with vbulletins album photos. Is that possible using jquery ?

Lionel 07-22-2014 04:36 AM

Sure it is possible. As long as you have the javascript in there. You could also do it with vB lightbox. The trick is to include the javascript and in your picture you add <img rel ="gallery" href="bigimage" src="smallimage"

if you want he lightbox to display more than one image you would do rel="gallery" for each image

--------------- Added 22 Jul 2014 at 01:48 ---------------

to use vB light box, look in showthread template for javascript, css, and the container
and in template album_pictureview you would put those 3 items

Quote:

<script type="text/javascript" src="clientscript/vbulletin_lightbox.js?v={vb:raw vboptions.simpleversion}"></script>
the css and the container name.

and in template album_picturebit you put the rel

K4GAP 07-22-2014 04:52 AM

Quote:

Originally Posted by Lionel (Post 2507736)
Sure it is possible. As long as you have the javascript in there. You could also do it with vB lightbox. The trick is to include the javascript and in your picture you add <img rel ="gallery"> src=

if you want he lightbox to display more than one image you would do rel="gallery" for each image

--------------- Added 22 Jul 2014 at 01:48 ---------------

to use vB light box, look in showthread template for javascript, css, and the container
and in template album_pictureview you would put those 3 items



the css and the container name.

and in template album_picturebit you put the rel

I am definitely going to try this. And if it works ...... WOW!
But before I do try it I'm going to set up a test version of vb to try it on.

Thanks soooo much for the info.

I'll report back tomorrow on how it does or does not. Right now It's so late I'm afraid I might make mistakes on it.

Lionel 07-22-2014 04:53 AM

Use vB if you feel more comfortable. Me although I love vB, I will never trade jQuery

Paul M 07-22-2014 11:10 AM

Just remember that the reason they dont use the lightbox atm is because it opens them in a page where you can add comments. You would lose that.


All times are GMT. The time now is 09:56 AM.

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.01195 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
  • (3)bbcode_quote_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