Raised This Month: $32 Target: $400
 8% 

Release Donation Control 3.1.0 [over 1000 donations served!]


Post New Thread Reply   
 
Thread Tools Display Modes
nineteeneleven
Veteran Member
Join Date: Nov 2010
Old 11-07-2014 , 17:42   Re: Donation Control 3.1.0 [over 1000 donations served!]
Reply With Quote #441

Quote:
Originally Posted by jpwanabe View Post
Getting this error when trying to add a test donor manually.

Code:
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'username' cannot be null


You can only add vaild steamids

in the event you are adding a valid steamid, make sure ur API key is set
__________________
nineteeneleven is offline
jpwanabe
Veteran Member
Join Date: Mar 2010
Old 11-07-2014 , 20:25   Re: Donation Control 3.1.0 [over 1000 donations served!]
Reply With Quote #442

My api key is set and I am using a steam2 id to test with. Should I be doing steam3?

Edit:
So I tried to donate just with paypal. it says "Unable verify player with Steam"

The api key is right. Is there any other files I need to edit other then \includes\config.php?

Edit2: Also the install guide is a bit confusing for a fresh install. It tells me to import install.sql twice. Do I import it into sourcebans too?
__________________
My Steam TF2APP
My sig changes with each load! Refresh to see my other servers!

Last edited by jpwanabe; 11-07-2014 at 23:48.
jpwanabe is offline
jpwanabe
Veteran Member
Join Date: Mar 2010
Old 11-08-2014 , 00:03   Re: Donation Control 3.1.0 [over 1000 donations served!]
Reply With Quote #443

Making a new post because I found the problem. I had every thing working right. I just can't use the person I wanted to use to test with for some reason. It can't verify their account. Anyone else I try works. Strange.

This is the guy btw.

http://steamrep.com/profiles/76561198071291064

Also how do I make it so the donate page doesn't always have a 5 already in it? And also shows the cost per month of the tier?
__________________
My Steam TF2APP
My sig changes with each load! Refresh to see my other servers!

Last edited by jpwanabe; 11-08-2014 at 00:23.
jpwanabe is offline
John_Stamos
SourceMod Donor
Join Date: Oct 2014
Location: Chicago
Old 11-08-2014 , 04:48   Re: Donation Control 3.1.0 [over 1000 donations served!]
Reply With Quote #444

So will this change a players perms without an admin having to do it?
I'm trying to make my server as automatic as possible.
__________________
John_Stamos is offline
jpwanabe
Veteran Member
Join Date: Mar 2010
Old 11-08-2014 , 09:31   Re: Donation Control 3.1.0 [over 1000 donations served!]
Reply With Quote #445

Quote:
Originally Posted by John_Stamos View Post
So will this change a players perms without an admin having to do it?
I'm trying to make my server as automatic as possible.
Yes it will, if you set it up right. I have another question. What file should I edit to make it so the sourcebans admin that is inserted has the words vip- infront of it? I've tried messing with line 377 in the ipn.php but that didn't work.
__________________
My Steam TF2APP
My sig changes with each load! Refresh to see my other servers!
jpwanabe is offline
nineteeneleven
Veteran Member
Join Date: Nov 2010
Old 11-08-2014 , 18:34   Re: Donation Control 3.1.0 [over 1000 donations served!]
Reply With Quote #446

Quote:
Originally Posted by jpwanabe View Post
My api key is set and I am using a steam2 id to test with. Should I be doing steam3?

Edit:
So I tried to donate just with paypal. it says "Unable verify player with Steam"

The api key is right. Is there any other files I need to edit other then \includes\config.php?

Edit2: Also the install guide is a bit confusing for a fresh install. It tells me to import install.sql twice. Do I import it into sourcebans too?
No you need to make a new database, and import it only once to the new database. I updated the manual.

Quote:
Originally Posted by jpwanabe View Post
Making a new post because I found the problem. I had every thing working right. I just can't use the person I wanted to use to test with for some reason. It can't verify their account. Anyone else I try works. Strange.

This is the guy btw.

http://steamrep.com/profiles/76561198071291064

Also how do I make it so the donate page doesn't always have a 5 already in it? And also shows the cost per month of the tier?
https://forums.alliedmods.net/showpo...&postcount=408

Quote:
Originally Posted by John_Stamos View Post
So will this change a players perms without an admin having to do it?
I'm trying to make my server as automatic as possible.
The system is 100% automated. once they donate perks are added, when their time is up they are automatically removed.

Quote:
Originally Posted by jpwanabe View Post
Yes it will, if you set it up right. I have another question. What file should I edit to make it so the sourcebans admin that is inserted has the words vip- infront of it? I've tried messing with line 377 in the ipn.php but that didn't work.
If you talking about the custom chat colors option, Donations Control will assign the players tag in game to the name of the group they are in inside soucebans.
__________________
nineteeneleven is offline
jpwanabe
Veteran Member
Join Date: Mar 2010
Old 11-08-2014 , 18:42   Re: Donation Control 3.1.0 [over 1000 donations served!]
Reply With Quote #447

thanks for answering all my questions. The last question I meant the admin name in sourcebans. I would like all the VIPs in one section. And luckily be since it starts with a V it would be at the end. Its just a way to easier find my actual mods and admins on the admin page.
__________________
My Steam TF2APP
My sig changes with each load! Refresh to see my other servers!
jpwanabe is offline
nineteeneleven
Veteran Member
Join Date: Nov 2010
Old 11-08-2014 , 18:48   Re: Donation Control 3.1.0 [over 1000 donations served!]
Reply With Quote #448

Quote:
Originally Posted by jpwanabe View Post
thanks for answering all my questions. The last question I meant the admin name in sourcebans. I would like all the VIPs in one section. And luckily be since it starts with a V it would be at the end. Its just a way to easier find my actual mods and admins on the admin page.

includes/SourceBansClass.php line 118
make it this

PHP Code:
$vals = array(':username' =>'VIP-' $username':steam_id' => $steam_id':sb_pw' => '1fcc1a43dfb4a474abb925f54e65f426e932b59e'':group' => $group['name']); 
__________________

Last edited by nineteeneleven; 11-08-2014 at 18:49.
nineteeneleven is offline
jpwanabe
Veteran Member
Join Date: Mar 2010
Old 11-08-2014 , 18:49   Re: Donation Control 3.1.0 [over 1000 donations served!]
Reply With Quote #449

Thanks!
__________________
My Steam TF2APP
My sig changes with each load! Refresh to see my other servers!
jpwanabe is offline
jpwanabe
Veteran Member
Join Date: Mar 2010
Old 11-09-2014 , 08:34   Re: Donation Control 3.1.0 [over 1000 donations served!]
Reply With Quote #450

Last question. I swear. I use chat color manager for my vips. But this uses it's own database for CC. How can I edit the remove_expired.php so that when it runs, it will check the database cccm for the correct steamid to remove?

This is what I use for my key donation removing.

Code:
<?php
include('db.class.php');
include('db2.class.php');
$db = new Database(*****','****','sourcebans');
$db2 = new databaseRemote('****','****','cccm');

$db->query("SELECT * FROM donations WHERE expire < NOW()");
$data = $db->resultset();
foreach ($data as $key => $value) {
    $db->query('DELETE FROM donations WHERE steam_id = ?')
		->bind(1,$value['steam_id'])
		->execute();
	$db->query('DELETE FROM sb_admins WHERE authid = ?')
		->bind(1,$value['steam_id'])
		->execute();
	
	$db2->query('DELETE FROM cccm_users WHERE auth = ?')
		->bind(1,$value['steam_id'])
		->execute();

	echo "removed - " . $value['steam_id'] . "\n";

}
echo "DONE!";
__________________
My Steam TF2APP
My sig changes with each load! Refresh to see my other servers!

Last edited by jpwanabe; 11-09-2014 at 08:36.
jpwanabe 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 23:41.


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