vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   vBulletin Attachment Lightbox (https://vborg.vbsupport.ru/showthread.php?t=115701)

JohnBee 05-18-2006 12:45 AM

Success!

I dropped the imageload.gif /forum/ dir and remove the external paths from the script and it now works just like the demo!

Looks great!
Hope this helps someone else gat passed the lost navigation buttons :D

The last itty bitty thing I noticed is that your demo has the image name and some attributes :)
How did you get this?

Ntfu2 05-18-2006 03:10 AM

Check the second post, it has tons of extra features you can implement :D

hope that helps as well

JohnBee 05-18-2006 12:53 PM

Thats awesome Ntfu2, I did the mod and its perfect!
I totally love this hack.. can't say it enough

Heres a few small performance tips for all you fans out there.
  1. The biggest single performance hit you can receive with this MOD is if "show similar threads" is enabled in the same forum as this mod. Turning it off for the assigned forum will greatly increase performance.
  2. Additionally if you have a dedicated forum for images and media, you can create a child template, reserve the template changes to that template and assign it to your specified forum.

Hope this helps and good luck with this great hack!

grains 05-18-2006 02:25 PM

I've been looking for something like this for about a year now.....HOTM

Kanustep 05-18-2006 04:13 PM

Any change to make this working with inserting images and not just for attach images?!

Ntfu2 05-18-2006 04:28 PM

not yet, it does work with [attach] tags now though check the second post.

SkyCatcher 05-18-2006 05:31 PM

hmmmmm

When I add

Code:

<!--LightBox By Dave At FightRice -->
<if condition="$show['thumbnailattachment']">
<script type="text/javascript" src="clientscript/prototype.js"></script>
<script type="text/javascript" src="clientscript/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="clientscript/lightbox.js"></script>
<!-- / Light Box -->
<else />
<!-- Nothing To Load Here-->
</if>
<!-- /LightBox -->

to the top of my postbit_legacy template I can't quick edit posts anymore.

I click edit (the little quick edit box pops up) and both save and cancel (abort) buttons don't function anymore.... this only happens in threads where there's an attachment...

When I remove the code from postbit_legacy the quick edit buttons function again, regardless of attachments or not so it's got to do with the javascript.

Any ideas before I spend hours troubleshooting this?

Ntfu2 05-18-2006 06:07 PM

I have no clue, I havent experienced that on my own forums yet :-\

vibe 05-18-2006 06:21 PM

Danggggggggggg installed!!!

Ntfu2 05-18-2006 06:22 PM

dont forget to click it ;)


Thanks
-Dave

SkyCatcher 05-18-2006 07:01 PM

Well I can't can't figure it out right now, same thing happens anywhere within the postbit template, perhaps I can add it to one of the header templates to make it work properly.

BTW - the only complaint I've received from users is that the images do not resize. If someone adds a 2048x2048 pic and users click the thumbnail, they have to scroll all over the place and can't really make anything out because the original size is just too big. Normally a browsers automatic image resizing takes care of this but it seems to be disabled when using your hack. Any plans to get this working again somehow?

Overall it's a beautiful hack and I'll continue to use it once the images can be automatically resized or the image resizing for browsers works :)

Ntfu2 05-18-2006 07:15 PM

I have a version coming that resizes images automatically, but sadly the next and previous buttons do not work at the same time with it. because there is the option to view the image in full size.

When adding the javascript into the headinclude template it calls them every time the page is loaded and can have an effect on performance sometimes.

Lady Divus 05-18-2006 08:55 PM

Quote:

Originally Posted by Ntfu2
Maybe one day though, im just a n00b :D

If you are just a n00b, i cant wait to see what you produce when you are an oldie ;) Very nice work. Thank you for your reply, and thank you for looking into the resize issue. Be well -

Lady Divus

Ntfu2 05-18-2006 09:55 PM

Updated first post to include instructions for image resize and a overlay.

here is a demo: http://www.fightrice.com/forums/site...-test-197.html

My sites running like poo right now, if you go there and its down, just check back

Quick edit also seems to work fine in this version, someone else will need to confirm that for me please :D

Lady Divus 05-19-2006 03:11 AM

Ntfu2, i did everything you said to do for this new resize release, but for the life me i cant get it to work. It just stopped working altogether and opens the images in a seperate window with a white background, (vB Default view)...

I undid all the previous template edits, i deleted all the previous files from my server, i edited the new js file to point to my site images, i did the new template edits, i uploaded all the new files to my server. Am i doing something wrong? Thank you for any help in advance -

Lady Divus

Ntfu2 05-19-2006 03:19 AM

did you change the rel="lightbox[attachment]" to simply rel="lightbox" ?

Lady Divus 05-19-2006 03:35 AM

Quote:

Originally Posted by Ntfu2
did you change the rel="lightbox[attachment]" to simply rel="lightbox" ?

Yes i did.

Tulsa 05-20-2006 08:05 PM

When I load up the three pics on your demo site I simply get the pic with a nice border around it and a small x in the upper right hand corner. Anywhere I click on the pic once it's loaded, it goes away. No prev or next. The name size and number of times loaded shows as a tooltip and that's it.

Now on my site I get the annoying prev/next with a flashing line right in the middle of the pic where each click side is separated. I get the animation of the box and the sliding down with the name,size and loaded times but only on the pics without bbcode [attach].

I love the way the demo site works, clean and simple. Load the pic, close the pic, click on the next pic to see it.

What is different about your demo site and the instructions you have provided here?

Also I do have it loaded the bbcode pics on 3.5.3 since you said you'd only tested in 3.5.4.

Ntfu2 05-20-2006 11:07 PM

The demo site is now running the 2nd version "lightboxresize.zip"

Simply undo all template edits from previous version, and follow instructions in the second part of the first post -
/////////////////////////////////////////////////////////////\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\/
Dynamic Lightbox auto resize - and image overlay.
/////////////////////////////////////////////////////////////\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\/

From there down to get the same version as on demo site now.q

Tulsa 05-21-2006 06:28 AM

Perfect! :)

Are you adding the bbcode support to the second one?

Ntfu2 05-21-2006 06:58 AM

bbcode as in attach?


on the php edit, instead of rel="lighbox[attachment]" make it simply rel="lightbox"

I'll change the code tomorrow. for now sleep :D

Tulsa 05-21-2006 11:10 AM

That worked like a champ. :)

Tulsa 05-22-2006 11:51 PM

Now I noticed a heck of a delay in loaded the thread with this active. About twice as long. So I moved the .js to the showthread template instead of the postbit. It appers to be working fine and the speed is back.

So my question is, what is wrong with this idea? I mean, Murphy is bound to rear his ugly little head...

Ntfu2 05-23-2006 06:07 AM

Nothing as long as all works.

I never tested it in the showthread. I had it in the headinclude which was causing MAJOR performance issues and putting it in the postbit was the next logical thing i came up with.

thanks for the tip ;)

Cybertims 05-23-2006 08:44 AM

I have found a problem which only happens when this mod is installed....

The Quick Reply box gets messed up..as in below.
It happens to the Fonts drop-down and the sizes drop-down.



https://vborg.vbsupport.ru/external/2006/05/4.jpg

Cheers.

Ntfu2 05-24-2006 06:41 PM

i cant even get the advanced editor in my quick reply to show up, where do i enable this so i can try to fix

Lady Divus 05-27-2006 02:23 AM

Quote:

Originally Posted by Ntfu2
i cant even get the advanced editor in my quick reply to show up, where do i enable this so i can try to fix

Ntfu2, i dont think there is a way to get the Advanced Editor to show in the Quick Reply box. You can only get it when clicking Reply rather than using Quick Reply. Someone please correct me if i am wrong...Be well -

Lady Divus

Edit: Hmm, guess i should have looked at the big screenshot huh? I never knew there was an Advanced Editor for Quick Reply...I would also like to know how to enable it...Or is that screenie of Quick Edit? Interesting...

dan35 05-29-2006 04:13 AM

Thank you, Ntfu2! :)

Lqd 06-09-2006 12:54 AM

Ntfu2, if you want the next and previous images to show up you need to use:

rel="lightbox[photos]

this will group the images.

ps. Is that the sound of a Photopost hack with lightbox I hear coming?!

Ntfu2 06-09-2006 01:00 AM

for what version.

The first version already includes that.

nymyth 06-09-2006 03:24 PM

this thing is beautiful....great work...

Peace

DirectPixel 06-11-2006 12:40 AM

Cool, I was wondering when this would get ported to vB. :)
[high]* DirectPixel installs.[/high]

You might want to give some credit to the guy who actually wrote the lightbox script. ;)

Ntfu2 06-12-2006 12:07 AM

Quote:

Originally Posted by DirectPixel
Cool, I was wondering when this would get ported to vB. :)
[high]* DirectPixel installs.[/high]

You might want to give some credit to the guy who actually wrote the lightbox script. ;)


updated :)


forgot to put it back in when i updated it with another version ;)

d8tabyte 06-14-2006 07:16 PM

Awesome works great - http://digitalet.net/forum/showthrea...newpost&t=2681

sdenike 06-14-2006 07:21 PM

I changed one part on this script. I change the rel="lightbox[attachment] to rel="lightbox[attachment$post[postid]]" that way if you have a bunch of attachments in a post it wont cycle through the entire topic of attachments, only the ones in THAT post.

Ntfu2 06-14-2006 10:27 PM

Cool Good tip.

thanks

nymyth 06-15-2006 12:29 PM

NTFU, is there anyway we can use imagemagick to autoresize the image?? So if someone uploads a huge image, imagemagick will shrink it and then lighbotx kicks into action???

Peace

sdenike 06-15-2006 03:48 PM

Quote:

Originally Posted by Ntfu2
Cool Good tip.

thanks

Not a problem. I was trying to think of other ways to impliment this as well... I will keep you posted.

Ntfu2 06-19-2006 01:29 AM

Quote:

Originally Posted by nymyth
NTFU, is there anyway we can use imagemagick to autoresize the image?? So if someone uploads a huge image, imagemagick will shrink it and then lighbotx kicks into action???

Peace


this wont work with anything posted with the [img ] tags anyway.

Icheb 06-20-2006 04:21 AM

Am I doing something wrong or is saving the images with Firefox impossible? Whenever I do a right click on the image the only options I see are "Save Page as" or "Save Link as", but not "Save Image". If I do it in IE I have to hit the area where there are no "previous" and "next" links.

Other than that, I can't put it in words how wonderful this looks. :D


All times are GMT. The time now is 02:33 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.01626 seconds
  • Memory Usage 1,820KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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