عرض مشاركة واحدة
عضو نشيط
تاريخ التسجيل: Jan 2008-
#2 (permalink)  
Talking Resize IMG tag with Highslide!

Install:
1. Upload folder 'highslide' into forum root.

2. Edit file 'includes/class_bbcode.php'
find: inline 1940 ~ 1955

Code:
return '<img src="' . $link . '" border="0" alt="" />';Replace with:

Code:
/* Start Image RESIZE */

$navigator_user_agent = ( isset( $_SERVER['HTTP_USER_AGENT'] ) ) ? strtolower( $_SERVER['HTTP_USER_AGENT'] ) : '';
if (stristr($navigator_user_agent, "msie")) {
return '<a href="' . $link . '" class="highslide" onclick="return hs.expand(this)" ><img src="' . $link . '" border="0" alt="" style="width: expression(this.width > 340 ? 180 : true);" /></a>';
} else {
return '<a href="' . $link . '" class="highslide" onclick="return hs.expand(this)" ><img src="' . $link . '" border="0" alt="" style="max-width: 430px;" /></a>';
}
/* End Image RESIZE */You can change max width resize.

3. Import XML File: AdminCP -> Plugin System -> Manage Products -> Add / Import Product

Update: Use highslide for Attachment Thumbnail
4. Open Temp. postbit_attachmentthumbnail
Replace with:

PHP Code:
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;d=$attachment[dateline]" class="highslide" onclick="return hs.expand(this)" id="attachment$attachment[attachmentid]"><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1&amp;d=$attachment[thumbnail_dateline]" border="0" alt="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]" 4="$attachment[attachmentid]">$vbphrase[image_larger_version_x_y_z]</phrase>" style="width: expression(this.width > 140 ? 80 : true);" /></a>
&nbsp;<if condition="$show['br']"><br /><br /></if>

That´s all
Have fun!






الملفات المرفقة
نوع الملف: zip IMG Resize with Highslide.zip‏ (54.5 كيلوبايت, المشاهدات 24)
__________________
هاك مطور لتطوير المنتدي لمحركات البحث افضل من vbseo ومجاني

http://rodolphjarastv.com/vb/t10009.html

ِشبكة اجراس الصداقة www.Rodolphjarastv.com
bakry3d غير متواجد حالياً   قديم 17-04-2008, 12:46 PM
رد مع اقتباس