عرض مشاركة واحدة
قديم 31-07-2005, 08:36 AM   رقم المشاركة : 104
VIP

AdminiStrator

 
الصورة الرمزية VIP






VIP متصل الآن

VIP كاتب مميزVIP كاتب مميزVIP كاتب مميزVIP كاتب مميز


افتراضي

هاك منع رؤية المرفق الا بعد الرد على الموضوع

فتح ملف functions.php
الموجود بمجلد الادمن

ابحث عن :

كود:
        if ($wordwrap!=0) {
                $post[title]=dowordwrap($post[title]);
        }
بعده اضف :

كود:
$p=$DB_site->query_first("SELECT userid from post where threadid='$post[threadid]'  AND userid='$bbuserinfo[userid]'");

$m=$p[userid];
if($post[attachmentid]!=0 and $bbuserinfo[userid]!=$m AND $bbuserinfo[usergroupid] != 6 or $bbuserinfo[userid]==0 and $post[attachmentvisible]){
 eval("\$post[attachment] = \"".gettemplate("postbit_cantseeattach")."\";");
}else{
وابحث ايظا عن:

كود:
                $post[attachment]="";
        }
واستبدله بي :

كود:
                $post[attachment]="";
        }
}

وابحث ايظا عن (تقريبا عند السطر 66):

كود:
// global options
        global $showdeficon,$displayemails,$enablepms,$allowsignatures,$wordwrap,$dateformat,$timeformat,$logip,$replacewords,$postsperday,$avatarenabled,$registereddateformat,$viewattachedimages;

واستبدله بي :

كود:
        // global options
        global $DB_site,$showdeficon,$displayemails,$enablepms,$allowsignatures,$wordwrap,$dateformat,$timeformat,$logip,$replacewords,$postsperday,$avatarenabled,$registereddateformat,$viewattachedimages;

أحفظ العمل

اعمل تمبلت جديد وسمه باسم
postbit_cantseeattach
واضف بداخله:

كود:
<p><normalfont>لايمكن رؤية هذا المرفق الا بعد الرد على الموضوع</normalfont></p>

أنتهى مبروووووووووك :)






التوقيع