[ABD] Referral MOD With Contests

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
Siropu
Registered User
Posts: 155
Joined: Mon Nov 16, 2009 6:15 pm
Location: Romania
Contact:

Re: [DEV] Referral MOD With Contests

Post by Siropu »

@geolim4, Thank you for letting me know. I will clean the code on the next release.
Check out my MODs.
scapes99
Registered User
Posts: 7
Joined: Mon Jun 12, 2006 4:16 am

Re: [DEV] Referral MOD With Contests

Post by scapes99 »

Hello,

I am hoping you can advise me on something. I have the mod working OK, but I want to include members' referral links in a custom template page I have made where I provide banners for them to use in the referral process. I want to give them ready made HTML links to use, so I need to output the referral link here.

I have tried using {REFERRAL_LINK} to insert this, but it doesn't parse anything on to the page on the site.

Can you suggest what else I need to do? I saw that is what you use to insert the link in the member control panel/profile section. Do I need to assign something in the php file for the template page I made perhaps? (I have a PHP page in the main directory, which calls an HTML template page and has this code for setting up the user data:

Code: Select all

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
Thanks for your advice (and your MOD)
User avatar
Siropu
Registered User
Posts: 155
Joined: Mon Nov 16, 2009 6:15 pm
Location: Romania
Contact:

Re: [DEV] Referral MOD With Contests

Post by Siropu »

Add this template variable in your custom page:

Code: Select all

 'REFERRAL_LINK' => generate_board_url() . "/index.{$phpEx}?r={$user->data['user_id']}",
Check out my MODs.
scapes99
Registered User
Posts: 7
Joined: Mon Jun 12, 2006 4:16 am

Re: [DEV] Referral MOD With Contests

Post by scapes99 »

Thanks so much for a prompt and helpful response :)

I'll try it out.
User avatar
Blue Blood
Registered User
Posts: 767
Joined: Sat Apr 11, 2009 7:09 am
Location: U§A
Name: Blue Blood
Contact:

Re: [DEV] Referral MOD With Contests

Post by Blue Blood »

Looks good, I have been waiting for a decent referral mod.
the contest is a great feature..

Will there be a field on the page registration to enter a name of a referral.
also can you add in profile of who referred the member?

Thanks, I will be following!!
User avatar
Siropu
Registered User
Posts: 155
Joined: Mon Nov 16, 2009 6:15 pm
Location: Romania
Contact:

Re: [DEV] Referral MOD With Contests

Post by Siropu »

Blue Blood wrote: Will there be a field on the page registration to enter a name of a referral.
also can you add in profile of who referred the member?
I think I will add these features in the next release along with the features I have mentioned in the first post. The next release will probably be once phpbb 3.1 is out.
Check out my MODs.
User avatar
jackennils
Registered User
Posts: 229
Joined: Mon Jun 01, 2009 7:48 pm

Re: [DEV] Referral MOD With Contests

Post by jackennils »

This is so great! Thank you for this mod!

German (informal) language files can be downloaded here: http://jackennils.net/ref-mod/de.zip
ninicoco
Registered User
Posts: 124
Joined: Fri May 18, 2007 6:12 pm

Re: [DEV] Referral MOD With Contests

Post by ninicoco »

is this mod safe to use in full working forum?
User avatar
Siropu
Registered User
Posts: 155
Joined: Mon Nov 16, 2009 6:15 pm
Location: Romania
Contact:

Re: [DEV] Referral MOD With Contests

Post by Siropu »

The MOD is still in development but it's working fine.
Check out my MODs.
ninicoco
Registered User
Posts: 124
Joined: Fri May 18, 2007 6:12 pm

Re: [DEV] Referral MOD With Contests

Post by ninicoco »

The MOD is still in development but it's working fine.
I more concern about security issues.

I installed the mod and there is no option for Setting permissions for who as the right to use Referrals in User Control Panel.

I my wrong?
User avatar
Siropu
Registered User
Posts: 155
Joined: Mon Nov 16, 2009 6:15 pm
Location: Romania
Contact:

Re: [DEV] Referral MOD With Contests

Post by Siropu »

There are no permission settings at the moment.
Check out my MODs.
User avatar
nhseacoast
Registered User
Posts: 625
Joined: Sun Sep 22, 2002 10:31 pm
Location: NH, USA
Contact:

Re: [DEV] Referral MOD With Contests

Post by nhseacoast »

I installed this mod and it was working fine. Show contests on index and leader board are set to ON in the config and I double-checked the edits in my index_body.html, index.php and constants.php and they're fine.
Nothing is showing on the board index, but in the UCP and the actual functions seem fine.
Any idea what my be causing this? Thanks.


EDITED:
**If I remove the "IF" statements, the template displays, but does not populate with contest info.
Last edited by nhseacoast on Wed Dec 04, 2013 3:30 pm, edited 2 times in total.
http://nhgunforum.com phpBB v3.2.1
http://wtprise.org phpBB v3.3.2
User avatar
sgtsandman
Registered User
Posts: 30
Joined: Sat Nov 23, 2013 6:29 pm
Name: SGT Sandman

Re: [DEV] Referral MOD With Contests

Post by sgtsandman »

This is a great mod!! Thank you for taking the time to make it! Keep up the great work! ;)
THEWATCHMEN - WSD 246th 2nd Recon.
User avatar
Inception
Registered User
Posts: 19
Joined: Tue Sep 17, 2013 11:54 pm

Re: [DEV] Referral MOD With Contests

Post by Inception »

Can anyone point me in the right direction with getting everything to work correctly on the AcidTech style? I can't seem to get it to display on board index etc. but the "referrals" menu entry is there in the UCP
User avatar
Dead Man
Registered User
Posts: 241
Joined: Tue Jun 05, 2012 12:35 am

Re: [DEV] Referral MOD With Contests

Post by Dead Man »

I seem to have an old Referral Mod installed on my forums and it works with this mod.

The only thing is that there is a Referral Box when a user is registering on my site.

And you can type in the username of the person that referred you.

Now the thing is that when you use the Link and you type in a persons name in the Referral box it counts it as 2 referrals for the user.
Locked

Return to “[3.0.x] Abandoned MODs”