2012-05-14, 02:07 PM
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.
Thanks!
Thanks!
<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>
<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?