Quick Donation Modification?

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
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
Close
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
Close
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
Close
Implemented. Thanks for the suggestion.
 
0
Close
Great :D Thanks alot :great:
 
0
Close
Last edited:
0
Close
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
Close
what are the string vars we have to use when using this function?
 
0
Close
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
Close
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
Close
Awesome! :tu:

* Goes to edit our billing system *

:D
 
Last edited:
0
Close
Status
Not open for further replies.
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back