I am trying to configure an OSQA install at fetchsparky.com. I have google adsense code in the sidebar upper and lower which appears fine on the main page. However, if I change the posts per page to either 15 or 50 both sidebar ads disappear, the other sidebar content such as tags question count still show just the upper and lower sidebar disappear. The sidebar is still spaced out as thought they were appearing. I checked inside questions.html and everything looks fine, I cant hard code content into that area and have it appear. Anyone have any idea what I might be doing wrong? Thanks in advance for any help or hints.

asked 14 Jul '11, 12:45

michael_nr's gravatar image

michael_nr
31223
accept rate: 100%

Does this have anything to do with Markdown mode? Does adsense script work in Markdown? Would i need to convert the script to markdown or render the block with html? Anyone know? Thanks

(14 Jul '11, 18:28) michael_nr

yes, you need to use html mode, otherwise the markdown parser will strip your tags.

(14 Jul '11, 18:37) Hernani Cerq... ♦♦

Thanks for the suggestion. I'm trying it in html mode now and it is still behaving the same way. Ads work fine on the main page, but if I change the posts per page or search the ads disappear.

(14 Jul '11, 18:41) michael_nr

Yes that is a different (and very weird) problem. Was just commenting about the fact that you were using markdown to render html tags. The solution to your problem will follow in an answer.

(14 Jul '11, 19:15) Hernani Cerq... ♦♦

Another update, I found the area on webmaster tools that allows me to test the google ad bots using robots.txt and now I have the ads working. Thanks so much for all your help!

link

answered 15 Jul '11, 12:27

michael_nr's gravatar image

michael_nr
31223
accept rate: 100%

The code seems to be there. The thing is that google has not scanned those pages yet so it has no content to show. Instead of the google adsense code, change the blocks content to some random piece of text and you can verify that the text will be visible when you change the page sizes.

link

answered 14 Jul '11, 19:20

Hernani%20Cerqueira's gravatar image

Hernani Cerq... ♦♦
16.8k65975
accept rate: 52%

Hi Hernani thanks for the help yesterday. I did play around with the add and confirmed that if i put static content in that area it will show up. How do I get google to scan those pages so the ads will show up? I looked in my robots.txt file to see if it was blocking google but everything appears to be set up fine. I have been comparing my page to other OSQA sites that have adsense on them and everything appears to be set up the same. Thanks in advance to any help.

(15 Jul '11, 12:05) michael_nr

Just give it time. It will eventually show up I think.

(15 Jul '11, 12:17) Hernani Cerq... ♦♦

I just checked my google webmaster tools account and ran Fetch as Googlebot for page http://fechsparky.com/questions/?sort=active&pagesize=30 and it gives me Fetch Status "Denied by robots.txt" The robots file i am using is the default file, I didn't make any changes. I removed all txt from the robots file and it is still giving me the "Denied by robots.txt" possible that i have to wait for the change to update with google? Any thoughts?

(15 Jul '11, 12:21) michael_nr
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×47
×8
×6
×3

Asked: 14 Jul '11, 12:45

Seen: 543 times

Last updated: 15 Jul '11, 12:27

powered by OSQA