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

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

ysNoi

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."

SA™

so did they work or not ??
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 -___-

ysNoi

"Don't fix it if it ain't broken, don't break it if you can't fix it."

SA™

any errors what didnt work
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 -___-

ysNoi

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."

SA™

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
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

ysNoi

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."

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

ysNoi

#149
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...!


"Don't fix it if it ain't broken, don't break it if you can't fix it."

SA™

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
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

ysNoi

Quote from: wayne83 on February 26, 2009, 01:08:58 PM
you have to set the permissions

DoNe bro...!

Quote from: wayne83 on February 26, 2009, 01:08:58 PM
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."

SA™

boardindex.template.php


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
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

romper

Can I get some help with dilber Mc theme...otherwise, in core theme it worsk perfectly...I attached files from DilberMC!
THX!

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

Smoky "Rider" Blue

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

SA™

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
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Smoky "Rider" Blue

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

SA™

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
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Smoky "Rider" Blue

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

Advertisement: