Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Daniel Berger
RE: Adsense question [ reply ]  
2008-03-06 13:34
Oh, silly me, it's on the project page, just not the home page.

Thanks,

Dan

By: Marcin Gil
RE: Adsense question [ reply ]  
2008-03-06 13:26
Or maybe to disable AdBlock? :)

By: Thomas LECAVELIER
RE: Adsense question [ reply ]  
2008-03-06 13:23
Hum... It looks like you need new glasses? :)

http://img118.imageshack.us/img118/9206/sapphireaq0.th.jpg
http://img118.imageshack.us/my.php?image=sapphireaq0.jpg

By: Daniel Berger
RE: Adsense question [ reply ]  
2008-03-06 13:10
Hm, something's not right. Here's a snippet from my layouts/base.rhtml:

<%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %>
<div id="sidebar">
<%= yield :sidebar %>
<script type="text/javascript"><!--
google_ad_client = "pub-1478998134459124";
/* 120x240, sapphire, vertical */
google_ad_slot = "4074766605";
google_ad_width = 120;
google_ad_height = 240;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js";>
</script>
</div>

But, if you visit sapphire-lang.org, nothing shows up. What am I doing wrong?

Thanks,

Dan

By: Jean-Philippe Lang
RE: Adsense question [ reply ]  
2008-03-05 11:19
Hi, the Adsense javascript was added just after:
<%= yield :sidebar %>
in layouts/base.rhtml

By: Daniel Berger
Adsense question [ reply ]  
2008-03-05 10:31
Hi,

What file did you modify for Adsense on redmine.org? I have Adsense on my home page now (http://www.sapphire-lang.org), but I'd prefer to put it on the right side as you've done, instead of on the top as I have it now.

I'm guessing you've modified base.rhtml, but I'm not sure how you layed it out exactly. Can you share?

Thanks,

Dan