1
wishcraft
Keyword SEO Method for Themes

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
<!-- This is the replace for the meta keywords Makes Unique Keyword Sentence with NO KEYPHRASES A KEY PHRASE IS AN INCORRECT USE OF THE META TAG 'KEYWORDS' -->
<
meta name="keywords" content="<{php}>
<!-- There will be errors in 
$search from the code display in xoops.org -->
$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">

2
heyula
Re: Keyword SEO Method for Themes
  • 2014/1/12 6:43

  • heyula

  • Theme Designer

  • Posts: 560

  • Since: 2008/4/24


Quote:

wishcraft wrote:
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
<!-- This is the replace for the meta keywords Makes Unique Keyword Sentence with NO KEYPHRASES A KEY PHRASE IS AN INCORRECT USE OF THE META TAG 'KEYWORDS' -->
<
meta name="keywords" content="<{php}>
<!-- There will be errors in 
$search from the code display in xoops.org -->
$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">


Thank you.

3
Bleekk
Re: Keyword SEO Method for Themes
  • 2014/1/12 10:18

  • Bleekk

  • Theme Designer

  • Posts: 938

  • Since: 2002/12/14


Thank you very much simon.
Can you explain me why apple touch icons are important for SEO?

Here is a interesting article about google keywords.

4
Mamba
Re: Keyword SEO Method for Themes
  • 2014/1/12 14:45

  • Mamba

  • Moderator

  • Posts: 11245

  • Since: 2004/4/23


As we are moving toward XOOPS 2.6.0, we'll need to define a consistent way to incorporate Web Semantics into XOOPS, using things like microdata from schema.org and Facebook's OpenGraph.

We had recently a discussion related to OpenGraph:
https://xoops.org/modules/newbb/viewtopic.php?topic_id=76481

Richard developed a FBComments module where the Open Graph meta tags were automatically added to pages where the module blocks are used:
https://xoops.org/modules/news/article.php?storyid=6418

We'll need, for example, to add the Event microdata to our extCal module, or Product microdata to our eCommerce module Oledrion.

The most critical issue will be that we don't want to have it done by "shooting from the hip" with every module doing it differently, but instead, it has to be done in a consistent way across all modules. So if anybody wants to work on it, please make a proposal here, but don't go and release a module with any of it, because it will cause only problems down the road (hint! hint! )

Few articles to read:

http://searchengineland.com/schema-or ... r-post-hummingbird-172163

http://www.searchenginejournal.com/sc ... mprove-seo-results/58210/

http://www.slideshare.net/MatthewBrow ... open-graph-101-smx-munich

And here is why we should include both:
http://www.volume9inc.com/2013/06/20/ ... open-graph-vs-schema-org/
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Login

Username:
Password:

Lost Password? Register now!

Who's Online

73 user(s) are online (33 user(s) are browsing Support Forums)


Members: 0


Guests: 73


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits