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)
-   -   Forum Display Enhancements - Image Resize using Lytebox ( 3.6.x ) (https://vborg.vbsupport.ru/showthread.php?t=172069)

Bommando 03-07-2008 11:16 AM

Nice job :)

I noticed that this overrides any links on the images themselves. So, if you have a url tag around the image, it will use Lytebox even if the image isn't resized and you won't be able to click on the link.

This in in Safari 3.0.4.

Would be great if there was a way to allow urls to override the Lytebox code. Sigs should also be exempt.

tunistunis 03-07-2008 11:40 AM

thanks amico for this share

you are best

kencasanova 03-07-2008 02:07 PM

Thank you. but it doesn't work with CMPS. can you fixed that?

Lost Heaven 03-08-2008 06:16 AM

Quote:

Thank you. but it doesn't work with CMPS. can you fixed that?
Yes,i'll release next ver that work with CMPS.Thanks you very much.

jiggle 03-14-2008 09:59 PM

For me it works great. All images will be reduced, but only the images posted with bbcode IMG will be shown in Original size with the lightbox effect. The images uploaded with the attachment function will be also reduced, but can not be opened in original size like the IMG images (here is an example: http://www.jiggle.de/vb/coole-lustig...ml#post2478913 ). Is this correct ? Is there a chance only to add this to the JPG and GIF Images uploaded as attachment ? Thanks :-)

jiggle 03-14-2008 10:38 PM

I think we have to change the template "postbit_attachmentimage"

<img class="attach" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;d=$attachment[dateline]" border="0" alt="" /><br /><br />

I tried it and it opens the window but was not able to find the picture.

Can someone please help ?

Amenadiel 03-15-2008 01:41 AM

I've been using ncode image resizer, it suits me better because it only applies when an image exceeds max width but (there is always a but) since it uses the attribute "onclick:" I cannot just replace it for lightbox effect, which I already have implemented with custom bbcode [imgw]

If you can code this hack to apply only if the image exceeds the max width, I'll switch in no time.

jiggle 03-15-2008 02:18 PM

Success !
You habe to change the postbit_attachmentimage

<a target="_blank" href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;d=$attachment[dateline]" rel="lytebox">
<img class="attach" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;d=$attachment[dateline]" border="0" alt="" /><br /><br /></a>

Works great now for also the images uploaded with the attachment function.

SSG.D 03-18-2008 02:22 AM

Fantastic m8 ! Thanks for the Awesome work.

Cheers:D
MOTM

cafenetland 03-20-2008 11:47 AM

this is amazin...

im so happy to see this hack...

thank u 1000 times.


All times are GMT. The time now is 03:51 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.01306 seconds
  • Memory Usage 1,729KB
  • 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_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
  • (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