التعديل السريع للموضوع
افتح ملف/ includes/functions_showthread.php
ابحث عن/
كود PHP:
$show['reputationlink'] = iif($vboptions['reputationenable'] AND $bbuserinfo['userid'] AND $post['userid'] AND !($usergroupcache["$post[usergroupid]"]['genericoptions'] & ISBANNEDGROUP), true, false);
break;
}
أضف فوقه /
كود PHP:
// Quick Edit hack
if ($post['userid'] == $bbuserinfo['userid'])
{
$edittext = htmlspecialchars_uni($post['pagetext']);
eval('$quickedit = "' . fetch_template('showthread_quickedit') . '";');
}
else
{
$edittext="";
$quickedit="";
}
// End Quick Edit hack
افتح ملف/ showthread.php
ابحث عن/
كود PHP:
'showthread_quickreply',
أضف فوقه /
كود PHP:
'showthread_quickedit',
افتح تمبلت/ showthread
ابحث عن/
أضف فوقه /
كود PHP:
<script language="JavaScript">
function toggleT(_w,_h) {
if(document.getElementById) { //This for Mozilla
if (_h=='s') eval("document.getElementById(_w).style.visibility='visible';");
if (_h=='h') eval("document.getElementById(_w).style.visibility='hidden';");
}
if (document.all) { // is IE
if (_h=='s') eval("document.all."+_w+".style.visibility='visible';");
if (_h=='h') eval("document.all."+_w+".style.visibility='hidden';");
}
else { // is NS?
if (_h=='s') eval("document.layers['"+_w+"'].visibility='show';");
if (_h=='h') eval("document.layers['"+_w+"'].visibility='hide';");
}
}
</script>
افتح تمبلت/ postbit أو postbit_legacy
ابحث عن/
كود PHP:
<!-- / status icon and date -->
أضف فوقه /
كود PHP:
<if condition="$post['pmid']==""">
$quickedit
</if>
اضف تمبلت جديد باسم/ showthread_quickedit
كود PHP:
<form enctype="multipart/form-data" name="vbulletinform" style="display:inline;" action="editpost.php" method="post">
<a href="javascript:return false;" onClick="toggleT('e$post[postid]','s');return false;"><img src="$stylevar[imgdir_button]/quickedit_icon.gif" alt="تعديل سريع" border="0" /></a>
<div id="e$post[postid]" style="VISIBILITY:hidden; z-index:1; position:absolute;">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="updatepost" />
<input type="hidden" name="p" value="$post[postid]" />
<input type="hidden" name="posthash" value="$posthash" />
<input type="hidden" name="poststarttime" value="$poststarttime" />
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#000000" width="67" align="center"><tr><td>
<table cellpadding="4" cellspacing="1" border="0" width="100%">
<tr>
<td class="tcat" colspan="2"><b>التعديل السريع للمشاركة</b></td>
</tr>
<tr>
<td class="$bgclass"nowrap><b>العنوان:</b></td>
<td class="$bgclass"><input type="text" class="bginput" name="title" value="$post[title]" size="63" maxlength="85" tabindex="1"></td>
</tr>
<tr>
<td class="$bgclass" valign="top" nowrap><b>الموضوع:</b>
<p>
</td>
<td class="$bgclass">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td><textarea name="message" class="bginput" style="width:455px; height:85px;" wrap="virtual" tabindex="1">$edittext</textarea><br>
<input type="submit" class="button" name="sbutton" accesskey="s" value="احفظ التعديلات" tabindex="3" />
<input type="reset" class="button" value="اعد الرساله القديمه" tabindex="4">
<input type="button" class="button" value="تراجع" onClick="toggleT('e$post[postid]','h')">
<if condition="$bbuserinfo['signature']"> <label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="5" checked="checked" />Sig</label>
</if>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td></tr></table>
<br />
</div>
</form>