:: عضو نشيط ::
بيانات موقعي
اصدار المنتدى : لا أملك منتدى
تحميل المرفقات في الرد السريع للنسخ 3.6.1
التعديل على ملف Showthread.php
أبحث عن ____________ 1 _____________
أسفله ضع
رمز PHP:
'attachmentcache' ,
أبحث عن ____________ 2 _____________
رمز PHP:
'showthread_quickreply' ,
أسفله ضع
رمز PHP:
'newpost_attachment' ,
'newpost_attachmentbit' ,
أبحث عن ____________ 3 _____________
رمز PHP:
// *********************************************************************************
// build quick reply if appropriate
فوق ضع
رمز PHP:
// attachment in quickreply by tnguy3n
require_once( DIR . '/includes/functions_file.php' );
$inimaxattach = fetch_max_upload_size ();
$attachtypes =& $vbulletin -> attachmentcache ;
$maxattachsize = vb_number_format ( $inimaxattach , 1 , true );
$attachcount = 0 ;
$attach_editor = array();
if ( $forumperms & $vbulletin -> bf_ugp_forumpermissions [ 'canpostattachment' ] AND
$vbulletin -> userinfo [ 'userid' ])
{
if (! $posthash OR ! $poststarttime )
{
$poststarttime = TIMENOW ;
$posthash = md5 ( $poststarttime . $vbulletin -> userinfo [ 'userid' ] .
$vbulletin -> userinfo [ 'salt' ]);
}
else
{
if (empty( $postattach ))
{
$currentattaches = $db -> query_read ( "
SELECT dateline, filename, filesize, attachmentid
FROM " . TABLE_PREFIX . "attachment
WHERE posthash = '" .
$db -> escape_string ( $newpost [ 'posthash' ]) . "'
AND userid = " .
$vbulletin -> userinfo [ 'userid' ]
);
while ( $attach = $db -> fetch_array ( $currentattaches ))
{
$postattach [ " $attach [ attachmentid ] " ] = $attach ;
}
}
if (!empty( $postattach ))
{
foreach( $postattach AS $attachmentid => $attach )
{
$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 ( 'newpost_attachmentbit' ) . '";' );
$attachment_js .=
construct_attachment_add_js ( $attachmentid , $attach [ 'filename' ], $attach [ 'filesize' ],
$attach [ 'extension' ]);
$attach_editor [ " $attachmentid " ] =
$attach [ 'filename' ];
}
}
}
$attachurl = "t= $threadinfo [ threadid ] " ;
eval( '$attachmentoption = "' . fetch_template ( 'newpost_attachment' ) .
'";' );
$attach_editor [ 'hash' ] = $postid ;
$attach_editor [ 'url' ] =
"newattachment.php? $session [ sessionurl ] t= $threadinfo [ threadid ] &poststarttime= $poststartt
ime&posthash= $posthash " ;
}
else
{
$attachmentoption = '' ;
}
// end
أحفظ العمل
وإذا لم تضبط معك حمل المرفق واستبدله بملف Showthread.php فهو معدل وجاهز
ولا تنسى النسخه خاصه بإصدار 3.6.1
************************************************** ****************************
ثانياً : التعديل على قالب SHOWTHREAD
أبحث عن ____________ 1 _____________
رمز PHP:
< input type = "hidden" name = "t" value = " $threadid " id = "qr_threadid" />
< input type = "hidden" name = "p" value = " $qrpostid " id = "qr_postid" />
أسفله ضع
رمز PHP:
< input type = "hidden" name = "posthash" value = " $posthash " />
< input type = "hidden" name = "poststarttime" value = " $poststarttime " />
أبحث عن ____________ 2 _____________
رمز PHP:
< fieldset class= "fieldset" style = "margin: $stylevar [ formspacer ] px 0px 0px 0px" >
< legend > $vbphrase [ options ]</ legend >
< div >
<if condition = " $bbuserinfo [ 'signature']" >
< div style = "float: $stylevar [ right ] " >< label for= "cb_signature" >< input type = "checkbox" name = "signature" value = "1" id = "cb_signature" tabindex = "5" checked = "checked" /> $vbphrase [ show_your_signature ]</ label ></ div >
</if>
< 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 >
ضع أسفله
رمز PHP:
$attachmentoption
أحفظ العمل
وإذا لم تضبط معك استبدل محتويات المرفق SHOWTHREAD فهو معدل وجاهز
ولا تنسى أنه القالب الأصلي للإصدار 3.6.1
وألف مبروك عليكم
تقبلو فائق تحياتي
عبدالله
صاحب شبكة آفاق الخليج
www.ktop3.com
توقيع :: Abdullah ::
سبحان الله وبحمده .. سبحان الله العلي العظيم
التعديل الأخير كان بواسطة :: Abdullah ::; 25 - 09 - 2006 الساعة 05:40