[Solved] Can I add new meta lines in overall_header.php

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support
No Avatar
master412160 Offline
BBCoder II
BBCoder II
Posts: 39
Joined: 04 Jun 2011, 12:17
Local time: Sunday 10:10
Last active: -

[Solved] Can I add new meta lines in overall_header.php

Post by master412160 »

When I view source of index:

<meta name="keywords" content="" />
<meta name="description" content="" />

that display, so I was thinking onl for viewtopic and viewforum the meta tags are used.

So is it possible for me to add under the two meta's the same meta's again but fill them up.
Last edited by master412160 on 31 Oct 2011, 13:24, edited 1 time in total.
Hello please check out my Interview Site, Interviewed You
User avatar
Stoker Online
Site Admin
Site Admin
Posts: 4,295
Joined: 12 May 2008, 21:26
Local time: Sunday 12:10
Last active: Online now
Favourite EXT: Forum Goal
Location: Denmark

Can I add new meta lines in overall_header.php

Post by Stoker »

Forum SEO only covers viewforum.php and is displayed when viewing a forum.
~ The greatest achievement in life is to inspire ~
Regards Stoker
No Avatar
master412160 Offline
BBCoder II
BBCoder II
Posts: 39
Joined: 04 Jun 2011, 12:17
Local time: Sunday 10:10
Last active: -

Can I add new meta lines in overall_header.php

Post by master412160 »

I know that very well. But my question is can I just add the meta tag for keywords and description twice in the overall_header.php

Without causing the seo mod not to work, so the meta is useless due being used twice.

So it would look like this:

Code: Select all

<meta name="keywords" content="<!-- IF SCRIPT_NAME == "viewforum" -->{FORUM_SEO_KEY}<!-- ELSEIF SEO_KEY -->{SEO_KEY}<!-- ENDIF -->" />
<meta name="description" content="<!-- IF SCRIPT_NAME == "viewforum" -->{FORUM_SEO_DESC}<!-- ELSEIF SEO_DESC -->{SEO_DESC}<!-- ENDIF -->" />
<meta name="keywords" content="keyword 1, kewyrod 2," />
<meta name="description" content="This is a description for the index." />
Hello please check out my Interview Site, Interviewed You
No Avatar
master412160 Offline
BBCoder II
BBCoder II
Posts: 39
Joined: 04 Jun 2011, 12:17
Local time: Sunday 10:10
Last active: -

Can I add new meta lines in overall_header.php

Post by master412160 »

I was hoping to have got a reply by now?
Hello please check out my Interview Site, Interviewed You
User avatar
Stoker Online
Site Admin
Site Admin
Posts: 4,295
Joined: 12 May 2008, 21:26
Local time: Sunday 12:10
Last active: Online now
Favourite EXT: Forum Goal
Location: Denmark

Can I add new meta lines in overall_header.php

Post by Stoker »

Close. You have to wrap the second instance with: <!-- IF SCRIPT_NAME == "index" --> to make sure its only displayed on index.
~ The greatest achievement in life is to inspire ~
Regards Stoker
No Avatar
master412160 Offline
BBCoder II
BBCoder II
Posts: 39
Joined: 04 Jun 2011, 12:17
Local time: Sunday 10:10
Last active: -

Can I add new meta lines in overall_header.php

Post by master412160 »

Alright.
<!-- IF SCRIPT_NAME == "index" -->
<meta name="keywords" content="keyword 1, kewyrod 2," />
<meta name="description" content="This is a description for the index." />
<! ENDIF -->

like that?
Hello please check out my Interview Site, Interviewed You
User avatar
Stoker Online
Site Admin
Site Admin
Posts: 4,295
Joined: 12 May 2008, 21:26
Local time: Sunday 12:10
Last active: Online now
Favourite EXT: Forum Goal
Location: Denmark

Can I add new meta lines in overall_header.php

Post by Stoker »

exactly :thumb:
~ The greatest achievement in life is to inspire ~
Regards Stoker
No Avatar
master412160 Offline
BBCoder II
BBCoder II
Posts: 39
Joined: 04 Jun 2011, 12:17
Local time: Sunday 10:10
Last active: -

Can I add new meta lines in overall_header.php

Post by master412160 »

Alright now I tried to put that code on some places now, but it doesn't work.

Were to put it?
Hello please check out my Interview Site, Interviewed You
User avatar
Stoker Online
Site Admin
Site Admin
Posts: 4,295
Joined: 12 May 2008, 21:26
Local time: Sunday 12:10
Last active: Online now
Favourite EXT: Forum Goal
Location: Denmark

Can I add new meta lines in overall_header.php

Post by Stoker »

~ The greatest achievement in life is to inspire ~
Regards Stoker
No Avatar
master412160 Offline
BBCoder II
BBCoder II
Posts: 39
Joined: 04 Jun 2011, 12:17
Local time: Sunday 10:10
Last active: -

Can I add new meta lines in overall_header.php

Post by master412160 »

I tried this and it didn't work:

<meta name="keywords" content="<!-- IF SCRIPT_NAME == "viewforum" -->{FORUM_SEO_KEY}<!-- ELSEIF SEO_KEY -->{SEO_KEY}<!-- ENDIF -->" />
<meta name="description" content="<!-- IF SCRIPT_NAME == "viewforum" -->{FORUM_SEO_DESC}<!-- ELSEIF SEO_DESC -->{SEO_DESC}<!-- ENDIF -->" />
<!-- IF SCRIPT_NAME == "index" -->
<meta name="keywords" content="keyword 1, kewyrod 2," />
<meta name="description" content="This is a description for the index." />
<! ENDIF -->
Hello please check out my Interview Site, Interviewed You