[archive] phpBB SEO Dynamic Meta Tags

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

Moderator: Moderators

Postby murph » Sat Jun 24, 2006 4:39 pm

Thanks for your fast reply :)

Yes, i appreciate that meta keywords are not what they once were...but still, every little helps and there are still *some* SE's using them out there!

I just find a bunch of one word keywords is less likely to be any good than phrases. I have seen your optimisation to avoid words of less than 3 letters, but i haven't yet found that to be a major problem in my case...(famous last words :))

I reckon even adding the whole title as a keyword phrase would be a step in a better direction...that should be an easy hack for me to do by myself...but turning a 3,4,5,6 or 7 word phrase into 3,4,5,6 or 7 variables in order to output the various sequences is beyond my simple understanding of php! ;)
murph
 
Posts: 14
Joined: Sat Jun 24, 2006 4:09 pm

Advertisement

Postby murph » Sat Jun 24, 2006 4:41 pm

Oh and before i forget, i actually reversed the order of the sitename,cat title and forum name etc, as i have found the first words to be the most important in the meta description:

Code: Select all
$description = $meta_row['topic_title'] . ' :: ' . $meta_row['forum_name'] . ' :: ' . $meta_row['cat_title'] . ' :: ' . $board_config['sitename'];


What do you think? Of course there are 2 other places where that needs to be done also....
murph
 
Posts: 14
Joined: Sat Jun 24, 2006 4:09 pm

Postby dcz » Sat Jun 24, 2006 4:59 pm

Don't forget many search engine will show meta description in their search results, so you also want to be human-friendly here ;)

I personally prefer the natural order (general => less=> general => particular), but, this is something left to every-body's choice, because, there should not be that much of a difference here, as far as showing up in search engine correctly.

You can move code as you want here, and play with the provided info for each case (index, cat, forum & topic), as long as you don't mess up with 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: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby murph » Sat Jun 24, 2006 5:07 pm

dcz wrote:Don't forget many search engine will show meta description in their search results, so you also want to be human-friendly here ;)


That's one of the reasons i did it! ;)

I think i'll go with sticking the topic_name in as one of the keywords (1st) and be done with it! I'm subscribed to this thread, so if you do make any changes i'll be sure to check em out! :D
murph
 
Posts: 14
Joined: Sat Jun 24, 2006 4:09 pm

Postby murph » Wed Jun 28, 2006 12:10 pm

hey me again :)

I want to install a subforums mod, but i have a fully setup site with lots of hacks/mods in place, so i can't do the categories hierarchy version.

I was looking into installing the easy subforums mod:

http://www.phpbbhacks.com/download/5990

Will the dynamica meta tags mod work with this and if so what changes would i have to use?
murph
 
Posts: 14
Joined: Sat Jun 24, 2006 4:09 pm

ntway,

Postby dcz » Wed Jun 28, 2006 12:25 pm

Well I'd say use simple sub forum instead, it's doing it better according to me and has better not to cause problems while upgrading to phpBB3.

Besides, the phpBB SEO mod Rewrite add on for it is already here ;)

Anyway, the meta should work the same in all case, as long as you do not use CH, otherwise, you'd have to use the CH Edition ;)
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby legal » Wed Jul 19, 2006 11:59 am

I just want to say that I think this mod in particular is absolutely genius!
Thank you.
:D :D :D :D :D
legal
 
Posts: 42
Joined: Wed Jul 05, 2006 3:22 pm

Postby dcz » Wed Jul 19, 2006 12:39 pm

You're welcome ;)
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby legal » Thu Jul 20, 2006 11:34 am

Hi there!

I don't expect you to help me do this (unless you really want to :wink:) but this would be my suggestion for a slightly different version of this script.
I think it's a brilliant script - this is just my idea.

I think the way it works in the index page is great and I think the way it works on the topic pages is great too. My suggestion is to change how it works on the list of topics pages.

e.g. Here is one of my pages:
http://www.legalitforums.com/visualfiles-vf3.html

I think it would be better if this could somehow use the words that appear on this page in the title of each topic. Most of my main index page keywords don't appear on this page so they're not really relevant, but words taken from the topics titles would be perfect!

:D
legal
 
Posts: 42
Joined: Wed Jul 05, 2006 3:22 pm

Postby dcz » Thu Jul 20, 2006 11:39 am

Yes I know, but the problem here is you'd need one extra SQL and quite some more code to do this at this point.

Cat and forum titles should contain related keywords though, as well I am thinking of enhancing the listing presentation, something like separating words a bit and why add some random ;)

++
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby lavinya » Mon Jul 24, 2006 10:46 am

thanks for the mod.

I Want to use only description tag code exept page title, keywords tags.

if you help me I will be happy. thanks.
User avatar
lavinya
PR1
PR1
 
Posts: 167
Joined: Mon Jul 24, 2006 9:05 am
Location: Turkey

Postby dcz » Mon Jul 24, 2006 10:52 am

And welcome ;)

So you want to only use the description tag ? nothing else ?

Then, in the mod's code :

Delete :
Code: Select all
        $sql = "SELECT w.word_text
                FROM " . TOPICS_TABLE . " t, " . SEARCH_MATCH_TABLE . " m, " . SEARCH_WORD_TABLE . " w
                WHERE t.topic_first_post_id = m.post_id
                AND m.word_id = w.word_id
                AND t.topic_id = $meta_topic_id LIMIT 20";
        if( ($result = $db->sql_query($sql)) ) {
      $keywords = '';
      while ( $meta_row = $db->sql_fetchrow($result) ) {
         $keywords .= ($keywords == '') ? $meta_row['word_text'] : ',' . $meta_row['word_text'];
      }
        }


Delete :
Code: Select all
$keywords = $board_config['sitename'] . ', ' . $meta_row['cat_title'] . ', ' . $meta_row['forum_name'] . ', FEW_MORE_KEYWORDS_COMA_SEPARATED';


Delete :
Code: Select all
         $keywords = $board_config['sitename'] . ', ' . $meta_row['cat_title'] . ', FEW_MORE_KEYWORDS_COMA_SEPARATED';


Delete :

Code: Select all
   $keywords = 'YOUR_DEFAULT_KEYWORDS_COMA_SEPARATED';


Delete :
Code: Select all
$phpbb_meta  = '<meta name="title" content="' . $page_title .'" />' . "\n";
//$meta_str .= '<meta name="author" content=" YOUR_AUTHOR_INFOS " />' . "\n";
//$meta_str .= '<meta name="copyright" content=" YOUR_COPYRIGHT_INFOS " />' . "\n";
$phpbb_meta .= '<meta name="keywords" content="' . $keywords  .'" />' . "\n";


Delete :

Code: Select all
$phpbb_meta .= '<meta name="category" content="general" />' . "\n";
$phpbb_meta .= '<meta name="robots" content="index, follow" />' . "\n";


And it should be it ;)

++
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby lavinya » Mon Jul 24, 2006 12:03 pm

very thanks dcz. :wink:

dcz big sql query's :( and
google not see keywords tag. sorry bad english.

re thanks mod :)
User avatar
lavinya
PR1
PR1
 
Posts: 167
Joined: Mon Jul 24, 2006 9:05 am
Location: Turkey

Postby dcz » Mon Jul 24, 2006 12:17 pm

Not that big, just one more for topics ;)

But it is true it's not as important as it used to be, but still, it's a bit better to provide infos in meta tags.

++
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby thecoalman » Fri Aug 18, 2006 8:13 am

Excellent mod, just what I was looking for... anyhow I have a suggestion. For viewforum.php couldn't you use the forum description that is viewable under the forum title used in index.php for the meta description?
thecoalman
 

PreviousNext

Return to phpBB2 SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest