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?

FFW 09-28-2006 06:23 PM

10.0.0 RC 2

Its strange. I'll do some more digging.

|oR|Greg 09-28-2006 06:45 PM

Could be the version, I'm using v4...

kremer4 11-02-2006 05:31 PM

FFW and Greg did anyone get it fixed so that the image numbers are correct?

|oR|Greg 11-02-2006 05:51 PM

I've never looked into it actually. I am yet to update to the newer gallery and as such, still don't have any problems. I don't know about FFW.

kremer4 11-02-2006 06:21 PM

Neither has FFW, if you get a chance to upgrade please let me know if you get it working.

http://www.importcarforums.com/gallery.html

|oR|Greg 11-02-2006 06:24 PM

wow, got a few forums huh?

|oR|Greg 11-02-2006 06:27 PM

I also see it's vbgarage, not the gallery, see this, maybe it will help you...

https://vborg.vbsupport.ru/showthread.php?t=118146

kremer4 11-02-2006 06:35 PM

That just a rename in the language and phrases, it's Noppids latest Vbpicgallery :)

|oR|Greg 11-02-2006 07:00 PM

I hope he doesn't kill you for that.... cause you know the drama between him and TriGunFlame about the gallery/garage?

kremer4 11-02-2006 07:08 PM

I did not, I will fix it. It ended up changing accidently when I tried to change the nav text.

kremer4 11-02-2006 09:18 PM

For some reason the pics won't open up in IE7, only loading screen.

kremer4 11-02-2006 09:20 PM

LOL, nevermind it works forgot I wasn't logged in and it doesn't give you an error message like it did before lightbox.

kremer4 11-02-2006 09:29 PM

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.

|oR|Greg 11-03-2006 12:36 AM

I'll look into it, it's more then likely in the .js file.

|oR|Greg 11-03-2006 12:53 AM

I updated the mod.

kremer4 11-03-2006 01:55 AM

Works beautifully, thanks.

|oR|Greg 11-03-2006 10:01 AM

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.

hotwheels 11-20-2006 07:29 PM

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

kevcj 05-05-2007 12:15 AM

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.

kevcj 05-11-2007 12:00 AM

I could not find the text in the headinclude file.

kevcj 06-08-2007 01:23 AM

I found the text, its from the redgoals22 mod

I have tried and tried to get this mod to working. To start with I was using the mini2 highslide mod, so I totally removed that an did a fresh step by step install of redlines.

When I click on the image, the picture appears a mile down the screen.

Jdm Ej1 Coupe 10-20-2007 07:26 PM

I installed this on my site when I go to the usercp to Edit vBGarage I get this

Database error in vBulletin 3.6.4:

Invalid SQL:
SELECT year,make,model,text FROM vbgarage_users WHERE userid = 2;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'make,model,text FROM vbgarage_users WHERE userid = 2' at line 1
Error Number : 1064
Date : Saturday, October 20th 2007 @ 02:26:05 PM
Script : http://www.jdmcoupecouncil.com/forum...?do=editgarage
Referrer : http://www.jdmcoupecouncil.com/forum/usercp.php
IP Address : 24.63.66.223
Username : EJWone Dina
Classname : vB_Database


Can anyone help me with this? What did I do wrong?

kevcj 10-21-2007 10:11 PM

Quote:

Originally Posted by Jdm Ej1 Coupe (Post 1364567)
I installed this on my site when I go to the usercp to Edit vBGarage I get this
Can anyone help me with this? What did I do wrong?

Do you have the latest version of VBPic gallery installed? The new version has built in lightbox effect.

The new version took about about 10 - 15 minutes to upgrade, and my users love the new effects.

Jdm Ej1 Coupe 10-21-2007 10:24 PM

where is the lastest one at I thought this was the lastest one

kevcj 10-21-2007 10:46 PM

The cpurigs / VBPic gallery forum - http://www.cpurigs.com/forums/

Log in with your username so you can see the paid members section.

Scroll down until you see the "LCS Software and Professional Support"

Here is the gallery on my site - http://www.survivalistboards.com/vbp...p?do=view&g=92

To see the light box effect, click one of the thumbnails on the left.


All times are GMT. The time now is 04:59 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.01275 seconds
  • Memory Usage 1,801KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (35)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete