Go Back   vb.org Archive > Community Central > Community Lounge

Reply
 
Thread Tools Display Modes
  #1  
Old 07-15-2014, 08:07 PM
K4GAP K4GAP is offline
 
Join Date: Mar 2008
Posts: 1,255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 07-22-2014, 03:46 AM
K4GAP K4GAP is offline
 
Join Date: Mar 2008
Posts: 1,255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 07-22-2014, 04:00 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Благодарность от:
K4GAP
  #4  
Old 07-22-2014, 04:22 AM
K4GAP K4GAP is offline
 
Join Date: Mar 2008
Posts: 1,255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel View Post
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!
Reply With Quote
  #5  
Old 07-22-2014, 04:26 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do a view source or Google for jquery prettyphoto. They have good documentation and is even better than previous link (with like for facebook)
Reply With Quote
  #6  
Old 07-22-2014, 04:30 AM
K4GAP K4GAP is offline
 
Join Date: Mar 2008
Posts: 1,255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But what I'm trying to achieve is having it to work with vbulletins album photos. Is that possible using jquery ?
Reply With Quote
  #7  
Old 07-22-2014, 04:36 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Благодарность от:
TheLastSuperman
  #8  
Old 07-22-2014, 04:52 AM
K4GAP K4GAP is offline
 
Join Date: Mar 2008
Posts: 1,255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel View Post
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.
Reply With Quote
  #9  
Old 07-22-2014, 04:53 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use vB if you feel more comfortable. Me although I love vB, I will never trade jQuery
Reply With Quote
  #10  
Old 07-22-2014, 11:10 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04401 seconds
  • Memory Usage 2,251KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete