Raised This Month: $ Target: $400
 0% 

Vbulletin 4.X Integration with Sourcebans! FINALLY HERE!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 09-28-2010 , 12:16   Re: Vbulletin 4.X Integration with Sourcebans! FINALLY HERE!
Reply With Quote #1

Thanks for sharing this. Great job!

If you really want this script to be used by other communities, you should extract all the custom variables to the top of the script into the config area. Like an own var $vbSteamID = 'field5'; for everyone to easily edit instead of having to run through the whole script.

I still have to notice, that this script is only a one-way solution. So no change done via the sourcebans webpanel is permanent, but only lasts until the script is ran again. So it's not a complete bridge, but at least it's quite helpful.

I strongly recommend to use/modify the SendRconSilent() function in /includes/system-functions.php to handle any errors occuring with rcon.
At least add
Code:
$rcon->Auth();
to the rehashing part to get it working;)

Original
__________________
Peace-Maker is offline
Geit
Senior Member
Join Date: Oct 2009
Location: Home
Old 09-28-2010 , 16:14   Re: Vbulletin 4.X Integration with Sourcebans! FINALLY HERE!
Reply With Quote #2

Update to the script attached, Managed to get the vBulletin private message data manager working properly after doing some debugging on my local install, so sending PM's now generates email notifications and the script doesn't require MYSQL information for both databases.
Added some escaping to variable input, just in case.
Did as suggested above and moved the variables that can vary per install into their own variables at the top of the script.
Changed the Server Rehash so it now uses the Auth function from CServerRcon.

Quote:
Originally Posted by Peace-Maker View Post
I still have to notice, that this script is only a one-way solution. So no change done via the sourcebans webpanel is permanent, but only lasts until the script is ran again. So it's not a complete bridge, but at least it's quite helpful.
I had a think about this, and I couldn't think of doing it any other way really. - As Bouncer has said, If you were to set custom permissions for a user, they would always be preserved, the only thing that the script is supposed to change when a user is promoted is their Web Group, Server Group and Server Access Group.
Attached Files
File Type: txt vbtosourcebans.php.txt (14.0 KB, 772 views)

Last edited by Geit; 09-28-2010 at 19:28. Reason: Another version
Geit is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode