Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Image Resize using Lytebox Details »»
Image Resize using Lytebox
Version: 1.50, by Lost Heaven Lost Heaven is offline
Developer Last Online: Mar 2008 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.7.0 Beta 5 Rating:
Released: 03-02-2008 Last Update: 03-03-2008 Installs: 129
Auto-Templates
Translations  
No support by the author.

This's simple hack for resize large images using Lytebox,also integration with vB attachments for vbb 3.7.x.I used it on my forum http://Hoiquantinhoc.com and i didnt see any problem with it.Here you can see online demo
Here we go !

/////////////////////////////////////////////////////////////////////////
HISTORY
Ver 1.5
  • Using lytebox instead lightbox.
  • Fixed conflict javascripts.
Ver 1.0
  • First release.
/////////////////////////////////////////////////////////////////////////
INSTALLATION
  • Upload files from folder upload.
  • Import Product ImageResize_MK.xml
  • Edit file includes/class_bbcode.php,find
PHP Code:
return '<img src="' .  $link '" border="0" alt="" />'
Replace with
PHP Code:
return '<a target="_blank" href="' $link '" rel="lytebox"><img src="' $link '" border="0" alt="" /></a>'
Note:Also remember active vblightbox option : ACP=>Message Attachment Options =>Use Image Lightbox = > Yes - Click

Default max width available of images is 500px,you can change it in ACP => Image Resize Using Lytebox.

=====================================

Đ?y l? mod resize image v? chức năng duyệt images thumbnail sử dụng thư viện lytebox,biến thể của lightbox2.

///////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
HISTORY
Ver 1.5
  • Sử dụng bộ thư viện lytebox ( lightbox2 ) thay cho lightbox.
  • Fixed conflict javascripts.
Ver 1.0
  • Bật / Tắt Chức năng resize ảnh.
  • T?y chọn k?ch thước tối đa cho ph?p của ảnh.
/////////////////////////////////////////////////////////////////////////
Installation :
  • Upload c?c file trong thư mục upload l?n thư mục tương ứng của host.
  • Import Product ImageResize_MK.xml
  • Edit file includes/class_bbcode.php,t?m
PHP Code:
return '<img src="' .  $link '" border="0" alt="" />'
Thay bằng
PHP Code:
return '<a target="_blank" href="' $link '" rel="lytebox"><img src="' $link '" border="0" alt="" /></a>'
////////////////////////////////////////////////////////////////////////////
Lưu ? :
Những ai d?ng vbb 3.7 nhớ active lightbox nghen : ACP=>Message Attachment Options =>Use Image Lightbox = > Yes - Click
Mod được hỗ trợ tốt nhất tại http://hoiquantinhoc.com

Sorry,im very bad in English ^^ .

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 07-10-2008, 03:49 AM
mehrdad220 mehrdad220 is offline
 
Join Date: Feb 2008
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this might be a dumb question but when i click on an images on my froum it opens it on a new window and the effect dose not work. what modification do you think i might have missed?
Reply With Quote
  #73  
Old 09-07-2008, 03:51 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cybermaster View Post
i found one problem in this mod! if some users have image in his/her signature and that image linked to some site or address, when you click on that image lytebox load image and link not work.

i think this mod must track all images in post not user signature!
Same here, except for regular images, url based instead of inline attachments.
Reply With Quote
  #74  
Old 09-14-2008, 07:44 AM
deneme2 deneme2 is offline
 
Join Date: May 2008
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #75  
Old 12-17-2008, 10:14 PM
ExTincTi0N ExTincTi0N is offline
 
Join Date: Mar 2008
Location: Texas
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im having a problem with this, When I click the image it opens up in a new window/tab what ever you use and it doesn't even look like lytebox. What is the problem?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:14 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04233 seconds
  • Memory Usage 2,248KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete