TinyPortal

Development => Support => Installation => Topic started by: jarooka on June 22, 2011, 12:06:20 AM

Title: Manual Install Question
Post by: jarooka on June 22, 2011, 12:06:20 AM
Hi,

I started to do the Manual Install as there was 1 file (   ./Themes/default/index.template.php) that didn't pass the initial package install test.

No biggie... so I have the file in question saved aside.

Though I am not clear what exactly I am supposed to do now.

File it errored on =    ./Themes/default/index.template.php
(all other files passed)

Installing = TinyPortal1RC1_1.zip
SMF = 1.1.11

I just need a little direction here, this seems like an easy issue to deal with... if I knew what to do exactly.

Thanks,

J
Title: Re: Manual Install Question
Post by: jarooka on June 22, 2011, 01:12:37 AM
...and yes... I did look at the instructions, but am not clear what I am supposed to do in which file. I copied the file to the /install-failed/smf/tp folders and looked at them. Then got lost. :)

I am not a coder guy, so this is all new to me.

Thx

Jas
Title: Re: Manual Install Question
Post by: jarooka on June 22, 2011, 01:56:42 AM
well... while waiting on a response and banging my head on the desk... did the updates from 11 to 12... then 12 to 13... then 13 to 14. All went fine. So I am running 1.1.14 now for SMF.

Still stuck on the Tiny Portal thing.
Title: Re: Manual Install Question
Post by: IchBin on June 22, 2011, 03:27:49 PM
jarooka,

If you look at the manual install it tells you which files you need to edit. For instance, for SMF1.1.14 it says this about the index.template.php file:

Code (Find) Select
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))

Code (Replace With) Select
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum', 'tpadmin')))

Code (Find) Select
$current_action = 'search';

Code (Add After) Select
if (isset($_GET['dl']))
$current_action = 'dlmanager';

if (isset($_GET['board']) || isset($_GET['topic']) || $context['current_action']=='forum')
$current_action = 'forum';

if ($context['current_action']=='tpadmin')
$current_action = 'admin';


Code (Find) Select
// Show the [help] button.

Code (Add Before) Select
if($settings['TPortal_front_type']!='boardindex')
// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=forum">'.$txt['tp-forum'].'</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_last">&nbsp;</td>' : '';


Notice how each section says "find" and then the following sections tells you to either replace, or add before, or add after.

If you follow those instructions, you don't need to know how to code. :) You just need to know how to follow instructions. :) If you get stuck, or have an error, feel free to attach the file you made with the changes you are stuck on.
Title: Re: Manual Install Question
Post by: jarooka on June 23, 2011, 04:42:45 AM
hmm.. cant attach a file. Cant post my code into a block of code tags here.

How do I get you my info, cuz your suggestion crashed my site and I had to put an pre-edited php page back on the server. Not a big deal, but I'm not getting anywhere with this either...

Thanks,
Jarooka
Title: Re: Manual Install Question
Post by: IchBin on June 23, 2011, 06:11:28 AM
Why can't you post code or attach files?

The only reason those code changes would crash your site, is if you didn't put them in your code right, or missed something.

You should always make a backup of any file you plan to edit. This way, if something goes wrong, you simple put the unedited backup you have back into place.
Title: Re: Manual Install Question
Post by: jarooka on June 24, 2011, 02:36:56 AM
says does not allow newbies to post links (so that sucks lol)

and there is no option to add attachments under the +Attachements and Other options for me...where I'm guessing it should be.

*shrug*
Title: Re: Manual Install Question
Post by: ZarPrime on June 24, 2011, 03:06:46 AM
jarooka,

Try it now Bro'.  I think you might have reached the magic number.  If not, LMK and one of us will manually add a few more posts to your profile.

ZarPrime
Title: Re: Manual Install Question
Post by: jarooka on June 24, 2011, 03:14:21 AM

Note: We do not allow the newbies user group to post links.
Please type your link out like this if you get an error about it when posting.
"yourdomain dot com"

:) bump....
Title: Re: Manual Install Question
Post by: jarooka on June 24, 2011, 03:17:25 AM
There.. now I see the option. :) (THANKS!)

attached my original file.

Title: Re: Manual Install Question
Post by: jarooka on June 25, 2011, 07:46:07 PM
Hi... still having trouble with this. Were you able to make sense of the file I attached? I'm not having much luck editing it to get it to work, so the above file is the original.

:(
Title: Re: Manual Install Question
Post by: ZarPrime on June 25, 2011, 09:11:58 PM
jarooka,

Not really.  The text file you attached looks like it might contain the index.template.php file from the custom theme rather from the default SMF theme (?theme=1)

Did you try to install the latest version of Tinyportal when you Forum was set to the default SMF theme?  This is important.  If you didn't do that, please switch your Forum to that theme and try installing the latest TinyPortal again.  If you still get the error that you got earlier, please attach the actual file to your next post rather than a text file that you have created.

Also, while we are at it, could you please answer the following questions ...

Link to my site: http://www.yourdomain.com
SMF version: SMF ver. here
TP version: TP ver. here
Default Forum Language: Your Default Forum Language here
Theme name and version: Theme name here
Browser Name and Version: Browser name/version here
Mods installed: Mods listed here
Related Error messages: Error message here

ZarPrime