![]() |
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. |
thanks amico for this share
you are best |
Thank you. but it doesn't work with CMPS. can you fixed that?
|
Quote:
|
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 :-)
|
I think we have to change the template "postbit_attachmentimage"
<img class="attach" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&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 ? |
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. |
Success !
You habe to change the postbit_attachmentimage <a target="_blank" href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&d=$attachment[dateline]" rel="lytebox"> <img class="attach" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&d=$attachment[dateline]" border="0" alt="" /><br /><br /></a> Works great now for also the images uploaded with the attachment function. |
Fantastic m8 ! Thanks for the Awesome work.
Cheers:D MOTM |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|