 |
 |
 |
 |
 |
| Author |
Message |
x-byte
Joined: 14 Nov 2005 Posts: 170
|
|
Using meta tags on posts and not the frontpage |
|
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)
 |  | <?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 |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
scottdallas

Joined: 04 May 2006 Posts: 2027 Location: US |
|
|
|
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  |
|
| Mon Sep 03, 2007 1:37 pm |
|
 |
Saszoo

Joined: 07 Jun 2006 Posts: 410 Location: Norway |
|
|
| Mon Sep 03, 2007 4:30 pm |
|
 |
x-byte
Joined: 14 Nov 2005 Posts: 170
|
|
|
|
Looks like it.. Thanks alot. Gonna try it out later when I have the time 
|
|
| Mon Sep 03, 2007 6:50 pm |
|
 |
x-byte
Joined: 14 Nov 2005 Posts: 170
|
|
|
|
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 |
|
 |
|
|
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
|
|
 |
 |
 |
|