Using title description and keyword variables

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

Using title description and keyword variables

Postby ktpl » Mon Jan 12, 2009 10:55 am

Hi,

I would like to use the values of title (PAGE_TITLE), description meta tag and keyword meta tag in the footer of my template. How can I import these values in the footer ?

I am using 3.0.4 premod advanced SEO with prosilver.
ktpl
 
Posts: 22
Joined: Sat Jan 10, 2009 7:51 am

Advertisement

Postby dcz » Tue Jan 13, 2009 10:46 am

These are available in the includes/functions.php page_header() function, after :
Code: Select all
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN  - META
   global $seo_meta;
   $seo_meta->seo_meta_tags();
   // www.phpBB-SEO.com SEO TOOLKIT END  - META


You can use all $seo_meta var after this eg :
$seo_meta->meta['meta_desc']
$seo_meta->meta['keywords']
$seo_meta->meta['meta_title']


You could for example parse these in the template :
Code: Select all
$template->assign_vars( array(
   'META_KEYWORDS' => $seo_meta->meta['keywords'],
   'META_DESC' => $seo_meta->meta['meta_desc''],
   'META_TITLE' => $seo_meta->meta['meta_title''],
));


and use them later in any template (could be overall_footer.html) :
Code: Select all
{META_KEYWORDS}
{META_DESC}
{META_TITLE}


++
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: 21406
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 69 guests