Adding site name to topic and forum name

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

Moderator: Moderators

Re: Adding site name to topic and forum name

Postby SeO » Thu Nov 05, 2009 1:47 pm

The issue you're facing should come from your template (overall_header.html), there should be some space added when "User control Panel" is appended.
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Advertisement

Re: Adding site name to topic and forum name

Postby korb » Thu Nov 05, 2009 4:44 pm

This is meta related code from overall_header.html
Code: Select all
{SEO_BASE_HREF}
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<title>{PAGE_TITLE}<!-- IF S_IN_MCP -->{L_MCP} <!-- ELSEIF S_IN_UCP -->{L_UCP}<!-- ENDIF --></title>
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="imagetoolbar" content="no" />
{META_TAG}
{META}


Original phpbb3 code is this
Code: Select all
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

and I used this with good results
Code: Select all
<title>{PAGE_TITLE}  &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP}<!-- ENDIF --></title>


Cheers
User avatar
korb
PR0
PR0
 
Posts: 89
Joined: Thu Aug 21, 2008 2:42 am
Location: Planet 3

Re: Adding site name to topic and forum name

Postby korb » Thu Nov 05, 2009 4:48 pm

but this one is better
Code: Select all
<title><!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP}<!-- ENDIF -->  &bull; {PAGE_TITLE}</title>
User avatar
korb
PR0
PR0
 
Posts: 89
Joined: Thu Aug 21, 2008 2:42 am
Location: Planet 3

Re: Adding site name to topic and forum name

Postby korb » Thu Nov 05, 2009 5:17 pm

no no, this one
Code: Select all
<title><!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP}  &bull; <!-- ENDIF -->{PAGE_TITLE}</title>
User avatar
korb
PR0
PR0
 
Posts: 89
Joined: Thu Aug 21, 2008 2:42 am
Location: Planet 3

Re: Adding site name to topic and forum name

Postby dcz » Sat Nov 07, 2009 3:41 pm

:lol: what a nice self support session ;)
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

Re: Adding site name to topic and forum name

Postby korb » Sat Nov 07, 2009 3:48 pm

:P I am glad I fixed it finally, my main site got PR3 from 0, and my forum decreased to 0 :), but strange a few posts still have pr 1...
User avatar
korb
PR0
PR0
 
Posts: 89
Joined: Thu Aug 21, 2008 2:42 am
Location: Planet 3

Re: Adding site name to topic and forum name

Postby ddatchi » Thu Jan 28, 2010 3:43 am

I have a question about the index page my I've added the sitename at the end. But now the index page is showing the page title like this: domain.com : domain.com

Is there a way to fix this so that the index page just displays as domain.com, instead of domain.com : domain.com

The change I added was in functions.php

Code: Select all
      'PAGE_TITLE'                     => $page_title . ' : ' . $config['sitename'],
ddatchi
 
Posts: 1
Joined: Thu Jan 28, 2010 3:39 am

Re: Adding site name to topic and forum name

Postby jintoppy » Fri Mar 26, 2010 12:58 pm

Hi,

I have got a similar issue. Now, the index page title is domain.com.On the board settings, site name is given as domain.com. However, I want another sentence on the index page. How to change this. But, I can't change the site name to this required sentence, since that would cause lot of issues, you know.

Please help
jintoppy
 
Posts: 9
Joined: Sun Feb 21, 2010 3:48 am

Re: Adding site name to topic and forum name

Postby dcz » Fri Mar 26, 2010 3:47 pm

If you only want to change the index title, you can do it in index.php directly :
Code: Select all
page_header(

to :
Code: Select all
page_header("the title I want");


And now, adding the sitename to the Optimal title mod titles is an option in the USU ACP.

++
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

Re: Adding site name to topic and forum name

Postby jintoppy » Sat Mar 27, 2010 9:28 am

Thank you very much dcz. It woks perfectly. You have been a great help. :) :)

Also, what if I want this customized sentence to be seen on all pages :?: This time also, adding this as site name is not possible.
jintoppy
 
Posts: 9
Joined: Sun Feb 21, 2010 3:48 am

Re: Adding site name to topic and forum name

Postby asylum119 » Sat Sep 25, 2010 2:01 pm

This looks like the place i need to post my question.

Any one know how i would remove the Site Name and replace with Post Title ?

I recently changed themes to bf_vista and it changed how i am indexed in google

At present google shows Site name, Then content below
I want to display Post Title, Then content below (which is what i had before)

Any advice appreciated
asylum119
 
Posts: 4
Joined: Tue Sep 21, 2010 10:48 am

Re: Adding site name to topic and forum name

Postby asylum119 » Sat Sep 25, 2010 2:25 pm

so far i have removed the site name from ACP

Also to get rid of the dot in the title i removed all "&bull;" references from overall_header so now it looks like

<title>{SITENAME}<!-- IF S_IN_MCP -->{L_MCP}<!-- ELSEIF S_IN_UCP -->{L_UCP}<!-- ENDIF -->{PAGE_TITLE}</title>

This gives me the result i am after in the safari tab but I am unsure if this result will apply to google ?

How would i go about doing a test.
asylum119
 
Posts: 4
Joined: Tue Sep 21, 2010 10:48 am

Re: Adding site name to topic and forum name

Postby WorldLife » Sun Dec 26, 2010 7:44 pm

Thanks this helped a lot :)
WorldLife
 
Posts: 13
Joined: Mon Sep 20, 2010 2:44 pm

Re: Adding site name to topic and forum name

Postby dcz » Mon Dec 27, 2010 8:21 am

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

Previous

Return to phpBB SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: MSN NewsBlogs and 5 guests