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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 468
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 118
  • Total: 118

Rutro

Started by crucify, July 27, 2007, 11:59:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

crucify

I have been using SMF for a long time now and decided to jump on board with TP.
I now have a issue.
I had no errors on install of TP but, now I have this error at the bottom of my forum.
Fatal error: Call to undefined function: tportal_version() in /home/virtual/site17/fst/var/www/html/forum/Sources/Load.php(1726) : eval()'d code on line 392

And the TP admin is found where? I looked high and low in my forum admin for it and don't see anything new.
I have NO mods installed just SMF 1.1.3 and Blocs Mesh_TP theme.

Any help would be appreciated!

G6Cad

Seems like Tp didnt install correctly after all.
Do you have the forum set to use the Default Core theme ? When you install TP it apply to the default theme only so the rest of your themes will not work unless they are made for TP
Also if it behave the same way in default theme, use the manuall install package and read the mod instruction in the doc board.

crucify

Been there done that, I usually don't ask for help unless I am stumped.
here is the offending file, maybe you can repair this?

G6Cad

Just checked the file and the TP strings are not in there.
If you read the documentation "mod instructions" you see what strings to add where in the file.

crucify

LOL, ok where is this DOC board at?

G6Cad

Try the header links where it say "DOCS"  ;)

crucify

#6
DOH! I must be tired and didnt even notice that.

Anywho, I'm already in a pickle.
My sources/load.php does NOT contain any of these lines.
In saying that, I would have no idea where to plug in the new code :o
Sources/Load.php

<search for>
Code:

$settings = $themeData[0];


<add after>
Code:

if (!empty($context['TPortal']['front_type'])){
$settings['TPortal_front_type'] = $context['TPortal']['front_type'];
}

</add after>

<search for>
Code:

// Start the linktree off empty..
$context['linktree'] = array();

</search for>
<replace>
Code:

        // Start the linktree off empty..not quite, have to insert forum
        $context['linktree'] = array(array('url' => $scripturl . '?action=forum', 'name' => 'Forum'));

</replace>

<search for>
Code:

// Build up the linktree.
$context['linktree'] = array_merge(
$context['linktree'],
array(array(
'url' => $scripturl . '#' . $board_info['cat']['id'],
'name' => $board_info['cat']['name']
)),

</search for>
<replace>
Code:

                // Build up the linktree (adding TPortal forum index)
                $context['linktree'] = array_merge(
                        $context['linktree'],
                        array(array(
                                'url' => $scripturl . '?action=forum#' . $board_info['cat']['id'],
                                'name' => $board_info['cat']['name']
                        )),

</replace>

<search for>
Code:

// The theme is the forum's default.
else
$ID_THEME = $modSettings['theme_guests'];

</search for>

<add after>
Code:

// TinyPortal
$newtheme=TP_loadTheme();
if($newtheme!=$ID_THEME && $newtheme>0)
$ID_THEME=$newtheme;
// end TinyPortal


So now what?
I also attached it.

G6Cad

I will not make the edits for you as it against SMF rules to have their files posted here on TP.
And if you look at the mod instructions you see what code to look for, and what code you add before or after.

crucify

I guess your not getting my last post are ya?
The lines I'm to look for in that php file do NOT exist. Therefore how is one to know where to put this new code?

G6Cad

They should be there /Sources/Load.php
If you dont have them it might be that the file is corruped totally.Take a new load.php from the SMF install package and make the edits to that file and then upload it to your forum and replace with the old one.

This website is proudly hosted on Crocweb Cloud Website Hosting.