Request a Meta tag generator Mod

Discussions about the phpBB3 Forum. How to get the best from this powerful script.
Note that there is no official support for phpBB3 here, a place to share more than to ask for.

Moderator: Moderators


Request a Meta tag generator Mod

Postby megh789 » Thu Mar 12, 2009 7:20 pm

Hello, phpbb-seo meta tag generator is working great. but due to different language board this meta tag generator system does not working perfect for my board.

So i just request to admin to write a meta tag generator mod which will generator the tag only from the topic title.

Thank You.
megh789
 
Posts: 46
Joined: Fri Aug 22, 2008 5:57 pm

Advertisement

Re: Request a Meta tag generator Mod

Postby SeO » Fri Mar 13, 2009 4:14 pm

Just turn off the topic_sql option in includes/functions.php and replace :
Code: Select all
$seo_meta->meta['keywords'] = !empty($m_kewrd) ? $seo_meta->make_keywords($m_kewrd) : $seo_meta->make_keywords($seo_meta->meta['meta_desc']);

with :
Code: Select all
$seo_meta->meta['keywords'] = $seo_meta->make_keywords($row['post_subject']);

or :
Code: Select all
$seo_meta->meta['keywords'] = $seo_meta->make_keywords($row['post_subject'] . ' ' . $topic_data['forum_name']);

or even :
Code: Select all
$seo_meta->meta['keywords'] = $seo_meta->make_keywords($row['post_subject'] . ' ' . $topic_data['forum_name'] . ' ' . $topic_data['forum_desc']);


in viewtopic.php.

You can as well tweak the description in a similar manner modifying this line of code :
Code: Select all
$seo_meta->meta['meta_desc'] = $seo_meta->meta_filter_txt($message);
SeO
Admin
Admin
 
Posts: 5954
Joined: Wed Mar 15, 2006 9:41 pm

Re: Request a Meta tag generator Mod

Postby megh789 » Fri Mar 13, 2009 5:42 pm

great dude. thanks a lot. i will do it now :D

turn off the topic_sql option in includes/functions.php

i could not understand this line. how i can i do that?

I am fully nOOb please help out.
megh789
 
Posts: 46
Joined: Fri Aug 22, 2008 5:57 pm

Re: Request a Meta tag generator Mod

Postby megh789 » Fri Mar 13, 2009 6:44 pm

I replaced the code and working perfect! i just want to know there is anyway to add an extra word for every topic keyword. i want to add the keyword + "download" keyword :D
megh789
 
Posts: 46
Joined: Fri Aug 22, 2008 5:57 pm

Re: Request a Meta tag generator Mod

Postby dcz » Fri Mar 13, 2009 7:44 pm

megh789 wrote:great dude. thanks a lot. i will do it now :D

turn off the topic_sql option in includes/functions.php

i could not understand this line. how i can i do that?

I am fully nOOb please help out.


Just replace :
Code: Select all
'topic_sql' => true,

with :
Code: Select all
'topic_sql' => false,


will save a query that has become useless with the tweak above mentioned.

To add the keyword, just add it in the code :
Code: Select all
$seo_meta->meta['keywords'] = $seo_meta->make_keywords($row['post_subject'] . ' ' . $topic_data['forum_name'] . ' download');


;)
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: 19816
Joined: Fri Apr 28, 2006 9:03 pm

Re: Request a Meta tag generator Mod

Postby megh789 » Fri Mar 13, 2009 10:55 pm

Thanks a lot dude. :D
megh789
 
Posts: 46
Joined: Fri Aug 22, 2008 5:57 pm

Re: Request a Meta tag generator Mod

Postby megh789 » Sun Jun 21, 2009 6:45 pm

any update for phpbb 3.0.5? i could not get this link at includes/functions.php
Code: Select all
    $seo_meta->meta['keywords'] = !empty($m_kewrd) ? $seo_meta->make_keywords($m_kewrd) : $seo_meta->make_keywords($seo_meta->meta['meta_desc']);
megh789
 
Posts: 46
Joined: Fri Aug 22, 2008 5:57 pm

Re: Request a Meta tag generator Mod

Postby dcz » Tue Jun 23, 2009 8:00 am

That's just because you modded it, remember ?
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: 19816
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB Forum

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 25 guests