TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 346
  • Total: 346

Problems with Manual Install Documentation

Started by Resident Geek, May 03, 2007, 03:03:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Resident Geek

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.

G6Cad

#1
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.

Resident Geek

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.

G6Cad

Windows or linux doesent matter, the script are the same on both.

You are making the edits to the default core theme right ?

Resident Geek

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.

G6Cad

try this file instead. Also i asked if you did the edits to the Default Core theme ?


G6Cad

Also, the <<<EOD code bits, what are they ? They are not a part of eather SMF default index.template.php or any TP code

Resident Geek

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.

Resident Geek

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... ???

This website is proudly hosted on Crocweb Cloud Website Hosting.