About phpBB SEO Dynamic Meta tags

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

Moderator: Moderators

About phpBB SEO Dynamic Meta tags

Postby Divvy » Fri Jul 18, 2008 12:48 am

Hi mates,

I have installed this mod in my board. But now I have a question...
Since this mod adds new meta in my pages, what should I do with the existing meta in overall_header?

Like:
<meta name="keywords" ...>
<meta name="description" ...>
<title>{PAGE_TITLE}</title>

Should I remove them? The instruction file doesn't mention that, but is weird because if I dont remove, will appear duplicated metas...

P.S. Sorry for my poor english...
Divvy
 
Posts: 44
Joined: Thu Jul 17, 2008 11:49 pm

Advertisement

Postby SeO » Fri Jul 18, 2008 8:49 am

Well of course, if you added some meta, you need to get rid of them before you install the mod.
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Postby Divvy » Fri Jul 18, 2008 10:35 am

Thank you Se0

Btw, <title>{PAGE_TITLE}</title> is the same as <meta name="title" content="...">?
Divvy
 
Posts: 44
Joined: Thu Jul 17, 2008 11:49 pm

Postby SeO » Fri Jul 18, 2008 10:41 am

You are talking about the content not the tag themselves right ?

Well, it's not very important, the meta title is just a recall.
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Postby Divvy » Fri Jul 18, 2008 11:11 am

Thank you!

Last question hehe
I have installed

In instruction file have this to add:
<title>{PAGE_TITLE}</title>

This inst better?
<title>{PAGE_TITLE} - {SITENAME}</title>

Because in the forum sections and in the topics, I will get:
Topic name - Forum name

isn't the forum name important to show in the sections and topics as well?
I´m asking this, because I know an other forum that is in the first page of the google (3rd place) with the keyword "sexo" (that I want to) and he have like that...


--------------------------------------------- EDIT:


Btw, If I add this:
<title>{PAGE_TITLE} - {SITENAME}</title>

Everything works ok in forum sections and topics. But in Index got this:
Forum name - Forum name
Is possible to show only:
Forum name

How? Maybe change this line in index.php?
Code: Select all
while ($row = $db->sql_fetchrow($result))
{
   $category_rows[] = $row;
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   if ( $row['cat_id'] == $viewcat ) { $this_cat_title = $row['cat_title']; }
   // www.phpBB-SEO.com SEO TOOLKIT END
}
Divvy
 
Posts: 44
Joined: Thu Jul 17, 2008 11:49 pm

Postby dcz » Fri Jul 18, 2008 12:40 pm

For the duplicate forum name if you want to use it (it's not making a great difference but ...), replace :
Code: Select all
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN - TITLE
   $page_title = ($this_cat_title) ? $this_cat_title : $board_config['sitename'];
   // www.phpBB-SEO.com SEO TOOLKIT END - TITLE


with :

Code: Select all
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN - TITLE
   $page_title = ($this_cat_title) ? $this_cat_title : '';
   // www.phpBB-SEO.com SEO TOOLKIT END - TITLE


in index.php.
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby Divvy » Fri Jul 18, 2008 1:42 pm

Thank you for the help SeO :)

Is almost perfect...
Now I have:
Forum Section - Forum Name
Topic Name - Forum Name


But in index appears:
- Forum Name

How can I remove the "-"?

This is what I have in overall_header.tpl:
<title>{PAGE_TITLE} - {SITENAME}</title>

If I change to (without -):
<title>{PAGE_TITLE} {SITENAME}</title>

My index will appear:
<title> Viciados no Sexo</title> (notice the space before title, will get problems with this in future?)

And the other titles:
Topic name forum name (dont appear the - that I like to appear)



-----------------------


Sorry if I be annoying...
Any suggestions?



--------------------------------------------- EDIT:

Well, I fix the problem in forum sections and topics, with that:

viewforum.php
Code: Select all
$page_title = $forum_row['forum_name'] . $extra_title . ' -';


viewtopic.php
Code: Select all
$page_title = $topic_title . $extra_title . ' -';


I have added the "-"
Now the only problem is the space before the forum name in index.
hmmmm, maybe I found a solution, like that:
<title>{PAGE_TITLE}{SITENAME}</title>

The only problem is in the other pages titles, like search, profile, etc... will get:
Page TitleForum Name (without spaces)

DAMN
Divvy
 
Posts: 44
Joined: Thu Jul 17, 2008 11:49 pm

Postby Divvy » Fri Jul 18, 2008 2:10 pm

What is the best solution or my problem?

Is possible to add a specific title to appears only in index.php?
I think that is the better solution...
Divvy
 
Posts: 44
Joined: Thu Jul 17, 2008 11:49 pm

Postby dcz » Fri Jul 18, 2008 2:27 pm

That's part of why we do not add {SITENAME} in the templates ...

The title is then only determined in the code, before the page_header.php inclusion.

To add your sitename without changing the templates, you could replace :
Code: Select all
   'PAGE_TITLE' => $page_title,


with :

Code: Select all
   'PAGE_TITLE' => $page_title . ' - ' . $board_config['sitename'],


in includes/page_header.php

and then use the regular code for the optimal title mod.
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby Divvy » Fri Jul 18, 2008 2:42 pm

Thank you so much, nice idea :)

The only problem now is in index that appears:
- Forum Name

How can I remove the "-"?
Is possible to add a specific title to appears only in index.php?
For example, I will put "This is a test" and that only appears in index title without appearing the "-".
Divvy
 
Posts: 44
Joined: Thu Jul 17, 2008 11:49 pm

Postby dcz » Fri Jul 18, 2008 2:44 pm

Use :

Code: Select all
   'PAGE_TITLE' => (!empty($page_title) ?  $page_title . ' - '  : '' ) . $board_config['sitename'],


Instead ;)
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby Divvy » Fri Jul 18, 2008 2:49 pm

Where is to add that code? :)
Divvy
 
Posts: 44
Joined: Thu Jul 17, 2008 11:49 pm

Postby dcz » Fri Jul 18, 2008 2:49 pm

Still the same piece of in includes/page_header.php ;)
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby Divvy » Fri Jul 18, 2008 2:53 pm

Opsss sorry hehe :oops:

Yeahhhhhh It works !!!! Now is all working perfectly !!! Thank you so much SeO, YOU'RE THE MAN!
Divvy
 
Posts: 44
Joined: Thu Jul 17, 2008 11:49 pm


Return to phpBB2 SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests