I have the ultimate points extension running.
And I recently added the referrals phpbb extension as well.
But I wanted to also give the referrer some bonus points (1200 points) for have a referal.
So here's what I did.
I found the code in ext\dmzx\referral\event\listener.php (line 174) inside function user_add_after,
It's already updating the user_referrals counter
so I added I changed the code from SET user_referrals = ' . $user_referrals . '
to additionally set the user_points SET user_referrals = ' . $user_referrals . ', user_points = user_points + 1200
You can change the number 1200 to number that you wish to give bonus points to the referrer.
I also wanted to show Top 5 Referrers to guests as well.
So what i did was found ext\dmzx\referral\styles\all\template\event\index_body_stat_blocks_after.html
and changed the code from <!-- IF TOP_FIVE_REFERRERS and S_USER_LOGGED_IN --><!-- INCLUDE top_five_referrers.html --><!-- ENDIF -->
to this <!-- IF TOP_FIVE_REFERRERS --><!-- INCLUDE top_five_referrers.html --><!-- ENDIF -->
1. go to User Control Panel
2. go to Referrals Tab
3. give the referral link to their friends/family
4. Friends/family that use that link and register with GL forum will gain that member 1200 GL points.
Question? is 1200 GL points too little? Should I up the amount, if so what should I up it to?