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,913
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

Run SMF "repair_settings.php" to fix my problem?

Started by ken.kimbrell, September 14, 2006, 09:54:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alan s

The arcade and gallery could have something to do with it since they edit the index.template.php to add buttons just try replacing the home and forum code with the one below.


// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

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>' : '';

Ken.

Thanks Alan, that took care of the extra button issue, but the same test failed error shows when the TP install is started.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

alan s

Well if it really causes you that much concern you should uninstall all your mods then install tinyportal again and see if you get the same error.

Ken.

#23
My concern is mostly due to my lack of experience and the short time that I’ve been doing the forum software, as has been mentioned elsewhere my â€ËÅ"regular’ site has been up for several years and my abilities there with HTML and the like is OK, but I’ve only been doing .php for a few weeks.
Some folks have said that I should just go ahead with the install in spite of the error message, but others (in this thread) have said that is the wrong thing to do.
Me, well I just don’t want to trash my forum because it’s off to a good start with membership numbers and starting over would not be a good thing. :)
I have considered uninstalling the mods,maybe that would be the way to go.

Edit: One thought that I've had for a while now:
There are plenty of MySQL databases available to me, so if I build a brand new forum from scratch, install TinyPortal and then Gallery2 and bridge it all together can all the data from the 'live' forum be imported into the new one so that it can then replace the current one?
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

IchBin

If you know how to make a backup of your SMF database you can always restore it. Make sure you're using the same version of SMF when you do something like this.

It is not recommended that you continue with the TinyPortal installation when you have failures. You can always try it, but before doing anything make sure you BACKUP your files and database.

Yes, the mods are what is causing the issue. You can either uninstall those mods, or you can manually code in the changes to the index.template.php file by reading the modification how-to in the Documentation board.

Ken.

Thanks IchBin
I'm doing the backups all the while so that hopefully a recovery can be made if the forum goes down from all this.

The index.template file modification has already been done but maybe I need to start over on that and go completly through it again.

I'm going to start out by unstalling the mods one at a time and then if the test failure problem is still there on the TP install I'll do a new index.template file.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Ken.

OK, I started over with the index.template code mod and went through it three times trying to make sure it was right, but when it is set to be active in the forum/themes/default folder and the forum page is refreshed the following error is displayed:

QuoteParse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in .../Themes/default/index.template.php on line 360
And, it shows this code:

351:             </table>
352:     ';
353:     // TinyPortal
354:         }
355:     //  end
356:     echo '
357:
358:     echo '
359:     
360:           <table id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style="display: none;"', ' width="100%" cellpadding="4" cellspacing="0" border="0">
361:               <tr>';
362:
363:    // Show a random news item? (or you could pick one from news_lines...)
364:    if (!empty($settings['enable_news']))

I’ve tried to figure out how to fix it by adding the ',' or ';' into the code, but it’s not coming together, so my â€ËÅ"guesses’ just don’t get it done.  ???

Could someone help me once again???
Thanks, Ken
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

IchBin


Ken.

Quote from: IchBinÃ,â,,¢ on September 18, 2006, 02:50:11 AM
line 356 take out the echo '

Thanks IchBin, I'll do that... but I will have to stop for now, several of my members keep signing in, voting has just started on a couple of polls on a contest we ran for the grandkids and it looks like it will be a busy night. It looks like sometime tomorrow afternoon will be the next try.

Thanks... Ken
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Ken.

OK, did that one, now it throws this error:

Parse error: parse error, unexpected '<' in .../Themes/default/index.template.php on line 359


350: </tr>
351: </table>
352: ';
353:     // TinyPortal
354:        }
355:     //  end
356:
357: echo '
358: ';
359: <table id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style="display: none;"', ' width="100%" cellpadding="4" cellspacing="0" border="0">
360: <tr>';
361:
362: // Show a random news item? (or you could pick one from news_lines...)
363: if (!empty($settings['enable_news']))
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

This website is proudly hosted on Crocweb Cloud Website Hosting.