View Single Post
  #3 (permalink)  
Old 02-15-2008, 11:46 PM
kidblogger kidblogger is offline
New Pligger
 
Join Date: May 2007
Posts: 27
Thanks: 3
Thanked 1 Time in 1 Post
Here's what I've came up with:

PHP Code:
<?php
// The source code packaged with this file is Free Software, Copyright (C) 2005 by
// Ricardo Galli <gallir at uib dot es>.
// It's licensed under the AFFERO GENERAL PUBLIC LICENSE unless stated otherwise.
// You can get copies of the licenses here:
//         http://www.affero.org/oagpl.html
// AFFERO GENERAL PUBLIC LICENSE is also included in the file called "COPYING".

include_once('Smarty.class.php');
$main_smarty = new Smarty;

include(
'config.php');
include(
mnminclude.'html1.php');
include(
mnminclude.'link.php');
include(
mnminclude.'smartyvariables.php');

// sidebar
$main_smarty do_sidebar($main_smarty);

// breadcrumbs and page title
$navwhere['text1'] = $main_smarty->get_config_vars('PLIGG_Visual_Breadcrumb_About');
$navwhere['link1'] = getmyurl('about'$dblang);
$main_smarty->assign('navbar_where'$navwhere);

// pagename
define('pagename''faq-en'); 
$main_smarty->assign('pagename'pagename);

// show the template
$main_smarty->assign('tpl_center''contact');
$main_smarty->display($the_template '/pligg.tpl');
?>
That works perfectly for my "contact us" page. I can now go to mysite.com/contact.php
Anybody know how can I change the page title?
Reply With Quote