عرض مشاركة مفردة
 
  #1  
قديم 05-02-2005, 06:08 PM
ابوماجد ابوماجد غير متصل
عضو
 
تاريخ التسجيل: Apr 2004
مشاركة: 52
مستوى تقييم العضوية: 22
ابوماجد is on a distinguished road
الافتراضي هاك [لايمكن رؤية هذا المرفق الا بعد الرد على الموضوع] ملطوب للنسخه 3.0.6

هاك [لايمكن رؤية هذا المرفق الا بعد الرد على الموضوع] ملطوب للنسخه 3.0.6 ارجو توفيره لنا
هذا السابق وللأسف لايعمل مع على الاصدار الاخير

ارجو توفيره لنا على الاصدار الاخير
طريقة التركيب :


##########
الخطوه الاولى
##########
افتح ملف functions.php
الموجود بمجلد الادمن

ابحث عن :

كود PHP:
  if ($wordwrap!=0) {
                
$post[title]=dowordwrap($post[title]);
        } 

بعده اضف :

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

$m=$p[userid];
if(
$post[attachmentid]!=and $bbuserinfo[userid]!=$m AND $bbuserinfo[usergroupid] != or $bbuserinfo[userid]==and $post[attachmentvisible]){
 eval(
"\$post[attachment] = \"".gettemplate("postbit_cantseeattach")."\";");
}else{ 


وابحث ايظا عن:

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

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


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

كود PHP:
// global options
        
global $showdeficon,$displayemails,$enablepms,$allowsignatures,$wordwrap,$dateformat,$timeformat,$logip,$replacewords,$postsperday,$avatarenabled,$registereddateformat,$viewattachedimages
واستبدله بي :

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

##########
الخطوه الثانيه
##########
اعمل تمبلت جديد وسمه باسم
postbit_cantseeattach


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