[Optimal Titles] - Thank you

Support for the phpBB3 SEO mods released in the phpBB3 SEO Toolikt forum.

Moderator: Moderators

[Optimal Titles] - Thank you

Postby BlindDragon » Thu Jan 08, 2009 1:35 pm

I have been looking all over for something like this. Thank you :D

Will this fix "Duplicate title tags" = 60 from google webmaster tools

The other issue I seem to be having is:

"Duplicate meta descriptions" = 85

*I don't know a whole lot about SEO except the basics
User avatar
BlindDragon
 
Posts: 36
Joined: Thu Jan 08, 2009 12:57 pm
Location: Florida

Advertisement

Postby SeO » Thu Jan 08, 2009 1:43 pm

;)

For the meta, you can use our SEO meta tag mod :
http://www.phpbb-seo.com/boards/phpbb3- ... t1308.html

Another thing you may want to have a look at at this stage is our SEO premod :
http://www.phpbb-seo.com/boards/phpbb-s ... t1549.html

demonstrated here :
http://phpbb3.phpbb-seo.net/

;)
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby BlindDragon » Fri Jan 09, 2009 4:24 pm

The titles are the way I want them, but this is the complaint from one of my admins

"This is not a big thing, but it is a change. I keep this site as a tab on my homepage. The tab use to read 'Tech-101' but it now reads 'Index page'. I tried removing the index.php from index.php so that the URL reads just http://www.tech-101.com/ but the tab still only shows 'Index page.' I have 8 tabs opening on the homepage and this makes it a bit hard to ID the site."

Is this something to be concerned with?
User avatar
BlindDragon
 
Posts: 36
Joined: Thu Jan 08, 2009 12:57 pm
Location: Florida

Postby darjana » Sat Jan 10, 2009 7:09 am

It can be done by changing entry in language file.

open, /language/your_language/common.php

Find
Code: Select all
Index page


Replace with
Code: Select all
Tech-101

or whatever you prefer.
darjana
 
Posts: 45
Joined: Fri Feb 01, 2008 10:25 am

Postby BlindDragon » Sat Jan 10, 2009 9:51 pm

That works - thanks a bunch

You guys are great
User avatar
BlindDragon
 
Posts: 36
Joined: Thu Jan 08, 2009 12:57 pm
Location: Florida

Postby BlindDragon » Mon Jan 19, 2009 4:53 pm

Ok, just noticed another snag.

With Meta tags -> a page with no content, such as the main index page

Shows my meta tags as com, tech

and that's it?
User avatar
BlindDragon
 
Posts: 36
Joined: Thu Jan 08, 2009 12:57 pm
Location: Florida

Postby darjana » Tue Jan 20, 2009 11:35 am

If my memory serves me well, you can edit those in includes/functions.php at most below or try reading install instructions.
darjana
 
Posts: 45
Joined: Fri Feb 01, 2008 10:25 am

Postby SeO » Wed Jan 21, 2009 8:40 am

The forum index meta tags are built using the phpBB sitename and site_desc config entries, so you need to set these thinking about this too ;)
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby BlindDragon » Wed Jan 21, 2009 5:24 pm

I ended up setting a few fixed keyword through functions.php, and adjusting it so it only uses 4 letter words or more, and it worked a lot better

I didn't even notice the nice configuration section that you all included in the code.
User avatar
BlindDragon
 
Posts: 36
Joined: Thu Jan 08, 2009 12:57 pm
Location: Florida

Postby Daku » Mon Jan 26, 2009 8:54 pm

how do you hardcore the default values?

$this->meta['meta_keywords_def'] = $config['site_desc'];


If I want to hardcore default keywords, then do I put my keywords in site_desc? b/w the quotes?
Daku
 
Posts: 26
Joined: Sat Oct 25, 2008 8:14 pm

Postby BlindDragon » Mon Jan 26, 2009 10:23 pm

What I did is set a few standard keywords that show on every page in addition to the dynamic keywords that change from page to page, then I set it so that it would exclude any words with 3 letters or less, so every word is 4 letters or more. This means you still get unique keywords on each page but you have the fixed keywords that are the same no matter what page you are on.

For example, one of my pages is a virus and malware removal forum, the keywords show like this:

<meta name="keywords" content="computer, tech, support, help, malware, spyware, viruses, forms, removal, virus, removing" />

computer, tech, support, help <- are on every page because I set them as static. The rest of the words change from page to page.


To do this:

Open:
Code: Select all
includes/functions.php


Find (near the bottom):
Code: Select all
   function make_keywords($text) {
      global $phpbb_root_path;
      static $stop_words = array();
      $keywords = '';
      $num = 0;


Change:
Code: Select all
$keywords = 'your, static, keywords, can, go, here';
$num = the number of letters a word must have more than;


With $num = I put 3 and this means only keywords with 4 letters or more will be used. If you were to change it to 4 then only words with 5 letters or more would be used
User avatar
BlindDragon
 
Posts: 36
Joined: Thu Jan 08, 2009 12:57 pm
Location: Florida

Postby SeO » Tue Jan 27, 2009 3:00 pm

Adding kewords to the $keywords var will work, but to set the limit, you should rather use the config array in the same file :
Code: Select all
   var $mconfig = array('keywordlimit' => 15, 'wordlimit' => 25, 'wordminlen' => 2, 'bbcodestrip' => 'img|url|flash|code', 'ellipsis' => ' ...', 'topic_sql' => true, 'check_ignore' => false, 'bypass_common' => true,
      // Consider adding ", 'p' => 1" if your forum is no indexed yet or if no post urls are to be redirected
      // to add a noindex tag on post urls
      'disallowed' => array('style' => 1, 'hilit' => 1, 'print' => 1, 'sid' => 1),
   );


Option related to this topic are :
Code: Select all
'keywordlimit' => 15, 'wordlimit' => 25, 'wordminlen' => 2,


All options are detailed in the above comment :
Code: Select all
   /**
   * Some config :
   *   => keywordlimit : number of keywords (max) in the keyword tag,
   *   => wordlimit : number of words (max) in the desc tag,
   *   => wordminlen : only words with more than wordminlen letters will be used, default is 2,
   *   => bbcodestrip : | separated list of bbcode to fully delete, tag + content, default is 'img|url|flash',
   *   => ellipsis : ellipsis to use if clipping,
   *   => topic_sql : Do a SQL to build topic meta keywords or just use the meta desc tag,
   *   => check_ignore : Check the search_ignore_words.php list.
   *      Please note :
   *         This will require some more work for the server.
   *         And this is mostly useless if you have re-enabled the search_ignore_words.php list
   *         filtering in includes/search/fulltest_native.php (and of course use fulltest_native index).
   *   => bypass_common : Bypass common words in viewtopic.php.
   *      Set to true by default because the most interesting keywords are as well among the most common.
   *      This of course provides with even better results when fulltest_native is used
   *      and search_ignore_words.php list was re-enabled.
   *   => disallowed : Disallow tag based on GET var used : varname => 1|0, 1 will through a disallow meta tag.
   * Some default values are set bellow in the seo_meta_tags() method
   **/


Then, to answer Daku, you can hard code default right where they are :
Code: Select all
      $this->meta['meta_title_def'] = $config['sitename'];
      $this->meta['meta_desc_def'] = $config['site_desc'];
      $this->meta['meta_keywords_def'] =  $config['site_desc'];
      $this->meta['meta_lang'] =  $config['default_lang'];
      $this->meta['meta_cat'] =  'general';
      $this->meta['meta_robots_def'] =  'index,follow';
      $this->meta['meta_distrib'] =  'global';
      $this->meta['meta_restype'] =  'document';
      $this->meta['meta_copy'] =  $config['sitename'];


Example :
Code: Select all
$this->meta['meta_keywords_def'] = "this is my default decription for page without custom meta";


;)
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby BlindDragon » Tue Jan 27, 2009 3:37 pm

You are right, I forgot I did that as well
User avatar
BlindDragon
 
Posts: 36
Joined: Thu Jan 08, 2009 12:57 pm
Location: Florida

Postby Daku » Tue Jan 27, 2009 7:35 pm

SeO wrote:
Then, to answer Daku, you can hard code default right where they are :
Code: Select all
      $this->meta['meta_title_def'] = $config['sitename'];
      $this->meta['meta_desc_def'] = $config['site_desc'];
      $this->meta['meta_keywords_def'] =  $config['site_desc'];
      $this->meta['meta_lang'] =  $config['default_lang'];
      $this->meta['meta_cat'] =  'general';
      $this->meta['meta_robots_def'] =  'index,follow';
      $this->meta['meta_distrib'] =  'global';
      $this->meta['meta_restype'] =  'document';
      $this->meta['meta_copy'] =  $config['sitename'];


Example :
Code: Select all
$this->meta['meta_keywords_def'] = "this is my default decription for page without custom meta";


;)


This doesnt work for me?

$this->meta['meta_keywords_def'] = 'keyword1, keyword2, keyword3';


That's what I changed in my functions.php and I am trying this for the index page only?

Thanks
Daku
 
Posts: 26
Joined: Sat Oct 25, 2008 8:14 pm

Postby SeO » Tue Jan 27, 2009 8:13 pm

Default value will only be used on page that do not set better values, so for viewtopic, viewforum and index, it's done in the file directly, right before the page_header() call.

The index one is not dynamic, but it's build using your configured sitename and site description, which can be modified in ACP, same for each forum, you can optimize their descriptions knowing that they will be used in the meta tags. Only topics a really dynamic, and build using the first post content.
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm


Return to phpBB SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 6 guests