F@rum_Haiquan.info (*_*)
nCode Image Resizer With Highslide - Bản rút gọn

+- F@rum_Haiquan.info (*_*) (http://haiquan.info/F@rum)
+-- Diễn đàn: TIN HỌC- CÔNG NGHỆ (http://haiquan.info/F@rum/forumdisplay.php?fid=101)
+--- Diễn đàn: MÃ NGUỒN (http://haiquan.info/F@rum/forumdisplay.php?fid=102)
+---- Diễn đàn: MYBB (http://haiquan.info/F@rum/forumdisplay.php?fid=103)
+---- Chủ đề: nCode Image Resizer With Highslide (/showthread.php?tid=1146)



nCode Image Resizer With Highslide - ngocvu1403 - 13-03-2013

Mô tả:
Tự động thu nhỏ hình ảnh có kích thước lớn khi dùng tag [IMG] và phóng to ảnh bằng hiệu ứng highslide



Installation:
- Upload folder "highslide" to forumroot

- Go to AdminCP > Plugins > Active nCode Image Resizer With Highslide

- Edit template Ungrouped Templates > headerinclude
Add code:

Code:
Code: (Select All)
Code:
{$highslide_script}

- Edit file inc/class_parser.php
Find:

PHP Code:
Code: (Select All)
Code:
return "<img src=\"{$url}\" border=\"0\" alt=\"{$alt}\"{$css_align} />";
Replace with:

PHP Code:
Code: (Select All)
Code:
return "<a href=\"{$url}\" class=\"highslide\" onclick=\"return hs.expand(this)\" border=\"0\"><img src=\"{$url}\" border=\"0\" alt=\"{$alt}\"{$css_align} onload=\"NcodeImageResizer.createOn(this);\" /></a>";
Điều Chỉnh Plugins:
AdminCP > Configuration > Image Resizer With Highslide
Bên trong có 2 tùy chọn là Max width of image (Chiều rộng tối đa) và Max height of image (chiều cao tối đa)
Download