Advertisement:

Author Topic: SMF Affiliates System  (Read 177607 times)

Offline jossanaijr

  • SMF Hero
  • ******
  • Posts: 2,131
  • Gender: Male
    • Netbook Forum
Re: smf affiliates
« Reply #20 on: December 05, 2008, 06:11:57 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?

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: smf affiliates
« Reply #21 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
http://samods.github.io/SAChatBar/

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

Offline jossanaijr

  • SMF Hero
  • ******
  • Posts: 2,131
  • Gender: Male
    • Netbook Forum
Re: smf affiliates
« Reply #22 on: December 05, 2008, 06:32:05 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...

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: smf affiliates
« Reply #23 on: December 05, 2008, 06:37:01 PM »
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
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline jossanaijr

  • SMF Hero
  • ******
  • Posts: 2,131
  • Gender: Male
    • Netbook Forum
Re: smf affiliates
« Reply #24 on: December 05, 2008, 06:40:10 PM »
Okay, thanks but I cannot do it today. I'll post it tomorrow.

Offline Rafferty

  • Jr. Member
  • **
  • Posts: 318
  • Gender: Male
    • 16 Air Defence Regiment Members
Re: smf affiliates
« Reply #25 on: December 05, 2008, 06:52:38 PM »
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

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: smf affiliates
« Reply #26 on: December 05, 2008, 07:07:37 PM »
try this

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

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

Offline Rafferty

  • Jr. Member
  • **
  • Posts: 318
  • Gender: Male
    • 16 Air Defence Regiment Members
Re: smf affiliates
« Reply #27 on: December 05, 2008, 07:20:32 PM »
Perfect I appreciate your help and mod thank you
Don't Follow me I got No Idea what I'm Doing

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: smf affiliates
« Reply #28 on: December 05, 2008, 07:23:31 PM »
your welcome  ;)
http://samods.github.io/SAChatBar/

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

Offline tyhgdgh

  • Jr. Member
  • **
  • Posts: 284
  • Gender: Male
  • thismany
    • VGRecordist
Re: smf affiliates
« Reply #29 on: December 06, 2008, 12:54:14 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?

Offline Rafferty

  • Jr. Member
  • **
  • Posts: 318
  • Gender: Male
    • 16 Air Defence Regiment Members
Re: smf affiliates
« Reply #30 on: December 06, 2008, 04:23:28 AM »
i did but uninstalled it before attempting to install this one
Don't Follow me I got No Idea what I'm Doing

Offline tyhgdgh

  • Jr. Member
  • **
  • Posts: 284
  • Gender: Male
  • thismany
    • VGRecordist
Re: smf affiliates
« Reply #31 on: December 06, 2008, 04:30:39 AM »
I still have both installed, did the modsettings when uninstalling failed, or manual edits?

Offline Rafferty

  • Jr. Member
  • **
  • Posts: 318
  • Gender: Male
    • 16 Air Defence Regiment Members
Re: smf affiliates
« Reply #32 on: December 06, 2008, 04:54:11 AM »
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

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: smf affiliates
« Reply #33 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',
http://samods.github.io/SAChatBar/

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

Offline tyhgdgh

  • Jr. Member
  • **
  • Posts: 284
  • Gender: Male
  • thismany
    • VGRecordist
Re: smf affiliates
« Reply #34 on: December 06, 2008, 04:43:56 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!

Offline Tokzu

  • Jr. Member
  • **
  • Posts: 282
  • Gender: Female
    • @Kaero_Webs on Twitter
    • Kaero Webs
Re: smf affiliates
« Reply #35 on: December 07, 2008, 03:18:50 PM »
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:

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: smf affiliates
« Reply #36 on: December 07, 2008, 04:21:38 PM »
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
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline Tokzu

  • Jr. Member
  • **
  • Posts: 282
  • Gender: Female
    • @Kaero_Webs on Twitter
    • Kaero Webs
Re: smf affiliates
« Reply #37 on: December 07, 2008, 05:58:22 PM »
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:

Offline taha116

  • Jr. Member
  • **
  • Posts: 270
TEst fail
« Reply #38 on: December 07, 2008, 08:42:55 PM »
    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

Code: [Select]
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

Code: [Select]
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

Code: [Select]
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?
« Last Edit: December 08, 2008, 12:19:55 AM by taha116 »
"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

Offline tyhgdgh

  • Jr. Member
  • **
  • Posts: 284
  • Gender: Male
  • thismany
    • VGRecordist
Re: smf affiliates
« Reply #39 on: December 08, 2008, 03:42:13 AM »
you need to edit your ~ Boardindex.template.php in the themes folder