Version: 1.1, by hambil
Developer Last Online: Apr 2013
Category: Moderators Functions -
Version: 3.5.4
Rating:
Released: 03-27-2006
Last Update: 04-05-2006
Installs: 40
Uses Plugins
Additional Files
No support by the author.
Keywords: admincp, access denied, forum access, access, user, admin, usergroup
This modification contains a MySQL injection vulnerability, and you are hereby advised to unintall this modification until such time that the author provides a fix.
-- vBorg Staff
Description:
A powerful tool for customizing the generic vBulletin access denied message.
Created a custom message for any vBulletin generic access denied message.
Personalize messages with any user, forum or usergroup information.
Automatically send a PM to one or more users the first time a member receives a specific access denied message.
Personalize the PM with any user, forum or usergroup information.
Add an approval link to the automatic PM that will give the user a new primary or secondary usergroup of your choice when clicked.
Send a PM to everyone who received the original access request, and the requesting user, when they are approved.
Several layers of security.
Use Case
On my board we only allow access to a few forums until a user has been approved by an admin. The sample screen shots show this process in action.
Install
Download the vbAccessDenied_1.0.zip file.
Unzip and upload the files in the upload directory to your forum root.
Import the product file in your admincp.
Create custom messages as desired.
1.1 Changes
Supports bbcodes in messages (see updated screen shot).
Fixed sql bug that prevented many messages from showing properly.
Removed 255 character limit on messages.
Upgrade from 1.0 to 1.1
You will need to reupload all files, and uninstall and reinstall the product to upgrade from 1.0 to 1.1. Please copy your messages to a text editor first if you want to save them.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
one last thing.... how do i get it to automatically add the forum title and user's name? i am not too quick on this stuff
and yes with the correct version i got the message. sorry about that.
One of the screen shots has some nice examples. Basically, any forum or user or usergroup data can be used. You put them in {} in the message.
Username would be {user.username}
and the forum would be {forum.title}
I'll put up a complete list of the standard vb ones tomorrow - but if you have installed hacks that add to the forum or user or usergroup table, you can also use those values too.
this doesn't work and throws an error every time you hit "messages" in the admincp navigation
Quote:
Invalid SQL:
SELECT accessdenied_message.*, usergroup.title AS usergroup, forum.title AS forum
FROM vb3_accessdenied_message
LEFT JOIN vb3_usergroup ON usergroup.usergroupid = accessdenied_message.usergroupid
LEFT JOIN vb3_forum ON forum.forumid = accessdenied_message.forumid;
Can you remove the line $db->hide_errors() from the product xml and try importing it again? Tell me what, if any error you see?
verry strange here is no error message ......
PHP Code:
$msgs = $db->query_read("
SELECT accessdenied_message.*, usergroup.title AS usergroup, forum.title AS forum
FROM " . TABLE_PREFIX . "accessdenied_message
LEFT JOIN " . TABLE_PREFIX . "usergroup ON usergroup.usergroupid = accessdenied_message.usergroupid
LEFT JOIN " . TABLE_PREFIX . "forum ON forum.forumid = accessdenied_message.forumid
");
that is causing the error i have no field called "accessdenied_message" within the table vb3_accessdenied_message that field is for some reason missing
$msgs = $db->query_read(" SELECT accessdenied_message.*, usergroup.title AS usergroup, forum.title AS forum FROM " . TABLE_PREFIX . "accessdenied_message LEFT JOIN " . TABLE_PREFIX . "usergroup ON usergroup.usergroupid = accessdenied_message.usergroupid LEFT JOIN " . TABLE_PREFIX . "forum ON forum.forumid = accessdenied_message.forumid ");
that is causing the error i have no field called "accessdenied_message" within the table vb3_accessdenied_message that field is for some reason missing
There is no field call accessdenied_message - it's the table name.