Post Thank You Hack 7.7 http://www.vbulletin.org/forum/showthread.php?t=165673 Coder: Abe1 Installation information on hack: (If installed on vb 3.7) * Files edited: 0 * Templates edited: 0 * Files to upload: 7 * Time to install: 1 minute max Updates: Version 7.0 (12/20/07): * Release of this hack for vBulletin version 3.7 * This version works on all vBulletin versions from 3.6.0 and up Version 7.1 (12/24/07): * Fixed up the vb3.7 profile block code including fixing showing your info and not the member you are looking at. Version 7.2 (01/24/08): * Updated files: post_thanks.php, functions_post_thanks.php * Updated templates: post_thanks_memberinfo_block, post_thanks_member_info * New option: Remove User's Thanks Count When Deleting Post * New phrase: post_thanks_search_user_gave * FIX User reputation level now updates. (Thanks to liwo for this one.) * NEW Added option to view all posts a user has thanked. * FIX Fixed Special Action - Delete All of a Users Thanks * FIX Should have fixed some 'foreach()' errors. Version 7.3 (03/15/08): * Updated file: functions_post_thanks.php * Updated template: post_thanks_memberinfo_block * Deleted template: post_thanks_memberinfo_css * New option: Choice to use Markup Usernames or not. (Thanks to Namaless) * New option: Ban User from Getting Thanks * New option: Max Thanks a User can Give Per Day * FIX Fixed repeating bug on vb 3.6.7 forums. * CHANGE Changed where the post thanks info shows on the Profile Page. Moved to same box as statistics. (This will require a template edit if you are running vb3.7 beta 2-4) Version 7.4 (03/21/08): * FIX: Fixed Profile Stats for vb3.7.0 RC1 users. Version 7.5 (05/12/08): * Updated files: post_thanks.js, post_thanks.php, functions_post_thanks.php * Updated template: post_thanks_button * Added securty token check for all thanks added. This will prevent a user from giving out a link or somehow making an image that will get him a lot of thanks. * Should have fixed some 'foreach()' errors. * Fixed Delete All of a Users Thanks bug * vBulletin 3.7.x compatible only Version 7.5 (05/12/08): * Updated files: post_thanks.js, post_thanks.php, functions_post_thanks.php * Updated template: post_thanks_button * Added securty token check for all thanks added. This will prevent a user from giving out a link or somehow making an image that will get him a lot of thanks. * Should have fixed some 'foreach()' errors. * Fixed Delete All of a Users Thanks bug * vBulletin 3.7.x compatible only (Chú ý nhé, cái 7.5 này chỉ dùng cho 3.7.x) Version 7.6 (06/02/08): * FIX: Fixed Security Check for vb 3.7.1 * Updated files: functions_post_thanks.php Version 7.7 (07/28/08): * FIX: Fixed problem with giving thanks using Blazer (palmOS browser). * Updated file: post_thanks.js * Updated templates: post_thanks_button, post_thanks_postbit, post_thanks_postbit_legacy * New option: Show Stats in Postbit? * New option: Show Stats in Profile? Dịch cái 7.7 này: * Sửa lỗi khi sử dụng Blazer ( trình duyệt palmOS ) để thanks * Updated file: post_thanks.js * Updated templates: post_thanks_button, post_thanks_postbit, post_thanks_postbit_legacy * Lựa chọn mới: Hiện Stats ở Postbit không? * Lựa chọn mới: Hiện Stats ở Profile không? PHP: Link:http://vietvbb.vn/up/attachment.php?attachmentid=5391&d=1217219138 . ___________Auto Merge________________ . General Information Mô tả: - Tạo một bảng "Thông baó" trong Box con. - Mod có quyền tạo (rất tiện) -... Demo: http://chuyenhvt.net Live Demo: http://www.chuyenhvt.net/forum/forumdisplay.php?f=98 Cài đặt: 1. run SQL query Mã: (Click here to copy code to clipboard) ALTER TABLE forum ADD ( message mediumtext NOT NULL DEFAULT '' ) Đơn giảng là vào ACP > Maintenance > Execute SQL Query > copy đoạn code trên vào Manual Query > save 2. Upload 2 file *.php lên host. foruminfo.php >> upload ngang với file index.php vbulletin_quick_info_edit.js >> upload vào thư mục clientscript 3. Edit file: Mở file moderator.php tìm: PHP Code: (Click here to copy code to clipboard) print_no_permission(); //setup redirects for other options in moderators cp thêm bên trên: PHP Code: (Click here to copy code to clipboard) if ($_REQUEST['do'] == 'infoedit') { $forumid = verify_id('forum', $_REQUEST['forumid']); if (can_moderate($forumid, '')) { exec_header_redirect("foruminfo.php?f=$forumid"); } else { print_no_permission(); } } Save và upload. Mở file forumdisplay.php tìm: PHP Code: (Click here to copy code to clipboard) eval('print_output("' . fetch_template('FORUMDISPLAY') . '");'); thêm bên trên PHP Code: (Click here to copy code to clipboard) if ($foruminfo['message']) { require_once(DIR . '/includes/class_bbcode.php'); $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list()); $foruminfo['message'] = $bbcode_parser->parse($foruminfo['message']); require_once(DIR . '/includes/functions_editor.php'); $vBeditJs = construct_editor_js_arrays(); eval('$vBeditTemplate[\'clientscript\'] = "' . fetch_template('editor_clientscript') . '";'); eval('$forum_info = "' . fetch_template('forum_info') . '";'); } Save và upload Mở file ajax.php và thấy bên dưới cùng: Mã: (Click here to copy code to clipboard) /*======================================================================*\ thêm bên trên cái đó: PHP Code: (Click here to copy code to clipboard) if ($_POST['do'] == 'quickinfoedit') { $vbulletin->input->clean_array_gpc('p', array( 'postid' => TYPE_UINT, 'editorid' => TYPE_STR )); $forumid = $vbulletin->GPC['postid']; // needs this to show error if forum does not exist if (!can_moderate($forumid) OR $forumid == 0) { print_no_permission(); } $foruminfo = verify_id('forum', $forumid, 1, 1); // check if there is a forum password and if so, ensure the user has it set verify_forum_password($foruminfo['forumid'], $foruminfo['password']); if (!$vbulletin->options['quickedit']) { // if quick edit has been disabled after showthread is loaded, return a string to indicate such echo 'disabled'; exit; } $vbulletin->GPC['editorid'] = preg_replace('/\W/s', '', $vbulletin->GPC['editorid']); $vars = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "forum WHERE forumid = $forumid"); require_once(DIR . '/includes/functions_editor.php'); construct_edit_toolbar(htmlspecialchars_uni($vars['message']), 0, $foruminfo['forumid'], $forum_allowsmilies, $postinfo['allowsmilie'], false, 'qe', $vbulletin->GPC['editorid']); header('Content-Type: text/xml' . iif($ajax_charset != '', ';charset=' . strtolower($ajax_charset))); echo '<?xml version="1.0" encoding="' . $ajax_charset . '"?>' . "\r\n<editor parsetype=\"$foruminfo[forumid]\" parsesmilies=\"$editor_parsesmilies\" mode=\"$show[is_wysiwyg_editor]\"><=!=[=C=D=A=T=A=[" . $messagearea . "]=]=></editor>"; } 4. Edit Temp Tạo 1 Template mới: Tiltle: forum_info_edit Mã: (Click here to copy code to clipboard) $stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$vboptions[bbtitle] - Información general del Foro</title> </head> <body$onload> $header $navbar <form action="foruminfo.php" method="post" name="vbform"<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(this.subject.value, 0)"</if>> $postpreview <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat"> <span class="smallfont" style="float:$stylevar"><strong>$vbphrase[forum]</strong>: <a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[forumid]">$foruminfo[title]</a></span> Información general del Foro </td> </tr> <tr> <td class="panelsurround" align="center"> <div class="panel"> <div style="width:$stylevar[formwidth]" align="$stylevar"> $usernamecode <input type="hidden" name="subject" value="..." size="40" maxlength="85" tabindex="1" /> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td> <!-- message area --> <div class="smallfont">$vbphrase[message]:</div> $messagearea <!-- / message area --> $posticons </td> </tr> </table> </div> </div> <div style="margin-top:$stylevar[cellpadding]px"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="f" value="$forumid" /> <input type="hidden" name="do" value="postinfo" /> <input type="hidden" name="posthash" value="$posthash" /> <input type="hidden" name="poststarttime" value="$poststarttime" /> <input type="submit" class="button" name="sbutton" id="{$editorid}_save" value="Guardar mensaje" accesskey="s" tabindex="1" /> <input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="p" tabindex="1" /> </div> </td> </tr> </table> <br /> </form> <br /> $forumrules $footer </body> </html> Tạo thêm 1 Template mới: Title: forum_info Mã: (Click here to copy code to clipboard) <if condition="$foruminfo['message']"> <div id="posts"> <div id="edit$foruminfo[forumid]"> <table class="tborder" cellpadding="$stylevar[cellpadding]" id="post$foruminfo[forumid]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tbody> <tr> <td class="thead" align="center"><a style="float:$stylevar" href="#top" onclick="return toggle_collapse('mv')"><img id="collapseimg_mv" src="$stylevar[imgdir_button]/collapse_alt$vbcollapse[collapseimg_mv].gif" alt="" border="0"></a>Informacion General</td> </tr> </tbody> <tbody id="collapseobj_mv" style="$vbcollapse[collapsetobj_mv]"> <tr> <td class="alt1"> <div id="post_message_$foruminfo[forumid]">$foruminfo[message]</div> <if condition="$show['inlinemod']"> <div align="right"> <a href="$post[editlink]" name="vB::QuickEdit::$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a> </div> </if> </td> </tr> </tbody> </table> <br /> </div> </div> <!--General Forum Info --> <!-- scripts for quick edit --> <!-- ajax errors table --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" style="display:none; position:absolute" id="ajax_post_errors"> <tr> <td class="thead"> <span style="float:$stylevar"><input type="button" class="button" value=" X " onclick="vB_QuickEditor.hide_errors()" unselectable="true" /></span> $vbphrase[vbulletin_message] </td> </tr> <tr> <td class="alt2" colspan="2" id="ajax_post_errors_message"> </td> </tr> <tr> <td class="tfoot" colspan="2" align="center"><a href="#" onclick="vB_QuickEditor.abort(); return false;">$vbphrase[cancel_changes]</a></td> </tr> </table> $vBeditTemplate[clientscript] <script type="text/javascript" src="clientscript/vbulletin_quick_info_edit.js"></script> <script type="text/javascript"> <!-- vB_AJAX_QuickEdit_Init('posts'); //--> </script> <!-- / scripts for quick reply and quick edit --> <!-- / Fin General Forum Info --> </if> Eidt Template FORUMDISPLAY Tìm: Mã: (Click here to copy code to clipboard) <if condition="$show['addmoderator']"> <div><label for="fa_amd"><input type="radio" name="do" id="fa_amd" value="addmoderator" />$vbphrase[add_moderator]</label></div> </if> Thêm bên dưới: Mã: (Click here to copy code to clipboard) <div><label for="fa_sut2"><input type="radio" name="do" id="fa_sut2" value="infoedit" /><if condition="$foruminfo['message']">Editar/Quitar mensaje del foro<else />Agregar mensaje al foro</if></label></div> tìm tiếp: Mã: (Click here to copy code to clipboard) <if condition="$show['forumslist']"> thêm bên trên: Mã: (Click here to copy code to clipboard) $forum_info 5. Tạo Phrase mới: type: Front-End Redirect Messages name: editinfo Content: El Mensaje general of Forum was successfully saved. Hết! Nguồn: vbv - vBulletin Vietnam Nếu có thắc mắc xin liên hệ ^^! Sinister ############################################## ...đó là chức năng gì ? Vâng, đó là chức năng tạo bảng tin cho mỗi Box mà Mod đó quản lý. Chức năng dành duy nhất cho Mod !!! Nói đến đây các bạn chắc cũng chưa hiểu cho lắm chức năng mới này dành cho các bạn. Đầu tiên mình xin đưa ra một Box mà mình đã là thử. Đó là Box Cute Girlz - Kool Boyz ( http://www.chuyenhvt.net/forum/forumdisplay.php?f=118 ), các bạn có thể xem qua "cái" mà mình đã là thử Vậy muốn làm nó các Mod phải làm thế nào ? - Đâu tiên bạn hãy vào Box mà bạn quản lý. - Sau đó bạn lam theo hướng dẫn sau: --> Vào phần Tạo/Sửa thông báo cho Box. --> Một bảng soạn thảo bình thường hiện ra. Và tại đây các Mod có thể tùy ý viết những gì được gọi là: Quảng cáo hay Thông Báo trên Box của mình. Các Mod hãy sử dụng hết các chức năng và khả năng văn chương của mình để tạo cho Box mình một bảng thông tin thật đẹp, thật đầy đủ và hấp dẫn nhé. Xem thử một Box có bảng thông tin: Box Cute Girlz - Kool Boyz ( http://www.chuyenhvt.net/forum/forumdisplay.php?f=118 )