Version: 1.1.2, by orryun
Developer Last Online: Jun 2010
Category: Moderators Functions -
Version: 3.7.x
Rating:
Released: 10-10-2008
Last Update: 10-18-2008
Installs: 175
Uses Plugins Auto-Templates
Re-useable Code Translations
No support by the author.
Quick Mod Tools
-----------------
Created by OrRyuN.
This mod works with vBulletin 3.7 or higher
My first mod
Description
Adds quick links to useful places (such as ban user, edit signature etc.) to moderators.
The links apear in the MEMBERINFO template, above the username, and in the pop-up menu in posbit & postbit_legacy.
Basic Links (for moderators usually)
Included in MEMBRINFO: Ban user | Lift Ban | Ban Reason | Edit Signature
included in postbit: Ban user | Lift Ban | Edit User Profile
Advanced Links (for administrators usually)
Included in MEMBRINFO: Ban user | Lift Ban | Ban Reason | Edit Signature | Edit Permissions | Remind Password | Delete All Posts
included in postbit: Ban user | Lift Ban | Edit User Profile
Settings:
Mod enabled/disabled UPDATE 1.1: enable/disable each tool
Usergroups allowed to use Basic Links
Usergroups allowed to use Advanced Links
-----------------------
Update v1.1 / 16th Oct 08:
Settings: added enable/disable for each tool
-----------------------
Update v1.1.1 / 16th Oct 08:
Bug: Password Reminder bug was fixed
----------------------- Update v1.1.2 / 19th Oct 08:
Supports custom modcp and admincp locations
Go to a user profile in adminCP -> Quick user links -> select 'Email activation codes'
The member will receive an email with its account activation codes.
Go to a user profile in adminCP -> Quick user links -> select 'Email activation codes'
The member will receive an email with its account activation codes.
Maybe it's another mod. In the clean vb 3.7-3.8 there is NOT "Email activation codes".
One note of wierdness: I updated using the overwrite option and ended up with two Tools bars in the UserCP. The Products section in my AdminCP listed Quick Mod Tools 1.1 and also Quick Mod Tools 2.0. No idea where that came from. I uninstalled BOTH listed versions and then reinstalled and it worked correctly.
I'm really curious to know how I did that time jump to a version that doesn't yet exist.
In the following code below, you are assuming that everyone's mod control panel is found in the directory modcp. But I changed mine for security purposes. I manually made the changes in your code but it may be an issue for others that have done the same. I highlighted in red the directory I had to change to make this work.
BTW, I also changed the directory of my admincp!
Code:
]]></template>
<template name="postbit_modtools" templatetype="template" date="0" username="OrRyuN" version="1.1"><![CDATA[
<if condition="$show[modtools_basic] OR $show[modtools_adv]">
<if condition="$show[modtools_ban]">
<if condition="$post[usergroupid]=='8'"><!-- if user is banned -->
<tr><td class="vbmenu_option">
<a href="modcp/banning.php?do=liftban&u=$post[userid]">$vbphrase[modtools_liftban]</a>
<else /><!-- user is not banned -->
<tr><td class="vbmenu_option">
<a href="modcp/banning.php?$session[sessionurl]do=banuser&u=$post[userid]">$vbphrase[modtools_ban]</a></td></tr></if></if>
<if condition="$show[modtools_editsig]"><tr><td class="vbmenu_option"><a href="modcp/user.php?do=editsig&u=$post[userid]">$vbphrase[modtools_censorsig]</a></td></tr></if>
<if condition="$show[modtools_edit2]"><tr><td class="vbmenu_option"><a href="moderator.php?do=useroptions&u=$post[userid]">$vbphrase[modtools_edit2]</a></td></tr></if>
</if>
One note of wierdness: I updated using the overwrite option and ended up with two Tools bars in the UserCP. The Products section in my AdminCP listed Quick Mod Tools 1.1 and also Quick Mod Tools 2.0. No idea where that came from. I uninstalled BOTH listed versions and then reinstalled and it worked correctly.
I'm really curious to know how I did that time jump to a version that doesn't yet exist.
Same thing happened to me but I figured the 2.0 was the old one and uninstalled it since the new release was 1.1!
I believe the 2.0 xml file is what gives you the Quick Mod Tools option in the VB options. If you just install the 1.1 xml file the option is removed from the VB options. So, you might want to have both files installed. Hope this helps.
In the following code below, you are assuming that everyone's mod control panel is found in the directory modcp. But I changed mine for security purposes. I manually made the changes in your code but it may be an issue for others that have done the same. I highlighted in red the directory I had to change to make this work.
BTW, I also changed the directory of my admincp!
Code:
]]></template>
<template name="postbit_modtools" templatetype="template" date="0" username="OrRyuN" version="1.1"><![CDATA[
<if condition="$show[modtools_basic] OR $show[modtools_adv]">
<if condition="$show[modtools_ban]">
<if condition="$post[usergroupid]=='8'"><!-- if user is banned -->
<tr><td class="vbmenu_option">
<a href="modcp/banning.php?do=liftban&u=$post[userid]">$vbphrase[modtools_liftban]</a>
<else /><!-- user is not banned -->
<tr><td class="vbmenu_option">
<a href="modcp/banning.php?$session[sessionurl]do=banuser&u=$post[userid]">$vbphrase[modtools_ban]</a></td></tr></if></if>
<if condition="$show[modtools_editsig]"><tr><td class="vbmenu_option"><a href="modcp/user.php?do=editsig&u=$post[userid]">$vbphrase[modtools_censorsig]</a></td></tr></if>
<if condition="$show[modtools_edit2]"><tr><td class="vbmenu_option"><a href="moderator.php?do=useroptions&u=$post[userid]">$vbphrase[modtools_edit2]</a></td></tr></if>
</if>
To be fair, you really can't expect add-on coders to code for non-standard installations.
I believe the 2.0 xml file is what gives you the Quick Mod Tools option in the VB options. If you just install the 1.1 xml file the option is removed from the VB options. So, you might want to have both files installed. Hope this helps.
Take care,
-Mr. Bone88
There IS no version 2.0 though. Just 1.0 and now 1.1.