![]() |
標記為贊助者
// Mark User as Contributor
// Original: MarkB Thanks to MarkB for allowing me to port his hack to vBulletin 3.and creating the original hack! // Description: This allows you as an administrator to mark users if they have donated to your website. You can use text/icon whatever you want by editing the phrase. It appears in postbit and the users profile:) // 安裝說明: ------------------------ Step 1: 執行資料庫升級: ALTER TABLE user ADD contrib TINYINT(6) NOT NULL AFTER usertitle ------------------------ Step 2: 開啟 admincp/user.php 並搜尋 (2個修改): print_input_row($vbphrase['user_title'], 'user[usertitle]', $user['usertitle']); 下面加上: print_yes_no_row($vbphrase['user_contrib'], 'user[contrib]', $user['contrib']); // 搜尋: 'signature', 下面加上: 'contrib', ------------------------ Step 3: 開啟 'POSTBIT' 或 'postbit_legacy' 模版並搜尋: <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if> 下面加上: <if condition="$post['contrib']"><div class="smallfont">$vbphrase[post_contrib]</div></if> 開啟 'MEMBERINFO' 模版並搜尋: <if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if> 下面加上: <if condition="$userinfo['contrib']"><div class="smallfont">$vbphrase[post_contrib]</div></if> ------------------------ Step 4: 新增短語: 變量名稱: user_contrib 文字: Mark as Contributor ? 中文: 是一個贊助會員? 變量名稱: post_contrib 文字: <b>Contributor</b> 中文: <b>本站贊助會員</b> 套件安裝完成!:) |
所有時間均為台北時間。現在的時間是 05:46 AM。 |
Powered by vBulletin® 版本 3.6.8
版權所有 ©2000 - 2025, Jelsoft Enterprises Ltd.
『服務條款』
* 有問題不知道該怎麼解決嗎?請聯絡本站的系統管理員 *