vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Integration with vBulletin - vBLightbox (https://vborg.vbsupport.ru/showthread.php?t=144193)

Mosh 04-06-2007 10:00 PM

vBLightbox
 
Hack Support

This hack is now discontinued - this means that while it will remain available for download and use, there will be no further updates, nor will support be provided as the thread is no longer monitored.

Please click Mark as Installed if you are using this hack.

NOTE: I have marked this hack as Re-usable Code - This means that code from this hack may be used in other hacks, which can ONLY be released on official vB sites that use Jelsoft's verification system to verify your vBulletin license status, and as long as I am credited in your hack.


vBulletin Version Compatibility

This has been tested on an unmodified v3.6.5 forum, so as long as the templates have not been modified too much, then this should work with no alterations needed in the plugins. This has also been installed on my forum which is heavily modified.


What Does This Hack Do?

It is a port/update of my v3.5.x hack available here, apart from the fact that there a hell of a lot more locations that this effect works (only worked on SHOWTHREAD page in v3.5.x version).

vBLightbox is based on a script by Lokesh Dhakar from http://www.huddletogether.com/, the script I am using is available here.

NOTE: You do not have to download the script above as it is already included in my hack.

This hack integrates the script in with vBulletin and uses a custom BBCode (in this case my custom IMGW tag) to display a full size overlay picture with a nice expanding image of a reduced size picture.

The Demo has now been removed, as I do not have this hack installed anymore.

This is NOT the same hack that Ntfu2 has posted here. His differs from mine as his has file edits and affects attachments.

My hack concerns images posted using my custom BB Code and has no file edits at all.

I hope you enjoy this hack as much as I have enjoyed creating it.

Locations that this effect works and you can use the IMGW tag:
  • FAQ - Show BB Codes
  • edit post
  • show thread
  • show single post
  • new pm
  • show pm
  • preview pm
  • signature
  • signature preview
  • profile (if signature is enabled)


Known Issues

The AJAX Quick Edit still does not work with this hack installed.
(with AJAX Quick Edit enabled it works everywhere but SHOWTHREAD, which is a major problem and why it needs turning off, see Installation instructions)
NOTE: This will never be fixed, as this hack is now obsolete, so please do not ask.


Installation Instructions

Download the zip file, unzip and follow the install or upgrade instructions.

Note: There is no upgrade path from my v3.5.x version, you have to uninstall that one first (including files and custom BB Code) before installing this one.


Version History

v1.02 - Tuesday 10th April 2007
-- Final release
-- Removed: 3 Non-Functioning Plugins

v1.01 - Monday 9th April 2007
-- Changed: 1 Plugin

v1.00 - Saturday 7th April 2007
-- Initial Release


Show Your Appreciation

Although not required, if you have enjoyed the benefits of this hack, and would like show your appreciation for my efforts, then please feel free to click on the Support Developer link and donate any amount you feel is appropriate.

Naxon 04-06-2007 10:39 PM

Any Screen Shots Please?...

Mosh 04-06-2007 10:42 PM

Quote:

Originally Posted by Naxon (Post 1221470)
Any Screen Shots Please?...

Some people never read the description.
Quote:

Originally Posted by vBLightbox description
To see a demo of the modification in action, click here and click on one of the images to see the effect, this is to show what it can do, I have not yet added this mod to my site. I will not post screenshoots at all, as the demo does a lot better job as showing what it can do.


rjmjr69 04-06-2007 10:49 PM

WOW thats awesome I love it... Too bad I wont install it until the quick reply is fixed Thats one feature I can not get rid of in fear of a mass mutiny

Thanks I'll keep track

dbirosel 04-06-2007 11:09 PM

Instead of using your custom bbcode, can we just use the default IMG bbcode? If we use the default, will there be any problems? Why do you prefer having a seperate IMG bbcode?

Thanks.

Mosh 04-06-2007 11:14 PM

Quote:

Originally Posted by dbirosel (Post 1221490)
Instead of using your custom bbcode, can we just use the default IMG bbcode? If we use the default, will there be any problems? Why do you prefer having a seperate IMG bbcode?


Thanks.

Because using the default IMG tag would require major source code modifications, which have to be applied everything you updated vBulletin to a newer version and also I try to avoid make code modifications, hence my custom BBCode.

dbirosel 04-06-2007 11:15 PM

Ok cool, i understand. Thanks! :)

Mosh 04-06-2007 11:23 PM

Quote:

Originally Posted by rjmjr69 (Post 1221478)
WOW thats awesome I love it... Too bad I wont install it until the quick reply is fixed Thats one feature I can not get rid of in fear of a mass mutiny

Thanks I'll keep track

It is not Quick Reply that is affected by this mod, it is Quick Edit that does not work properly because of an ajax conflict between vBulletin and this modification, so you can use this modification fine while using Quick Reply :)

dbirosel 04-06-2007 11:27 PM

Where do we add the lightbox code on vB?

It's not working well:

http://www.caraudiojunkyard.com/foru...ad.php?p=13015


i placed this code on the header template:


Code:

<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />


What am i doing wrong?

Mosh 04-07-2007 12:02 AM

Quote:

Originally Posted by dbirosel (Post 1221505)
Where do we add the lightbox code on vB?

It's not working well:

http://www.caraudiojunkyard.com/foru...ad.php?p=13015


i placed this code on the header template:


Code:

<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />


What am i doing wrong?

You did not need to add the above script, and css/lightbox.css should be vbulletin_css/lightbox.css.

You have not been using my version for v3.5.x have you?
As from what I can see in your source code of that page is that the vBLightbox template is not being added to the postbit template, plus the code you posted above was from my v3.5.x version and not this one.

EDIT: Also you will need to copy all the images into the forum/blackteal folder and all the other image folders if you have multiple styles installed.

rjmjr69 04-07-2007 12:17 AM

Quote:

Originally Posted by jdsinclair (Post 1221504)
It is not Quick Reply that is affected by this mod, it is Quick Edit that does not work properly because of an ajax conflict between vBulletin and this modification, so you can use this modification fine while using Quick Reply :)


OH lol guess I need new glass's sorry about that.

dbirosel 04-07-2007 01:13 AM

I added the above script because i thought i had to install the Lightbox first. The lightbox link you provided from huddletogether.com. So i followed those instructions and then did yours. Now i uninstalled and removed the huddletogether script. Overwrite your product again, and it is still not working. What am i doing wrong?

Mosh 04-07-2007 06:04 AM

Quote:

Originally Posted by dbirosel (Post 1221561)
I added the above script because i thought i had to install the Lightbox first. The lightbox link you provided from huddletogether.com. So i followed those instructions and then did yours. Now i uninstalled and removed the huddletogether script. Overwrite your product again, and it is still not working. What am i doing wrong?

The only way I think I will get to the bottom of this is if you PM with details of a temp admin for your site that can edit templates and use the plugin system, then I will have a look for you and sort it out for you.

TTG 04-07-2007 06:21 AM

Works straight out of the box :up:

Clicked install .. great addition.

Thanks jdsinclair

Mosh 04-07-2007 06:26 AM

Quote:

Originally Posted by TTG (Post 1221699)
Works straight out of the box :up:

Clicked install .. great addition.

Thanks jdsinclair

You are more than welcome :) I am glad someone has had a positive experience with this modification :)

That is how it should work, all you have to do is disable QuickEdit in AdminCP, upload the files to the correct locations and import the product (again into AdminCP) , you should not have make any changes at all and it should work straight away.

dbirosel 04-07-2007 08:33 AM

Uninstalled, then reinstalled. Nada. Is it because i am using the lightbox with photoplog? Would there be inteference? The lightbox files are uploaded to my site directory and one template from shell_blank. I used lightbox with vBgarage before, but i uninstalled it. Is there something i should check out?

Thanks.

croportal 04-07-2007 09:36 AM

is this works with the images attached to the forum

i have hundred of pcitures uploaded from upload from my forum and i wonder if will this work if you click to the picture

Snake 04-07-2007 11:00 AM

Whoa this is quite something! Thank you. :D

projectego 04-07-2007 02:40 PM

Awesome! Thanks. :)

dbirosel 04-07-2007 05:18 PM

Quote:

Originally Posted by croportal (Post 1221765)
is this works with the images attached to the forum

i have hundred of pcitures uploaded from upload from my forum and i wonder if will this work if you click to the picture

I believe it will only work if you have your images wrapped in his custom bb code. [imgw]

TWTCommish 04-07-2007 06:20 PM

Same thing here: love the idea, but like the other hack, I simply can't use it if it breaks Quick Edit. That's too convenient a feature to sacrifice for aesthetics.

liljimmy 04-07-2007 10:41 PM

Little bizarre. Installed as the instructions said. When I use the bbcode to post an image, it doesn't work. However, when I click on the "preview post" button, the vblightbox works just fine. The minute I submit my post, the special effects don't happen. Any ideas?

Quantnet 04-07-2007 11:59 PM

Click installed to keep an eye on the future update.

Will install when there are some workaround with Quick Edit

subzero06 04-08-2007 12:33 AM

i get an error when importing product
im using 3.6.4
PHP Code:

Fatal errorCannot redeclare class vs_hhr_engine in /home/*****/public_html/******/includes/functions_warning.php on line 0 


Phooey 04-08-2007 12:33 AM

Neat. :up:

Luky 04-08-2007 05:43 AM

Looks sicker then a hospital! Cheers mate!

klaush 04-08-2007 12:40 PM

Quote:

Originally Posted by liljimmy (Post 1222284)
Little bizarre. Installed as the instructions said. When I use the bbcode to post an image, it doesn't work. However, when I click on the "preview post" button, the vblightbox works just fine. The minute I submit my post, the special effects don't happen. Any ideas?

Yep, the same here.

Luky 04-08-2007 04:12 PM

Quote:

Originally Posted by klaush (Post 1222628)
Yep, the same here.

Me three!

Mosh 04-08-2007 09:03 PM

Quote:

Originally Posted by croportal (Post 1221765)
is this works with the images attached to the forum

i have hundred of pcitures uploaded from upload from my forum and i wonder if will this work if you click to the picture

dbirosel is right, it does not work with attachments.

Mosh 04-08-2007 09:05 PM

Quote:

Originally Posted by liljimmy (Post 1222284)
Little bizarre. Installed as the instructions said. When I use the bbcode to post an image, it doesn't work. However, when I click on the "preview post" button, the vblightbox works just fine. The minute I submit my post, the special effects don't happen. Any ideas?

Quote:

Originally Posted by klaush (Post 1222628)
Yep, the same here.

Quote:

Originally Posted by Luky (Post 1222731)
Me three!

Try out v1.01 which I just uploaded which should sort your problems out, just follow the upgrade instructions.

Let me know :)

Mosh 04-08-2007 09:07 PM

Quote:

Originally Posted by jdsinclair (Post 1221681)
The only way I think I will get to the bottom of this is if you PM with details of a temp admin for your site that can edit templates and use the plugin system, then I will have a look for you and sort it out for you.

Quote:

Originally Posted by dbirosel (Post 1221735)
Uninstalled, then reinstalled. Nada. Is it because i am using the lightbox with photoplog? Would there be inteference? The lightbox files are uploaded to my site directory and one template from shell_blank. I used lightbox with vBgarage before, but i uninstalled it. Is there something i should check out?


Thanks.

Try v1.01 and follow the upgrade instructions. If that does not work, then my quote above is the only way forward as I have never used photoplog or vbgarage, so do not have a clue if it affect my modification.

Mosh 04-08-2007 09:14 PM

Quote:

Originally Posted by subzero06 (Post 1222361)
i get an error when importing product
im using 3.6.4
PHP Code:

Fatal errorCannot redeclare class vs_hhr_engine in /home/*****/public_html/******/includes/functions_warning.php on line 0 


I do not have a clue as to what error that is, as it is NOT a file that is included with vBulletin, so must be a file from a modification you have installed (not one of mine).

dbirosel 04-09-2007 04:18 AM

sometimes it works, sometimes it doesnt.

Ticinofelino 04-09-2007 05:54 AM

Works great for me, installed, thanks!

Luky 04-09-2007 09:12 AM

Okay just a second please, i will fully erase it and upload it from scratch. :)

Luky 04-09-2007 09:35 AM

May i ask why you included psistats.php

Edit: Still not working.

Edit again: Okay it works now, i was using img instead of imgw bbcode :P

Another edit: Check out my addon!

kevcj 04-09-2007 02:53 PM

I had to disable this add-on. When I uploaded a file, the attachment manager had a list of 2 dozen errors.

This mod is a wonderful idea and I would be willing to pay for it when all the bugs are worked out.

Luky 04-09-2007 03:18 PM

Giving the error messages would be prosome!

wtf?
The following errors occurred when this message was submitted
    1. This forum requires that you wait 30 seconds between posts. Please try again in 1 seconds.

kevcj 04-09-2007 04:51 PM

The error is in the file attach box under the post -

undefined (undefined)
undefined (undefined)
undefined (undefined)
undefined (undefined)
undefined (undefined)
undefined (undefined)
undefined (undefined)
undefined (undefined)
undefined (undefined)

In all there are 35 of these in the file attachment box, with one real file attached.

With the first "undefined" being a link that takes you to this message -
Invalid Attachment specified. If you followed a valid link, please notify the administrator.

Luky 04-09-2007 07:00 PM

Invalid Attachment specified. If you followed a valid link, please notify the administrator. - I get that only when i upload something over 10 meg because my PHP MAX UPLOAD limit is 10... I never use the attachment system!


All times are GMT. The time now is 04:54 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.02299 seconds
  • Memory Usage 1,848KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (18)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
  • (40)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