First things First!

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

First things First!

Post by rj »

This is going to make me look like a real idiot. :)
But I have a feeling this may solve most of my conceptual problems concerning BLOGS.

The main page of my blog is open in Firefox.
I click view and page source.
Its all very familiar regards to websites.
Doc type, head, metas, head strings and body.
Things I actually do understand quite well! :)
But no file name, just the default directory, serendipity/??

Boy would I like to edit that!

This might answer all my questions on where to put my xml, JS and FLASH pointers to content in ENTRIES and NUGGETS. Not to mention ROBOTS and KEYWORDS and the GOOGLE BLOG stuff I am just learning about.

So, is that a file? Is it in that same HTML format?
And if so, what is it called??? :)

RJ
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: First things First!

Post by garvinhicking »

Hi!

This is the index.tpl file of your template directory.

But the HTML Page Nugget plugins allow you to put HTML/JS/SWF code into the head or header section already. :)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

Ah....

To get Google searching correctly they have these blocks of API code to use. So this is the file where I would put that code in the <head>. And the code would apply to the entire blog?


So for each nugget I use standard HTML head tags if I have js and flash in them?

<html>
<head>
meta this and that if I like
pointer to my style.css (or does that come default)
Pointer to my .js
Pointer to my .swf
</head

<body>

</body
</html>
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
To get Google searching correctly they have these blocks of API code to use. So this is the file where I would put that code in the <head>. And the code would apply to the entire blog?
Yes, exactly.

So for each nugget I use standard HTML head tags if I have js and flash in them?
Uhm. EITHER you edit index.tpl file OR you use HTML Page nuggets. If you make both, you'll have everything twice.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

I noticed in that .tpl file there is no closing </head>
Is that suppose to be that way?

And to make sure about all this, in that TPL file I can remove the code in <title> and make my own?
And add my own meta keywords, description and Robots. Right?

RJ
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
rj wrote:I noticed in that .tpl file there is no closing </head>
Is that suppose to be that way?
A closing </head> is in line 23 of the templates/default/index.tpl...
And to make sure about all this, in that TPL file I can remove the code in <title> and make my own?
Yes, you can modify the <title> to whatever you like.
And add my own meta keywords, description and Robots. Right?
Yes.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

This is what I see in both tpl in default and carlcontest which is my template

20 {/if}
21
22 {serendipity_hookPlugin hook="frontend_header"}
23
24
25 <body>

Is that line 22 code for </head>


RJ
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Then you have edited this index.tpl file and removed the </head> yourself. This string is definitely in both index.tpl files of a default SErendipity installation. :)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

hmmm... Bet it was something I did 6 months ago when I knew even less about all this than I do now. :)

I wonder if this may have to do with the problems I am having with ADSENSE and google search??

So I can just put it in no problem?

That is if I didnt screw something else up back then...

RJ
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
I wonder if this may have to do with the problems I am having with ADSENSE and google search??
Probably, because without a </head> your page would not validate properly :)

Maybe you should restore the original index.tpl file and then check which differences are in the original and your version?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply