phpBB SnippetsReferral Enhancements

Post Reply
User avatar
Topic Starter
Restless Rancor
Great Britain

Site Admin
New Member
Posts: 48
Joined: October 15th, 2018, 3:14 pm
Age: 25
Location: Hampshire, England
Contact:

Referral Enhancements

#1

Post by Restless Rancor » October 15th, 2018, 7:15 pm


This snippet modifies the behavior of the Referrals extension.

There are two parts:
  1. Show Referrals to Guests. [Go to...]
  2. Ultimate Points Integration. [Go to...]
You can apply either Part 1 or Part 2, or both.

Note: Referrals 1.0.4 must be installed for Part 1 and Ultimate Points Extension 1.2.2 must also be installed for Part 2.



Tested On:

[Link]
[Link]

Part 1: Show Referrals to Guests. [Go to top]

Open root/ext/dmzx/referral/styles/all/template/event/index_body_stat_blocks_after.html

Find:

Code: Select all

<!-- IF TOP_FIVE_REFERRERS and S_USER_LOGGED_IN --><!-- INCLUDE top_five_referrers.html --><!-- ENDIF -->
In-Line Delete:

Code: Select all

 and S_USER_LOGGED_IN

Part 2: Ultimate Points Integration. [Go to top]

Open root/ext/dmzx/referral/event/listener.php (around line 174)

Find:

Code: Select all

	public function user_add_after($event)
Find:

Code: Select all

SET user_referrals = ' . $user_referrals . '
In-Line Add After:

Code: Select all

, user_points = user_points + xxx

Change xxx to how many points you want each referral to be awarded.
Changelog:
► Show Spoiler


These aren't the droids you're looking for.

Post Reply

Topic Subscribers

1 user subscribed to this topic: Restless Rancor