Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

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
  #62  
Old 06-12-2008, 12:37 PM
HAVOK USA HAVOK USA is offline
 
Join Date: Aug 2006
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Antek - works like a charm.

I need to learn that when all else fails, read the directions.
Reply With Quote
  #63  
Old 06-13-2008, 10:43 AM
cybermaster cybermaster is offline
 
Join Date: Feb 2008
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #64  
Old 06-13-2008, 12:12 PM
Antek's Avatar
Antek Antek is offline
 
Join Date: May 2008
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lost Heaven, could you add to next version option for exclude signature images?

Antek
Reply With Quote
  #65  
Old 06-13-2008, 04:31 PM
1Matthew1 1Matthew1 is offline
 
Join Date: Apr 2008
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And can you make it work with vbSEO?
Reply With Quote
  #66  
Old 06-14-2008, 01:47 PM
dynamixsolution dynamixsolution is offline
 
Join Date: Jun 2008
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Somebody has integrated this hack with the vBulletin 3.7.1 albums?
Reply With Quote
  #67  
Old 06-15-2008, 05:07 AM
DmentedH DmentedH is offline
 
Join Date: Jun 2008
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it possible to make it where when you click the image it will open up into a new window full size? that would be really great for this mod.
Reply With Quote
  #68  
Old 06-17-2008, 03:13 PM
dazzled dazzled is offline
 
Join Date: Jun 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is probably a very stupid question but when you say:

Quote:
Upload files from folder upload.
where exactly do you want those files uploaded to? Sorry, n00b here
Reply With Quote
  #69  
Old 06-17-2008, 07:37 PM
DmentedH DmentedH is offline
 
Join Date: Jun 2008
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

upload the files in the upload folder into your forum root.
Reply With Quote
  #70  
Old 06-23-2008, 10:10 AM
car20's Avatar
car20 car20 is offline
 
Join Date: Feb 2008
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello
Great hack , but dont work at my forum .
i uploaded files and enable at admin cp and edit class_bbcode.php file and import xml file .
light box is work but can't resize image .
resize setting is 400px
please help me .
Reply With Quote
  #71  
Old 07-09-2008, 05:51 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works easier without any Edits even for Blogs and Albums : The Image Resizer (powered with Lytebox / Highslide)
Reply With Quote
Reply


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:06 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.04754 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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