INSTALLATION INSTRUCTIONS 安装说明 Just perform the tasks laid out in the steps below. If you have any trouble then send me a PM on vbulletin.org, my username is buro9. 相关设置:论坛设置中,你需要设置发送悄悄话和邮件的用户。 Configuration settings such as the user who sends the PMs, etc are all within the vBulletin Settings section of the AdminCP under the label "Secret Admirer". YOU WILL NEED TO CHANGE THE USER WHO SENDS THE PMS AND EMAILS! If you have an existing install... we will NOT overwrite your data... so just feel free to install and we'll pick up where we left of. Just click Yes to overwriting an existing install and it will reset the phrases and templates required, leaving the data alone. INSTALLING THE PRODUCT Take the "product-Secret Admirer.xml" file, and upload it using: AdminCp > Plugin System > Manage Products > Import Upload 在产品管理中上传product-Secret Admirer.xml If you have an existing installation, click Yes to allow overwrite, it will not touch data, just the phrases and templates I used to have. 如果已有安装选择允许覆盖,不会影响数据 UPLOADING THE FILE 上传文件secretadmirer.php到includes目录 Upload the contents of the upload folder to your forum directory. You are only uploading one files, ./includes/secretadmirer.php and that file should end up in your /includes/ directory of your forum. ADDING THE LINKS TO THE TEMPLATES 在模板中添加相关选项 TEMPLATE SECTION: User Control Panel Templates TEMPLATE: USERCP_SHELL USERCP_SHELL 模板 找到 (在最末部分): </table> <!-- / usercp nav --> 在上面添加: <tr> <td class="$navclass[attachments]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=admirereport" title="Have your secret admirer report e-mailed to you">Secret Admirer Report</a></td> </tr> ×××××××××××××××××××××××××××××××××××××××××××××××××××××× MEMBERINFO 模板 TEMPLATE SECTION: Member Info Templates TEMPLATE: MEMBERINFO 找到 (about 1/3rd of the way down within the 'button row' section): <if condition="can_moderate()"> <td class="vbmenu_control"><a href="moderator.php?$session[sessionurl]do=useroptions&u=$userinfo[userid]">$vbphrase[user_options]</a></td> </if> 在上面添加: <td class="vbmenu_control"><a href="profile.php?$session[sessionurl]do=admire&userid=$userinfo[userid]">Register your admiration for $userinfo[username]</a></td>