مولاني
09-06-2005, 05:33 PM
الطريقه
1- إفتح الملف : attachment.php
إبحث عن :
=====================
// check if there is a forum password and if so, ensure the user has it set
=====================
فوقه مباشرة ً
أضف هذا الكود الجديد :
=====================
if ( !$DB_site->query_first ( "SELECT postid FROM " . TABLE_PREFIX . "post WHERE userid=$bbuserinfo[userid] AND threadid=$threadinfo[threadid]" ) ) :
eval('print_output("' . fetch_template('attach_after_reply') . '");');
endif ;
=====================
إحفظ العمل .
إرسل الملف الى مكانه في السيرفر .
2- أنشأ تمبلت جديد بإسم : attach_after_reply
اضف فيه ما يلي :
=====================
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$pagetitle</title>
$headinclude
$headinsert
</head>
<body>
$header
<br />
<br />
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="70%" align="center">
<tr>
<td class="tcat">$vbphrase[vbulletin_message]</td>
</tr>
<tr>
<td class="panelsurround" align="center">
<!--
<div style="margin-top:$stylevar[cellpadding]px">
<input type="submit" class="button" value="$vbphrase[go_back]" accesskey="s" onclick="history.back(1); return false" />
</div>
-->
<span class="highlight">عذرآ ، لن تتمكن من استعراض محتويات الملف المرفق او تحميلة الإ بعد المشاركة على هذا الموضوع .</span>
</td>
</tr>
</table>
<br />
<if condition="!$show['enableforumjump']">
<!-- forum jump -->
<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td>$forumjump</td>
</tr>
</table>
<!-- / forum jump -->
</if>
<br />
$footer
</body>
</html>
=====================
منقول للأمانه
1- إفتح الملف : attachment.php
إبحث عن :
=====================
// check if there is a forum password and if so, ensure the user has it set
=====================
فوقه مباشرة ً
أضف هذا الكود الجديد :
=====================
if ( !$DB_site->query_first ( "SELECT postid FROM " . TABLE_PREFIX . "post WHERE userid=$bbuserinfo[userid] AND threadid=$threadinfo[threadid]" ) ) :
eval('print_output("' . fetch_template('attach_after_reply') . '");');
endif ;
=====================
إحفظ العمل .
إرسل الملف الى مكانه في السيرفر .
2- أنشأ تمبلت جديد بإسم : attach_after_reply
اضف فيه ما يلي :
=====================
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$pagetitle</title>
$headinclude
$headinsert
</head>
<body>
$header
<br />
<br />
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="70%" align="center">
<tr>
<td class="tcat">$vbphrase[vbulletin_message]</td>
</tr>
<tr>
<td class="panelsurround" align="center">
<!--
<div style="margin-top:$stylevar[cellpadding]px">
<input type="submit" class="button" value="$vbphrase[go_back]" accesskey="s" onclick="history.back(1); return false" />
</div>
-->
<span class="highlight">عذرآ ، لن تتمكن من استعراض محتويات الملف المرفق او تحميلة الإ بعد المشاركة على هذا الموضوع .</span>
</td>
</tr>
</table>
<br />
<if condition="!$show['enableforumjump']">
<!-- forum jump -->
<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td>$forumjump</td>
</tr>
</table>
<!-- / forum jump -->
</if>
<br />
$footer
</body>
</html>
=====================
منقول للأمانه