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!
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.
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?
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.
LOL, ok where is this DOC board at?
Try the header links where it say "DOCS" ;)
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.
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.
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?
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.
Never mind, I reckon this is something that's not going to happen! I have all the other files edited and ready but this one holds the entire bus up, so heck with it.
I just had to keep going before bed.
But, I'm still hooked on that load.php file.
Something in the DOC readme HAS to be wrong.
I have done all the edits correctly and come up with this.
Fatal error: Call to undefined function: tp_loadtheme() in /home/virtual/site17/fst/var/www/html/forum/Sources/Load.php on line 1131
So, what edit in the Doc section for this load.php is incorrect?
Yes, but as it seems that you dont even read my posts im writing to help you im not sure this post will help you eather.
First post i said.
"you need to have TP enabled themes"
Only the Default core theme will be changed by TP, the rest of the themes have to be reinstalled with the TP versions of them
LOL, I am thinking like wise here, Please read my first post. I put the forum on the DEFAULT theme before starting this.
I HAVE installed the MESH TP theme and done exactly as the DOCS have said.
I'm no coder so obviously I don't understand exactly how the code is to be placed "replaced" because it is error spitting every time I do a refresh after rechecking the code.
There has got to be a way to get these PHP files for manual install, my Package mangler is broke obviously.
I have never had a issue with anything having to do with SMF or otherwise until now.
It's not like I'm just rambling threw busting keys and ignoring the world.
I want this to work, but solid advice and or help is whats needed here.
If I remember correctly, I read "in the DOCs" that if you aren't up to tackling this job to ask for help. Well, thats what I'm doing here
I'm not trying to be a smart ass, but when someone sets forth to belittle me it rubs me the wrong way.
Thanks,
Disgruntled
Here are the errors I have it down to now:
Fatal error: Call to undefined function: tportal_version() in /home/virtual/site17/fst/var/www/html/forum/Sources/Load.php(1728) : eval()'d code on line 451
Fatal error: Call to undefined function: tportal_init() in /home/virtual/site17/fst/var/www/html/forum/Sources/Security.php on line 165
Parse error: parse error, unexpected ';', expecting ')' in /home/virtual/site17/fst/var/www/html/forum/Sources/Profile.php on line 145
But who knows what else is lurking error wise.
By the way, here is my forum www.misfitstoyshop.com
Reading your post again, I have to ask this?
Maybe I'm reading to deep into it I don't know.
Are you saying that Every stock theme has to be re-loaded with a TP enabled version?
I only use the Core and Blocs MeshTP theme.
Thanks,
Bob
If you want I can have a look.
PM me admin info and cPanel log-in info.
Done, and thank you for the help!
And the error was like i said wrongly installed TP mod ;)
I've installed Tiny Portal on your site.Now the site is back yours.I havent lifted the maintenance mode.
The problem was the package manager was not making the edits properly so I manual installed it.
Well thanks man! I appreciate it!
My pleasure.
I want to thank you guys for your help, not often do you ask for help on something and it turns out all roses like this!