Page 1 of 1

Problem with Adsense

Posted: Mon May 21, 2007 2:34 am
by rj
When I find Adsense going default, I worry that Google search is not getting to me either.

I have three instances of Adsense on the Blog.
They all go default on the arriving page and the frontpg (all categories)
Any other category or article they work fine.


I do find an anamoly in that tpl file. There is no closing </HEAD> before the <BODY> and if I put one in, after I upload it, it usually disappears.

Perhaps someone can find the flaw in the VIEW SOURCE?
Finally got the 301 working! Thanx Judebert!
So the URL is http://rackjite.com
Just about ready for prime time!


Thanx

RJ

Re: Problem with Adsense

Posted: Mon May 21, 2007 10:20 am
by garvinhicking
Hi!

What do you mean with "going default" and "they all go default"? I don't understand a thing. :-)

Best regards,
Garvin

Posted: Mon May 21, 2007 3:17 pm
by rj
Adsense going default means that it is not looking for keywords from the site or from the visitor, and puts in generic ads, usually something to do with veterans, coffee, spyware. RSS or something.

After fiddling with all night I made it better, but my problem is I do not understand it. :)

As it sits now,
http://rackjite.com/serendipity/
Works except for the Left sidebar.
The head pulldown adsense works and the Right sidebar works

When clicking on ALL CATEGORIES
http://rackjite.com/serendipity/index.php?frontpage
None of it works.

I know this is not really related to Serendipity, but Google has not answered my email! :)

Something in my code is stopping ADSENSE from looking for its keywords in some cases and I wish to understand why that is.

I dont expect you to know everything, just hoping that someone else has suffered the same thing and knows what it is about.

Now I wonder if could be sitemap.xml related.
Another thing I accomplished by directions rather than actually understanding it. :)

Posted: Mon May 21, 2007 3:45 pm
by garvinhicking
Hi!

I believe that Adsense has some HTML tags you can add to your page to control which text it should consider as your "content" area. You might want to look them up and add them to your entries.tpl code?

Apart frmo that, google adsense is a robot. Robots like clean, structured information.

Robots especially like valid pages to properly index them.

Sadly your page isn't - the validator reports 67 errors :)

Check this out: http://validator.w3.org/check?verbose=1 ... Ffrontpage

Get ready for some fixing. :-)

Most of the bugs can be fixed if you add proper XHTML tags to your various badges and items, or use a HTML4 template (if you can find any, because s9y is built for XHTML). Then there seems to be a misuse of <div> nesting, some of the <div>...</div> elements to not seem to match/line up. To discover which tag is causing that, you'll need to match tag by tag in your HTML output to spot the error. This is usually a very boring task to do and it takes up a lot of time. Using HTMLTidy or tools like that might help you in finding it by properly indenting your page. Good luck. :-)

Your problem shouldn't be sitemap.xml related!

Best regards,
Garvin

Posted: Mon May 21, 2007 9:00 pm
by rj
68 errors isnt so bad, last time I looked at that it was 876!
And I threw up my hands and said screw this! :)

you checked this as the URL:
http://rackjite.com/serendipity/index.php?frontpage
Is that in reality the entries.tpl file?
And then I suppose I should do the same for the index.tpl file?

I have to understand this better. When I look at the source for
http://rackjite.com/serendipity/
that is the index.tpl file?
And the index.php?frontpage is the entries.tpl file?

I did regenerate my sitemap.xml file because I did the 301.
I dont fully understand it. I looked at the old one and the mod dates were all the same from when I generated it. I though it was dynamic and changed when things changed. Not so?

Something sure is wrong from the ADSENSE point of view! :)
It changes all the time, from disappearing, to one working, then other working then none of them working... All ONLY on those main pages, as soon at it goes into categories or articles it works just fine.

I think its DIVS!! I hate them!

One more thing.
My index.tpl file has no </head>
And when I type one in above the <body> it doesnt seem to take. I can see it there for awhile afterwards, but it disappears after a time.
Is there suppose to be a closing HEAD in the index.tpl file?
OR is the whole thing a HEAD? :)

Posted: Tue May 22, 2007 3:27 pm
by garvinhicking
Hi!
Is that in reality the entries.tpl file?
And then I suppose I should do the same for the index.tpl file?
All serendipity pages that display entries use entries.tpl file.

index.tpl contains a foundation that is also used for all pages that display those entries. So you need to check/edit both.
I have to understand this better. When I look at the source for
http://rackjite.com/serendipity/
that is the index.tpl file?
And the index.php?frontpage is the entries.tpl file?
No. In both cases, parts of the .tpl areas are parsed and outputted for both files.
I did regenerate my sitemap.xml file because I did the 301.
I dont fully understand it. I looked at the old one and the mod dates were all the same from when I generated it. I though it was dynamic and changed when things changed. Not so?
Maybe the file was not created because you had wrong paths in serendipity, or the file could not be written?
My index.tpl file has no </head>
Check thouroughly. It must have. At least all s9y themes have it. Check your original template before you screwed with it, </head> should be there :)
And when I type one in above the <body> it doesnt seem to take. I can see it there for awhile afterwards, but it disappears after a time.
That can't be! A HTML code in the template file cannot vanish only because time passes.

Best regards,
Garvin

Posted: Tue May 22, 2007 5:24 pm
by rj
I put my sidebars into DREAMWEAVER and did it form there rather than the FCK editor and it helped me find a bunch of errors. So things are better. At least all three instances of ADSENSE now all work or all don't work!
Before some did and some didn't sometimes. :)

So here is what I do not understand.
I have to get the file or files into Dreamweaver to correct the errors that W3 shows me, so I can relate the LINE NUMBERS from w3 to Dreamweaver.
I have done that before with files, but what you did by using the phpfrontpage thing I cant figure out. How would I get whatever that is into Dreamweaver?

Posted: Tue May 22, 2007 6:28 pm
by garvinhicking
Hi!

You can't relate parsed HTML error lines to actual .tpl template files. HTML files are parsed, .tpl files aren't-so you can never match the up. Rather you need to do that using brainiac skills to check out which portion of which .tpl file does what and needs to be fixed how. Because the placeholders and loops in the .tpl file are important to show actual content.

If you fixed the errors in the parsed HTML, then s9y couldn't build newHTML pages based on that, because noplaceholders would be there :)

Best regards,
Garvin

Posted: Wed May 23, 2007 12:49 am
by rj
Brain power huh? :)

I think what I will do is put the index.tpl and entries pages into W3 and Dream and fix what I can to see if things improve.
A little at a time...

One think nice about this job, there are no deadlines! :)

Just to run it through one last time I can now better explain exactly what happens.

htt://rackjite.com/serendipity all adsense works on arrival.
Clicking any category adsense works. Clicking any article adsense works. Clicking out and coming back it works.
But if you click ALL CATEGORES or FRONTPAGE they all stop working.
And refresh doesnt help. And then they no longer work where they used to work.
Refresh does not help. Close and Reload FF does get you back to square one. Same on all three computers here and the others are IE.

Maybe reading that you saw it! And you will tell me to change a $ to a ? and it will all be fixed!! :)