[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.
marcus22
Registered User
Posts: 13
Joined: Thu Aug 02, 2012 3:41 am

Re: [DEV] Referral MOD With Contests

Post by marcus22 »

how to you put this in subsilver2? as it doesnt have a colour.css?
User avatar
Siropu
Registered User
Posts: 155
Joined: Mon Nov 16, 2009 6:15 pm
Location: Romania

Re: [DEV] Referral MOD With Contests

Post by Siropu »

@wolfkin, I've fixed the problem in version 1.1.3. Download link in first post.
To update, replace referral_mod_install.php and includes/acp/acp_referral.php and then run referral_mod_install.php to update the MOD version.

As for the bbcodes, maybe in the next release. If you want to use HTML, open index.php and search for this code:

Code: Select all

 'CONTEST_DESCRIPTION' => $row['contest_description'],
Replace with this:

Code: Select all

 'CONTEST_DESCRIPTION' => html_entity_decode($row['contest_description']),
@Qwertyip, thanks for sharing your code. :)

@marcus22, subsilver2 is not supported at the moment. If I will have the time, I will make the changes for subsilver2 next week.
Check out my MODs.
marcus22
Registered User
Posts: 13
Joined: Thu Aug 02, 2012 3:41 am

Re: [DEV] Referral MOD With Contests

Post by marcus22 »

@marcus22, subsilver2 is not supported at the moment. If I will have the time, I will make the changes for subsilver2 next week.
Okay thanks ill check back then i hope your able to :D
User avatar
wolfkin
Registered User
Posts: 35
Joined: Sun Apr 09, 2006 9:25 pm

Re: [DEV] Referral MOD With Contests

Post by wolfkin »

Siropu wrote:@wolfkin, I've fixed the problem in version 1.1.3. Download link in first post.
To update, replace referral_mod_install.php and includes/acp/acp_referral.php and then run referral_mod_install.php to update the MOD version.

As for the bbcodes, maybe in the next release. If you want to use HTML, open index.php and search for this code:

Code: Select all

 'CONTEST_DESCRIPTION' => $row['contest_description'],
Replace with this:

Code: Select all

 'CONTEST_DESCRIPTION' => html_entity_decode($row['contest_description']),
Siropu, that's just amazing! Works like a charm.

Thanks a lot for this :)
2FR3
Registered User
Posts: 7
Joined: Wed Aug 01, 2012 3:29 pm

Re: [DEV] Referral MOD With Contests

Post by 2FR3 »

Hi all,

I'm alone with the fabulous phpbb seo mod ?

Please Help Siropu !
User avatar
Siropu
Registered User
Posts: 155
Joined: Mon Nov 16, 2009 6:15 pm
Location: Romania

Re: [DEV] Referral MOD With Contests

Post by Siropu »

Have you tried version 1.1.3?
Check out my MODs.
2FR3
Registered User
Posts: 7
Joined: Wed Aug 01, 2012 3:29 pm

Re: [DEV] Referral MOD With Contests

Post by 2FR3 »

Thx for your reactivity,

Yes, i've do the upgrade, the registration did'nt give error, it's good, but the refferals is not +1 :(
User avatar
Siropu
Registered User
Posts: 155
Joined: Mon Nov 16, 2009 6:15 pm
Location: Romania

Re: [DEV] Referral MOD With Contests

Post by Siropu »

So you used your referral url and the registered referral doesn't appear as your referral?
Check out my MODs.
2FR3
Registered User
Posts: 7
Joined: Wed Aug 01, 2012 3:29 pm

Re: [DEV] Referral MOD With Contests

Post by 2FR3 »

Sorry for my poor english,

I've a test e-mail, i post a refferal link, I deconnect my admin user, I delete cookis, and i clic my link in my email tester, i register, every think is ok, but my refferal stay to 0. I've delete the cache etc...

I've test with a moderator, he clic my link, register with a new mail, and he's +1 with moderator account :cry:
User avatar
Siropu
Registered User
Posts: 155
Joined: Mon Nov 16, 2009 6:15 pm
Location: Romania

Re: [DEV] Referral MOD With Contests

Post by Siropu »

Since it's working for your moderator, this doesn't seem to be a MOD problem. Send me a PM with your referral link. I want to see if the cookie will be set in my browser.
Check out my MODs.
DaveWFrank
Registered User
Posts: 5
Joined: Tue Sep 04, 2012 2:30 pm

Re: [DEV] Referral MOD With Contests

Post by DaveWFrank »

I attempted to install your mod (using AutoMOD) on my forum (v 3.0.11) and although it appeared to install properly, when I go into the user control panel and click on the "Referrals" tab, I receive the following error:

Code: Select all

template->_tpl_load_file(): File ./styles/absolution/template/referral/ucp_referral_statistics.html does not exist or is empty

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/includes/functions_template.php
LINE: 63
CALL: trigger_error()

FILE: [ROOT]/includes/template.php
LINE: 437
CALL: template_compile->_tpl_load_file()

FILE: [ROOT]/includes/template.php
LINE: 224
CALL: template->_tpl_load()

FILE: [ROOT]/includes/functions.php
LINE: 4809
CALL: template->display()

FILE: [ROOT]/includes/functions_module.php
LINE: 832
CALL: page_footer()

FILE: [ROOT]/ucp.php
LINE: 339
CALL: p_master->display()
I have uninstalled and reinstalled a couple of times and cannot find the error. Can you help me out please?
Thanks!
User avatar
Siropu
Registered User
Posts: 155
Joined: Mon Nov 16, 2009 6:15 pm
Location: Romania

Re: [DEV] Referral MOD With Contests

Post by Siropu »

You are using a custom style so you will have to upload the template files and make the edits manually. Follow the instructions in install_mod.xml
Check out my MODs.
DaveWFrank
Registered User
Posts: 5
Joined: Tue Sep 04, 2012 2:30 pm

Re: [DEV] Referral MOD With Contests

Post by DaveWFrank »

Thank you for your very fast response!!
I believe I have everything installed and it is working - albeit untested so far.
One question for you... It looks like I can have contests run 1 week, 2 weeks, 3 weeks or 1 month. What if I wanted longer? Would it be possible to add a custom length option or how might I added a longer time frame if I wanted to?
Thank you once again!
User avatar
Siropu
Registered User
Posts: 155
Joined: Mon Nov 16, 2009 6:15 pm
Location: Romania

Re: [DEV] Referral MOD With Contests

Post by Siropu »

Open includes/acp/acp_referral.php and search for this part:

Code: Select all

'1 month' => $user->lang['ONE_MONTH'],
Add bellow:

Code: Select all

'2 months' => $user->lang['TWO_MONTHS'],
'3 months' => $user->lang['THREE_MONTHS'],
Find this part:

Code: Select all

if ($contest_end_date == '1 month')
{
     $contest_duration = $time_options['1 month'];
}
Add below:

Code: Select all

if ($contest_end_date == '2 months')
{
     $contest_duration = $time_options['2 months'];
}
if ($contest_end_date == '3 months')
{
     $contest_duration = $time_options['3 months'];
}
Open language/your lang/mods/info_acp_referral.php and search for this part:

Code: Select all

'ONE_MONTH'                        => '1 Month',
Add bellow:

Code: Select all

'TWO_MONTH'                        => '2 Months',
'THREE_MONTH'                        => '3 Months',
If you want other dates, you can replicate the code above.

P.S. What do you guys think? By default, instead of 1,2,3 weeks, 1 month, should I add 1,2,3...n weeks?
Check out my MODs.
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica

Re: [DEV] Referral MOD With Contests

Post by Jessica »

weeks is good too

maybe there should be a input box, then a drop down box of days, weeks, months

[ # ] *DROP DOWN BOX*
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein

Return to “[3.0.x] Abandoned MODs”