Ravens PHP Scripts

Providing proper BFAST affiliate links
Date: Saturday, September 13, 2003 @ 05:06:44 CDT
Topic: Code Hacks


If you manage advertising for affiliate links on your site, you may be asked to insert a 1x1 pixel with a separate link as the image. Of course, using PHP-Nuke, this is not possible natively, since they only give you fields to fill in for the Click URL and Image URL.

But, by modifying one line in the block-Advertising.php file in your blocks folder, you can add the 1x1 pixel. I don't know if this really makes a difference, but when it comes to getting credit for your click-throughs, it wouldn't hurt "one bit" to do as they ask...

Look for this line:
$content = "

$row[alttext]
";

And change it to this:
$content = "

$row[alttext]
";

For BeFree's bfast link, they give you two HTML links. The only difference is that one is a click? URL and the other is a serve? URL. Since there is no field to enter the other URL, the inserted HTML tag automatically replaces it. If you don't have a bfast link, the 1x1 pixel won't do any harm anyway.

Provided by BeyondTheTech.com





This article comes from Ravens PHP Scripts
https://www.ravenphpscripts.com

The URL for this story is:
https://www.ravenphpscripts.com/modules.php?name=News&file=article&sid=154