how to add ads to phpbb forum?

Status
Not open for further replies.

avishai

New Member
Messages
64
Reaction score
0
Points
0
HI,

I've searched through the support forum but I couldn't get an answer to my problem.
I don't know how to add ads to my phpbb forum on my site. Does anyone know how to and more important where to add the ad code? I have an advanced plan. I can't find the header/footer files that I need to change. Any help will be appreciated.

Thanks
Avishai
 
M

minievan

Guest
There is another thread with this problem. Please search before making new threads XD
 

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
Try putting the ad in the "overall_header.tpl" file, that usually works.
 

motogawa

Member
Messages
306
Reaction score
0
Points
16
Placing the code in overall_header.tpl doesnt really help at all to the most part.

This is what you shoudl do

1.) Navigate to $phpbb_root_path/includes
2.) Located page_header.php
3.) Open page_header.php
4.) In page header located these lines below.

PHP:
header ('Expires: 0');
header ('Pragma: no-cache');

$template->pparse('overall_header');

5.) If your hosting plan is corporate change it to this.

PHP:
header ('Expires: 0');
header ('Pragma: no-cache');

$template->pparse('overall_header');

echo "<script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></script>\n";
echo "<script language='JavaScript' type='text/javascript'>\n";
echo "<!--\n";
echo "if (!document.phpAds_used) document.phpAds_used = ',';\n";
echo "phpAds_random = new String (Math.random());\n";
echo "phpAds_random = phpAds_random.substring(2,11);\n";
echo "document.write (\"<\" + \"script language='JavaScript' type='text/javascript' src='\");\n";
echo "document.write (\"http://x10hosting.com/advert/adjs.php?n=\" + phpAds_random);\n";
echo "document.write (\"&amp;what=zone:1&amp;target=_blank\");\n";
echo "document.write (\"&amp;exclude=\" + document.phpAds_used);\n";
echo "if (document.referrer)\n";
echo "document.write (\"&amp;referer=\" + escape(document.referrer));\n";
echo "document.write (\"'><\" + \"/script>\");\n";
echo "//-->\n";
echo "</script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a7fb3e9d' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:1&amp;n=a7fb3e9d' border='0' alt=''></a></noscript>\n";

6.) If your hosting plan is advanced change it to this.
PHP:
header ('Expires: 0');
header ('Pragma: no-cache');

$template->pparse('overall_header');

echo "<script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></script>\n";
echo "<script language='JavaScript' type='text/javascript'>\n";
echo "<!--\n";
echo "if (!document.phpAds_used) document.phpAds_used = ',';\n";
echo "phpAds_random = new String (Math.random());\n";
echo "phpAds_random = phpAds_random.substring(2,11);\n";
echo "document.write (\"<\" + \"script language='JavaScript' type='text/javascript' src='\");\n";
echo "document.write (\"http://x10hosting.com/advert/adjs.php?n=\" + phpAds_random);\n";
echo "document.write (\"&amp;what=zone:3&amp;target=_blank\");\n";
echo "document.write (\"&amp;exclude=\" + document.phpAds_used);\n";
echo "if (document.referrer)\n";
echo "document.write (\"&amp;referer=\" + escape(document.referrer));\n";
echo "document.write (\"'><\" + \"/script>\");\n";
echo "//-->\n";
echo "</script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a915c788' target='_blank' class=forumlink><img src='http://x10hosting.com/advert/adview.php?what=zone:3&amp;n=a915c788' border='0' alt=''></a></noscript>\n";
echo "\n";
echo "\n";

That should fix the problems in your phpbb ads.
 

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
I`m not trying to argue and you might be right, but why doesnt it help when it has always worked before fine ?? Just thought I would ask. Maybe you can enlighten me :)

Placing the code in overall_header.tpl doesnt really help at all to the most part.
 

IamShipon1988

New Member
Messages
942
Reaction score
0
Points
0
just ad the script above every item on overall_header.tpl on every template/skin you have
 

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
Like I said I wasnt trying to argue I just would like to know why putting it in the page_header.php is better thats all, no worries, I`m trying to find out for future reference. :coolugh:

bigguy said:
I`m not trying to argue and you might be right, but why doesnt it help when it has always worked before fine ?? Just thought I would ask. Maybe you can enlighten me :)


Placing the code in overall_header.tpl doesnt really help at all to the most part.
 

admincafe

New Member
Messages
120
Reaction score
0
Points
0
to place the ad in the overal_header.tlp just ad an extra <td><tr> the ad code</td></tr> than the ad should show up
 
Status
Not open for further replies.
Top