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

Download and support for PhpBB3 Forum SEO
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 21:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark

Can I add new meta lines in overall_header.php

Post by Stoker »

Please post a link where I can see this change in action.
Board rules! No PM support
master412160
BBCoder II
BBCoder II
Posts: 39
Joined: 04 Jun 2011, 12:17

Can I add new meta lines in overall_header.php

Post by master412160 »

Alright here: Board Directory

Error: Parse error: syntax error, unexpected $end in /home/board/public_html/board/includes/template.php(668) : eval()'d code on line 317
Hello please check out my Interview Site, Interviewed You
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 21:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark

Can I add new meta lines in overall_header.php

Post by Stoker »

Oops. You last endif needs to be: <!-- ENDIF --> instead of <! ENDIF -->
Board rules! No PM support
master412160
BBCoder II
BBCoder II
Posts: 39
Joined: 04 Jun 2011, 12:17

Can I add new meta lines in overall_header.php

Post by master412160 »

Silly error I see. It works as a charm now!
http://www.seocentro.com/tools/search-e ... lyzer.html

If you type in the url of the board now it shows keywords and description, it didn't before at first.


Thanks so much for your help Stoker.
Hello please check out my Interview Site, Interviewed You
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 21:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark

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

Post by Stoker »

You can test this out. Its better than the other code:

Code: Select all

<meta name="keywords" content="<!-- IF SCRIPT_NAME == "viewforum" -->{FORUM_SEO_KEY}<!-- ELSEIF SCRIPT_NAME == "index" -->keyword 1, kewyrod 2,<!-- ELSEIF SEO_KEY -->{SEO_KEY}<!-- ENDIF -->" />
<meta name="description" content="<!-- IF SCRIPT_NAME == "viewforum" -->{FORUM_SEO_DESC}<!-- ELSEIF SCRIPT_NAME == "index" -->This is a description for the index.<!-- ELSEIF SEO_DESC -->{SEO_DESC}<!-- ENDIF -->" />
Board rules! No PM support