Advertisement:

Author Topic: Affiliates System  (Read 178534 times)

Offline venex

  • Jr. Member
  • **
  • Posts: 123
Re: SA affiliates
« Reply #520 on: August 09, 2010, 11:44:51 AM »
are you using a custom theme? if so are the edits there? does it work on the default theme?
My situation is weird...

My other admin created a custom theme for my forum. We install every single MOD in that one theme... and he made something so that the theme he created is now the default theme... so we wouldn't have to install in the default theme and our theme...

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA affiliates
« Reply #521 on: August 09, 2010, 12:02:08 PM »
i does sound to me like the edit to index.template.php is missing?

is this in index.template.php

Code: [Select]
//Affiliates Start
echo '
<script type="text/javascript" src="', $settings['theme_url'], '/imageresizer.js"></script>
<script language="JavaScript" type="text/javascript"><!-- // -->
ImageResizer.MAXWIDTH = "', empty($modSettings['imageresizer_max_width']) ? 0 : (int) $modSettings['imageresizer_max_width'], '";
ImageResizer.MAXHEIGHT = "', empty($modSettings['imageresizer_max_height']) ? 0 : (int) $modSettings['imageresizer_max_height'], '";
</script>';
//Affiliates End
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 NoFeaR / NFSMW

  • Full Member
  • ***
  • Posts: 493
  • Gender: Male
  • Manipulating the WEB!
    • Info-Hype
Re: SA affiliates
« Reply #522 on: August 10, 2010, 11:33:01 AM »
I removed that ans still get the same error.

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA affiliates
« Reply #523 on: August 10, 2010, 02:37:44 PM »
what did you remove this

if ($modSettings['affiliates_pagerank'] == '0') {$modSettings['affiliates_pagerank'] = '1';   }
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 NoFeaR / NFSMW

  • Full Member
  • ***
  • Posts: 493
  • Gender: Male
  • Manipulating the WEB!
    • Info-Hype
Re: SA affiliates
« Reply #524 on: August 11, 2010, 01:14:36 AM »
yes

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA affiliates
« Reply #525 on: August 11, 2010, 12:12:44 PM »
ok read this and do it then tell me the error again

http://www.catskilltech.com/freeSW/SMF/faqs/#eval
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 NoFeaR / NFSMW

  • Full Member
  • ***
  • Posts: 493
  • Gender: Male
  • Manipulating the WEB!
    • Info-Hype
Re: SA affiliates
« Reply #526 on: August 31, 2010, 05:30:56 AM »
Hey there. I have a few problems. First is that i cant uninstall the 3.3.5. It gives me errors.
I wanted to install 3.3.5.1

Then my pagerank doesnt work.
And also my totals go off. Image attached.

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA affiliates
« Reply #527 on: August 31, 2010, 01:02:45 PM »
ive fixed the totals things in 3.3.5.2 not realsed yet tho

did you install any mods after you installed this? cos you might have to uninstall them first what is the errors anyway?
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 NoFeaR / NFSMW

  • Full Member
  • ***
  • Posts: 493
  • Gender: Male
  • Manipulating the WEB!
    • Info-Hype
Re: SA affiliates
« Reply #528 on: September 01, 2010, 01:48:48 AM »
It gets an error on almost all files it wants to uninstall from.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 59,316
  • Gender: Male
    • Kindred-999 on GitHub
Re: SA affiliates
« Reply #529 on: September 01, 2010, 07:02:00 AM »
which means that you probably have other mods installed after this one and you will have to manually remove this mod.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline NoFeaR / NFSMW

  • Full Member
  • ***
  • Posts: 493
  • Gender: Male
  • Manipulating the WEB!
    • Info-Hype
Re: SA affiliates
« Reply #530 on: September 01, 2010, 08:21:53 AM »
ok i will try

Offline The Great OZ

  • Semi-Newbie
  • *
  • Posts: 26
Re: SA affiliates
« Reply #531 on: September 14, 2010, 01:04:42 PM »
Love the mod and  it seems to work great except I cant get it to show the affiliates on the index page,  I have it enabled in the admin panel but it just doesnt show up.  I uninstalled and reinstalled it,  after some work with the file edits,  but it still doesnt work,  any ideas on what I might be missing?

ETA: forgot to say Im running 2.0 RC3 and version 3.3.5

dkharp

  • Guest
Re: SA affiliates
« Reply #532 on: September 14, 2010, 10:40:06 PM »
Hello I love the mod!  has any one mad a tp block for this?

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA affiliates
« Reply #533 on: September 15, 2010, 02:08:44 PM »
@ The Great OZ  are you using a custom theme that has its own boardindex.template.php?

@ dkharp no but there is an affiliate ssi function
ssi_affiliates();
or
ssi_random_affiliate();
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 -___-

dkharp

  • Guest
Re: SA affiliates
« Reply #534 on: September 15, 2010, 09:32:44 PM »
so how do I put that in a php block?

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA affiliates
« Reply #535 on: September 18, 2010, 12:07:37 PM »
just make a php block like usal

and add
Code: [Select]
ssi_affiliates();
function ssi_affiliates()
{
global $scripturl, $smcFunc, $txt, $settings, $modSettings, $context;

loadLanguage('Stats');

$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);
   
echo'<table border="0" width="100%" align="center" class="smfNews">
<tr><td><marquee direction="', empty($modSettings['scrolldirection']) ? 'left' : 'right', '" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">';

foreach ( $context['aff'] as $aff)
echo '
<a href="', $scripturl, '?action=affiliates;sa=out;idaff=', $aff['id'],'" target="_blank">
<img src="', $aff['image'],'"  width="88" height="31" alt="', $aff['description'],'" />';

echo'</marquee></td>
</tr>
</table>';
}
or
Code: [Select]
ssi_random_affiliate();
//random affiliates
function ssi_random_affiliate()
{
   global $scripturl, $smcFunc;

$request = $smcFunc['db_query']('', "
SELECT
title, approved, id_affiliates, image
FROM {db_prefix}affiliates
WHERE  approved = 1
ORDER BY RAND()
");

$random = array();
$row = $smcFunc['db_fetch_assoc']($request);
censorText($row['title']);

$random[] = array(
'title' => '<a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'">'.$row['title'].'</a>',
);
$smcFunc['db_free_result']($request);

foreach ($random as $affiliate)
echo' <a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'"><img src="'.$row['image'].'" width="88" height="31" alt="'.$row['title'].'"></a>';
}
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 Deaks

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 22,489
  • Gender: Male
    • SMFReview on Facebook
    • pouvik on GitHub
    • @@smfreview on Twitter
    • SMFReview
Re: SA affiliates
« Reply #536 on: September 26, 2010, 01:45:47 PM »
Sleepy Arcade are you ever gonna make this mod generate proper coding right now the img tags of code your mod creates isnt closed

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA affiliates
« Reply #537 on: September 26, 2010, 01:54:44 PM »
yes i know i got a new version in  the works but havent had a great deal of time to code
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 SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA affiliates
« Reply #538 on: September 29, 2010, 12:47:50 PM »
3.3.5.2 realsed

fixed image resizer problems
now there is no edits for custom themes
fixed being able to see affiliates button of no permission
fixed img tags not closed
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 EL GATO

  • Semi-Newbie
  • *
  • Posts: 49
  • Gender: Male
  • TEVEO
    • TEVEO.NET
Re: SA affiliates
« Reply #539 on: October 16, 2010, 05:16:51 AM »
 :) :) :)

Hola que tal les tengo una excelente traducción
Del mod

SA Afifiliates   en Español!!!  8)

http://teveo.net/internet-y-computadores/sa-affiliates-espanol-smf/?action=dlattach;attach=18
también esta adjunto en este post

Saludos y disfrútenlo!!


EL GATO
TEVEO.NET
« Last Edit: October 16, 2010, 05:40:24 AM by EL GATO »