vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Forum Display Enhancements - Image Resize using Lytebox (https://vborg.vbsupport.ru/showthread.php?t=171985)

D.Baker 05-21-2008 02:39 AM

When ever you use the little papar clip icon to embed an image thumbnail in a post (I think that uses the [ATTACH] BBcode), it wont use Lytebox to open that large image, it just opens in new window.

D.Baker 05-21-2008 02:45 AM

I found the source of the problem. When an image is embed in a post, it gets given the "rel=" link to the defualt Lightbox (So, rel="Lightbox") rather than this plugins "rel=lytebox". I don't know how you could fix this, but I though it might help.

D.Baker 05-21-2008 03:31 AM

I hacked it to work by doing a search and replace of rel="Lightbox to rel="lytebox" in install/vbulletin-style.xml. Now it works for image even if they are embeded. I guess this sin't the best way to do things, but it works.

Now it would be great to have the option to add the images into lytebox groups so the slideshow feature works. All you need to do is get the plugin to ad rel="lytebox[$postid]" instead of rel="lytebox" and it would work.

D.Baker 05-21-2008 09:20 AM

OK, I have developed my own mini-mod to get Lytebox working properly. It allows groups, slideshows and even works with images embeded in a post! You can try it out here. It doesn't resize large images (just use the attachment settings in vB to do that).

pedroenf 05-22-2008 01:24 PM

Quote:

Originally Posted by D.Baker (Post 1526640)
works with images embeded in a post!

Such as those within [img] tags?

D.Baker 05-23-2008 12:18 PM

No, not with the IMG tags. There is a link to a demo post on the mod page here.

Walter Ronny 05-24-2008 12:29 AM

great! thx

metin 05-28-2008 09:25 AM

good works thanx...

HAVOK USA 06-02-2008 12:42 AM

not working with 3.71

Antek 06-07-2008 08:30 PM

Quote:

Originally Posted by HAVOK USA (Post 1538273)
not working with 3.71

This mod works perfect with vB 3.7.1 :P
Just read installation steps and do it again, exactly:

edit file includes/class_bbcode.php, find
PHP Code:

return '<img src="' .  $link '" border="0" alt="" />'

and replace with
PHP Code:

return '<a target="_blank" href="' $link '" rel="lytebox"><img src="' $link '" border="0" alt="" /></a>'

Regards,
Antek


All times are GMT. The time now is 07:11 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.01178 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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