Web Advertising - Mortgages - Credit Score - Mortgages - Free vBulletin Skins

PDA

View Full Version : how to add affiliate links to phpBB forums


dralfalfa
Jul 18th 2005, 3:22 pm
How do I go about adding affilate links to my phpBB message board?

Is this possible?

Any advice you can give me would be great! Thanks!

Mia
Jul 18th 2005, 3:40 pm
Like? I'd visit the phpBB forums and the web site was well. You will find several mods for phpbb. Things like adding AdSense, etc.

RectangleMan
Jul 18th 2005, 4:41 pm
You will need some core file changes and a special function. I have something already setup. PM me if interested. Cost will be around $50 to implement this.

minstrel
Jul 18th 2005, 6:38 pm
You can do it yourself.

1. get the affiliate code to insert and decide where you want it placed
2. the most likely places to add the code would be in \templates\{template name}\overall_header.tpl or \templates\{template name}\overall_footer.tpl

For an example, see the forum link in my signature.

dralfalfa
Jul 19th 2005, 12:53 am
I figured it out. Thank you!

802networks
Aug 18th 2005, 4:44 pm
I'd be VERY careful with putting certain affiliate links in the overall_header and overall_footer files. Programs like Adsense have very specific policies about having their ads on certain pages including search, login, memberlists etc.

I would suggest manually adding them to the actual pages such as view_topic_body and view_forum_body etc.

minstrel
Aug 18th 2005, 5:19 pm
Or, do this (previously posted in another thread):

http://www.vierstra.com/forum/forum-subject.php/t/2754

The Google Adsense program states however that they don't want their Adsense on register and login pages.

It is easy to put your Google Adsense code in your template somewhere, but this means they show up also on the login and register pages, and then you are violating the Adsense program policies...

I have created a solution for this:

Open your page_header.php and find:

if ( !$userdata['session_logged_in'] )
before that add:

// start google_switch

if (!stristr($_SERVER['PHP_SELF'], "login.php") AND !stristr($_SERVER['PHP_SELF'], "profile.php") ) {
$template->assign_block_vars('switch_adsense', array());
}

// end google_switch
Now your have a switch in your template available that excludes your Adsense Code from the login and profile pages.

Open your template page where you have placed your Adsense code(usually overal_header.tpl) and use the switch like this:

<!-- BEGIN switch_adsense -->

Your Adsense Java Script code here

<!-- END switch_adsense -->