| | |
| Stránka: 1 z 1
| [ Príspevok: 1 ] | |
Autor | Správa |
---|
Registrovaný: 01.05.05 Príspevky: 13348 Témy: 1496 Bydlisko: Bratislava | Napísal JanoF: 14.10.2006 15:05 | |
|
Kód: ############################################################## ## MOD Title: Quick Reply ## MOD Author: Smartor < smartor_xp@hotmail.com > (Hoang Ngoc Tu) http://smartor.is-root.com ## MOD Description: This will add a quick-reply form below every topics ## It will only display when user has the Reply access ## MOD Version: 1.0.5 ## ## Installation Level: easy ## Installation Time: 5 Minutes ## Files To Edit: 3 ## viewtopic.php, ## language/lang_english/lang_main.php ## templates/subSilver/viewtopic_body.tpl ## Included Files: N/A ############################################################## ## This MOD is released under the GPL License. ## Intellectual Property is retained by the MOD Author(s) listed above ############################################################## ## Author Notes: ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ##############################################################
# #-----[ OPEN ]------------------------------------------ # viewtopic.php
# #-----[ FIND ]------------------------------------------ # $template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
# #-----[ BEFORE, ADD ]------------------------------------ # // // Quick Reply Mod // if ( ((!$is_auth['auth_reply']) or ($forum_topic_data['forum_status'] == FORUM_LOCKED) or ($forum_topic_data['topic_status'] == TOPIC_LOCKED)) and ($userdata['user_level'] != ADMIN) ) { $quick_reply_form = ""; } else { $notify_user = (( $userdata['session_logged_in'] ) ? $userdata['user_notify'] : 0) ? '1' : ''; $attach_sig = (( $userdata['session_logged_in'] ) ? $userdata['user_attachsig'] : 0) ? '1' : ''; $quick_reply_form = " <script language='JavaScript' type='text/javascript'> function checkForm() { formErrors = false; if (document.post.message.value.length < 2) { formErrors = '" . $lang['Empty_message'] . "'; } if (formErrors) { alert(formErrors); return false; } else { return true; } } </script> <form action='".append_sid("posting.$phpEx")."' method='post' name='post' onsubmit='return checkForm(this)'> <span class='genmed'><b>".$lang["Quick_Reply"].":</b><br /><br /> ";
if (!$userdata['session_logged_in']) { $quick_reply_form .= $lang['Username'] . ": <input class='post' type='text' name='username' size='25' maxlength='25' value='' /><br />"; }
$quick_reply_form .= " <textarea class='post' name='message' rows='10' cols='50' wrap='virtual'></textarea><br /> <input type='hidden' name='attach_sig' value='" . $attach_sig . "' /> <input type='hidden' name='mode' value='reply' /> <input type='hidden' name='sid' value='" . $userdata['session_id'] . "' /> <input type='hidden' name='t' value='" . $topic_id . "' /> <input type='hidden' name='notify' value='" . $notify . "' /><br /> <input type='submit' name='preview' class='liteoption' value='".$lang['Preview']."' /> <input type='submit' name='post' class='mainoption' value='".$lang["Submit"]."' /> </form></span> "; }
$template->assign_vars(array( 'QUICK_REPLY_FORM' => $quick_reply_form) ); // // END Quick Reply Mod //
# #-----[ OPEN ]------------------------------------------ # lang_main.php
# #-----[ FIND ]------------------------------------------ # // // That's all Folks!
# #-----[ BEFORE, ADD ]------------------------------------ # // Quick Reply MOD $lang['Quick_Reply'] = 'Quick Reply';
# #-----[ OPEN ]------------------------------------------ # viewtopic_body.tpl
# #-----[ FIND ]------------------------------------------ # {S_TOPIC_ADMIN}
# #-----[ AFTER, ADD ]------------------------------------ # {QUICK_REPLY_FORM}
# #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM
_________________ Streacom DA2 | SilverStone Titanium SX800-LTI 800W | ASRock X299E-ITX/ac | Intel Core i9-9980XE & be quiet! Dark Rock TF | Kingston HyperX Impact 64 GB DDR4 2666 MHz | NVIDIA Titan RTX 24 GB | Intel SSD Optane 905P 480 GB NVMe U.2 & Intel SSD 750 1,2 TB NVMe U.2 & Intel SSD 660p 2 TB NVMe M.2 & Seagate BackUp Plus Portable 56 TB USB | 55" 4K OLED Dell Alienware AW5520QF & 24" LCD EIZO FlexScan EV2451 | Ergotron LX Wall Mount Keyboard Arm | Logitech Craft | Logitech G603 | Logitech F710 | Harman Kardon Sabre SB 35 & Sennheiser RS 175 | Microsoft Windows 7 Ultimate | APC Back-UPS ES 700 | Lenovo ThinkPad X250 | iPhone X 256 GB & Pitaka Aramid | SilverStone ML05B Milo | Corsair SF600 SFX 600W | ASRock X99E-ITX/ac | Intel Xeon E5-2683 v4 & NOCTUA NH-L12S | Kingston HyperX Savage 32 GB DDR4 2400 MHz | NVIDIA GeForce GT 710 1 GB | Intel SSD Optane Memory 32 GB NVMe M.2 & Intel SSD 730 240 GB SATA | Ubuntu Server |
|
| Stránka: 1 z 1
| [ Príspevok: 1 ] | |
| Nemôžete zakladať nové témy v tomto fóre Nemôžete odpovedať na témy v tomto fóre Nemôžete upravovať svoje príspevky v tomto fóre Nemôžete mazať svoje príspevky v tomto fóre
|
|