Jump to content

(DP34) Referrals System


DawPi

Recommended Posts

%7Boption%7D



File Name: (DP34) Referrals System

File Submitter: DawPi

File Submitted: 23 Aug 2010

File Category: Promotion

Supported Versions: IP.Board 3.3.x, IP.Board 3.4.x



With this app you can allow your members invite other members.

Features:

  • enable/disable system,
  • select allowed groups to use this mod,
  • three invite types: free -> user may or may not enter inviter name; force -> user must enter inviter name; invite only: user must be referred by invite form (with hashed keycode),
  • list of all invited users,
  • list of all invited users in ACP with filter option for search invited members for specific user,
  • invites by referral link,
  • points system integration ( any system! ),
  • promotion to the new group after reaching specific amount of referred users,
  • ability to enable/disable member powers to raising people via ACP,
  • ability to check all referred users via ACP ( member manage ),
  • three notification methods: PM, E-mail or Inline,
  • info in member profiles about referrer,
  • top X referrers in sidebar,
  • ability to disable the 'Referral Link' in sidebar,
  • ability to add/edit/remove referred transactions,
  • ability to turn off the "Referrer Information" block in profiles,
  • ACP permissions (manage: add, remove, edit),
  • ability to award referrer if his referrred member made topic/post,
  • ranking with filters in the ACP view,
  • enhaced filters for referral transactions,
  • invite form,
  • option to enable/disable custom invite message,
  • option to disable invites from the same IP,
  • option to approve transaction only if referrer add more than X defined posts,
  • resend option to resend sent invites,
  • option to approve transaction only if referrer add more than X defined posts.



here to download this file

Link to comment
Share on other sites

Nice work! :)

I have a suggestion, which would help me avoid repeatedly fielding "add referrals to ibEconomy" requests. Can you integrate it with points so when a user refers a new member they receive ## points?

I would say you could add a Data Hook point to your app right before the referral is added to the database, but I'm not sure if either of us knows how how one goes about adding Data Hook points...

IbEconomy uses a field called 'eco_points' on the 'pfields_content' database by the way.

Link to comment
Share on other sites

  • 2 weeks later...

I would say you could add a Data Hook point to your app right before the referral is added to the database, but I'm not sure if either of us knows how how one goes about adding Data Hook points...




You add a /extensions/dataHookLocations.php file to your app which has the same structure as this:

<?php

$dataHookLocations = array(


	/* POSTING LIBRARY DATA LOCATIONS */

	array( 'hookkey', 'Human Readable Stuff for Hook Dropdown goes here:P' ),

	array( 'anotherhookkey','More Reading??' ),


);

Then, at the point you want the data hook to run in your code, you add

IPSLib::doDataHooks( &$variableyouwanttopass, 'hookkey' );



You *must* pass the variable as a reference to the function if you want people to be able to add to/manipulate the data that is being sent to the hook point.

Link to comment
Share on other sites


Nice work! :)



I have a suggestion, which would help me avoid repeatedly fielding "add referrals to ibEconomy" requests. Can you integrate it with points so when a user refers a new member they receive ## points?



I would say you could add a Data Hook point to your app right before the referral is added to the database, but I'm not sure if either of us knows how how one goes about adding Data Hook points...



IbEconomy uses a field called 'eco_points' on the 'pfields_content' database by the way.




Hi,
of course, this is the first addon to this modification. It will work with any points system, like this mod: :)
Link to comment
Share on other sites


You add a /extensions/dataHookLocations.php file to your app which has the same structure as this:



<?php

$dataHookLocations = array(


	/* POSTING LIBRARY DATA LOCATIONS */

	array( 'hookkey', 'Human Readable Stuff for Hook Dropdown goes here:P' ),

	array( 'anotherhookkey','More Reading??' ),


);

Then, at the point you want the data hook to run in your code, you add

IPSLib::doDataHooks( &$variableyouwanttopass, 'hookkey' );



You *must* pass the variable as a reference to the function if you want people to be able to add to/manipulate the data that is being sent to the hook point.


Awesome guide, making a mental bookmark for future use. :)


Hi,


of course, this is the first addon to this modification. It will work with any points system, like this mod:

:)



Sweet.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...