MyBB Community Forums

Full Version: J query adding google adsense into it?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Heya guys, edited as I now have a new problem... I'm trying to implement a google adsense ad into my sidebar but it's not working. Scroll down to the 3rd reply for the code.

[Image: fdf0816fd9af4075aa17545028c7888b.png?1337004279]



Thanks!
You're using this: http://community.mybb.com/thread-73062.html

According to the tutorial, you've to edit these in index template.
Right i've found it, Now i'm trying to implement a google ad into where the ad box is. I've already got the coding for it but when I paste it in, it's just showing up as blank... Obviously I have no idea what i'm doing...

Ad code
<script type="text/javascript"><!--
google_ad_client = "ca-pub-9980097740805751";
/* Simply side */
google_ad_slot = "4778068780";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script> 

Me putting the code into my jquery side
 <html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
    lang.no_new_posts = "{$lang->no_new_posts}";
    lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>

</head>
<body>
{$header}
<!--Sidebar Code-->

<a class="buttons" style="float: right;"></a>
<a class="clickedbuttons" style="float: right;"></a>
<br class="clear" />
<div class="sidebar" style="float: right;width: 19%;">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>
Latest News
</strong></td>
</tr>
<tr>
<td class="trow1">
Login and Banking problems! <li><a href="http://simply-pk.com/forums/showthread.php?tid=125"> Click here for help/Info!</a></li>
</td>
</tr>

<tr>
<td class="thead"><strong>
Advertisement Box
</strong></td>
</tr>
<tr>
<td class="trow1">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-9980097740805751";
/* Simply side */
google_ad_slot = "4778068780";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</tr>
<tr>
<td class="thead"><strong>
Custom Block
</strong></td>
</tr>
<tr>
<td class="trow1">
Put what you wat right here
</td>
</tr>
</table>
</div>
<div class="forums" style="float: left;width: 80%;">
{$forums}
</div>

<br class="clear" />

<!--End Of Sidebar Code-->
{$boardstats}

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="6">
<div><strong>Forum Icon Legend</strong></div>
</td>
</tr>
		<td class="trow1" align="center" valign="middle"><img src="{$theme['imgdir']}/on.png" alt="{$lang->new_posts}" title="{$lang->new_posts}"/></td>

		<td class="trow1" align="center" valign="middle"> <span class="smalltext">{$lang->new_posts}</span></td>

		<td class="trow1" align="center" valign="middle"><img src="{$theme['imgdir']}/off.png" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}"/></td>

		<td class="trow1" align="center" valign="middle"><span class="smalltext">{$lang->no_new_posts}</span></td>

		<td class="trow1" align="center" valign="middle"><img src="{$theme['imgdir']}/offlock.png" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" /></td>

		<td class="trow1" align="center" valign="middle"><span class="smalltext">{$lang->forum_locked}</span></td>

	</tr>
</table>
<br style="clear: both" />
{$footer}
</body>
</html> 
What am i doing wrong?