Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Using meta tags on posts and not the frontpage

 
Reply to topic    Forum Index » Help View previous topic
View next topic
Using meta tags on posts and not the frontpage
Author Message
x-byte



Joined: 14 Nov 2005
Posts: 170

Post Using meta tags on posts and not the frontpage Reply with quote
I'm trying to make use of the meta tag plugin. The problem is making it work as I want to...

I want the inde.php page to have the standard meta content and description info. Withouth using the meta data plugin. Here's basicly how I want it to work (just a quick concept)
Code:
<?PHP
if ($title or $id{
<meta name="description" content="<?=cn_meta('description'); ?>">
<meta name="keywords" content="<?=cn_meta('keywords'); ?>">

}
else
{
<meta name="description" content="English speaking CuteNews.RU support forum. CuteNews.RU is an easy to install MySQL/Flat file news publishing script written in PHP.">
<meta name="keywords" content="news, publish, cms, blog, rss, cutenews, forum, support, php, mysql, flat, file, txtsql, seo, mod_rewrite, modrewrite">
}
?>


I've tried a couple of solution, but I'm not into this php stuff so It's not working correctly. I hope you understand what I try to do.
Mon Sep 03, 2007 11:44 am View user's profile Send private message Visit poster's website
Guest








Please login to hide the ads.

scottdallas



Joined: 04 May 2006
Posts: 2027
Location: US

Post Reply with quote
Do you load your full story articles and content on index.php? I suppose you could code PHP to tell it if/else which meta info to use.. or you could just use a diff page other than index.php to load your full story and then you won't have any conflicting meta information. They'll be separated.

_________________
www.scodal.com is an example of cnr as a social forum - www.scottdizzle.com is an example of cnr as a personal website to share whatever cool stuff i feel like. i have another, but it's nsfw. pm me Wink
Mon Sep 03, 2007 1:37 pm View user's profile Send private message Visit poster's website AIM Address
Saszoo



Joined: 07 Jun 2006
Posts: 410
Location: Norway

Post Reply with quote
sorry for recommending my own wrighting, but... what the hell
http://english.cutenews.ru/forum/head-first-t1101.html is that what you are looking for?

_________________
My cute.ru site
Mon Sep 03, 2007 4:30 pm View user's profile Send private message Visit poster's website
x-byte



Joined: 14 Nov 2005
Posts: 170

Post Reply with quote
Saszoo wrote:
sorry for recommending my own wrighting, but... what the hell
http://english.cutenews.ru/forum/head-first-t1101.html is that what you are looking for?

Looks like it.. Thanks alot. Gonna try it out later when I have the time Smile
Mon Sep 03, 2007 6:50 pm View user's profile Send private message Visit poster's website
x-byte



Joined: 14 Nov 2005
Posts: 170

Post Reply with quote
I've tried it now. Doesn't seem to make any difference. No tags are showing up if I add some...
Mon Sep 03, 2007 10:26 pm View user's profile Send private message Visit poster's website
Display posts from previous:    
Reply to topic    Forum Index » Help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.