Page 1 of 1 [ 3 posts ] 

Albinoboy
Yellow-bellied Woodpecker
Yellow-bellied Woodpecker

User avatar

Joined: 5 Aug 2010
Age: 31
Gender: Male
Posts: 70
Location: Surrey, England

30 Aug 2010, 8:56 pm

Code:
$page_title=$page;
ucwords($page_title);
str_replace("_", " ", $page_title);
$title=$page_title." | ".$site_name;

Why the ... doesn't this work?

Here's the main file, you may request any other code if you want it:
Code:
/* Load Configs */
require_once("./admin/settings/site.php");
require_once("./admin/settings/file.php");
require_once("./admin/settings/style.php");
/* Load Core */
require_once("./core/getpage.php"); // Runs the GET functions
require_once("./core/posttitle.php"); // Sets the titles < this is the one above
/* Load headers */
require_once("./template/common/header.php");
require_once("./template/".$style_loc."/top.php");
include("./pages/".$page.".".$ext);



kra17
Veteran
Veteran

User avatar

Joined: 14 Feb 2010
Age: 32
Gender: Male
Posts: 594
Location: Sweden

30 Aug 2010, 9:13 pm

Because you're not saving the result.

Code:
$page_title=$page;
$page_title=ucwords($page_title);


_________________
:bigsmurf: :bigsmurf:


Albinoboy
Yellow-bellied Woodpecker
Yellow-bellied Woodpecker

User avatar

Joined: 5 Aug 2010
Age: 31
Gender: Male
Posts: 70
Location: Surrey, England

30 Aug 2010, 9:59 pm

oops, lol, how did I manage to miss that?