هذه بعض الهاكات الخاصة
vBulletin Version 3
هاك الرد السريع في المشاركات
vBulletin Version 3
هاك الرد السريع في المشاركات
ترميز:
###############################################################
هاك الرد السريع مع الارفاق والتول بارز والابتسامات
1- قم بفتح تمبلت
vbcode_buttons
و استبدله بـ
<script type="text/javascript">
<!--
var pickColors = new Array($jsOptions[colors]);
var pickFonts = new Array($jsOptions[fonts]);
var pickSizes = new Array($jsOptions[sizes]);
var allowedbbcodes = $vboptions[allowedbbcodes];
//-->
</script>
<script language="Javascript" src="clientscript/vbcode.js"></script>
<script language="Javascript" src="clientscript/vbcode_language.js"></script>
<!-- START NORMAL TOOLBAR -->
<style>
#codebuttons input { font-family: verdana, arial, helvetica; font-size: 11px; }
#codebuttons select { font-family: verdana, arial, helvetica; font-size: 11px; }
.smilieTable { border-width: 2px; border-style: outset; }
.bginput {
FONT-SIZE: 12px;
FONT-FAMILY: Verdana,Arial,Helvetica,sans-serif;
COLOR: #000000;
BACKGROUND-COLOR: #CFCFCF
}
</style>
<table border=0>
<tr id="codebuttons">
<td>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap><font face="MS Sans Serif,arial,helvetica" size="1" >
<select id="sizeselect" onchange="fontformat(this.form,this.options[this.selectedIndex].value,'Size')" onmouseover="stat('size')" style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: #000000; background-color: #CFCFCF">
<option value="0">الحجم</option><option value="1">صغير</option>
<option value="2">وسط</option>
<option value="3">كبير</option>
<option value="4">ضخم</option></select>
<select id="fontselect" onchange="fontformat(this.form,this.options[this.selectedIndex].value,'font')" onmouseover="stat('font')" style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: #000000; background-color: #CFCFCF">
<option value="0">الخط</option><option value="arial">Arial</option>
<option value="times new roman">Times</option>
<option value="courier new">Courier</option>
<option value="century gothic">Century</option>
<option value="MS Sans Serif">MS Sans Serif</option>
<option value="Tahoma">Tahoma</option></select>
<select id="colorselect" onchange="fontformat(this.form,this.options[this.selectedIndex].value,'color')" onmouseover="stat('color')" style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px; color: #000000; background-color: #CFCFCF">
<option value="0">اللون</option>$vbcode_colorbits</select> </font></td>
<td rowspan="3"> </td>
<td rowspan="3"><smallfont>
<br>
</smallfont></td>
</tr>
<tr>
<td nowrap><font face="MS Sans Serif,arial,helvetica" size="1" >
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/mup.gif'); font-size:11pt" value=" " title="إلى الأعلى" onclick="vbcode(this.form,'moveup','')" onmouseover="stat('moveup')" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/mdown.gif'); font-size:11pt" value=" " title="إلى الأسفل" onclick="vbcode(this.form,'moved','')" onmouseover="stat('moved')" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/mright.gif'); font-size:11pt" value=" " title="إلى اليمين" onclick="vbcode(this.form,'mover','')" onmouseover="stat('mover')" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/mleft.gif'); font-size:11pt" value=" " title="إلى اليسار" onclick="vbcode(this.form,'movel','')" onmouseover="stat('movel')" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/justify.gif'); font-size:11pt" value=" " onclick="vbcode(this.form,'j','')" onmouseover="stat('j')" title="ضبط النص" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/right.gif'); font-size:11pt" value=" " onclick="vbcode(this.form,'r','')" onmouseover="stat('r')" title="محاذاه الى اليمين" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/center.gif'); font-size:11pt" value=" " onclick="vbcode(this.form,'c','')" onmouseover="stat('c')" title="محاذاه الى المنتصف" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/left.gif'); font-size:11pt" value=" " onclick="vbcode(this.form,'l','')" onmouseover="stat('l')" title="محاذاه الى اليسار" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/bold.gif'); font-size:11pt" value=" " onclick="vbcode(this.form,'B','')" onmouseover="stat('b')" title="غامق (alt+b)" accesskey="b" size="20" >
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/italic.gif'); font-size:11pt" value=" " onclick="vbcode(this.form,'I','')" onmouseover="stat('i')" title="خط مائل (alt+i)" accesskey="i" size="20" >
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/under.gif'); font-size:11pt" value=" " onclick="vbcode(this.form,'U','')" onmouseover="stat('u')" title="خط سفلي (alt+u)" accesskey="u" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/blur.gif'); font-size:11pt" value=" " onclick="vbcode(this.form,'blur','')" onmouseover="stat('blur')" title="نص مشوش" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/line.gif'); font-size:11pt" value=" " onclick="nameline('line')" onmouseover="stat('line')" title="خط فاصل" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/code1end.gif'); font-size:11pt" value=" " accesskey="c" title="أضف نهاية الترميز الحالي (alt+c)" style="color:red; font-weight:bold" onclick="closetag(this.form)" onmouseover="stat('closecurrent')" size="20">
</font></td>
</tr>
<tr>
<td nowrap><font face="MS Sans Serif,arial,helvetica" size="1" >
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/link.gif'); font-size:11pt" value=" " title="اكتب عنوان الرابط" onclick="namedlink(this.form,'URL')" onmouseover="stat('url')" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/qoute.gif'); font-size:11pt" value=" " title="أضف إقتباس" onclick="vbcode(this.form,'QUOTE','')" onmouseover="stat('quote')" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/php.gif'); font-size:11pt" value=" " title="كود PHP" onclick="vbcode(this.form,'PHP','')" onmouseover="stat('php')" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/hide.gif'); font-size:11pt" value=" " onclick="vbcode(this.form,'hide','')" onmouseover="stat('hide')" title="ادراج نص محفي(سري)" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/icq.gif'); font-size:11pt" value=" " onclick="vbcode(this.form,'icq','')" onmouseover="stat('icq')" title="ادراج رقم آي سي كيوICQ " size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/mail.gif'); font-size:11pt" value=" " title="اكتب عنوان البريد" onclick="namedlink(this.form,'EMAIL')" onmouseover="stat('email')" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/flash.gif'); font-size:11pt" value=" " title="اضافة ملف فلاش" onclick="nameflsh(this.form,'FL')" onmouseover="stat('fl')" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/image.gif'); font-size:11pt" value=" " title="أضف صورة" onclick="vbcode(this.form,'IMG','http://')" onmouseover="stat('img')" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/bullist.gif'); font-size:11pt" value=" " title="قائمة متسلسلة" accesskey="l" onclick="dolist(this.form)" onmouseover="stat('list')" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/code.gif'); font-size:11pt" value=" " title="كود" onclick="vbcode(this.form,'CODE','')" onmouseover="stat('code')" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/rplayer.gif'); font-size:11pt" value=" " onclick="vbcode(this.form,'sound','http://')" onmouseover="stat('sound')" title="ادراج ملف ريل بلاير" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/sound.gif'); font-size:11pt" value=" " onclick="vbcode(this.form,'waver','http://')" onmouseover="stat('waver')" title="ادراج ملف صوتي" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/video.gif'); font-size:11pt" value=" " title="ادراج ملف فيديو" onclick="namevideo(this.form,'VIDEO')" onmouseover="stat('video')" size="20">
<input type="button" style="border-style:outset; border-width:0; background-image: url('images/wysiwyg/codeallend.gif'); font-size:11pt" value=" " accesskey="x" title="أضف نهاية ترميز الجميع (alt+x)" style="color:red; font-weight:bold" onclick="closeall(this.form)" onmouseover="stat('closeall')" size="20"><br>
<input type="text" class="bginput" name="status" style="font-size:7pt; font-family:tahoma" size="50" value="إستخدم هذه اللوحة لإضافة رموز ال vb">
</font></td>
</tr>
</table>
<SCRIPT language=JavaScript
src="clientscript/color.js">
</SCRIPT>
<SCRIPT language=JavaScript>
var height1 = 10;
var pas = 28;
var width1=Math.floor(-4/15*pas+6);
</SCRIPT>
<TABLE id=ColorPanel cellSpacing=0 cellPadding=0 align=right
border=0>
<TBODY>
<TR>
<TD id=ColorUsed
onclick="if(this.bgColor.length > 0) insertTag(this.bgColor)"
vAlign=center align=middle BORDER-RIGHT: BORDER-TOP:
BORDER-LEFT: ridge; CURSOR: default; BORDER-BOTTOM: 2px
ridge?>
<SCRIPT language=JavaScript>
document.write('<IMG height='+height1+' src="images/wysiwyg/spacer.gif" width=10 border=1></TD>');</SCRIPT>
<TD width=5>
<SCRIPT language=JavaScript>
document.write('<IMG height='+height1+' src="images/wysiwyg/spacer.gif" width=5 border=0></TD>');</SCRIPT>
<TD id=ColorUsed1
onclick="if(this.bgColor.length > 0) insertTag(this.bgColor)"
vAlign=center align=middle BORDER-RIGHT: BORDER-TOP:
BORDER-LEFT: ridge; CURSOR: default; BORDER-BOTTOM: 2px
ridge?>
<SCRIPT language=JavaScript>
document.write('<IMG height='+height1+' src="images/wysiwyg/spacer.gif" width=10 border=1></TD>');</SCRIPT>
<TD width=5>
<SCRIPT language=JavaScript>
document.write('<IMG height='+height1+' src="images/wysiwyg/spacer.gif" width=5 border=0></TD>');</SCRIPT>
<SCRIPT language=JavaScript>
<!--
rgb(pas,width1,height1)
// -->
</SCRIPT>
</TD></TR></TBODY></TABLE>
</td>
</tr>
</table>
<!-- END NORMAL TOOLBAR -->
2- افتح تمبلت
Show Thread Templates
اختار و افتح
showthread_quickreply
و استبدله بـ
<script type="text/javascript">
<!--
var allowedbbcodes = $vboptions[allowedbbcodes];
var divnotpara = $vboptions[divnotpara];
var WYSIWYG = $WYSIWYG;
// initialize quick reply
function qr(postid)
{
var tform = document.forms.vbform;
document.getElementById("qr_postid").value = postid;
document.getElementById("qr_preview").select();
document.getElementById("qr_quickreply").disabled = false;
if (WYSIWYG == 2)
{
qr_htmlbox = document.getElementById("htmlbox");
qr_htmlbox.contentEditable = true;
qr_htmlbox.innerHTML = "<DIV></DIV>";
qr_htmlbox.focus();
}
else
{
qr_message = document.getElementById("qr_message");
qr_message.disabled = false;
qr_message.value = '';
qr_message.focus();
}
}
// check quick reply is initialized
function checkQR(tform)
{
if (document.getElementById("qr_postid").value == 0)
{
alert("You must choose a post to reply to! (click the Quick Reply icon in a post)");
return false;
}
else
{
if (document.getElementById("qr_postid").value == "who cares" && typeof tform.quickreply != "undefined")
{
tform.quickreply.checked = false
}
if (WYSIWYG < 2)
{
return validatemessage(document.getElementById("qr_message").value, 0, $vboptions[postminchars], $vboptions[postmaxchars], false, tform);
}
else
{
return validatePost(tform, 0, $vboptions[postminchars], $vboptions[postmaxchars]);
}
}
}
// get the postid
function infoQR()
{
var tform = document.forms.vbform;
alert('PostID: ' + document.getElementById("qr_postid").value);
}
// -->
</script>
<form name="vbform" action="newreply.php" method="post" onsubmit="return checkQR(this);">
<input type="hidden" name="fromquickreply" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="postreply" />
<input type="hidden" name="threadid" value="$threadid" id="qr_threadid" />
<input type="hidden" name="postid" value="$qrpostid" id="qr_postid" />
<input type="hidden" name="parseurl" value="1" />
<input type="hidden" name="posthash" value="$posthash" />
<input type="hidden" name="poststarttime" value="$poststarttime" />
<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"><tr><td>
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
<td class="tcat" colspan="2" align="center"><b>الرد السريع</b></td>
</tr>
<tr valign="top">
<td class="alt1" width="175">
<img src="$stylevar[imagesfolder]/quickreply.gif" alt="" title="Quick Reply" border="0" onclick="infoQR();" /><br />
<br />
<br />
<span class="smallfont">
<if condition="$threadedmode == 1 or $qrpostid === 'who cares'">
<label for="qr_quickreply"><input type="checkbox" name="quickreply" value="1" id="qr_quickreply" accesskey="w" />إرفاق نص المشاركة ?</label>
<else />
<label for="qr_quickreply"><input type="checkbox" name="quickreply" value="1" id="qr_quickreply" accesskey="w" disabled="disabled" /><span lang="ar-ae">الاقتباس
في الرد </span>?</label>
</if>
<if condition="$bbuserinfo['signature']">
<br /><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" checked="checked">ظهور التوقيع ?</label>
</if>
</span>
<br />
<normalfont><b> اكواد الـvB </b></normalfont>
<smallfont>
[<a href="misc.php?action=bbcode#buttons" target="_blank">مسـاعـدة</a>]<br>
<input type="radio" name="mode" value="0" title="الوضع العادي: (alt+n)" accesskey="n"
onclick="setmode(this.value)" onmouseover="stat('norm')" $modechecked[0] size="20"> الوضع العادي <br>
<input type="radio" name="mode" value="1" title="وضع المنتقدمين: (alt+e)" accesskey="e"
onclick="setmode(this.value)" onmouseover="stat('enha')" $modechecked[1] size="20"> وضـع المتقدمين </smallfont>
<br />
$smiliebox
</td>
<td class="alt1">
<if condition="$WYSIWYG == 2">
<!-- WYSIWYG QUICK REPLY -->
<link rel="stylesheet" href="clientscript/wysiwyg.css" />
<script type="text/javascript" src="clientscript/wysiwyg_lang_English.js"></script>
<script type="text/javascript" src="clientscript/wysiwyg.js"></script>
<input type="hidden" name="WYSIWYG_HTML" />
<input type="hidden" name="message" />
<table cellpadding="0" cellspacing="0" border="0" class="controlbar">
<tr valign="top">
<td rowspan="4">
<if condition="$threadedmode == 1 or $qrpostid === 'who cares'">
<div id="htmlbox" class="bginput" style="height:88px; width:370px;" contenteditable="true"></div>
<else />
<div id="htmlbox" class="bginput" style="height:88px; width:370px;">Click the <img src="$stylevar[imagesfolder]/quickreply.gif" alt="" /> icon in any post above to activate quick reply!</div>
</if>
</td>
<if condition="$vboptions[allowedbbcodes] & ALLOW_BBCODE_BASIC">
<td><img src="images/wysiwyg/vB_Bold.gif" class="wysbutton" alt="" /></td>
</if>
</tr>
<if condition="$vboptions[allowedbbcodes] & ALLOW_BBCODE_BASIC">
<tr>
<td><img src="images/wysiwyg/vB_Italic.gif" class="wysbutton" alt="" /></td>
</tr>
<tr>
<td><img src="images/wysiwyg/vB_Underline.gif" class="wysbutton" alt="" /></td>
</tr>
</if>
<tr>
<td><img src="images/wysiwyg/vB_Quote.gif" class="wysbutton" alt="" /></td>
</tr>
</table>
<!-- END WYSIWYG QUICK REPLY -->
<else />
<!-- STANDARD QUICK REPLY -->
<table cellPadding="3" width="100%" border=1 borderColor=#092A42 borderColorDark=#FFFFFF borderColorLight=#092A42 cellspacing=3 width="100%">
$logincode
<tr>
<td class="alt12"><normalfont><b>عنوان الرد:</b></normalfont></td>
<td class="alt12"><normalfont><input type="text" class="bginput" name="title" value="$title" size="40" maxlength="85" tabindex="1"></normalfont> <smallfont>(اختياري)</smallfont></td>
</tr>
<tr><td colspan=2>
$vbcode_buttons
</td>
</tr>
<tr>
<td class="alt12" valign="top" nowrap><b>نص الرسالة</b><normalfont><b>
: </b></normalfont></td>
<td class="alt12">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td>
<if condition="$threadedmode == 1 or $qrpostid === 'who cares'">
<textarea name="message" id="qr_message" class="bginput" rows="10" cols="50"></textarea>
<else />
<textarea name="message" id="qr_message" class="bginput" rows="10" cols="50" disabled="disabled">اضغط على ايقونة عند أي رد في الأعلى لتفعيل الرد السريع!</textarea>
</if>
<br>
<smallfont><a href="javascript:checklength(document.vbform);">[فحص
طول الرسالة]</a></smallfont></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="alt1" valign="top"><b>خيارات :</b></td>
<td class="alt1" valign="top"><span class="smallfont">
<label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" $checked[parseurl] /><b>تحويل تلقائي للعنوان:</b> اضافة تلقائية لـ [url="http://و/"]و [/url]عند عناوين الانترنت.</label>
$disablesmiliesoption
<br /><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" $checked[signature] /><b>مشاهدة التوقيع:</b> اضافة توقعيك في الردو - للاعضاء فقط.</label>
</span></td>
</tr>
<tr>
<td class="alt2" valign="top"><b>التسجيل في الموضوع:</b></td>
<td class="alt2" valign="top">
<select name="emailupdate">
<option value="9999" $emailchecked[9999]>عدم التسجيل</option>
<option value="0" $emailchecked[0]>التسجيل بدون ارسال بريد الكتروني</option>
<option value="1" $emailchecked[1]>تنويه عن طريق البريد الالكتروني</option>
<if condition=" $bbuserinfo['icq'] != '' ">
<option value="4" $emailchecked[4]>التنويه عن طريق الـ ICQ - الخاصيه متاحه عند وجود الخدمه</option>
</if>
<option value="2" $emailchecked[2]>تحديث يومي عن طريق البريد الالكتروني</option>
<option value="3" $emailchecked[3]>تحديث اسبوعي عن طريق البريد الالكتروني</option>
</select>
<if condition="$folderbits">
المجلد: <select name="folderid">
$folderbits
</select>
</if>
</td>
</tr>
$attachmentoption
</table>
</td></tr></table>
<!-- END STANDARD QUICK REPLY -->
</if>
</td>
</tr>
<tr>
<td class="tfoot" colspan="2" align="center">
<input type="submit" class="button" value="اضافة الرد" accesskey="s" title="( Alt + s )" name="sbutton" />
<input type="submit" class="button" value="خاصية متقدمه" accesskey="x" title="( Alt + x )" name="preview" id="qr_preview" />
</td>
</tr>
</table>
</td></tr></table>
</form>
3- قم بفتح الملف
showthread.php
- ابحث عن
// get special data templates from the datastore
$specialtemplates = array(
'rankphp',
'smiliecache',
'bbcodecache',
'mailqueue'
);
استبدله بـ
// get special data templates from the datastore
$specialtemplates = array(
'rankphp',
'smiliecache',
'bbcodecache',
'mailqueue',
'attachmentcache'
);
- ابحث عن
// pre-cache templates used by all actions
$globaltemplates = array(
'forumdisplay_loggedinuser',
'forumrules',
'im_aim',
'im_icq',
'im_msn',
'im_yahoo',
'polloption',
'pollpublic',
'pollresult',
'polloption_multiple',
'postbit',
'postbit_buttons',
'postbit_userinfo',
'postbit_attachment',
'postbit_attachmentimage',
'postbit_attachmentthumbnail',
'postbit_avatar',
'postbit_buddy',
'postbit_deleted',
'postbit_editedby',
'postbit_homepage',
'postbit_ip_hidden',
'postbit_ip_show',
'postbit_js',
'postbit_offline',
'postbit_online',
'postbit_invisible',
'postbit_profile',
'postbit_reputation',
'postbit_reputation_button',
'postbit_search',
'postbit_sendpm',
'postbit_signature',
'postbit_threaded',
'postbit_threaded_deleted',
'postbit_useremail',
'postbit_bbcode_code',
'postbit_bbcode_html',
'postbit_bbcode_php',
'SHOWTHREAD',
'showthread_adminoptions',
'showthread_firstunread',
'showthread_list',
'showthread_listbit',
'showthread_listmore',
'showthread_listsubbit',
'showthread_nextnewestthread',
'showthread_nextoldestthread',
'showthread_polloptions',
'showthread_pollresults',
'showthread_quickreply',
'showthread_ratingdisplay',
'showthread_similarthreadbit',
'showthread_similarthreads'
);
استبدله بـ
// pre-cache templates used by all actions
$globaltemplates = array(
'forumdisplay_loggedinuser',
'forumrules',
'im_aim',
'im_icq',
'im_msn',
'im_yahoo',
'polloption',
'pollpublic',
'pollresult',
'polloption_multiple',
'postbit',
'postbit_buttons',
'postbit_userinfo',
'postbit_attachment',
'postbit_attachmentimage',
'postbit_attachmentthumbnail',
'postbit_avatar',
'postbit_buddy',
'postbit_deleted',
'postbit_editedby',
'postbit_homepage',
'postbit_ip_hidden',
'postbit_ip_show',
'postbit_js',
'postbit_offline',
'postbit_online',
'postbit_invisible',
'postbit_profile',
'postbit_reputation',
'postbit_reputation_button',
'postbit_search',
'postbit_sendpm',
'postbit_signature',
'postbit_threaded',
'postbit_threaded_deleted',
'postbit_useremail',
'postbit_bbcode_code',
'postbit_bbcode_html',
'postbit_bbcode_php',
'SHOWTHREAD',
'showthread_adminoptions',
'showthread_firstunread',
'showthread_list',
'showthread_listbit',
'showthread_listmore',
'showthread_listsubbit',
'showthread_nextnewestthread',
'showthread_nextoldestthread',
'showthread_polloptions',
'showthread_pollresults',
'showthread_quickreply',
'showthread_ratingdisplay',
'showthread_similarthreadbit',
'showthread_similarthreads',
'newpost_smilie_standard',
'newpost_attachment',
'newreply_attachmentbit'
);
- ابحث عن
require_once('./includes/functions_postbit.php');
ضع بعده مباشرة
require_once('./includes/functions_newpost.php');
- ابحث عن
globalize($_REQUEST, array('perpage' => INT, 'pagenumber', 'highlight' => STR, 'goto'));
ضع بعده مباشرة
$attachtypes = unserialize($datastore['attachmentcache']);
$textareacols = fetch_textarea_width();
- ابحث عن
eval('$quickreply = "' . fetch_template('showthread_quickreply') . '";');
ضع قبله (يجب وضع الكود قبل، و الا فلن يعمل)
construct_edit_toolbar($newpost['messege'],0,$foruminfo['forumid'],1,1);
// get attachment options
$inimaxattach = fetch_max_attachment_size();
$attachcount = 0;
if ($forumperms & CANPOSTATTACHMENT AND $bbuserinfo['userid'])
{
if (!$posthash OR !$poststarttime)
{
$poststarttime = TIMENOW;
$posthash = md5($poststarttime . $bbuserinfo['userid'] . $bbuserinfo['salt']);
}
else
{
$currentattaches = $DB_site->query("
SELECT filename, filesize
FROM " . TABLE_PREFIX . "attachment
WHERE posthash = '$newpost[posthash]'
AND userid = $bbuserinfo[userid]
");
while ($attach = $DB_site->fetch_array($currentattaches))
{
$attach['extension'] = strtolower(file_extension($attach['filename']));
$attach['filename'] = htmlspecialchars_uni($attach['filename']);
eval('$attachments .= "' . fetch_template('newreply_attachmentbit') . '";');
}
}
$attachurl = "t=$threadid";
eval('$attachmentoption = "' . fetch_template('newpost_attachment') . '";');
}
else
{
$attachmentoption = '';
}
if ($newpost['emailupdate'])
{
$emailchecked["$newpost[emailupdate]"] = HTML_SELECTED;
}
else
{
if ($threadinfo['issubscribed'])
{
$emailchecked["$threadinfo[emailupdate]"] = HTML_SELECTED;
}
else if ($bbuserinfo['emailnotification'])
{
$emailchecked[1] = HTML_SELECTED;
}
else
{
$emailchecked[9999] = HTML_SELECTED;
}
}
// auto-parse URL
if (!isset($checked['parseurl']))
{
$checked['parseurl'] = HTML_CHECKED;
}
if ($bbuserinfo['userid'] AND !$postpreview)
{
// signature
if ($bbuserinfo['signature'] != '')
{
$checked['signature'] = HTML_CHECKED;
}
else
{
$checked['signature'] = '';
}
}
eval('$vbcode_colorbits = "' . fetch_template('vbcode_colorbits') . '";');
eval('$vbcode_buttons = "' . fetch_template('vbcode_buttons') . '";');






تعليق