|
Page 1 of 1
|
fab120 
Joined: August 2006
Posts: 41
Location:
|
 Meta Tags
How I can modify meta tags in my site?
I have used the function search on this site but i haven't found any usefull topic
Quote: <meta name="keywords" content="phpbb, forum, icy phoenix, icyphoenix, icy, phoenix, php, portal, cms, premodded, community, open source, mods, templates" />
<meta name="description" content="Icy Phoenix is an highly customizable CMS based on phpBB which allows you to create a dynamic site with a lot of features for powering web communities. - " />
|
#1 Mon 16 Apr, 2007 17:16 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
| |
fracs 
Joined: August 2006
Posts: 71
Location:  Cosenza
|
 Re: Meta Tags
Open language/lang_*/lang_main_settings.php
Bye.
____________ Cosenza United::FCC
My Problem Child
|
#2 Mon 16 Apr, 2007 17:25 |
|
fab120 
Joined: August 2006
Posts: 41
Location:
|
 Re: Meta Tags
Thanks!
|
#3 Mon 16 Apr, 2007 18:24 |
|
tc1967uk 
Joined: March 2007
Posts: 129
Location:
|
 Re: Meta Tags
Is there any way to create unique meta tags for individual forums? I guess you could sprinkle the Olympus-type warning section with individual meta tag words, but is there a better way? Also, is there any benefit - would the spiders/bots/crawlers read the warning text?
P.S.
Would it be possible to create a new section at the bottom of the forum page, like the warning area but as somewhere to put meta tags?
|
#4 Thu 21 Jun, 2007 18:25 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: Meta Tags
Meta tags in forums are dynamically created using the forum name and description... but you need to have the f=XXX in the url, otherwise the META TAG is not generated (I've coded this in this way to avoid further SQL while browsing topics).
Try to look at the page_header.php and you'll se how the code is working... especially this part:
elseif ( isset($meta_forum_id) )
{
$sql = "SELECT c.cat_title, f.forum_name
FROM " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c
WHERE c.cat_id = f.cat_id
AND f.forum_id = $meta_forum_id";
if( ($result = $db->sql_query($sql, false, 'forums_cats_')) )
{
if ( $meta_row = $db->sql_fetchrow($result) )
{
/*
$meta_description = $board_config['sitename'] . ' :: ' . $meta_row['cat_title'] . ' :: ' . $meta_row['forum_name'];
$meta_keywords = $board_config['sitename'] . ', ' . $meta_row['cat_title'] . ', ' . $meta_row['forum_name'] . ', ';
$page_title = $board_config['sitename'] . ' :: ' . $meta_row['cat_title'] . ' :: ' . $page_title;
*/
$meta_description = $meta_row['forum_name'];
$meta_keywords = $meta_row['cat_title'] . ', ' . $meta_row['forum_name'] . ', ';
$page_title = $meta_row['cat_title'] . ' :: ' . $page_title;
}
//here we clear $result from ram and cache it
$db->sql_freeresult($result);
//End sql cache opt
}
}
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#5 Wed 27 Jun, 2007 01:36 |
|
tc1967uk 
Joined: March 2007
Posts: 129
Location:
|
 Re: Meta Tags
Sounds clever, Luca
Do I really add f=XXX in the url, or does xxx stand for something? Also, how do I add it to the URL?
|
#6 Wed 27 Jun, 2007 07:20 |
|
omarska 
Joined: March 2007
Posts: 129
Location:
|
 Re: Meta Tags
Hi, tc1967uk
f=XXX stands for Forum ID, and it is always part of the URL while viewing the forum, for it tells viewforum.php which forum to display. XXX is always number, so it is not literally "xxx".
Mighty is suggesting that META for particular forum is generated dynamically, based on that forum ID part of the URL (xxx thingy  )
Hope it's more clear now
|
#7 Thu 28 Jun, 2007 09:22 |
|
tc1967uk 
Joined: March 2007
Posts: 129
Location:
|
 Re: Meta Tags
I understand what Luca's done now. Clever.
Thanks, omarska
|
#8 Fri 29 Jun, 2007 17:04 |
|
omarska 
Joined: March 2007
Posts: 129
Location:
|
 Re: Meta Tags
You're welcome
|
#9 Fri 29 Jun, 2007 18:30 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
| Link this topic |
| URL |
|
| BBCode |
|
| HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|