• Creating a Donation Panel with Admin Panel
    8 replies, posted
Hey there everyone, i want to create a donation panel where people can enter text in 4 boxes. These should be saved in a table that is accessible for Superadmins only. I´d like to do it with a derma panel, but before creating any code i thought i´d ask about your opinions: 1. Should i make a special admin tab in the same panel or create another panel corresponding with that one? IF the second one, would i just create a table that gets read in a different file? 2. I´d like to have the SteamID saved with the other Info, is this smart? Could anyone abuse this? If yes, would i need to do it over the SteamAPI or can i get the Info ingame? 3. I´d like to create 3 Packages and people could choose one of them. This Info should be saved aswell. I´d like to give them a ULX Group and Pointshop points. Could i just make 3 Right click functions which would be "Grant package NR." and make the buttons give them the Package? 4. Should a automatic Log File be created when a package is granted? So i have prove if someone does something bad? 5. Should i put a disclaimer in the DermaPanel saying that if people abuse their power it will get removed? Thanks in advance for any answers and opinions on this. Greetings Desasterx3
1: Doesn't matter if you make a 'button' to access the admin menu, or a 2nd menu, just protect it right/make good checks. 2: Use MySQL for saving, should be safe if you do it right. 3: simply list all 3 packages with a 'BUY' button, which then does what the package has as features? 4: Yes, easier for you incase they do a PP chargeback or such(be sure to inform them it gets logged) 5: Disclaimer is always a good thing to do, just so you're on the safe side, put some ToS up etc, which they HAVE to agree/agree upon donating.
How can i make it save in a mysql table? Never worked with that before Can you explain the buy button a bit? Sounds like a good concept but im not sure if i completely understood what you said. Thanks for the answer :)
-snip, didn't read well/you edited the post, will reply later on that topic- | And if you never got into sql, then you REALLY should learn it ASAP since its a MUST for gmod ^^
I just edited a typo :) thanks for your help!
[QUOTE=Desasterx3;49829619]I just edited a typo :) thanks for your help![/QUOTE] Like the "Buy" button, simply connects to some sort of api, lets say you use PayPal for your donation system, so you'd need to connect it to the IPN api to check if the payment has been confirmed, and upon doing so it'll redirect them back to the game & run the specific function of that package. It would be easier if you'd do the donation system on a webserver, and simply put the menus as like an DHTML or so.
The thing is i dont have an api or anything, i just want them to enter a Paysafecard code into 4 text boxes and i want them to choose a package, would the buy button just be something like a submit button then?
you'd have to set everything manually then (rank points etc), and you could 'send' the code to a file or something/store it in a database, just be sure none somehow can catch the paysafecard code, like hackers who could overwrite your system and like, sit all day on your server, redirecting all submits to him.
Okay i've done a workaround for this using a webpage. Thanks for your help though!
Sorry, you need to Log In to post a reply to this thread.