Special Keywords and Descriptions

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

Moderator: Moderators

Special Keywords and Descriptions

Postby Ghadam » Wed Sep 03, 2008 6:01 am

Hi there,
I have installed phpBB3 Seo Dynamic Meta Tags.
It works very well and is very nice !
Special Thanks to phpbb-seo .

I need some things more.
in overall_header.html , there is a code called "{META_TAGS}" , It will print Keywords, Descriptions , ... of every page together.
I need when I add this code : "{KEYWORDS}" in index body, It prints Keyword of the page and when I do it for "{DESCRIPTIONS}" , It will print the descriptions of the page.
For Example, In "http://www.phpbb-seo.com/boards/" , we have :

{KEYWORDS} = phpBB SEO, Search Engine Optimization Forum, google, yahoo, msn search, solutions

{DESCRIPTIONS} = phpBB SEO Forums : Search Engine Optimization Solutions, google, yahoo, msn search


phpBB has done this for {title} code, when I enter {title} , it prints Title of the page.
Is it possible ?

Regards
Ghadam
 
Posts: 6
Joined: Tue Apr 15, 2008 11:31 am

Advertisement

Postby IPB_Refugee » Wed Sep 03, 2008 12:55 pm

Hi,

try this in index.php instead of the piece of code you added while installing the Seo Dynamic Meta Tags MOD:

Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN - META
$seo_meta->meta['meta_desc'] = "Your own description."; //$seo_meta->meta_filter_txt($config['sitename'] . ': ' .  $config['site_desc']);
$seo_meta->meta['keywords'] = "Your keyword1, your keyword2, your keyword3 etc."; //$seo_meta->make_keywords($seo_meta->meta['meta_desc']);
// www.phpBB-SEO.com SEO TOOLKIT END - META


Regards
Wolfgang
User avatar
IPB_Refugee
PR0
PR0
 
Posts: 82
Joined: Thu Jul 24, 2008 2:18 pm

Postby Ghadam » Wed Sep 03, 2008 1:37 pm

Thanks ! :oops:

But, I want {KEYWORDS} produce keywords of every page dynamically.

{META_TAGS} prints everything together. I want to use Keyword and Description of every page in footer of that page.
Ghadam
 
Posts: 6
Joined: Tue Apr 15, 2008 11:31 am

Postby IPB_Refugee » Wed Sep 03, 2008 1:46 pm

I'm not sure if I understand you correctly.

Do you want to print the description and keywords readable for everyone? E.g.:

Description of this page: xxx
Keywords of this page: yyy

Powered by phpbb 2000, 2002,.....
User avatar
IPB_Refugee
PR0
PR0
 
Posts: 82
Joined: Thu Jul 24, 2008 2:18 pm

Postby Ghadam » Wed Sep 03, 2008 3:04 pm

Yes !
You are right.
But Please do not ask why !
Ghadam
 
Posts: 6
Joined: Tue Apr 15, 2008 11:31 am

Postby IPB_Refugee » Wed Sep 03, 2008 7:06 pm

Okay, try this:

In includes/functions.php FIND:

Code: Select all
      // www.phpBB-SEO.com - META
      'META_TAG' => $seo_meta->build_meta($page_title),


AFTER, ADD:

Code: Select all
      'METADESCRIPTION'   => (defined('METADESCRIPTION')) ? METADESCRIPTION : '',
      'METAKEYWORDS'   => (defined('METAKEYWORDS')) ? METAKEYWORDS : '',


FIND:

Code: Select all
      return sprintf( $this->meta['meta_tpl'],


Please note, that this is an INLINE FIND. The whole line is longer.

BEFORE, ADD:

Code: Select all
      define('METADESCRIPTION', '<p>Description: ' . $this->meta['meta_desc'] . '</p>');
      define('METAKEYWORDS', '<p>Keywords: ' . $this->meta['keywords'] . '</p>');


Please note, that there is some HTML and hard coded language in these two lines. Adapt it to your needs.

Now you can put

Code: Select all
{METADESCRIPTION}


and

Code: Select all
{METAKEYWORDS}


somewhere into your overall_footer.html or a different template file.

Regards
Wolfgang
User avatar
IPB_Refugee
PR0
PR0
 
Posts: 82
Joined: Thu Jul 24, 2008 2:18 pm

Postby Ghadam » Thu Sep 04, 2008 12:52 am

Special Thanks !
It works !
Ghadam
 
Posts: 6
Joined: Tue Apr 15, 2008 11:31 am


Return to phpBB2 SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests