Unstoppable Domains โ€” Expired Auctions

Quick Donation Modification?

SpaceshipSpaceship
Watch
Status
Not open for further replies.

Kadenz

Resistance is FutileEstablished Member
Impact
29
I was wondering if you could add a quick modification to the donation area.
Here's what I had in mind:
Have a "GET" value for the reason and amount field so that I can use the url like so:
http://www.namepros.com/ushop.php?do=a&shortname=donate&userid=30345&reason=My Reason&amount=200

The reason I find this useful is that I would like to add "NP$ payments" to 1.00link.com
Some other people like Camron may find this useful for npserve.com

Just a thought.
Thanks,
Borghunter
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Another quick donate style function would be to have when you click donate from a post, one of the "widget"s comes up, like if you click search this thread you will see what I mean. Then all you have to do is shrink the template down and add it into the posting one.
 
0
•••
Where would it retrieve the NP$ from? I.e, what user would be paying, and how would it be deducted from their account...it would allow anyone to transfer funds between people.
 
0
•••
The user obviously has to be logged in. But this is just autocompletion with php "$_GET" set as the value of the fields. Just makes it easier for some things.
So...
PHP:
echo '<input type="text" name="_FIELDS[reason]" value="'.$_GET['reason'].'" size="25">
<input type="text" name="_FIELDS[points]" value="'.$_GET['amount'].'" size="10">';
Just an example of what I mean.
 
Last edited:
0
•••
Borghunter's suggestion would work very well, plus it will save any confusion about amounts to pay, the buyer provides a direct link and you are done.
 
0
•••
Implemented. Thanks for the suggestion.
 
0
•••
Great :D Thanks alot :great:
 
0
•••
Last edited:
0
•••
Great to hear. I'll also be using it at 1.00link.com once my nameservers have newly propagated and I have my new server up.
 
0
•••
what are the string vars we have to use when using this function?
 
0
•••
manofgames said:
what are the string vars we have to use when using this function?
Follow the example link in the first post of this thread.
 
0
•••
Here's a XHTML form example:
Code:
<form action="http://www.namepros.com/ushop.php" method="get">
<input type="hidden" name="do" value="a" />
<input type="hidden" name="shortname" value="donate" />
<input type="hidden" name="userid" value="USERID" />
<input type="hidden" name="reason" value="REASON" />
<input type="hidden" name="amount" value="AMOUNT" />

<input type="submit" value="Pay with NP$" />
</form>
 
0
•••
Awesome! :tu:

* Goes to edit our billing system *

:D
 
Last edited:
0
•••
Status
Not open for further replies.
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back