TinyPortal

Development => Support => Topic started by: OIDanTheManIO on October 19, 2005, 04:14:40 AM

Title: Template Parse Error
Post by: OIDanTheManIO on October 19, 2005, 04:14:40 AM
Bloc, when manually installing your mod, I get a template parse error when loading index.template.php.  It's not telling me exactly where to look so I'm pretty much clueless.  Care to help me out with this please?
Title: Re: Template Parse Error
Post by: IchBin on October 19, 2005, 05:53:40 AM
Make sure you really pay attention when manually editing code. You had about 4 mistakes. You even had a </add after> left over. :)

Careful not to break an echo statement too. Echo works like this:

echo 'everything_goes_in_here_and_ends_like_this';  There was a couple of places where you entered the code right in the middle of an echo statement and didn't fix it. If you use a php editor that showes colors it really makes it easy to find your mistakes. I didn't go over this file with a fine tooth comb, so if it doesn't work let me know.
Title: Re: Template Parse Error
Post by: OIDanTheManIO on October 19, 2005, 12:03:46 PM
Quote from: IchBinâââ,¬Å¾Ã,¢ on October 19, 2005, 05:53:40 AM
Make sure you really pay attention when manually editing code. You had about 4 mistakes. You even had a </add after> left over. :)

Careful not to break an echo statement too. Echo works like this:

echo 'everything_goes_in_here_and_ends_like_this';  There was a couple of places where you entered the code right in the middle of an echo statement and didn't fix it. If you use a php editor that showes colors it really makes it easy to find your mistakes. I didn't go over this file with a fine tooth comb, so if it doesn't work let me know.

Man I feel like such a noob :P.  Now I'm getting this parse error though:

Quoteparse error, unexpected '}'
Title: Re: Template Parse Error
Post by: Ray on October 19, 2005, 12:40:05 PM
Quoteparse error, unexpected '}'

you will find that on one line by itself -- just remove it
Title: Re: Template Parse Error
Post by: IchBin on October 19, 2005, 01:27:57 PM
It should give you the line number about where its at too.
Title: Re: Template Parse Error
Post by: bloc on October 19, 2005, 05:04:31 PM
Hey, you guys are getting really good at this!  ;D
Title: Re: Template Parse Error
Post by: IchBin on October 19, 2005, 05:39:05 PM
shhh!! don't tell anyone. :P
Title: Re: Template Parse Error
Post by: Ray on October 19, 2005, 05:51:41 PM
Yea -- copy and past lol
Title: Re: Template Parse Error
Post by: IchBin on October 19, 2005, 06:48:53 PM
Ray, you just ruined my trade secrets.... :P
Title: Re: Template Parse Error
Post by: OIDanTheManIO on October 19, 2005, 08:53:09 PM
Quote from: IchBinâââ,¬Å¾Ã,¢ on October 19, 2005, 01:27:57 PM
It should give you the line number about where its at too.

No, it doesn't...
Title: Re: Template Parse Error
Post by: IchBin on October 19, 2005, 09:57:33 PM
You know, all along I could have just gave you a copy of my default theme file.  :2funny: but, that would be too easy. Here you go, this should work. You were missing this part.

// TinyPortal
     if($context['TPortal']['showtop']==1)
     {
// TinyPortal end


Hence, the reason why there was an unexpected "}"
Title: Re: Template Parse Error
Post by: OIDanTheManIO on October 19, 2005, 11:08:33 PM
Thank you, IchBinâââ,¬Å¾Ã,¢.  With all that set aside, I'm now getting a blank page when I attempt to go to my forum ???.
Title: Re: Template Parse Error
Post by: IchBin on October 20, 2005, 03:49:00 AM
Check your permissions? That is, if you're on a linux host.
Title: Re: Template Parse Error
Post by: bloc on October 20, 2005, 09:14:26 AM
Still not working at all?
Title: Re: Template Parse Error
Post by: OIDanTheManIO on October 20, 2005, 04:23:46 PM
Quote from: Bloc on October 20, 2005, 09:14:26 AM
Still not working at all?

Nope.
Title: Re: Template Parse Error
Post by: OIDanTheManIO on October 20, 2005, 04:24:07 PM
Quote from: IchBinÃ,â,,¢ on October 20, 2005, 03:49:00 AM
Check your permissions? That is, if you're on a linux host.

Everything is CHMODed to 777...
Title: Re: Template Parse Error
Post by: IchBin on October 20, 2005, 09:20:55 PM
This is the default theme right?
Only thing that I can think of that would make it a blank page is permissions or corrupted files. You check all the files for SMF/TP to make sure they weren't 0 in size and stuff?
Title: Re: Template Parse Error
Post by: OIDanTheManIO on October 20, 2005, 11:02:24 PM
Quote from: IchBinâââ,¬Å¾Ã,¢ on October 20, 2005, 09:20:55 PM
This is the default theme right?
Only thing that I can think of that would make it a blank page is permissions or corrupted files. You check all the files for SMF/TP to make sure they weren't 0 in size and stuff?

No, it's not.  That's fine...I'll revert to the backups.
Title: Re: Template Parse Error
Post by: IchBin on October 20, 2005, 11:46:55 PM
Would you like my default TP index.template file?