Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Hardcode Adsense code into post #1 and post #3
dzchimp Offline
Junior Member
**
Posts: 5
Joined: Nov 2011
Post: #9
RE: Hardcode Adsense code into post #1 and post #3
Thanks for all your help. Solved it. Smile

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<if in_array($postcounter - $mybb->settings['postsperpage']*($page-1), array(1,3)) then>
<span style="margin-left: 25%; margin-right: 25%;\padding: 1px;">
<if in_array($postcounter - $mybb->settings['postsperpage']*($page-1), array(1)) then>
	<tr><div align="center">
	<script type="text/javascript">
	/* ad #1*/
	
	</script>
	<script type="text/javascript"
	src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
	</script>
	</div></tr>
<elseif in_array($postcounter - $mybb->settings['postsperpage']*($page-1), array(3)) then>
	<tr><div align="center">
	<script type="text/javascript">
/* add #2 */
	</script>
	</div></tr>
</if>
 </span>
 </if>

12-08-2011 08:58 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Hardcode Adsense code into post #1 and post #3 - dzchimp - 12-08-2011 08:58 AM

 Standard Tools
Forum Jump: