الهاك في المرفقات ...
المصدر :
http://www.vbulletin.org/forum/showthread.php?t=157228
طريقة التركيب ...
افتح ملف vbulletin_global.js الموجود داخل مجلد clientscript
ابحث عن :
كود:
/**
* Function to emulate document.getElementById
استبدله بهذا الكود ..
كود:
/**
* Function to resize an image used with the [IMG] bbcode tag
*
* @param string Image object
* @param string Image link
* @param integer Image max width
*/
function resize_image(obj, link, maxwidth)
{
if (obj.width > maxwidth)
{
obj.style.cursor = 'pointer';
obj.style.width = maxwidth + 'px';
obj.style.height = parseInt(obj.height * maxwidth / obj.width) + 'px';
obj.onclick = function()
{
window.location.href = link;
return false;
};
}
}
/**
* Function to emulate document.getElementById
احفظ عملك
الان في ملف class_bbcode.php الموجود داخل مجلد includes
ابحث عن
كود:
return '<img src="' . $link . '" border="0" alt="" />';
استبدله بهذا الكود
كود:
return '<img src="' . $link . '" border="0" alt="" onload="resize_image(this, \'' . $link . '\', 800);" />';
احفظ عملك ...
انتهى
لجعل الصور تفتح في نافذه جديده ..
افتح ملف global.js
ابحث عن هذا الكود
window.location.href = link;
استبدله بهذا الكود
window.open(link, '_blank');
احفظ عملك ...
نرجوا سماع تجاربكم بخصوص هذا الهاك في هالموضوع وهل يسبب اي ضغط او لواد على السيرفر مثل هاك تصغير الصور السابق ..؟