1 (edited by Programming-Designs 2005-11-26 22:36)

Topic: Referral Count Mod v1.0

##
##
##        Mod title:  Referral Count Mod
##
##      Mod version:  1.0.0
##   Works on PunBB:  1.2.x
##     Release date:  2005-11-26
##           Author:  Daniel Moxon (http://programming-designs.com)
##
##      Description:  Track how many people your members are referring to your
##              forums with this easy to implement mod.
##
##   Affected files:  index.php
##                    register.php
##                    profile.php
##
##       Affects DB:  New column: (in users table)
##                       'referral_count'
##
##       Notes: install_mod.php has only 1.2.10 listed in working versions, if you
##       have another version, feel free to include it in the install_mod.php, most
##       versions should work with it. I have only tested it with 1.2.10 though.
##
##
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##

Download it here.

Working example is on my forums: http://programming-designs.com/forums
To see how it works, go to the forums and view the profile of one of the members. You should see both "Referral Count:" and "Referral URL:".

Enjoy.

Re: Referral Count Mod v1.0

Awesome! Thanks.

Looking for a certain modification for your forum? Please take a look here before posting.

Re: Referral Count Mod v1.0

Glad you like, may include other features such as tracking highest referrers, displaying highest referrers, possibly showing who each person referred, etc..

Re: Referral Count Mod v1.0

Just wondering.... the code that you add to index.php - could it be added to something like common.php instead, so that referrals are counted if the ID is added to any link, not just the index?

Looking for a certain modification for your forum? Please take a look here before posting.

5 (edited by Programming-Designs 2005-11-27 17:23)

Re: Referral Count Mod v1.0

^ Yes, if you want, you can move the code from index.php to common.php and it would work fine, I was actually thinking about this last night.

Re: Referral Count Mod v1.0

Link is broken! sad

Re: Referral Count Mod v1.0

teenagegluesniffer wrote:

Link is broken! sad

http://www.punres.org/desc.php?pid=148

Looking for a certain modification for your forum? Please take a look here before posting.