DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • November 12, 2018, 09:36:28 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: referral system  (Read 3629 times)
0 Members and 1 Guest are viewing this topic.
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« on: March 09, 2004, 06:59:12 PM »

does anyone have one?  or give me an idea of how i can make one?
i just want a simple one that will automatically give the referrer gold, experience, a gem, possibly all of the above but random.
Logged

anpera
Guest
« Reply #1 on: March 09, 2004, 07:27:43 PM »

Just use the one included in 0.9.7... Wink

The link "http://your.logd.server/referral.php?r=charname" gives you a page for creating a new account, for which the referrer "charname" gets so called donationpoints as soon as the new character has reached level 4. This happens in train.php. If you want to reward referrals with gems or gold, just change the part in train.php which says:
Code:
         if ($session['user']['referer']>0 && $session['user']['level']>=4 && $session['user']['refererawarded']<1){
            $sql = "UPDATE accounts SET donation=donation+25 WHERE acctid={$session['user']['referer']}";
            db_query($sql);
            $session['user']['refererawarded']=1;
...
The donationpoint system normally is bound to lodge.php, where a link is given to referral.php. But you can place an addnav("Referral System","referral.php"); somewhere on village sqare as well - you just need to fix the way back to village in referral.php (some addnavs).
Logged
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #2 on: March 09, 2004, 08:07:09 PM »

interesting!  i will poke around with that.  once i get it, is it worth/allowed for me to upload it here?
Logged

strider
Guest
« Reply #3 on: March 09, 2004, 09:15:03 PM »

I really don't see why not.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
35 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search