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

TheListener

Attachment as requested

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 -___-

TheListener

Had this error on install.

Fatal error: Cannot redeclare affiliatesboard() (previously declared in /Sources/BoardIndex.php:272) in /Sources/BoardIndex.php on line 318

SA™

thats cos it allready in that file


find and remove one of these from boardindex.php

//Affiliates Start
function affiliatesboard()
{
     global $context, $smcFunc, $txt, $db_prefix, $scripturl, $modSettings;
         // Newest members top 10
    $result = $smcFunc['db_query']('', '
SELECT a.id_affiliates, a.image, a.description
FROM {db_prefix}affiliates AS a
WHERE  approved = 1
ORDER BY a.id_affiliates DESC',
      array(
      )
   );
   $context['aff'] = array();
   while ($row = $smcFunc['db_fetch_assoc']($result))
   {
      $context['aff'][] = array(
        'id' => $row['id_affiliates'],
'image' => $row['image'],
'description' => $row['description'],
      );
   }
   $smcFunc['db_free_result']($result);
}
//Affiliates End
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 -___-

TheListener

Wahey. Everything seems ok so far.

With affiliate banners should I save the banner images and make a folder for them?


SA™

what do you mean your affiliate banners or you actual affiliates
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 -___-

TheListener

The banners themselves.

SA™

it up to realy u can if you want to
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 -___-

TheListener

The reason I ask is due to some saying the banners have to be on our own servers OR some banners sonly showing as links and not as the actual banner itself.

SA™

i dont do it like that my babnners are all over the place lol and they all show
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 -___-

SA™

affiliates 2.1 for smf 1 released :D
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 -___-

TheListener

Am getting used to adding banners now. Don't require a wig just yet.

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 -___-

ArkServer

Hi, i've installed it for 1.1.10 but when i go to the admin page and click the smf affiliate link it returns to the forum index. and idea how to fix this>?

TheListener

Can we see the link to your forum please.


SA™

sound like it didnt install properly can i see your index.php and subs.php please

or check to see if the edits are there

index.php

'.xml' => array('News.php', 'ShowXmlFeed'),
add
'affiliatesadmin' => array('smf_affiliates_admin.php','Affiliates_admin'),

subs.php
find
'edit_settings' => '<a href="' . $scripturl . '?action=serversettings;sesc=' . $sc . '">' . $txt[222] . '</a>',

after add
'affiliates_admin' => '<a href="' . $scripturl . '?action=affiliatesadmin;sesc=' . $sc . '">' . $txt['affiliates_smf'] . '

find
$context['in_maintenance'] = !empty($maintenance);

add
$context['affiliates_admin'] = allowedTo('affiliates_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 -___-


SA™

hmm all the edits are there is there any errors in error logs ?
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 -___-

SA™

isee the actual addlink dont work neither

why are your links like this

http://www.javaforums.net/forum/affiliates.html;sa=addlink
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 -___-

Advertisement: