|
||||||
| أرشيف تطوير منتديات vb3.0.0 :: يمنع منعاً باتا ً .. كتابة أي موضوع يهتم بمشاكل المنتديات (( يمنع وضع نسخ vBulletin )) |
|
|
LinkBack | أدوات الموضوع | طرق العرض |
|
||||
|
إليكم هاك وضع المرفقات في الرد السريع هاك الرفقات في الرد السريع رمز Code:
/*-----------------------------------------------------------------------*\
افتح showthread.php
###### ابحث عن: ######
'bbcodecache',
##### اضف تحتة: ######
'attachmentcache',
###### ابحث عن: ######
'showthread_quickreply',
##### اضف تحتة: ######
'showthread_attachment',
'showthread_attachmentbit',
##### ابحث عن: ######
// *********************************************************************************
// build quick reply if appropriate
if ($SHOWQUICKREPLY)
اضف تحتة:
// get attachment options
require_once('./includes/functions_file.php');
$inimaxattach = fetch_max_attachment_size();
$maxattachsize = vb_number_format($inimaxattach, 1, true);
$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 = '" . addslashes($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']);
$attach['filesize'] = vb_number_format($attach['filesize'], 1, true);
$show['attachmentlist'] = true;
eval('$attachments .= "' . fetch_template('showthread_attachmentbit') . '";');
}
}
$attachurl = "f=$foruminfo[forumid]";
eval('$showthread_attachmentoption = "' . fetch_template('showthread_attachment') . '";');
}
else
{
$showthread_attachmentoption = '';
}
---------------------------------------------------
########## تعديلات علي التمبلت ############ افتح التمبلت showthread_quickreply ##### ابحث عن:::::: <label for="qr_quickreply"><input type="checkbox" name="quickreply" value="1" id="qr_quickreply" accesskey="w" tabindex="4" />$vbphrase[quote_message_in_reply]</label> </div> </fieldset> </td> </tr> ##### اضف تحتة:::: <!--- showthread quickreply attachement ---> </tr> <td> $showthread_attachmentoption </td> </tr> <!--- showthread quickreply attachement ---> #----------------------- ##### ابحث عن:::::: <input type="submit" class="button" value="$vbphrase[post_quick_reply]" accesskey="s" title="(Alt + S)" name="sbutton" tabindex="2" onclick="this.form.clickedelm.value=this.value" /> ##### اضف تحتة:::::: <input type="hidden" name="posthash" value="$posthash" /> <input type="hidden" name="poststarttime" value="$poststarttime" /> ########## اضافة تمبلت جديدة ############ 1. باسم ==== > showthread_attachment انسخ الكود التالي <fieldset class="fieldset"> <legend>$vbphrase[attach_files]</legend> <div style="padding:$stylevar[formspacer]px"> <div style="margin-bottom:$stylevar[formspacer]px"> <div>$vbphrase[valid_file_extensions]: $attachtypes[extensions]</div> </div> <div style="margin-bottom:$stylevar[formspacer]px" id="attachlist"> <if condition="$show['attachmentlist']"> $attachments </if> </div> <div> <script type="text/javascript"> <!-- ********.write('<input type="button" class="button" tabindex="1" style="font-weight:normal" value="$vbphrase[manage_attachments]" title="$vbphrase[add_edit_files_attached]" onclick="manageattachments(\'newattachment.php?$se ssion[sessionurl]$attachurl&poststarttime=$poststarttime&po sthash=$posthash\', 480, 480, \'$postid\')" />'); //--> </script> <noscript> <a href="newattachment.php?$session[sessionurl]$attachurl&poststarttime=$poststarttime&po sthash=$posthash" target="manageattach" title="$vbphrase[add_edit_files_attached]" tabindex="1"><strong>$vbphrase[manage_attachments]</strong></a> </noscript> </div> </div> </fieldset> 2. باسم ==== > showthread_attachmentbit نسخ الكود التالي <div style="margin:2px"><img class="inlineimg" src="$stylevar[imgdir_attach]/$attach[extension].gif" alt="$attach[filename]" border="0" /> <a href="attachment.php?$session[sessionurl]attachmentid=$attach[attachmentid]&stc=1" target="_blank">$attach[filename]</a> ($attach[filesize])</div> ###### النهاية ####### |
|
:: عضو نشيط ::
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
توقيعك رائع |
| العلامات المرجعية |
| أدوات الموضوع | |
| طرق العرض | |
|
|