Go Back   Pligg CMS Forum > Pligg Help > General Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-10-2007, 02:57 PM
New Pligger
 
Join Date: Mar 2007
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Fatal Error when adding page...

I'm having a weird problem and the few posts I found for some reason didn't help.

I'm getting the following error although I've created the php page and the corresponding tpl file.

Fatal error: TPL: [in line 0]: syntax error: file 'yget/head.tpl' does not exist in /home/content/p/a/w/pawit/html/class.template.php on line 898

I've changed these few lines, but had no luck. -->
define('pagename', 'shop');
$main_smarty->assign('pagename', pagename);

$main_smarty->assign('tpl_center', $the_template . '/shop');
$main_smarty->display($the_template . '/pligg.tpl');

I'm still getting the error, here is my tpl file....

{config_load file="/libs/lang.conf"}
<html lang="en">
{include file=$tpl_head.".tpl"}
<body>
{include file=$tpl_body.".tpl"}
</body>
</html>


Any suggestions?
Reply With Quote
  #2 (permalink)  
Old 03-10-2007, 03:20 PM
moonomo's Avatar
Constant Pligger
 
Join Date: Jan 2007
Posts: 102
Thanks: 17
Thanked 16 Times in 11 Posts
Try this...

{include file=$the_template."/".$tpl_body.".tpl"}


EDIT. dude my mind just gone mad...try to help later!!
__________________
..::. MoonRank USA .::.

Last edited by moonomo; 03-10-2007 at 03:24 PM..
Reply With Quote
  #3 (permalink)  
Old 03-10-2007, 03:24 PM
savant's Avatar
Constant Pligger
 
Join Date: Apr 2006
Location: UK
Posts: 1,218
Thanks: 64
Thanked 207 Times in 148 Posts
in your shop.tpl just put what code you want as the center of your page.

pligg.tpl will handle that for you.
__________________
Anatomy of the Pligg template Help needed
Reply With Quote
  #4 (permalink)  
Old 03-10-2007, 03:35 PM
moonomo's Avatar
Constant Pligger
 
Join Date: Jan 2007
Posts: 102
Thanks: 17
Thanked 16 Times in 11 Posts
Hi,

I created a function/page which let print out any story...later I will release this to pligg.

I created a 'print' directory in the template folder, puts 'moon_print.tpl' and all template code goes there...in moonprint.php i include it like:

Quote:
// pagename
define('pagename', 'moonprint');
$main_smarty->assign('pagename', pagename);

$main_smarty->display($the_template . '/print/moon_print.tpl');
In moon_print.tpl some sample code:

Quote:
<div id="header">
{include file=$the_template."/print/moon_print_header.tpl"}
</div> {* header end *}
__________________
..::. MoonRank USA .::.

Last edited by moonomo; 03-10-2007 at 03:38 PM..
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Variables Yankidank Wiki Articles 1 08-13-2008 03:59 AM
Adding New Page with Friendly URL manifesto Template Support 2 12-07-2007 12:35 PM
Brain Fart! Adding another page? gossipqueenie General Help 2 10-26-2007 01:16 PM
adding a "tags" input box to the front page? abcdefgary General Help 0 05-23-2007 11:07 PM
Adding the Category Name on each page newuser General Help 2 03-21-2007 03:44 PM


Search Engine Friendly URLs by vBSEO 3.2.0