Google ads code placement help

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Registered User
Posts: 126
Joined: Tue Apr 22, 2008 11:11 am

Google ads code placement help

Post by micsta » Sun Oct 24, 2010 7:48 am

Can someone give me a quick hand to implement this code in to the following.

This is a recent post mod that I have on the main index page of my forum. I want to implement this skyscraper ad to align to the right hand side of the recent post mod in it's own table.

Here's a quick screenie of the mod and where I want the adsense code to display (the blue slashes on the right);

Here's the original code for the recent post html file;

Code: Select all

<table class="tablebg" width="100%" cellspacing="1">
		<td class="cat" colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->"><span class="nav"><h4>{L_LP_TITLE}</h4></span></td>

      <!-- <tr>
            <td class="cat" colspan="2"><h4>{L_LP_TITLE}</h4></td>
		<td class="catdiv" colspan="3">&nbsp;</td>
      </tr> -->
    	<!-- IF S_TOPIC_ICONS -->
			<th colspan="3">&nbsp;{L_TOPICS}&nbsp;</th>
		<!-- ELSE -->
			<th colspan="2">&nbsp;{L_TOPICS}&nbsp;</th>
		<!-- ENDIF -->

	<!-- BEGIN latest_topics -->

			<td class="row1" width="46" align="center"><img src="./styles/subsilver2/imageset/recent_post.gif" /></td>
			<td class="row1 width="100%">
            <a title="{L_POSTED}: {latest_topics.LP_TOPIC_POSTTIME}" href="{latest_topics.LP_U_VIEW_TOPIC}" class="topictitle">{latest_topics.LP_FULL_TITLE}</a>
            <td class="row1" width="130" align="center"><p class="topicauthor">{latest_topics.LP_TOPIC_STARTER}</td>
			<td class="row5" width="50" align="center"><p class="topicdetails">{latest_topics.LP_T_REPLIES}</p></td>
			<td class="row2" width="50" align="center"><p class="topicdetails">{latest_topics.LP_T_VIEWS}</p></td>
			<td class="row2" width="215" align="center">
				<p class="topicdetails" style="white-space: nowrap;">{latest_topics.LP_TOPIC_LASTPOSTTIME}</p>
				<p class="topicdetails">by&nbsp;{latest_topics.LP_TOPIC_LASTPOSTBY}
					<a href="{latest_topics.LP_U_VIEW_TOPIC}">{LAST_POST_IMG}</a>
     <!-- END latest_topics -->
Here's the google script;

Code: Select all

		<script type="text/javascript"><!--
google_ad_client = "pub-**********";
/* 120x600, created 10/24/10 */
google_ad_slot = "**********";
google_ad_width = 120;
google_ad_height = 600;
<script type="text/javascript"
My html skills are limited and your help would be greatly appreciated...

Former Team Member
Posts: 23099
Joined: Sat Dec 02, 2006 4:08 pm
Name: Can't Remember

Re: Google ads code placement help

Post by Pit$Bull » Sun Oct 24, 2010 8:51 am

There is no MOD support in this forum, you should seek help in the support topic for the MOD.


Return to “[3.0.x] Support Forum”