Advertisement:

Author Topic: Affiliates System  (Read 178545 times)

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 #140 on: February 23, 2009, 01:56:51 PM »
try these
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 ysNoi

  • Jr. Member
  • **
  • Posts: 139
  • Gender: Male
  • I'm For DeMolay Alone
    • pHForums™
Re: smf affiliates
« Reply #141 on: February 23, 2009, 11:08:40 PM »
I tried the and uploaded the file to both of my themes but the same result I got bro...!

Thank you so much...!
"Don't fix it if it ain't broken, don't break it if you can't fix 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 #142 on: February 24, 2009, 11:05:12 AM »
so did they work or not ??
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 ysNoi

  • Jr. Member
  • **
  • Posts: 139
  • Gender: Male
  • I'm For DeMolay Alone
    • pHForums™
Re: smf affiliates
« Reply #143 on: February 24, 2009, 11:11:27 AM »
so did they work or not ??

It didn't work bro....!
"Don't fix it if it ain't broken, don't break it if you can't fix 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 #144 on: February 24, 2009, 11:24:12 AM »
any errors what didnt work
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 ysNoi

  • Jr. Member
  • **
  • Posts: 139
  • Gender: Male
  • I'm For DeMolay Alone
    • pHForums™
Re: smf affiliates
« Reply #145 on: February 24, 2009, 12:23:32 PM »
There is no error on my forum so far...! It's perfectly working on my SMF Default Theme - Core



but won't work on the Outline_Omega

"Don't fix it if it ain't broken, don't break it if you can't fix 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 #146 on: February 24, 2009, 12:37:17 PM »
oh i see that theme has it own boardindex.template.php


can you post it up and ill make the edits for you ??
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 ysNoi

  • Jr. Member
  • **
  • Posts: 139
  • Gender: Male
  • I'm For DeMolay Alone
    • pHForums™
Re: smf affiliates
« Reply #147 on: February 24, 2009, 01:58:09 PM »
Bro, I attached two files.

For Outline_Omega and Outline_Blue respectively.

Thank you very much...!  :) :)
"Don't fix it if it ain't broken, don't break it if you can't fix 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 #148 on: February 26, 2009, 01:58:18 AM »
try
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 ysNoi

  • Jr. Member
  • **
  • Posts: 139
  • Gender: Male
  • I'm For DeMolay Alone
    • pHForums™
Re: smf affiliates
« Reply #149 on: February 26, 2009, 08:56:52 AM »
Done bro and it's really working now...! Thanks in a million wayne83...!

How can I set it to appear on each page then...?  :) :)

Edit : wayne83, it's not showing to guests and to any member of my forum...! How do I set it..?

I can only see on my Admin account...!


 
« Last Edit: February 26, 2009, 11:11:19 AM by ysNoi »
"Don't fix it if it ain't broken, don't break it if you can't fix 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 #150 on: February 26, 2009, 01:08:58 PM »
you have to set the permissions


making it show on all pages will mean moving the code around from boardindex.template.php to index.template.php
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 ysNoi

  • Jr. Member
  • **
  • Posts: 139
  • Gender: Male
  • I'm For DeMolay Alone
    • pHForums™
Re: smf affiliates
« Reply #151 on: February 26, 2009, 07:57:40 PM »
you have to set the permissions

DoNe bro...!

making it show on all pages will mean moving the code around from boardindex.template.php to index.template.php

What code in boardindex.template.php do I have to move on index.template.php...! I'll try to edit bro...!
"Don't fix it if it ain't broken, don't break it if you can't fix 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 #152 on: February 28, 2009, 02:02:09 PM »
boardindex.template.php


Code: [Select]
global $txt, $context, $modSettings, $scripturl, $boardurl, $affiliates;
if (allowedTo('affiliate_viewF'))
if (!empty($modSettings['enable_affiliates_board']) )
{
for ($cnum = 1; $cnum <= $modSettings['naffiliatessn']; $cnum++)
$affiliatesord[$modSettings['affiliatesid'.$cnum.'']] = array('affiliates' => $cnum);

echo ' <div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr class="catbg">
<td align="left">' , $txt['affiliathome'] , '</td>
</tr>';
echo ' <tr>
  <td align="center" class="windowbg2" width="85%"><table border="0" width="100%">
<tr>';
$lkline = 1; $nline = 0;
foreach ($affiliatesord as $temp)
if (!empty($modSettings['affiliatesurl'.$temp['affiliates'].'']) && !empty($modSettings['affiliatesname'.$temp['affiliates'].'']) && $modSettings['affiliatesconfir'.$temp['affiliates'].''] == 1)
{
echo ' <td class="normaltext" align="center" valign="bottom">
<a href="'.$modSettings['affiliatesurl'.$temp['affiliates'].''].'" target="_blank">'.((!empty($modSettings['affiliatesurlbann'.$temp['affiliates'].'']) && $modSettings['affiliatesshowbn'] == 1) ? '<img src="'.$modSettings['affiliatesurlbann'.$temp['affiliates'].''].'" alt="'.$modSettings['affiliatesname'.$temp['affiliates'].''].((!empty($modSettings['affiliatesurldesc'.$temp['affiliates'].''])) ? '&#10;'.$modSettings['affiliatesurldesc'.$temp['affiliates'].''] : '').'" width="'.$modSettings['affiliate_widthF'].'" height="'.$modSettings['affiliate_heightF'].'" border="0" />' : '<b>'.$modSettings['affiliatesname'.$temp['affiliates'].''].'</b>').'</a>';
echo '</td>';

if ($lkline == $modSettings['affiliatesnlin'])
{
echo ' </tr><tr>';
$lkline = 1;
$nline = $nline + 1;
}
else
$lkline = $lkline + 1;
if (empty($affiliates['ins']) && $nline == $modSettings['affiliatesnlindex'])
break;
}
echo ' </tr>
</table></td></tr><tr>
<td class="catbg" align="center" style="font-size: xx-small;"><a href="', $scripturl, '?action=affiliates;sa=addlink"><span>Add Link</span></a><br />' , $txt['smf_affiliates_copy'] , '</td> </tr>
</table></div>
';
}


and move it to index.template.php
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 romper

  • Semi-Newbie
  • *
  • Posts: 88
Re: smf affiliates
« Reply #153 on: March 08, 2009, 02:24:29 PM »
Can I get some help with dilber Mc theme...otherwise, in core theme it worsk perfectly...I attached files from DilberMC!
THX!

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 #154 on: March 08, 2009, 03:06:56 PM »
try these
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 Smoky "Rider" Blue

  • SMF Hero
  • ******
  • Posts: 1,684
  • Gender: Female
  • It's all in your head! :p
    • smoky.blue.01 on Facebook
Re: smf affiliates
« Reply #155 on: March 08, 2009, 04:06:03 PM »
hey proveit!! lol.. ok check this out.. i uploaded the mod package, but yet when i apply it i get:

An Error Has Occurred!
Unable to find package file!


hmmm i can see it, the package is chmoded right, no errors in the log?? me is lost!!  :P

smf rc.. ;)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

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 #156 on: March 08, 2009, 04:16:24 PM »
you trying the beta one on i posted on your site or the one here ??
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 Smoky "Rider" Blue

  • SMF Hero
  • ******
  • Posts: 1,684
  • Gender: Female
  • It's all in your head! :p
    • smoky.blue.01 on Facebook
Re: smf affiliates
« Reply #157 on: March 08, 2009, 04:25:25 PM »
here.. lol..  >:( ;)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

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 #158 on: March 08, 2009, 04:34:49 PM »
hmm strange i just tested the package it works for rc

An Error Has Occurred!
Unable to find package file!

never come accross that one

why not try the one i posted on your site that should work better with rc
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 Smoky "Rider" Blue

  • SMF Hero
  • ******
  • Posts: 1,684
  • Gender: Female
  • It's all in your head! :p
    • smoky.blue.01 on Facebook
Re: smf affiliates
« Reply #159 on: March 08, 2009, 04:58:19 PM »
will do proveit.. lol.. working on the site now.. trying to..  :P
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**