News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Affiliates System

Started by Diego Andrés, December 04, 2008, 07:29:28 AM

Previous topic - Next topic

jossanaijr

Quote from: wdm2005 on December 05, 2008, 05:37:22 PM
verification picture does change it not supposed to change on every refresh

it Only generate a new code if one hasn't been set yet


Okay.
Another question: Affiliate box is not showing to guest.  Is there  permissions to see it?

SA™

nope theres no permissions for this maybe in the futre

do you mean the affiliates on boardindex aint showing to guest i notice your info center isnt there eaither that probaly why
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

jossanaijr

Quote from: wdm2005 on December 05, 2008, 06:26:23 PM
nope theres no permissions for this maybe in the futre

do you mean the affiliates on boardindex aint showing to guest i notice your info center isnt there eaither that probaly why
Yes, I use a mod to not show info center to guest...

SA™

then tha is why cos the affiliates is in the info center funtion if you post up you boardindex.template.php i can move it for you if you want
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

jossanaijr

Okay, thanks but I cannot do it today. I'll post it tomorrow.

Rafferty

Quote from: Rafferty on December 05, 2008, 06:18:41 AM
OK installation problems... sources/ModSettings.php failed package installation so I went ahead and installed anyhow making the manual changes to ModSettings.php

All seems ok by appearances however any changes in set up I make are not saved after clicking the save button and I'm redirected back to Features & Options. Any Ideas.



Attached, thanks.
Don't Follow me I got No Idea what I'm Doing

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Rafferty

Perfect I appreciate your help and mod thank you
Don't Follow me I got No Idea what I'm Doing

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

tyhgdgh

Quote from: Rafferty on December 05, 2008, 06:18:41 AM
OK installation problems... sources/ModSettings.php failed package installation so I went ahead and installed anyhow making the manual changes to ModSettings.php

All seems ok by appearances however any changes in set up I make are not saved after clicking the save button and I'm redirected back to Features & Options. Any Ideas.

do you have another Afffiliate mod installed?

Rafferty

i did but uninstalled it before attempting to install this one
Don't Follow me I got No Idea what I'm Doing

tyhgdgh

I still have both installed, did the modsettings when uninstalling failed, or manual edits?

Rafferty

I uninstalled completely first but then had the ModSettings fail on installing this. Not sure what wdm2005 did to the file but it worked.
Don't Follow me I got No Idea what I'm Doing

SA™

@ Nfanthr33  you need to uninstall the other affiliates mod to use this one or the other not both:)


@ Rafferty all i done was add the missing edit

'affiliates' => 'ModifyAffiliatesSettings',
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

tyhgdgh

Quote from: wdm2005 on December 06, 2008, 01:49:15 PM
@ Nfanthr33  you need to uninstall the other affiliates mod to use this one or the other not both:)


@ Rafferty all i done was add the missing edit

'affiliates' => 'ModifyAffiliatesSettings',

I found that out earlier, I just replace Functionaffiliate, wth yours.
thanks for this mod too!

Tokzu

Hi, great Mod. I have a problem, the code for TP doesn't work. I'm using TP 0.9.8
"I don't need a knight in a shinny armor, I need a angel in a trench coat"

My mods:

SA™

make sure you have affiliates in the boardindex block in admin
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Tokzu

ok, it works. I had forgotten to enable that the members were shown in the forum.  My mistake. :-[
"I don't need a knight in a shinny armor, I need a angel in a trench coat"

My mods:

taha116

#38
    Basicly MY problem is a fail in the test run. The "add after" phase of the modification is were the problem is

Its in the executions for:
./Sources/ManageSettings.php

Here is exatly what it should do
Find

function ModifyLayoutSettings($return_config = false)
{
global $txt, $scripturl, $context, $settings, $sc;

$config_vars = array(
// Compact pages?
array('check', 'compactTopicPagesEnable'),
array('int', 'compactTopicPagesContiguous', null, $txt['contiguous_page_display'] . '<div class="smalltext">' . str_replace(' ', '&nbsp;', '"3" ' . $txt['to_display'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' . str_replace(' ', '&nbsp;', '"5" ' . $txt['to_display'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),
'',
// Stuff that just is everywhere - today, search, online, etc.
array('select', 'todayMod', array(&$txt['today_disabled'], &$txt['today_only'], &$txt['yesterday_today'])),
array('check', 'topbottomEnable'),
array('check', 'onlineEnable'),
array('check', 'enableVBStyleLogin'),
'',
// Pagination stuff.
array('int', 'defaultMaxMembers'),
'',
// This is like debugging sorta.
array('check', 'timeLoadPageEnable'),
array('check', 'disableHostnameLookup'),
'',
// Meta.
array('text', 'meta_keywords', 'size' => 50),
'',
// Who's online.
array('check', 'who_enabled'),
);

if ($return_config)
return $config_vars;

// Saving?
if (isset($_GET['save']))
{
checkSession();

saveDBSettings($config_vars);
writeLog();

redirectexit('action=admin;area=featuresettings;sa=layout');
}

$context['post_url'] = $scripturl . '?action=admin;area=featuresettings;save;sa=layout';
$context['settings_title'] = $txt['mods_cat_layout'];

prepareDBSettingContext($config_vars);
}



Add after

function ModifyAffiliatesSettings()
{
global $context, $txt, $scripturl, $modSettings, $db_prefix, $helptxt;

$config_vars = array(
    

'',
array('check', 'enable_up_marquee'),
array('large_text', 'actionaffiliates', '8', &$txt['action=affiliates_description'], 'actionaffiliates'),
'',
array('check', 'enable_affiliates_board'),
array('check', 'enable_marquee'),
array('text', 'smf_affiliates_title', '30', &$txt['smf_affiliates_title'], 'smf_affiliates_title'),
array('large_text', 'affiliates', '8', &$txt['affiliates_description'], 'affiliates'),
'',
array('large_text', 'smf_affiliates_reqirments', '8', &$txt['smf_affiliates_reqirments'], 'smf_affiliates_reqirments'),
'',
array('text', 'affiliatebanner', '30'),
array('text', 'affiliatebanner1', '30'),
    array('text', 'affiliatebanner2', '30'),
    array('text', 'affiliatebanner3', '30'),
'',
);

// Saving?
if (isset($_GET['save']))
{

saveDBSettings($config_vars);
writeLog();

redirectexit('action=admin;area=featuresettings;sa=affiliates');
}

$context['post_url'] = $scripturl . '?action=admin;area=featuresettings;save;sa=affiliates';
$context['settings_title'] = $txt['smf_affiliates'];
prepareDBSettingContext($config_vars);

}


Thats were it has trouble, I really really want this mod so im adding more details

All mods on my site details

1.  SMF Affiliates  1.0  [ Apply Mod ]  [ List Files ]  [ Delete ]
2. Auto Merge Double Post 1.0 [ Uninstall ] [ List Files ] [ Delete ]
3. Irritate lurkers with 0 posts 0.1 [ Uninstall ] [ List Files ] [ Delete ]
4. Order Stickied Topics 1.01 [ Uninstall ] [ List Files ] [ Delete ]
5. Spoiler Tag 0.6 [ Uninstall ] [ List Files ] [ Delete ]
6. Member Color Link 3.0.5a [ Uninstall ] [ List Files ] [ Delete ]
7. SMF Staff Page 1.6 [ Uninstall ] [ List Files ] [ Delete ]
8. No More Ugly Avatar Scrollbars 1.0 [ Uninstall ] [ List Files ] [ Delete ]
9. BoardHover Mod 1.3.1 [ Apply Mod ] [ List Files ] [ Delete ]
10. Rateit in Topics 1.0 [ Uninstall ] [ List Files ] [ Delete ]
11. Permissions_Info 1.2 [ Uninstall ] [ List Files ] [ Delete ]
12. SMF Media Gallery 1.5 [ Uninstall ] [ List Files ] [ Delete ]
13. Hide SMF Version 1.0.3a [ Uninstall ] [ List Files ] [ Delete ]
14. Registration redirection 0.1 [ Uninstall ] [ List Files ] [ Delete ]
15. BBC [you] 1.2 [ Uninstall ] [ List Files ] [ Delete ]
16. script.js Jump Fix 1.0 [ Uninstall ] [ List Files ] [ Delete ]
17. The Rules 1.2 [ Uninstall ] [ List Files ] [ Delete ]
18. Aeva ~ Auto-Embed Video & Audio 5.0 b1 [ Uninstall ] [ List Files ] [ Delete ]
19. PM to New Members 1.0 [ Uninstall ] [ List Files ] [ Delete ]


And my theme is Midnight Sun 2b4 (BTW im using 2.0 beta 4)

If you need more then say so and i will add it, do you need my ManageSettings.php file to look at?

~Thanks Ive been looking for this mod for a long time and gave up. Now my hope is back, yay!

Any solutions?
"The man who smiles when things go wrong has though of someone to blame things on"
I forgot the name
BUY electronic cigarettes with rechargeable batteries as well as flavored refills for cheap prices and only 1-2 dollars of shipping!
http://www.ngcigarettes.com/
~Taha116

tyhgdgh

you need to edit your ~ Boardindex.template.php in the themes folder

Advertisement: