dynamic meta tags

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

Moderator: Moderators

dynamic meta tags

Postby rocket0612 » Mon Feb 09, 2009 9:08 pm

Hi

I have installed the dynamic meta tags on my forum and they work fine. However, I would like to change my forum index page to have its own meta details and the rest of the forum to use the dynamic meta tags. Is this possible?

Thanks alot
Damian
rocket0612
 
Posts: 2
Joined: Sun Feb 08, 2009 8:15 am

Advertisement

Postby dcz » Tue Feb 10, 2009 5:03 pm

You can simply do it in index.php, where the meta desc and keywords are built using the config entries for site-name and site description (meaning you can as well edit your config in acp to update your meta and index title) :
Code: Select all
$seo_meta->meta['meta_desc'] = $seo_meta->meta_filter_txt($config['sitename'] . ' : ' .  $config['site_desc']);
$seo_meta->meta['keywords'] = $seo_meta->make_keywords($seo_meta->meta['meta_desc']);

can be replaced by :
Code: Select all
$seo_meta->meta['meta_desc'] = "my site description in utf-8;
$seo_meta->meta['keywords'] = "my utf-8 keywords separated by spaces";

You could even use extra $user->lang entries to run multilingual meta ;)

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

Postby rocket0612 » Tue Feb 10, 2009 5:23 pm

Thanks alot, works perfectly 8)
rocket0612
 
Posts: 2
Joined: Sun Feb 08, 2009 8:15 am

Re: dynamic meta tags

Postby 5942marine » Sat Jan 30, 2010 11:46 pm

I tried doing the following as you said, but still on the home page, I'm not getting all the keywords that I actually put in there. Any ideas as to why this is happening?

Code: Select all
$seo_meta->meta['keywords'] = "ixtreme firmware lite touch lt flashing";


But when I view source on the landing page, it's

Code: Select all
ixtreme, touch, lite, lt, net


Edit:

Think i got it figured out, thanks guys, love this shit!
5942marine
PR0
PR0
 
Posts: 69
Joined: Thu Mar 12, 2009 11:04 pm

Re: dynamic meta tags

Postby freepkr » Fri Aug 13, 2010 8:39 pm

I try to do the same thing, but I cant find that code te replace in my index.php file. What happens, I dont have this?

Code: Select all
$seo_meta->meta['meta_desc'] = $seo_meta->meta_filter_txt($config['sitename'] . ' : ' .  $config['site_desc']);
$seo_meta->meta['keywords'] = $seo_meta->make_keywords($seo_meta->meta['meta_desc']);


Instead I have this

Code: Select all
$seo_meta->collect('description', $config['sitename'] . ' : ' .  $config['site_desc']);
$seo_meta->collect('keywords', $config['sitename'] . ' ' . $seo_meta->meta['description']);
freepkr
 
Posts: 23
Joined: Wed Jun 23, 2010 1:26 pm

Re: dynamic meta tags

Postby freepkr » Fri Aug 20, 2010 8:39 pm

Anyone?
freepkr
 
Posts: 23
Joined: Wed Jun 23, 2010 1:26 pm

Re: dynamic meta tags

Postby izzet37 » Fri Aug 20, 2010 9:32 pm

yeah thanks alot works
izzet37
 
Posts: 11
Joined: Tue Aug 17, 2010 8:57 pm

Re: dynamic meta tags

Postby freepkr » Sat Aug 21, 2010 10:40 am

Could somebody read this post and tell me what I should replace and what not ?
freepkr
 
Posts: 23
Joined: Wed Jun 23, 2010 1:26 pm

Re: dynamic meta tags

Postby freepkr » Mon Sep 27, 2010 11:16 am

So again nobody willing to help a member of this community ?
freepkr
 
Posts: 23
Joined: Wed Jun 23, 2010 1:26 pm

Re: dynamic meta tags

Postby HB » Wed Sep 29, 2010 2:36 pm

Sorry, I don't understand your question. Please clarify what you wish to accomplish; I thought you answered your own question a couple posts back.

Code: Select all
$seo_meta->collect('description', $config['sitename'] . ' : ' .  'whatever you want for the site description']);
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1325
Joined: Mon Oct 16, 2006 2:25 am

Re:

Postby freepkr » Sat Oct 02, 2010 7:38 pm

dcz wrote:You can simply do it in index.php, where the meta desc and keywords are built using the config entries for site-name and site description (meaning you can as well edit your config in acp to update your meta and index title) :
Code: Select all
$seo_meta->meta['meta_desc'] = $seo_meta->meta_filter_txt($config['sitename'] . ' : ' .  $config['site_desc']);
$seo_meta->meta['keywords'] = $seo_meta->make_keywords($seo_meta->meta['meta_desc']);

can be replaced by :
Code: Select all
$seo_meta->meta['meta_desc'] = "my site description in utf-8;
$seo_meta->meta['keywords'] = "my utf-8 keywords separated by spaces";

You could even use extra $user->lang entries to run multilingual meta ;)

++


dcz said in a post in this thread what I must replace. Me in a previous post I said I do not have the same code. What I should do in this case ? That was my question :)

freepkr wrote:I try to do the same thing, but I cant find that code te replace in my index.php file. What happens, I dont have this?

Code: Select all
$seo_meta->meta['meta_desc'] = $seo_meta->meta_filter_txt($config['sitename'] . ' : ' .  $config['site_desc']);
$seo_meta->meta['keywords'] = $seo_meta->make_keywords($seo_meta->meta['meta_desc']);


Instead I have this

Code: Select all
$seo_meta->collect('description', $config['sitename'] . ' : ' .  $config['site_desc']);
$seo_meta->collect('keywords', $config['sitename'] . ' ' . $seo_meta->meta['description']);
freepkr
 
Posts: 23
Joined: Wed Jun 23, 2010 1:26 pm

Re: dynamic meta tags

Postby HB » Sat Oct 02, 2010 8:02 pm

Er, I don't understand why this isn't self-evident based on the prior comments:

Code: Select all
$seo_meta->collect('description', 'my site description');
$seo_meta->collect('keywords', 'my keywords separated by spaces']);

If there is some nuance to this question that I am failing to grasp, please clarify.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1325
Joined: Mon Oct 16, 2006 2:25 am


Return to phpBB SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 6 guests