Meta Tags »  Show posts from    to     

Icy Phoenix


Old Support Topics - Meta Tags



fab120 [ Mon 16 Apr, 2007 17:16 ]
Post subject: 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. - " />


fracs [ Mon 16 Apr, 2007 17:25 ]
Post subject: Re: Meta Tags
Open language/lang_*/lang_main_settings.php

Bye.


fab120 [ Mon 16 Apr, 2007 18:24 ]
Post subject: Re: Meta Tags
Thanks!


tc1967uk [ Thu 21 Jun, 2007 18:25 ]
Post subject: 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?


Mighty Gorgon [ Wed 27 Jun, 2007 01:36 ]
Post subject: 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:

Code: [Hide] [Select]
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
}
}


tc1967uk [ Wed 27 Jun, 2007 07:20 ]
Post subject: 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?


omarska [ Thu 28 Jun, 2007 09:22 ]
Post subject: 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


tc1967uk [ Fri 29 Jun, 2007 17:04 ]
Post subject: Re: Meta Tags
I understand what Luca's done now. Clever.

Thanks, omarska


omarska [ Fri 29 Jun, 2007 18:30 ]
Post subject: Re: Meta Tags
You're welcome




Powered by Icy Phoenix