طريقه التركيب :-
ارفع هذا الملف showfile.php الى الرئيسيه وهذا الملف class_showfile.php الى includes والان الحق ملف product-attachment_window.xml كمنتج .
الان تعديل التمبلات :-
قم بفتح تمبلت postbit_attachment وضع هذا الكود مكانه بالكامل :-
كود PHP:
<if condition="in_array($bbuserinfo['usergroupid'], array(1, 3))">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<a href="javascript:history.go(0)" onClick="MM_openBrWindow('showfile.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]','','scrollbars=yes,resizable=yes,width=470,height=300')"><strong>Get File!</strong></a>
[$attachment[filename] $attachment[filesize]<if condition="$show['views']">]<if condition="$show['views']"></if>, (<phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase></if>)
<else />
<tr>
<td><img class="inlineimg" src="$stylevar[imgdir_attach]/$attachment[attachmentextension].gif" alt="<phrase 1="$attachment[attachmentextension]">$vbphrase[file_type_x]</phrase>" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td><a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>>$attachment[filename]</a> ($attachment[filesize]<if condition="$show['views']">, <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase></if>)</td>
</tr>
</if>
افتح تمبلت SHOWTHREAD_FILE وقم بالتعديل على الوصله لتناسب موقعك :-
كود PHP:
<div align="center"><a href="http://www.YOURSITE.COM/FORUM/register.php" target="_blank">الاعضاء المسجلين</a> لليس عليهم الانتظار.</div>
الان بنفس التمبلت ابحث عن :
كود PHP:
<!-- START AD CODE -->
<!-- END AD CODE -->
وضع اكوادك اذا توفرت الخاصه مثلا بالدعايات !!!!!
الان افتح تمبلت postbit_attachment لتغير حجم النافذه ؟
كود PHP:
scrollbars=yes,resizable=yes,width=470,height=300
افتح تمبلت attach_window لتغير وقت العد التنازلي :-
كود PHP:
var delay = 25; //change this value to the number of seconds you want.
مثال حي :-
http://jerusalemgts.com/gti/showthre...0031#post10031