Code: Select all
<!-- IF SCRIPT_NAME == "index" -->
<!-- These are only shown on the index -->
<meta name="keywords" content=" enter your keywords for your site here" />
<meta name="description"content="Description of Site Here." />
<!-- ELSEIF SCRIPT_NAME == 'viewforum'-->
<meta name="keywords" content="{FORUM_SEO_KEY}" />
<meta name="description" content="{FORUM_SEO_DESC}" />
<!-- ELSEIF SCRIPT_NAME == "viewtopic" -->
<meta name="keywords" content="{TOPIC_TITLE}" />
<meta name="description" content="{TOPIC_TITLE}" />
<!-- ENDIF -->
Ideally I'd like to take the first 160 characters from the first post in a topic and insert them in the description, for viewtopic. The reason for this is Google currently includes usernames, which I don't want to display in the Google search.
If anyone can code this for me, a donation will be given,
or it may be a useful add-on to Forum SEO.
