It is currently 22 Aug 2019, 05:21


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
Social:  Say Hello | 🡆 Anything Goes | Shares

Anything GoesHow to add ultimate points for referrals phpbb extension

Anything, almost anything at all
(even advertisement if it's decent, spammers will be banned)
Post Reply
tim

GL Blogger

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.
0 x
aka Tin
Tin's: Favorite Index | Simple Art === fb4yt video search | fb4yt recent video views report
Lottery numbers from image | Interested Members in TLF
Paying for hosting is to support my hobby, and donating money made from ads to The Red Cross.
         

tim

GL Blogger

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 -->
0 x
aka Tin
Tin's: Favorite Index | Simple Art === fb4yt video search | fb4yt recent video views report
Lottery numbers from image | Interested Members in TLF
Paying for hosting is to support my hobby, and donating money made from ads to The Red Cross.
         

Pat625
Tutorial Creator

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


Could you explain how we would use this code?
0 x

tim

GL Blogger

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
0 x
aka Tin
Tin's: Favorite Index | Simple Art === fb4yt video search | fb4yt recent video views report
Lottery numbers from image | Interested Members in TLF
Paying for hosting is to support my hobby, and donating money made from ads to The Red Cross.
         

tim

GL Blogger

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?
0 x
aka Tin
Tin's: Favorite Index | Simple Art === fb4yt video search | fb4yt recent video views report
Lottery numbers from image | Interested Members in TLF
Paying for hosting is to support my hobby, and donating money made from ads to The Red Cross.
         

Pat625
Tutorial Creator

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


I think that the number is appropriate.
0 x


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
Social:  Say Hello | 🡆 Anything Goes | Shares

Post Reply
  • Similar Topics
    Replies
    Views
    Last post
• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

Who is online

Users browsing this forum: No registered users and 2 guests