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

Recent

Welcome to TinyPortal. Please login or sign up.

May 17, 2024, 12:26:46 PM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,189
  • Total Topics: 21,220
  • Online today: 59
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 55
  • Total: 55

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.

Ken.

#10
I just copied the code below strait from the file, I'm not exactly sure what you want me to remove, everything on line 360 & 361???. (lines 353-364 showing below)

Ps: The code here looks a little different from what the error page code shows... it looks the same on the page, but not in the code box when posted here. EDIT:fixed the code in the other box one page 1

';
// TinyPortal
       }
//  end
echo '


echo '
<table id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style="display: none;"', ' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>';

// Show a random news item? (or you could pick one from news_lines...)
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Ken.

The original error page is still up in my browser, don't know if it will load up for you but here is the url.

http://www.mykimbrell.com/FamilyForum/index.php?theme=1
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

akulion

i dont see an error message

but basically what u have to remove is the extra echo' statement



//  end
echo '


echo ' <---this one



Ken.

New error this time.
I thought that I was being very careful to get this code right when altering the file, but looks like not carefull enough.

Parse error: parse error, unexpected T_STRING in .../Themes/default/index.template.php on line 360

351: </table>';
352:
353: ';
354: // TinyPortal
355:        }
356: //  end
357: echo '
358:
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']))
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

IchBin


Ken.

OK, thanks...
Did that one and got an error on line 614 this time.
...is it talking about the 'echo' at the start of the code on line 614?

Parse error: parse error, unexpected T_ECHO in .../Themes/default/index.template.php on line 614

605: <td class="maintab_' , $first , '"> </td>';
606:
607: // Show the [home] button.
608: echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
609: <td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
610: <a href="', $scripturl, '">' , $txt[103] , '</a>
611: </td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
612: f($settings['TPortal_front_type']!='boardindex')
613: // Show the [forum] button.
614: echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '615: <td valign="top" class="maintab_' , $current_action=='forum' ? 'active_back' : 'back' , '">
616: <a href="', $scripturl, '?action=forum">FORUM</a>
617: </td>' , $current_action=='forum' ? '<td class="maintab_active_last"> </td>' : '';
618:
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Ken.

#16
In the code below take a look at "f($settings['TPortal_front_type']!='boardindex')"
It appears on line 612:
Should there be an 'i' before the 'f' to make it say 'if'?

EDIT: OK, so the 'i' was added in and the forum was changed over to this modified index.template file... then after doing a refresh all seem to be OK with everything working as expected.
The only difference I've found so far is that there is now a Home button & a Forum button. Both buttons take you to the front of the forum itself. When trying to install TP the same error message still comes up... "10. Execute Modification ./Themes/default/index.template.php Test failed"


// 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>' : '';
f($settings['TPortal_front_type']!='boardindex')
// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=forum">FORUM</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_last"> </td>' : '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

alan s

yes it should be

if($settings['TPortal_front_type']!='boardindex')

because as far as i know the "f" command doest exist in php lol.

Ken.

#18

Quote from: Alan S on September 16, 2006, 11:57:30 AM
yes it should be

if($settings['TPortal_front_type']!='boardindex')

because as far as i know the "f" command doest exist in php lol.

Thanks Alan, thats what I thought! :)
See the edit to my post above for details on whats happening now.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Ken.

Could any of the other mods that are installed be in conflict with the TP install process???

Mod Name Version 
1. Users Online Today Mod 1.3.1
2. Who Voted What? 1.1
3. SMF Arcade 1.3.0-MOD-E1.3
4. Googlebot & Spiders Mod 2.0.0
5. Karma Description Mod 1.9.7-2
6. Karma Buttons 1.02
7. LogModAccountEdits 1.6
8. Gallery 2 Integration 1.0beta2
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.