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

Release Donation Control 3.1.0 [over 1000 donations served!]


Post New Thread Reply   
 
Thread Tools Display Modes
StayOx
SourceMod Donor
Join Date: Jun 2012
Location: Gliese 581g
Old 12-23-2013 , 18:54   Re: Donation Control 2.0.4 [updated 11-9-13]
Reply With Quote #171

Quote:
Originally Posted by Dr_Knuckles View Post
I have been trying to use Stayox's method to make 4 tiers and have been failing miserably. Would anyone have any idea how to do it? Even a suggestion or 2 would be very helpful. I think im failing at the else/elseif portions.

is very simple it just requires a little attention and to make the changes I suggest using notepad ++

Spoiler


EDIT: fix constant of group 4 in config.php
Attached Files
File Type: txt ADDED 4 TIERS.txt (11.0 KB, 96 views)

Last edited by StayOx; 12-25-2013 at 17:22.
StayOx is offline
Dr_Knuckles
AlliedModders Donor
Join Date: Mar 2005
Location: SW Florida
Old 12-24-2013 , 11:21   Re: Donation Control 2.0.4 [updated 11-9-13]
Reply With Quote #172

I went through and did all the edits, seems ok with 1 small problem. There are now 4 choices(bubbles) to click on, but the third tier has no name, only the bubble to click on.so its like:

o level1 o level2 o o level4
__________________
Dr_Knuckles is offline
StayOx
SourceMod Donor
Join Date: Jun 2012
Location: Gliese 581g
Old 12-25-2013 , 17:14   Re: Donation Control 2.0.4 [updated 11-9-13]
Reply With Quote #173

Quote:
Originally Posted by Dr_Knuckles View Post
I went through and did all the edits, seems ok with 1 small problem. There are now 4 choices(bubbles) to click on, but the third tier has no name, only the bubble to click on.so its like:

o level1 o level2 o o level4
check that the constants of the new Tiers were added in config.php

PHP Code:
//Tier 3 donors (only needed if TIERED_DONOR is 
true)
$group3['name'] = 'Platinum';
$group3['group_id'] = '0';
$group3['srv_group_id'] = '0';
$group3['server_id'] = '0';
$group3['multiplier'] = '2.066'// $15 * 2.066 days = 31 days of perks
 
//Tier 4 donors (only needed if TIERED_DONOR is true)
$group4['name'] = 'Diamond';
$group4['group_id'] = '0';
$group4['srv_group_id'] = '0';
$group4['server_id'] = '0';
$group4['multiplier'] = '1.55'// $20 * 1.55 days = 31 days of perks
/////////////////////////////////////////////////////////// 
StayOx is offline
StayOx
SourceMod Donor
Join Date: Jun 2012
Location: Gliese 581g
Old 12-25-2013 , 17:30   Re: Donation Control 2.0.4 [updated 11-9-13]
Reply With Quote #174

Hey nineteeneleven, the problem with name of Players using special char back, because of plugin Player Analytics don't use UTF8 on query of the players Names.

a tip would be to use this version of plugin until Mckay update the main post

https://forums.alliedmods.net/showpo...7&postcount=37
StayOx is offline
StayOx
SourceMod Donor
Join Date: Jun 2012
Location: Gliese 581g
Old 01-16-2014 , 00:40   Re: Donation Control 2.0.4 [updated 11-9-13]
Reply With Quote #175

just a suggestion add the option (config.php) to set the database used by plugin Player Analytics. so he could use the default database of plugin
StayOx is offline
nineteeneleven
Veteran Member
Join Date: Nov 2010
Old 01-17-2014 , 16:46   Re: Donation Control 2.0.4 [updated 11-9-13]
Reply With Quote #176

Eveyone please update the IPN.php file with this one, except if you have a custom version (contact me first). there was a possible exploit which allowed people to get lotsa days for $1

https://github.com/nineteeneleven/Do...cripts/ipn.php
__________________

Last edited by nineteeneleven; 01-17-2014 at 17:03.
nineteeneleven is offline
Bengas15
Member
Join Date: Mar 2013
Old 01-18-2014 , 08:01   Re: Donation Control 2.0.4 [updated 11-9-13]
Reply With Quote #177

When i access /index.php it shows me this error:

Quote:
Failed to connect to donations database
but, when i try to login to admin panel it works? :b

PS: I'm using only 1 database, sourcebans database, and installed 'install.sql' thing there..

and i'm pointing in the config.php: for Sourcebans and donations the same database..

PS.2: I tried creating a different database, installed 'install.sql', changed this:

Quote:
define('SB_DB', true); //ONLY SET TRUE IF SOURCEBANS IS ON A DIFFERENT MYSQL SERVER
Still not working :/

how should i set my config.php? :c

Last edited by Bengas15; 01-18-2014 at 08:34. Reason: Update some info/Updated some info
Bengas15 is offline
nineteeneleven
Veteran Member
Join Date: Nov 2010
Old 01-18-2014 , 17:48   Re: Donation Control 2.0.4 [updated 11-9-13]
Reply With Quote #178

Quote:
Originally Posted by Bengas15 View Post
When i access /index.php it shows me this error:



but, when i try to login to admin panel it works? :b

PS: I'm using only 1 database, sourcebans database, and installed 'install.sql' thing there..

and i'm pointing in the config.php: for Sourcebans and donations the same database..

PS.2: I tried creating a different database, installed 'install.sql', changed this:



Still not working :/

how should i set my config.php? :c


when it says different server. it means just that 2 different mysql servers (not databases). set define('SB_DB', true) to false.
__________________
nineteeneleven is offline
StayOx
SourceMod Donor
Join Date: Jun 2012
Location: Gliese 581g
Old 01-29-2014 , 09:10   Re: Donation Control 2.0.4 [updated 11-9-13]
Reply With Quote #179

I have a question, My bans have some "Server Groups" and I can not let all admins remain in my same group , I wish put others groups to have access of Donation Control Admin page beyond the group where I am. In the file config.php is possible to set only one server group to have access to the admin page.

PHP Code:
define('SB_ADMINS''Server Root');  //name of admin group in sourcebans which has access to the donor panel 
StayOx is offline
SlayeRbe
SourceMod Donor
Join Date: Mar 2011
Location: Belgium
Old 01-30-2014 , 11:58   Re: Donation Control 2.0.4 [updated 11-9-13]
Reply With Quote #180

Is it possible to add paysafecard and phone in it please?
SlayeRbe 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 16:16.


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