Affiliates System

Started by Diego Andrés, December 04, 2008, 07:29:28 AM

Previous topic - Next topic

Chit-Chat ChatterBox Boss

Ok I fixed the scroll problem (I was adding the numbers in the code not relizing it picked it up from the admin settings for the SP).
But my problem I still am having is how I add the Direction string to the affiliate code for the SP.

I mean do I add this
marquee direction="', $modSettings['scrolldirection'],'" scrolldirection="direction=',
To this

<marquee scrollamount="', $modSettings['How_Fast_To_Scroll'],'" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">';

And if so how?
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

SA™

replace

<marquee scrollamount="', $modSettings['How_Fast_To_Scroll'],'" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">

with

<marquee direction="', empty($modSettings['scrolldirection']) ? 'left' : 'right', '" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">

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

Chit-Chat ChatterBox Boss

Thanks Works!

One quick question. When you go to others affiliates and it says copy the "code" into your site and it shows the code, where exactly do you put that whole code? I have been just adding it manually all the fields for like Title, Url of banner, Url of link and description.
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

SA™

well tecnicly that code works stand alon like in a html block 


you only realy need the  the linking url cos that what updats the inhits 
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 -___-

Chit-Chat ChatterBox Boss

So like this is all(as far as the URLs)?
EXAMPLE
The whole code:
<a href="http://sleepy-arcade.ath.cx/sleepy/index.php"><img src="http://sleepy-arcade.ath.cx/sleepy/banner3.gif"  alt="SLEEPY ARCADE" ></a>

This is what you get out of the code.

URL of Banner:
http://sleepy-arcade.ath.cx/sleepy/banner3.gif

URL for link:
http://sleepy-arcade.ath.cx/index.php

Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

SA™

no link us banners are different

gotto your affiliate on my site and click edit [wee man with pencil]


and you will see your code for you to use

the url

http://sleepy-arcade.ath.cx/sleepy/index.php?action=affiliates;sa=in;idaff=171

notice the different ??

click it it will update the database +1 for in hits th redirect to the boardindex

then look at the affiliates amd you will see inhits 1 :)

so bascly where you added the url for my site in your affiliates on your site

replace it with the above url it hard for me to explain lol im trying

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

Chit-Chat ChatterBox Boss

#286
So where exactly do I put this code on my site (I manually added all the info for Add Affiliate)
<a href="http://sleepy-arcade.ath.cx/sleepy/index.php?action=affiliates;sa=in;idaff=171"><img src="http://sleepy-arcade.ath.cx/sleepy/banner3.gif" alt="SLEEPY ARCADE" ></a>

Title
URL for link
URL of Banner
Description
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

SA™

 that is a stand alone code to be used for html pages or html portal blocks but seem as your using the affiliates mod you only need the url and the banner to put in the correct feilds

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

Chit-Chat ChatterBox Boss

Ok that's what I thought originally. Thanks bro! Great Mod and Great Help!
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

Chit-Chat ChatterBox Boss

When ever someone tries to rate a affiliate they get the 404 error:

Quote
Method Not Implemented

GET to /index.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

SA™

is there any thing in the error logs regarding that when i get home ill go do some testing on my other sever see whats causing that
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 -___-

Chit-Chat ChatterBox Boss

No I copied over my main sites files and database to the test one. And that is happening thats why I am wondering if it is looking for the smilies images somewhere and it doesn't see it due to the transfer.
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

SA™

huh smilys ? this mod use smilys ???? first i knew :P

have you tryed running repair settings.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 -___-

Chit-Chat ChatterBox Boss

 :-[ wow I am retarded and when I first asked I was tired and posted in wrong one (I was meaning to ask in Ajaxchat integration) and then I was tired again this morning and just replied  :-[ yup I am a moron but I will give that a try.
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

SA™

lol np we all make silly mistack like that one time or another  :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 -___-

[unplugged]

Sorry if this has already been addressed, but how would I go about displaying all of my affiliate banners in a random order (like on each new page or page refresh). I have used ssi_random_affiliate(); but only get a single banner to show. I have tried several different ways to get it to show a set number of banners like 10 or 12. It's probably a simple answer, but it escapes me. :P

Thanks in advance.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



dzinerfusion

HI how do I approve an afflitiate? There is no options when i go to my waiting aprovval menu

SA™

@ SunKing do you want the ssi_random_affiliate(); to show more than one ?


@ bluesinjid  goto affiliates and click on Waiting Approval
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 -___-

[unplugged]

Yes please. I thought it would be something like ssi_random_affiliate(10);  I tried a few different ways and nothing worked.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



SA™

try ssi.php

find

unction 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>';
}


replace with

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()
LIMIT 6");

$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>';
}


in that code find

LIMIT 6

and chnage the 6 to how many you want
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: