vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   vBPicGallery + Lightbox/Thickbox (https://vborg.vbsupport.ru/showthread.php?t=126917)

|oR|Greg 09-17-2006 10:00 PM

vBPicGallery + Lightbox/Thickbox
 
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.

|oR|Greg 09-21-2006 07:30 PM

Nothin eh? sniff

hotwheels 09-22-2006 12:31 AM

i will be using it............I just haven't had any time to complete my site rebuild, but that is a great addition, i like the uploaded images you shared.....very nice

hotwheels 09-22-2006 01:57 PM

I did try this today and i just couldn't get it to work right, the picture wouldn't pop up as shown in your attachments above, they would appear at the bottom of the page, about 10 miles down......I think it is a thickbox issue, not you mod.......
thanks though.......i appreciate you hard work

|oR|Greg 09-22-2006 02:43 PM

Sorry it didn't work for ya, are you using Redlines last uploaded version of the .CSS files?

hotwheels 09-25-2006 05:29 PM

actually i don't think i am........i will check it out.......thanks

|oR|Greg 09-25-2006 06:50 PM

No problem. I hope it works for ya.

FFW 09-27-2006 09:08 PM

Installed but I'm experiencing an error. For some reason the lightbox shows any images starting from 22 instead of 1. For example in the attached thumb it shows 3 images in a test gallery but identifies them as images 22, 23 and 24 of 26 images. There are no images between 1 and 21 and 25 to 26.

This error occurs on any gallery, no matter how many images are included. Its always first 21 blank and 2 blank after the last image. Any idea why this may be?

https://vborg.vbsupport.ru/

|oR|Greg 09-27-2006 10:11 PM

I'm not really sure why that's happening?

|oR|Greg 09-28-2006 10:41 AM

Quote:

Originally Posted by FFW
Installed but I'm experiencing an error. For some reason the lightbox shows any images starting from 22 instead of 1. For example in the attached thumb it shows 3 images in a test gallery but identifies them as images 22, 23 and 24 of 26 images. There are no images between 1 and 21 and 25 to 26.

This error occurs on any gallery, no matter how many images are included. Its always first 21 blank and 2 blank after the last image. Any idea why this may be?

http://img95.imageshack.us/img95/146...rrorrf7.th.jpg

What version of the gallery are you running?


All times are GMT. The time now is 07:14 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.01092 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)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