Welcome, Guest. Please Login or Register.
December 19, 2014, 04:37:39 PM
Home Help Search Login Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  Topic: [Beta 1.54/1.55] Referral Rewards System « previous next »
Pages: [1] 2 3 Reply Ignore Print
Author Topic: [Beta 1.54/1.55] Referral Rewards System  (Read 19231 times)
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?


WWW
[Beta 1.54/1.55] Referral Rewards System
« on: February 17, 2004, 07:54:02 PM »
Reply with quote

Description: This mod adds a handy system to your board to encourage people to refer others to the board by rewarding them for every user they refer to the board based on levels set by the admin. It can use the built-in karma system or its own seperate points system depending on which version you install.

    Features:
    • Logging - see who got rewarded how many points when
    • List - see who has referred members and how many members they have referred
    • Levels - Admin can set multiple "levels" for rewards by specifying the minimum number of users a member has to refer and how many points to reward. This allows you to control how many points are awarded and lets you set a minimum number of referrals needed before any points are rewarded.
    I spent half the afternoon testing this mod, and I'm pretty sure I've gotten any bugs out of it, but if you find any, let me know.

    Download: Coming back soon

    EDIT: Currently working on integrating this mod with my mod. If you want this mod, please wait a bit while I work on things. Also, my host has been having a lot of problems lately, so if you've had problems downloading this, that's why.
    « Last Edit: March 05, 2004, 12:26:38 PM by oldiesmann » Logged

    "I've sinned greatly, but Christ's for real, baby
    It's a wonder He saved me and just didn't hate me
    So won't you tell Him "Save me"
    Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
    HyperDev
    Full Member
    ***
    Posts: 210


    Have drumsticks, will travel.


    WWW
    Re:[Beta 1.54/1.55] Referral Rewards System
    « Reply #1 on: February 18, 2004, 08:11:57 PM »
    Reply with quote

    I'm trying this one out. This is something I would absolutely LOVE! Thanks, oman!
    Logged

    --JC

    HyperDev Admin

    Will drum for food TO PISS GIRLS OFF! (Only reason I'd do anything.)

    Proud Member of HHS Drumline

    Mach8 and [Unknown], I still don't know how you convinced me girls aren't evil.

    And please, SAVE THE LLAMAS!!!
    Coyote
    YaBB God
    *****
    Posts: 702


    I love YaBB SE!


    Re:[Beta 1.54/1.55] Referral Rewards System
    « Reply #2 on: February 19, 2004, 04:26:29 AM »
    Reply with quote

    This certainly looks cool.

    Im gonna try it tonight.

    Thanks!
    Logged

    To the world - you are just one person, but to one person you are the world!
    HyperDev
    Full Member
    ***
    Posts: 210


    Have drumsticks, will travel.


    WWW
    Re:[Beta 1.54/1.55] Referral Rewards System
    « Reply #3 on: February 19, 2004, 08:07:48 AM »
    Reply with quote

    Mm, converted it to a YaBBpak, and it worked OK, but I had to edit English.lng by hand. :(

    Didn't really understand it much even after reading the readme.

    Also, I can't add referral levels.

    Quote
    An Error Has Occurred!

    2: mysql_num_rows(): supplied argument is not a valid MySQL result resource
    (c:\inetpub\wwwroot\hyperdev\hdf\Sources\Referral.php ln 139)
     

    EDIT: phpMyAdmin is working for now.
    « Last Edit: February 19, 2004, 08:30:00 AM by HyperDev » Logged

    --JC

    HyperDev Admin

    Will drum for food TO PISS GIRLS OFF! (Only reason I'd do anything.)

    Proud Member of HHS Drumline

    Mach8 and [Unknown], I still don't know how you convinced me girls aren't evil.

    And please, SAVE THE LLAMAS!!!
    oldiesmann
    YaBB God
    *****
    Posts: 577


    Jesus died for your sins... Have you thanked him?


    WWW
    Re:[Beta 1.54/1.55] Referral Rewards System
    « Reply #4 on: February 19, 2004, 09:09:59 AM »
    Reply with quote

    Ok. That's a bug.

    Go into Referral.php and add this line in the updateRewards2() function:

    $getRewards = mysql_query("SELECT * FROM {$db_prefix}rewards");

    Also, I found a bug. I used $modsettings instead of $modSettings in several places.

    Open up Display.php, Profile.php and Register.php and replace every occurrence of $modsettings with $modSettings.

    As for the readme, I'm sorry for confusing you. It's hard to explain without screenshots.
    Logged

    "I've sinned greatly, but Christ's for real, baby
    It's a wonder He saved me and just didn't hate me
    So won't you tell Him "Save me"
    Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
    HyperDev
    Full Member
    ***
    Posts: 210


    Have drumsticks, will travel.


    WWW
    Re:[Beta 1.54/1.55] Referral Rewards System
    « Reply #5 on: February 19, 2004, 04:47:29 PM »
    Reply with quote

    So how do people GET referrals?
    Logged

    --JC

    HyperDev Admin

    Will drum for food TO PISS GIRLS OFF! (Only reason I'd do anything.)

    Proud Member of HHS Drumline

    Mach8 and [Unknown], I still don't know how you convinced me girls aren't evil.

    And please, SAVE THE LLAMAS!!!
    oldiesmann
    YaBB God
    *****
    Posts: 577


    Jesus died for your sins... Have you thanked him?


    WWW
    Re:[Beta 1.54/1.55] Referral Rewards System
    « Reply #6 on: February 19, 2004, 05:13:56 PM »
    Reply with quote

    By getting other people to join the board and say that they referred them

    Example: UserA gets UserB to join the board. When UserA registers, they put UserB's name in the "Referrer" field, and UserA gets points for referring UserB to the board.
    Logged

    "I've sinned greatly, but Christ's for real, baby
    It's a wonder He saved me and just didn't hate me
    So won't you tell Him "Save me"
    Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
    HyperDev
    Full Member
    ***
    Posts: 210


    Have drumsticks, will travel.


    WWW
    Re:[Beta 1.54/1.55] Referral Rewards System
    « Reply #7 on: February 19, 2004, 05:14:42 PM »
    Reply with quote

    Man, you have no faith in automation, do you?
    Logged

    --JC

    HyperDev Admin

    Will drum for food TO PISS GIRLS OFF! (Only reason I'd do anything.)

    Proud Member of HHS Drumline

    Mach8 and [Unknown], I still don't know how you convinced me girls aren't evil.

    And please, SAVE THE LLAMAS!!!
    oldiesmann
    YaBB God
    *****
    Posts: 577


    Jesus died for your sins... Have you thanked him?


    WWW
    Re:[Beta 1.54/1.55] Referral Rewards System
    « Reply #8 on: February 19, 2004, 05:53:48 PM »
    Reply with quote

    What? That thing's about as automated as it's gonna get...
    Logged

    "I've sinned greatly, but Christ's for real, baby
    It's a wonder He saved me and just didn't hate me
    So won't you tell Him "Save me"
    Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
    Coyote
    YaBB God
    *****
    Posts: 702


    I love YaBB SE!


    Re:[Beta 1.54/1.55] Referral Rewards System
    « Reply #9 on: February 19, 2004, 06:53:51 PM »
    Reply with quote

    Hmmm... Thats a shame.

    Would of been great if you could have grabbed the referers name from a variable in the URL.

    :(
    Logged

    To the world - you are just one person, but to one person you are the world!
    oldiesmann
    YaBB God
    *****
    Posts: 577


    Jesus died for your sins... Have you thanked him?


    WWW
    Re:[Beta 1.54/1.55] Referral Rewards System
    « Reply #10 on: February 19, 2004, 08:56:23 PM »
    Reply with quote

    Oh... Sorry... Wasn't thinking of it that way. That's easy to do really. Go into Register.php:

    Search for:
    Code: [Select]
    if($modSettings['enablerewards'] == '1')
    {

    Add this after that:
    Code: [Select]
    $referrer = isset($_GET['referrer']) ? '$_GET[referrer]' : '';
    Then

    Search for:
    Code: [Select]
    <input type="text" name="referrer" />
    Replace with:
    Code: [Select]
    <input type="text" name="referrer" value="' . $referrer . '"
    I didn't even think about doing it that way. Great idea.
    Logged

    "I've sinned greatly, but Christ's for real, baby
    It's a wonder He saved me and just didn't hate me
    So won't you tell Him "Save me"
    Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
    Coyote
    YaBB God
    *****
    Posts: 702


    I love YaBB SE!


    Re:[Beta 1.54/1.55] Referral Rewards System
    « Reply #11 on: February 20, 2004, 03:29:58 AM »
    Reply with quote

     ;D

    I havent looked at your code yet - as it wasnt automated - but it looks like it is now :)

    So from what you have changed in your code below - its now possible for members to put a link on another site like this......

    Quote
    Go here its a fantastic website
    http:\\www.mydomain.com\yabbse\index.php?membername

    It would be nice if the path was shorter, but I guess trickery and magic could be done there?

    Well done so far :)


    Logged

    To the world - you are just one person, but to one person you are the world!
    oldiesmann
    YaBB God
    *****
    Posts: 577


    Jesus died for your sins... Have you thanked him?


    WWW
    Re:[Beta 1.54/1.55] Referral Rewards System
    « Reply #12 on: February 20, 2004, 08:08:57 AM »
    Reply with quote

    Well, I don't know how you'd do a shorter path. I know you could easily redirect them to register.php, but not sure where you'd put that code...
    Logged

    "I've sinned greatly, but Christ's for real, baby
    It's a wonder He saved me and just didn't hate me
    So won't you tell Him "Save me"
    Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
    Coyote
    YaBB God
    *****
    Posts: 702


    I love YaBB SE!


    Re:[Beta 1.54/1.55] Referral Rewards System
    « Reply #13 on: February 20, 2004, 09:18:40 AM »
    Reply with quote

    I was thinking of some kind of mod rewrite - but Im not sure about parsing vars with one ??

    Logged

    To the world - you are just one person, but to one person you are the world!
    oldiesmann
    YaBB God
    *****
    Posts: 577


    Jesus died for your sins... Have you thanked him?


    WWW
    Re:[Beta 1.54/1.55] Referral Rewards System
    « Reply #14 on: February 22, 2004, 01:52:14 PM »
    Reply with quote

     ???
    Logged

    "I've sinned greatly, but Christ's for real, baby
    It's a wonder He saved me and just didn't hate me
    So won't you tell Him "Save me"
    Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
    Pages: [1] 2 3 Reply Ignore Print 
    YaBB SE Community  |  Development  |  Completed mods  |  Topic: [Beta 1.54/1.55] Referral Rewards System « previous next »
     


    Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
    2001-2003, YaBB SE Dev Team. All Rights Reserved.
    Valid XHTML 1.0! Valid CSS!
    Page created in 0.942 seconds with 16 queries.