PDA

View Full Version : Layout CMS Titles


Priya
August 22nd, 2008, 01:04 PM
I bought Marshall's Layout script couple of days back.
I am almost done editing it,but the only thing I can't seem to have a clue is with title tags.
http://www.glitternation.com/myspace-layouts/index.php?id=Bling&page=1

If I use the header that it came with the titles are working fine,but I wanna use my site's header file.when I include my header the layout titles won't show(myspace layouts-type and stuff).

here is whats in my header

<title><?php if(isset($title)) { print $title; } else { print "Glitters,Quotes,Picture Captions,Comments,Layouts,Pixels and More>>Glitternation.com"; } ?></title>
<meta http-equiv="keywords" content="<?php if(isset($keywords)) { print $keywords; } else { print "- "; } ?>" />
<meta http-equiv="description" content="<?php if(isset($description)) { print $description; } else { print "-"} ?>" />



here is it how the cms header now,after my editing:

<?include("/head.php"); ?>
<!--unique-->
<title><?if(defined('title')){echo ucfirst(title);}?></title>
<?if(defined('description')){echo "<meta name=\"description\" content=\"".description."\">\n";}?>
<!--end unique-->


what should I change for it to work ?Please Help,Thanks.

marshall_26
August 22nd, 2008, 01:12 PM
it's because /home/priyasp/public_html/gnation/head.php already has the title tags ;)

place that piece of code in /home/priyasp/public_html/gnation/head.php


or in index.php


find this

if($selected){
define("title", "Myspace Layouts - ".$tags[1].", ".$tags[2].", ".$tags[3].", ".$tags[4].", ".$tags[5]);
define("description", "Myspace Layouts Page ".$_GET['page']." - Viewing ".$tags[1].", ".$tags[2].", ".$tags[3].", ".$tags[4].", ".$tags[5]." Layouts");
}


change it to this

if($selected){
$title = "Myspace Layouts - ".$tags[1].", ".$tags[2].", ".$tags[3].", ".$tags[4].", ".$tags[5];
$description = "Myspace Layouts Page ".$_GET['page']." - Viewing ".$tags[1].", ".$tags[2].", ".$tags[3].", ".$tags[4].", ".$tags[5]." Layouts";
}

Priya
August 22nd, 2008, 01:21 PM
Omg that worked,Thanks so much Marshall :)