Ulysses Stuff > Ulysses Release Archives
PUDS v0.2.7 - PayPal-ULX Donation System
pants:
Okay guys, I was asking before about the possibility of giving points for the pointshop on top of auto promoting.
I asked one of my friends to find a way for that to happen. So, what he ended up doing was setting it up to where the first time you log on to the server as a new rank you get a certain amount of points, so you only get it once.
You will have to change the ranks and the point amount to match your preferences but here is a link to the code :D
Donationpsnotify - Cobalt
(goes in lua/autorun)
http://puu.sh/6dixt.lua
Here's his steam as well.
http://steamcommunity.com/id/cobalt77/
If you have any questions let me know!
PICTURE: http://puu.sh/6dgLP.jpg
Wully616:
Hello everyone,
Once again sorry for the lack of updates, life just gets in the way of things like this.
I have committed a new version of PUDS and I'll clarify a few things.
Steam login has been fixed! Woohoo! Sorry it took so long.
Steam logins are the only way to allow someone to donate, this is to prevent users not typing in the correct steam ID (or some players might not know how to get their steamID)
However! If you wish to disable this and allow people to type in there own username and steam ID you only need to remove the green highlighted "readonly" text in the image below:
PUDS now requires a Steam API Key!
I wish I didn't have to require this but due to the way openID works a SteamAPI key is required.
You can get one here:
http://steamcommunity.com/dev/registerkey
Some of the code is a little bit of a mess (including wullysgamers url's in commits etc, I'm in the process of tidying up this second. I don't have my own garrysmod server to test the rcon side of things now and don't have much time to set up a local one to mess about with.
For people who do not like to use ulx usergroups and want some other command to be executed when the donation accepted you can edit the config.php
*This is not tested but it may work if ps_givepoints follows a format of "ps_givepoints steamid #numberOfPoints" if the steamid and number of points are the other way around it wont work yet sorry :P*
--- Code: ---//////////////////////////////////
///Donation Ranks & prices////////
$prices = array("1","2","3"); //prices for each rank, do not include currency symbol
$ranks = array("iron","bronze","gold "); //ulx group names of each rank corresponding to the same array position in $costs
$commands = array("ulx adduserid","ulx adduserid","ulx adduserid"); //commands for each rank, these will support other commands in the future
//Example alternate donation with point shop
$prices = array("1","2","3");
$ranks = array("1000","2000","3000 ");
$commands = array("ps_givepoints","ps_givepoints","ps_givepoints");
--- End code ---
I do want to create a command builder which would allow you to make basically whatever command you want to execute for the donation. I will get to it, I have not abandoned PUDS!
Neku:
Ah, glad to see you're still alive and kicking.
Welcome back ^°^
Wully616:
--- Quote from: Ven01273 on January 08, 2014, 02:53:47 PM ---Ah, glad to see you're still alive and kicking.
Welcome back ^°^
--- End quote ---
Thanks Ven!
Another update! Web based configuration!
The code and files have been cleaned up a lot. The config can now be done through install.php, It needs your steam API key to be put in the top of the install.php file first though. If you forget, the web page will print in big letters telling you to go do it :D.
So to use the web based config:
Simply navigate to yourdomain.com/donate/install.php and sign in through steam.
This will add you - the first user who logs in - as an admin, it uses a very simple mechanism for this for now, so don't expect much. If it breaks, open up admin.php and delete the numbers from the variable.
It's more or less just to prevent other people viewing your config through the web based config, there are more than likely much better ways to do this. To be super safe, rename install.php to install.php.bak or delete it or something once you're finished configuring PUDS!
Install.php will have some defaults and cleverly fill fields with correct information such as the IPN script URL/Your website and the PayPal URL. Image link below to see the css hating form.
http://gyazo.com/e4dca129a8681364ed8ae33ca2023ed2
Once you have configured it as needed, click save. It will ask you to log in again through steam, this is a bug until I get sessions implemented but will work no problem and write the config to config.php.
If you have any issues with the web based config you can still configure the config.php file manually.
PLEASE NOTE:
The config.php from github will be empty as default. You need log into the install.php page at least once and click save so it generates the defaults and entries in config.php
Poop2heaven:
Hey i love the work you do with the addon.
But the addon doesn't seem to work for me. :'(
I've entered the SteamAPI for my server into the install.php and i went through the entire install.php installation.
But then when it asked me to log in for a second time and i did, everything i entered was gone, and loading the config file did nothing.
Also the Config.php doesn't generate anything when i first log in.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version