It is currently 05 Dec 2021, 07:47

• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | 🡆 Anything Goes | Shares | FCSP
Sponsored content for World Food Program

How to add ultimate points for referrals phpbb extension

Anything, almost anything at all
(even advertisement if it's decent, spammers will be banned)
tim
GL Blogger
1st Place
5633 Post(s)

How to add ultimate points for referrals phpbb extension

Post#1 by tim » 11 Jul 2018, 15:21


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.
aka Tin
World Food Program | Good Deeds Forum

         

tim
GL Blogger
1st Place
5633 Post(s)

Post#2 by tim » 11 Jul 2018, 16:15


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 -->
aka Tin
World Food Program | Good Deeds Forum

         

Pat625
Tutorial Creator
2nd Place
4512 Post(s)

Post#3 by Pat625 » 12 Jul 2018, 00:50


Could you explain how we would use this code?

tim
GL Blogger
1st Place
5633 Post(s)

Post#4 by tim » 12 Jul 2018, 02:50


Pat625 wrote:
12 Jul 2018, 00:50
Could you explain how we would use this code?
You would only use the code if you run a phpbb forum like gimplearn. Members don't need to know how to use this code because I already worked it into GL forum :D
aka Tin
World Food Program | Good Deeds Forum

         

tim
GL Blogger
1st Place
5633 Post(s)

Post#5 by tim » 22 Nov 2018, 05:03


Members can
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?
aka Tin
World Food Program | Good Deeds Forum

         

Pat625
Tutorial Creator
2nd Place
4512 Post(s)

Post#6 by Pat625 » 22 Nov 2018, 06:00


I think that the number is appropriate.


GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | 🡆 Anything Goes | Shares | FCSP

Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 2 guests