Forum

Mambo 3rd Party Addon Hacks => Mambot Hacks => Topic started by: woostar on July 26, 2005, 08:11:40 PM



Title: Add username to banner url!?
Post by: woostar on July 26, 2005, 08:11:40 PM
Hi folks ::~

Wonder if someone can give me a hand ~ is there anyway i can alter the mambo code very slightly so that I can track who click on which banner...

for example if I put:
http://www.bluehost.com/track/woostar/ref?= 
into the the manner manager...

I would like the mambo username to be added to the end?


I know this is so simple I'll kick myself when u tell me but alas I'm totally hopeless  ;D


Cheers Guys
W :D


Title: Re: Add username to banner url!?
Post by: Luke Thomas on July 27, 2005, 11:39:42 AM
Yes this is very simple for programmers.
I can tell you if I just have access to the code right now.
You may wanna look at login.php.

But the question is, why you want to do that.
I'm just wondering, maybe you're just wasting your time.


Title: Re: Add username to banner url!?
Post by: woostar on July 27, 2005, 09:51:43 PM
Quote from: Luke Wilson on July 27, 2005, 11:39:42 AM
Yes this is very simple for programmers.
I can tell you if I just have access to the code right now.
You may wanna look at login.php.

But the question is, why you want to do that.
I'm just wondering, maybe you're just wasting your time.


I want to do this to offer reward points to ppl who support the website.

was thinking that i need to add the username variable to mod_banner.php somewhere...

was thinking somewhere in the code below???

Code:
echo $banner->custombannercode;
} else if (eregi( "(\.bmp|\.gif|\.jpg|\.jpeg|\.png)$", $banner->imageurl )) {
$imageurl = "$mosConfig_live_site/images/banners/$banner->imageurl";
echo "<a href=\"".sefRelToAbs("index.php?option=com_banners&amp;task=click&amp;bid=
$banner->bid")."\" target=\"_blank\"><img src=\"$imageurl\" border=\"0\" alt=\"Advertisement\" /></a>";


Any help would be appreciated.


Thanks


Title: Re: Add username to banner url!?
Post by: cowboy on August 03, 2005, 10:51:16 AM
Woostar,

This seems like a good idea but you need to track whether the user had already  clicked a certain banner. Otherwise, the system will get abused just to get rewards.

About the code, I think that's the exact code for the banner.


Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.