Page 2 of 2

Can I add new meta lines in overall_header.php

Posted: 31 Oct 2011, 14:44
by Stoker
Please post a link where I can see this change in action.

Can I add new meta lines in overall_header.php

Posted: 31 Oct 2011, 15:13
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

Can I add new meta lines in overall_header.php

Posted: 31 Oct 2011, 15:19
by Stoker
Oops. You last endif needs to be: <!-- ENDIF --> instead of <! ENDIF -->

Can I add new meta lines in overall_header.php

Posted: 31 Oct 2011, 15:24
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.

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

Posted: 31 Oct 2011, 15:44
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 -->" />