DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • June 22, 2018, 06:23:04 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

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

Posts: 1916



View Profile WWW
« on: March 01, 2004, 11:03:05 PM »

i forget what server i was on, but they had a system where players got points for every player they referered and made it to level 3.  any one have that mod or ideas for it?  i forget what the points were used for
Logged

strider
Guest
« Reply #1 on: March 03, 2004, 09:47:46 AM »

That's part of the lodge.php system in the Central and Dragoncat editions of LOTGD.

Logged
tifter
Guest
« Reply #2 on: March 03, 2004, 09:49:54 AM »

I have the fioe but its edited into my server.

Regards

Tifter.  Cool
Logged
phofire
Guest
« Reply #3 on: July 15, 2004, 03:21:30 PM »

and your point is?
Logged
lsgworldl
Guest
« Reply #4 on: August 08, 2004, 11:37:23 AM »

whats a fioe  Tongue Roll Eyes

I have the fioe but its edited into my server.

Regards

Tifter.  Cool
Logged
phudgee
Guest
« Reply #5 on: August 09, 2004, 06:38:59 PM »

So does anyone have a place to get this?

I really like the idea, and would like to implement it....

I will work on one if noone has a readily distributable one....
Logged
phudgee
Guest
« Reply #6 on: August 10, 2004, 07:26:16 AM »

This appears to already be in the 0.9.7 code, kind of....

It appears it is setup to award Donation points, of which I have no use.

The index.php is not setup to pass the referer, so a little modding is neccisery (did i spell that right?)

Anywho..... this is what I did to get it on my server, and it seems to work fine:



open index.php

change:

Code:
addnav("Create a character","create.php");

to:
Code:
if ($_GET['r']){
   addnav("Create a character","create.php?r=".$_GET['r']);
} else {
   addnav("Create a character","create.php");
}


open train.php

change:
Code:
if ($session['user']['referer']>0 && $session['user']['level']>=4 && $session['user']['refererawarded']<1){
   $sql = "UPDATE accounts SET gold=gold+2000,gems=gems+2 WHERE acctid={$session['user']['referer']}";
   db_query($sql);
   $session['user']['refererawarded']=1;
   systemmail($session['user']['referer'],"`%One of your referrals advanced!`0","`%{$session['user']['name']}`# has advanced to level `^{$session['user']['level']}`#, and so you have earned `^2000`# gold and `^2`# gems!");
         }

Tweak the gold and gems given in the code above to suit your needs.

Players can give the URL:  http://www.yourserver.com/logd/index.php?r=PlayerName (Or whatever your URL is to your index file)

For each player that signs up through that URL, and reaches level 4, the person whos PlayerName is in the URL will receive however much gold and gems you specified above.

Cheesy
Logged
Kendaer
Guest
« Reply #7 on: August 13, 2004, 04:53:55 PM »

0.9.7 *is* set up to handle it.

If you look at the referral link that you are given in referral.php
You are supposed to go to the CREATE.PHP page directly in the link rather than going to the index page.

Logged
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #8 on: August 13, 2004, 09:56:56 PM »

i also made a store to spend donation points, look in the shared files.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

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