Meta Description Tag Per Forum Basis

Tutorials for <a href="http://www.phpbbstyles.com/viewtopic.php?t=356">eXtreme Styles mod</a> for phpBB 2.0.

Moderator: Moderators

Meta Description Tag Per Forum Basis

Postby johnkaboom on Wed Apr 26, 2006 12:47 pm

Open page_header.php
Find
Code: Select all
define('HEADER_INC', TRUE);


Add Below
Code: Select all
$meta_forums = array(1,2,3,4);   
if ( ( in_array ( $forum_id, $meta_forums ) )   
{
$meta_forum = '<meta name="description" content="Your Description Goes Here (For forum id 1,2,3 & 4)" />';
}   
else
{
$meta_forum = '<meta name="description" content="Your Description Goes Here (For other forum id)  " />';
}


Find
Code: Select all
'PAGE_TITLE' => $page_title,


Add Below
Code: Select all
'META_FORUM' => $meta_forum,


Open overall_header.tpl
Find
Code: Select all
</title>


Add below
Code: Select all
{META_FORUM}


Please note to remove if you have <meta name="description" in your overall_header.tpl


Original Topic : http://www.tamilstylez.net/forum/phpbb- ... 14891.html
johnkaboom
Registered User
Registered User
 
Posts: 379
Joined: Sat Jul 02, 2005 3:24 am

Return to eXtreme Styles mod tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron