The
meta_description tag should be only used when the '
system' module is indexed, otherwise it only indexes the description and not the page, also the
keywords should contain keywords in the URL (This is when you are using .htaccess to SEO the URL). And you need to include the apple touch icon's for iOS (iPad, iPhone etc.) when it saves a URL, instead of the desktop having the normal default icon it will have the one you specify.. The following examples should be done, in your theme's like so, this is part of the (
Extreme Theme Framework).
Meta Keyword Framework Example
<meta name="keywords" content="<{php}>
$search = array(' with ', ' and ', ' the ', ' there ', ' their ', ' they're ', ' are ', ' to ', ' when ', ' on ', ' by ', ' you ',' ','.','<','>','"',';',':','}','{','[',']','|','\','/','=','+','-','_',')','(','*','&','^','%','$','#','@','!','~','`');
$minimumwordlen = 3;
// Gets Meta Data
$path = str_replace($search, ',', str_replace(basename($_SERVER['REQUEST_URI']), '', $_SERVER['REQUEST_URI']));
$sitename = htmlspecialchars_decode($this->_tpl_vars['xoops_sitename']);
$slogon = htmlspecialchars_decode($this->_tpl_vars['xoops_slogan']);
$pagetitle = htmlspecialchars_decode($this->_tpl_vars['xoops_pagetitle']);
$keywords = htmlspecialchars_decode($this->_tpl_vars['xoops_meta_keywords']);
$description = htmlspecialchars_decode($this->_tpl_vars['xoops_meta_description']);
$nophrase = str_replace($search, ',', $path.str_replace($search, ',', $sitename).','.str_replace($search, ',', $slogon).','.str_replace($search, ',', $pagetitle).','.str_replace($search, ',', $keywords).','.str_replace($search, ',', $description));
$keywords = array_unique(explode(',', $nophrase));
foreach($keywords as $id => $word) {
if (strlen($word)<$minimumwordlen||is_numeric($word)) {
unset($keywords[$id]);
}
}
echo implode(', ', $keywords);<{/php}>" />
Meta Descriptions Framework Example <{if $xoops_dirname eq 'system'}>
<meta name="description" content="<{$xoops_meta_description}>" />
<{/if}>
Favorite & Apple Touch Icons Framework Example <link rel="shortcut icon" type="image/ico" href="<{$xoops_url}>/favicon.ico" />
<link rel="icon" type="image/png" href="<{$xoops_url}>/icon.png" />
<link rel="apple-touch-icon" href="<{$xoops_url}>/apple-touch-icon-56x56.png">
<link rel="apple-touch-icon" sizes="72x72" href="<{$xoops_url}>/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="<{$xoops_url}>/apple-touch-icon-114x114.png">