Raised This Month: $12 Target: $400
 3% 

Release Donation Control 3.1.0 [over 1000 donations served!]


Post New Thread Reply   
 
Thread Tools Display Modes
ozgaming
SourceMod Donor
Join Date: Aug 2011
Old 08-17-2013 , 06:52   Re: Donor Control
Reply With Quote #31

I believe it worked, but it doesn't assign a server group to them.
ozgaming is offline
Pickles47
Member
Join Date: Jun 2013
Old 08-17-2013 , 07:25   Re: Donor Control
Reply With Quote #32

Quote:
Originally Posted by ozgaming View Post
I believe it worked, but it doesn't assign a server group to them.
Again, not sure but I just saw this line and changed it. Is now correctly adding them to server group.

PHP Code:
86. $sb_sql2 "INSERT INTO `{$SB_DB_NAME}` . `sb_admins_servers_groups` (admin_id,group_id,srv_group_id,server_id) VALUES('{$admin_id}', '4', '8', '-1');"
change to:

PHP Code:
86. $sb_sql2 "INSERT INTO `{$SB_DB_NAME}` . `sb_admins_servers_groups` (admin_id,group_id,srv_group_id,server_id) VALUES('{$admin_id}', '{$group_id}', '{$srv_group_id}', '{$server_id}');"
The whole script below.
Spoiler

Last edited by Pickles47; 08-17-2013 at 07:28.
Pickles47 is offline
ozgaming
SourceMod Donor
Join Date: Aug 2011
Old 08-17-2013 , 07:32   Re: Donor Control
Reply With Quote #33

made the changes, haven't tested but will assume it works. Thanks again for your help
ozgaming is offline
ozgaming
SourceMod Donor
Join Date: Aug 2011
Old 08-17-2013 , 09:03   Re: Donor Control
Reply With Quote #34

Quote:
Originally Posted by nineteeneleven View Post
also sorts users by expiration date now
next update will have a login system so you no longer need htaccess, and ill do the prefix support.
Nice update, just need to point out nineteeneleven that when it gets to 2014 it puts it up the top with expiration date, not at the bottom. Thanks again
ozgaming is offline
nineteeneleven
Veteran Member
Join Date: Nov 2010
Old 08-17-2013 , 12:31   Re: Donor Control
Reply With Quote #35

the line 91 edit was correct, but the closing bracked on line 143 is incorrect. thats not needed.

A closing bracked on line 64 is needed
PHP Code:
60    if(SOURCEBANS){
61           mysql_select_db($SB_DB_NAME
62                or die("<p>Unable to select the database"$SB_DB_NAME ": "mysql_error() . "</p>");
63            $sb_pw "1fcc1a43dfb4a474abb925f54e65f426e932b59e";
64        
The line 86 edit was also correct, thanks.

heres the script

Spoiler
__________________

Last edited by nineteeneleven; 08-17-2013 at 12:33.
nineteeneleven is offline
nineteeneleven
Veteran Member
Join Date: Nov 2010
Old 08-17-2013 , 12:40   Re: Donor Control
Reply With Quote #36

as far as the ordering goes, I used SQL to do the ordering. it gonna be a pain in the balls to change because I will need to change the way that the dates are stored in the database to fix it.
__________________
nineteeneleven is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 08-18-2013 , 06:17   Re: Donor Control
Reply With Quote #37

Well you should convert them to DATE/DATETIME fields or UNIX timestamps anyway if you want to properly deal with dates. STR_TO_DATE() will convert your existing dates easily.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
nineteeneleven
Veteran Member
Join Date: Nov 2010
Old 08-18-2013 , 19:18   Re: Donor Control
Reply With Quote #38

Thanks, yeah I was foolish to store them the way I did.
__________________
nineteeneleven is offline
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 08-18-2013 , 19:35   Re: Donor Control
Reply With Quote #39

After I enter the SteamID and it asks to verify the player, when they click Donate it takes them to a page that just says
PHP Code:
Resource id #5 
and that's it. It won't proceed any further but it's still adding that player to the database.
Snaggle is offline
nineteeneleven
Veteran Member
Join Date: Nov 2010
Old 08-18-2013 , 20:32   Re: Re: Donor Control
Reply With Quote #40

Quote:
Originally Posted by Snaggle View Post
After I enter the SteamID and it asks to verify the player, when they click Donate it takes them to a page that just says
PHP Code:
Resource id #5 
and that's it. It won't proceed any further but it's still adding that player to the database.
Can you send me a link?

Are you using the player tracker plugin?

If not make sure u set it to false in the Web panel
__________________

Last edited by nineteeneleven; 08-18-2013 at 20:33.
nineteeneleven is offline
Reply


Thread Tools
Display Modes

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 07:40.


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