Ads

Status
Not open for further replies.

flankerdin

New Member
Messages
450
Reaction score
0
Points
0
I have look all over this forum and i found 2 script to put ads..
I know which 1 to use with my mainsite but i dont know how to put and which to put for my phpBB forum...
Can anyone give me a full guide about this?
 

nicholas

New Member
Messages
772
Reaction score
0
Points
0
flankerdin said:
I have look all over this forum and i found 2 script to put ads..
I know which 1 to use with my mainsite but i dont know how to put and which to put for my phpBB forum...
Can anyone give me a full guide about this?

If you mean where to put ads on phpbb, you can go to template/theme/overall_header.tpl to put the ads.

If you mean which ad to put then take a look at the ads code link and pick the ad codes according to what plan you are in.
 

Tyler

Retired Staff
Messages
8,564
Reaction score
0
Points
0
You would go into file manager in cpanel. Go into the folder where your forum is, then click on themes, and find the folder of the theme that you are using. Once you are in that folder find the file that says overall_header.tpl click on it, then click edit file in the top left hand corner. insert your code right at the before everything. if you want to center it wrap it around <center></center>

I hope that helps, if not you can always talk to me via aim, msn, or PM's and I would be glad to help.
 

Goten X

New Member
Messages
336
Reaction score
0
Points
0
Its a PHP based forum. It should be able to read the php script, no problem.

|GX
 

flankerdin

New Member
Messages
450
Reaction score
0
Points
0
I did put the java code..But nothing appear...
Im waiting for tutorial how to do so..becaus i only have prob to put in the forum only..
In other my own designed site its working good....
 

nicholas

New Member
Messages
772
Reaction score
0
Points
0
Tyler said:
If you want, I can add the code to your forum

So nice of you but you are pampering them :laughing: let them try to do it themselves hands on. It will benefit them more and help gain more knowledge :eek:riginal: Just my 2.25cents worth :laughing:

But whatever it is, cheers for you :grin:
 

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
Tyler said:
You would go into file manager in cpanel. Go into the folder where your forum is, then click on themes, and find the folder of the theme that you are using. Once you are in that folder find the file that says overall_header.tpl click on it, then click edit file in the top left hand corner. insert your code right at the before everything. if you want to center it wrap it around <center></center>

I hope that helps, if not you can always talk to me via aim, msn, or PM's and I would be glad to help.

Tyler is right this is the way to put the ad up. The eeasiest way is to copy and paste it into the top of the overall_header.tpl file. Make sure its the first line in that file, and it should work fine.

P.S. Is there an error message you get ? or does it just not show up ?
 

flankerdin

New Member
Messages
450
Reaction score
0
Points
0
It does not show up.....

Ok this is the overall Header
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/chunkstyle/{T_HEAD_STYLESHEET}" type="text/css">
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
	if ( {PRIVATE_MESSAGE_NEW_FLAG} )
	{
	    window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
	}
//-->
</script>
<!-- END switch_enable_pm_popup -->
</head>
<body>

<a name="top"></a>

<table class="tableoverall" cellspacing="0" cellpadding="5" border="0" align="center"> 
	<tr> 
		<td><table width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr> 
		    	<td colspan="2" class="forumborder" style="height:117px;"><a href="{U_INDEX}"><img src="templates/chunkstyle/imagesnew/bannerlogo.jpg" border="0" alt="{SITENAME}
{SITE_DESCRIPTION}" /></a></td>
			</tr>
			<tr>
		    	<td onClick="window.location='{U_INDEX}'" style="cursor:hand;border-right:0px;" class="titleoverallheader">
					{SITENAME}
				</td>
		    	<td onClick="window.location='{U_INDEX}'" style="cursor:hand;border-left:0px;text-align:right;" class="titleoverallheader">
					{SITE_DESCRIPTION}
				</td>
			<tr>
		    	<td colspan="2" class="titlebottom"><a href="{U_FAQ}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_faq.gif" width="14" height="14" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>&nbsp; &nbsp;<a href="{U_SEARCH}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_search.gif" width="14" height="14" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_memberlist.gif" width="14" height="14" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_usergroups.gif" width="14" height="14" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>&nbsp; 
<!-- BEGIN switch_user_logged_out -->
&nbsp;<a href="{U_REGISTER}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_register.gif" width="14" height="14" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a>&nbsp;
<!-- END switch_user_logged_out -->
&nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_profile.gif" width="14" height="14" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_pmold.gif" width="14" height="14" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/chunkstyle/imagesnew/btns/header_loginoff.gif" width="14" height="14" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</td>
			</tr>
			</table>

		<br />

Please help me...
My hosting plan is Corprate
 

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
Ok now take the corporate ad code and copy and paste it in the very top of that file. Save it and got to yopur forum, it should show up.
 

flankerdin

New Member
Messages
450
Reaction score
0
Points
0
Just do like this?

Code:
<script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></script> <script language='JavaScript' type='text/javascript'> <!-- if (!document.phpAds_used) document.phpAds_used = ','; phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11); document.write ("<" + "script language='JavaScript' type='text/javascript' src='"); document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random); document.write ("&amp;what=zone:1&amp;target=_blank"); document.write ("&amp;exclude=" + document.phpAds_used); if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer)); document.write ("'><" + "/script>"); //--> </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>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 

Matthews255

New Member
Messages
826
Reaction score
0
Points
0
where there is <body> add it after that.

like...

<body><center>"ad script</center>..... rest of page.
 
Status
Not open for further replies.
Top