Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBPicGallery + Lightbox/Thickbox Details »»
vBPicGallery + Lightbox/Thickbox
Version: 1.00, by |oR|Greg |oR|Greg is offline
Developer Last Online: Nov 2008 Show Printable Version Email this Page

Version: 3.6.0 Rating:
Released: 09-17-2006 Last Update: 11-02-2006 Installs: 14
Template Edits
 
No support by the author.

If you're using Noppid's vBPicGallery and you're using Redlines Lightbox/Thickbox, here's how to make them work together if you wish to include a lightbox for viewing your images in your galleries.

Template edits 3:

In vbpicgallery_imagebits replace all the code with the following:

Code:
<a rel="gallery-thumbs" class="thickbox" style="cursor:pointer; cursor-hand" href="$vboptions[bburl]/vbpgimage.php?$session[sessionurl]do=full&amp;p=$image[vbpicgalleryid]">
<img src="$vboptions[bburl]/vbpgimage.php?do=thumb&amp;p=$image[vbpicgalleryid]" alt="$image[name]" border="0" />
</a>
In vbpicgallery_viewgallery after $navbar add:

Code:
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/thickbox.js"></script>
In headinclude find:

Code:
<if condition="THIS_SCRIPT=='showthread' OR THIS_SCRIPT=='showpost'">
Replace it with:

Code:
<if condition="THIS_SCRIPT=='showthread' OR THIS_SCRIPT=='showpost' OR THIS_SCRIPT=='vbpicgallery'">
That should do it, you should get results like these attached images.

UPDATE:

I have included a .js file to replace the file in http://www.yoursite/forums/js

thickbox.js in the zip file comments out the Prev Next buttons in the thickbox because of some TB_Count errors they generate on newer versions of vBPicGallery.

Unzip the file and copy it up to your http://www.yoursite/forums/js directory, overwriting the one there.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 11-02-2006, 09:18 PM
kremer4 kremer4 is offline
 
Join Date: Jan 2006
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some reason the pics won't open up in IE7, only loading screen.
Reply With Quote
  #23  
Old 11-02-2006, 09:20 PM
kremer4 kremer4 is offline
 
Join Date: Jan 2006
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LOL, nevermind it works forgot I wasn't logged in and it doesn't give you an error message like it did before lightbox.
Reply With Quote
  #24  
Old 11-02-2006, 09:29 PM
kremer4 kremer4 is offline
 
Join Date: Jan 2006
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Greg since the image numbers are all messed up can you tell me how to remove those links from the image including the "prev" and "next" links.
Reply With Quote
  #25  
Old 11-03-2006, 12:36 AM
|oR|Greg |oR|Greg is offline
 
Join Date: May 2003
Location: AMACNY.COM
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll look into it, it's more then likely in the .js file.
Reply With Quote
  #26  
Old 11-03-2006, 12:53 AM
|oR|Greg |oR|Greg is offline
 
Join Date: May 2003
Location: AMACNY.COM
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I updated the mod.
Reply With Quote
  #27  
Old 11-03-2006, 01:55 AM
kremer4 kremer4 is offline
 
Join Date: Jan 2006
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works beautifully, thanks.
Reply With Quote
  #28  
Old 11-03-2006, 10:01 AM
|oR|Greg |oR|Greg is offline
 
Join Date: May 2003
Location: AMACNY.COM
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're welcome. If you decide to look inside the .js file, the section I commented out with the // is all about the counting.. so if you feel like experimenting and correcting the math, it will fix the problems you're having and you'll be able to keep the next/prev buttons.
Reply With Quote
  #29  
Old 11-20-2006, 07:29 PM
hotwheels hotwheels is offline
 
Join Date: May 2005
Location: Cheyenne, wy
Posts: 1,380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will retry this mod........The problem i ran into is that i have a thumbnails mod in vbpicgallery. So my mod and your mod were confusing each other.....

Thanks for keeping this mod up todate........hotwheels
Reply With Quote
  #30  
Old 05-05-2007, 12:15 AM
kevcj's Avatar
kevcj kevcj is offline
 
Join Date: Mar 2007
Location: East Texas
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this hack only work with red lines? I have the highslide mod from this link installed

Will your mod and this highslide mod work together?

I am about to buy vbpicgallery, but would really like some kind of highslide / light box integration.
Reply With Quote
  #31  
Old 05-11-2007, 12:00 AM
kevcj's Avatar
kevcj kevcj is offline
 
Join Date: Mar 2007
Location: East Texas
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I could not find the text in the headinclude file.
Reply With Quote
Reply


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 09: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.05048 seconds
  • Memory Usage 2,302KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete