TinyPortal

Development => Support => Topic started by: Spize on August 24, 2009, 05:33:19 PM

Title: Coding problem with TP
Post by: Spize on August 24, 2009, 05:33:19 PM
When I built a new .php page to expand my website, http://www.massillon.com , everything seems ok but I get these errors...

Notice: Undefined index: leftbar in /homepages/35/d158190849/htdocs/Massillon/Sources/Load.php(1736) : eval()'d code on line 423

Notice: Undefined index: rightbar in /homepages/35/d158190849/htdocs/Massillon/Sources/Load.php(1736) : eval()'d code on line 444

Notice: Undefined index: centerbar in /homepages/35/d158190849/htdocs/Massillon/Sources/Load.php(1736) : eval()'d code on line 433

here's a demo

http://www.massillon.com/template.php

Any idea how to fix this?
Title: Re: Coding problem with TP
Post by: IchBin on August 24, 2009, 05:44:22 PM
That doesn't tell me anything about what you're doing in your template.php file....

If you create a file outside of SMF/TP, you need to include certain SMF and TP files to get all the functionality from the forum if you are going to use it.

Title: Re: Coding problem with TP
Post by: Spize on August 24, 2009, 05:50:05 PM
Quote from: IchBinâ„¢ on August 24, 2009, 05:44:22 PM
That doesn't tell me anything about what you're doing in your template.php file....

If you create a file outside of SMF/TP, you need to include certain SMF and TP files to get all the functionality from the forum if you are going to use it.



I figured...


<?php 
//Require header.php
require('header.php'); 
require_once(
$sourcedir '/QueryString.php');
require_once(
$sourcedir '/Subs.php');
require_once(
$sourcedir '/Errors.php');
require_once(
$sourcedir '/Load.php');
require_once(
$sourcedir '/Security.php');
       
// TinyPortal include
       
require_once($sourcedir '/TPortal.php');



?>


<br />
<b>
<marquee><font size="10">1 Testing, 2 testing.</font></marquee>
<br /><font size="5">This is Ghetto Fab</font>
</b><br />

<?php 
//Require Footer,php
require('footer.php'); 
?>



I based it on how they said to add a page on the SMF site.
Title: Re: Coding problem with TP
Post by: Spize on August 24, 2009, 07:40:39 PM

<?php
error_reporting
(E_ALL);

// Which Theme are we using?
$ssi_theme 36;
// Layers to be utilized
$ssi_layers = array('main');
// Change "true" to "false" to disable Gzip if not supported on your server
$ssi_gzip true;
//This is the SSI.php file in the Board dir.
require('../../SSI.php');


?>



That is the header file I am using

this is the footer


<?php
//Let's murder SSI for now
ssi_shutdown();
//[n3rve] thinks this should do.
?>



I found another tutorial on this site, so I moved the files...

same problem

http://www.massillon.com/Themes/i-Leather_tp/profile.template.php
Title: Re: Coding problem with TP
Post by: IchBin on August 24, 2009, 10:49:37 PM
Maybe this will help you.
http://www.tinyportal.net/index.php/topic,20069.0.html
Title: Re: Coding problem with TP
Post by: Spize on August 25, 2009, 03:38:38 AM
Quote from: IchBinâ„¢ on August 24, 2009, 10:49:37 PM
Maybe this will help you.
http://www.tinyportal.net/index.php/topic,20069.0.html

That helped a ton (as you can see from the earlier link)

Except I used it a little differently...

I essentially used that code (with my site info inserted) as the header.php file like listed above and eliminated the echo in that code...  that way I can use regular HTML to build my pages in the template.php file and others