عرض مشاركة واحدة
قديم 07-11-06, 11:42 AM   #1
عضو مميز
 
الصورة الرمزية بندر الحربي

 










 

بندر الحربي غير متواجد حالياً

بندر الحربي will become famous soon enoughبندر الحربي will become famous soon enoughبندر الحربي will become famous soon enoughبندر الحربي will become famous soon enoughبندر الحربي will become famous soon enoughبندر الحربي will become famous soon enoughبندر الحربي will become famous soon enoughبندر الحربي will become famous soon enoughبندر الحربي will become famous soon enoughبندر الحربي will become famous soon enoughبندر الحربي will become famous soon enough

افتراضي تصغير الصور بدون هاكات للاصدارات 361 و 362

قمت باضافة هذا الموضوع مسبقا للنسخة 361 و الان للاصدار 362

و بكل بساطة يعتمد على تعديل بسيط على ملف واحد وحيد

و بذلك تحصل على تصغير الصور و التواقيع معا و هو هائل الفعالية و مريح و لا هاكات و لا هم يحزنون


في ملف class_bbcode.php
الموجود في مجلد includes

ابحث عن


كود:
function handle_bbcode_img_match($link) 
        { 
                $link = $this->strip_smilies(str_replace('\\"', '"', $link)); 

                // remove double spaces -- fixes issues with wordwrap 
                $link = str_replace('  ', '', $link); 

                return '<img src="' .  $link . '" border="0" alt="" />'; 
        }
و استبدله بالكود التالي



كود:
function handle_bbcode_img_match($link) 
        { 
                $link = $this->strip_smilies(str_replace('\\"', '"', $link)); 

                // remove double spaces -- fixes issues with wordwrap 
                $link = str_replace('  ', '', $link); 

                if ($width = @getimagesize($link)) 
                { 
                     if($width[0] > 300) 
                     { 
                             return '<a href="' . $link . '" target="_blank"><img src="' . $link . '" border="0" width="300" alt="تستطيع أن ترى الصورة بحجمها الطبيعي بعد الضغط عليها" /></a>'; 
                     } 
                     else 
                     { 
                             return '<img src="' .  $link . '" border="0" alt="" />'; 
                     } 

                } 
                else 
                { 
                    return '<img src="' .  $link . '" border="0" alt="" />'; 
                } 
        }


مع الانتباه للرقم 300 حيث يمكنك التحكم بعرض الصور و انا شخصيا وضعته 450 و انتم احرار


و قم بحفظ الملف و رفعه

منقول

تحياااااااااااااااااتي




التوقيع :
    رد مع اقتباس