TinyPortal

Development => Support => Installation => Topic started by: Resident Geek on May 03, 2007, 03:03:16 PM

Title: Problems with Manual Install Documentation
Post by: Resident Geek on May 03, 2007, 03:03:16 PM
OK, so I have tried to install TP .983 and I have run into some problems.
I was told to do a manual install and now I am upset.
The instructions for the manual install are incorrect. There are a few typos and such that are messing things up. I've fixed some of the typos that I encountered but here is one that I have yet to figure out:

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in .../Themes/default/index.template.php on line 447

438: template_menu();
439:
440:
441: // The main content should go here.  A table is used because IE 6 just can\'t handle a div.
442: <<<EOD
443: <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
444: EOD;
445:
446: // TinyPortal integrated bars
447:           if($context['TPortal']['leftbar']);
448:           {
449:               <<<EOD <td width="' ,$context['TPortal']['leftbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 4px;padding-right: 1ex;" valign="top">
450:                  <div id="leftbarHeader"', empty($options['collapse_leftbar']) ? '' : ' style="display: none;"', ' style="padding-top: 5px; width: ' ,$context['TPortal']['leftbar_width'], 'px;">EOD;
451:                  TPortal_sidebar('left');


As you can see, I have already done some things to correct some problems. For example:

On line 441, the apostrophe in the commented out section was not escaped and so was giving a parser error.

I don't know why this is, but I am finding this kind of thing over and over again. Any help sorting out this problem, (Or giving me pre-edited, working files) would be great.

Thanx in advance.
Title: Re: Problems with Manual Install Documentation
Post by: G6Cad on May 03, 2007, 03:42:12 PM
Im not sure what you have done to get those typos or errors, i have been installing manually from that code on a lot of sites now and they work just great.

for the error you get, do a bit of search on that very error string you get and you will see that it comes from a bad copy and paste of code.
Title: Re: Problems with Manual Install Documentation
Post by: Resident Geek on May 03, 2007, 05:24:41 PM
That parser error can result from everything from a missplaced ')' to an extra ',' to leaving one of them out.
However, I can't seem to find any of these issues in this code.

That section of code SHOULD be executing but its not. I can't figure out why though.
Maybe a dev can help me out here.

EDIT: Is it possibly because I'm running on a windows based server?
Can this cause these problems? I didn't think that they would.
Title: Re: Problems with Manual Install Documentation
Post by: G6Cad on May 03, 2007, 05:52:04 PM
Windows or linux doesent matter, the script are the same on both.

You are making the edits to the default core theme right ?
Title: Re: Problems with Manual Install Documentation
Post by: Resident Geek on May 03, 2007, 07:30:54 PM
Yes. I am using Visual Studio 2005 as my editor with a FTP client plug-in and PHP interpretation/debugging plug-in.
I can't see the problem anywhere.
Title: Re: Problems with Manual Install Documentation
Post by: G6Cad on May 03, 2007, 07:47:56 PM
try this file instead. Also i asked if you did the edits to the Default Core theme ?

Title: Re: Problems with Manual Install Documentation
Post by: G6Cad on May 03, 2007, 07:49:57 PM
Also, the <<<EOD code bits, what are they ? They are not a part of eather SMF default index.template.php or any TP code
Title: Re: Problems with Manual Install Documentation
Post by: Resident Geek on May 03, 2007, 07:54:01 PM
Yes I did it to the default theme.
For some reason, echo' wasn't wanting to execute the HTML inside of it, so to make sure that there wasn't some funky unescaped character that I missed, I put it inside of <<<EOD EOD;
I discovered that that won't work anyways though. I realized this afterwards and already fixed that with no improvement. I will now try your special file.
Title: Re: Problems with Manual Install Documentation
Post by: Resident Geek on May 03, 2007, 09:34:44 PM
That did it!
Thank you so much G6. You do so much on here.
I really appreciate that.
I'm still very confused as to why it didn't work before though... ???