http://www.razorbackvideos.com/forum
When u click on Home and when I logout, the default will load.
Any ideas?
What theme have you locked on one or more of your articles, and also, what theme have you set as your own default in your profile ?
Set the theme to your theme for everyone..they can pick one later-on
I'll reset all members themes to default (ApolloBB-TP) and try again.
Template Parse Error
Not relating to TP, just messed something up, was tryna add an external link.
Please fix.
index.template.php - Error starts here, then down!!
<?php
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
// Work out where we currently are.
$current_action = 'home';
if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
$current_action = 'admin';
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum', 'tpadmin')))
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if (isset($_GET['dl']))
$current_action = 'dlmanager';
if (isset($_GET['board']) || isset($_GET['topic']))
$current_action = 'forum';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
// Open up our <div>.
echo'
<div id="bg_nav_links">';
// TinyPortal left button
if($context['TPortal']['leftbar'])
echo '<a href="javascript:void(0);" onclick="shrinkHeaderLeftbar(!current_leftbar); return false;"><img id="upshrinkLeftbar" src="', $settings['images_url'], '/', empty($options['collapse_leftbar']) ? 'collapse.gif' : 'expand.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 0;border:0 none;height:14px" /></a> |';
// Show the [forum] button.
echo '
<a href="', $scripturl, '" ' , $current_action == 'forum' ? 'class="nav_important"' : '' , '>' , $txt[103] , '</a> |';
// Show the [forum] button.
if($settings['TPortal_front_type']!='boardindex')
echo '
<a href="', $scripturl, '?action=forum" ' , $current_action == 'forum' ? 'class="nav_important"' : '' , '>' , $txt['tp-forum'] , '</a> |';
// Show the [help] button.
echo '
<a href="', $scripturl, '?action=help" ' , $current_action == 'help' ? 'class="nav_important"' : '' , '>' , $txt[119] , '</a> |';
// How about the [search] button?
if ($context['allow_search'])
echo '
<a href="', $scripturl, '?action=search" ' , $current_action == 'search' ? 'class="nav_important"' : '' , '>' , $txt[182] , '</a> |';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
// Show the [Arcade] button. echo '<li><a href="', $scripturl, '?action=shop">Shop</a></li>';
<a href="', $scripturl, '?action=admin" ' , $current_action == 'admin' ? 'class="nav_important"' : '' , '>' , $txt[2] , '</a> |';
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<a href="', $scripturl, '?action=profile" ' , $current_action == 'profile' ? 'class="nav_important"' : '' , '>' , $txt[79] , '</a> |';
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '
<a href="', $scripturl, '?action=pm" ' , $current_action == 'pm' ? 'class="nav_important"' : '' , '>' , $txt['pm_short'] , ' ('. $context['user']['unread_messages'] . ')' , '</a> |';
// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar" ' , $current_action == 'calendar' ? 'class="nav_important"' : '' , '>' , $txt['calendar24'] , '</a> |';
// the [member] list button
if ($context['allow_memberlist'])
echo '
<a href="', $scripturl, '?action=mlist" ' , $current_action == 'mlist' ? 'class="nav_important"' : '' , '>' , $txt[331] , '</a> |';
// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '
<a href="', $scripturl, '?action=login" ' , $current_action == 'login' ? 'class="nav_important"' : '' , '>' , $txt[34] , '</a> |';
// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '
<a href="', $scripturl, '?action=register" ' , $current_action == 'register' ? 'class="nav_important"' : '' , '>' , $txt[97] , '</a>';
// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '" ' , $current_action == 'logout' ? 'class="nav_important"' : '' , '>' , $txt[108] , '</a>';
// TinyPortal right button
if($context['TPortal']['rightbar'])
echo ' | <a href="javascript:void(0);" onclick="shrinkHeaderRightbar(!current_rightbar); return false;"><img id="upshrinkRightbar" src="', $settings['images_url'], '/', empty($options['collapse_rightbar']) ? 'collapse.gif' : 'expand.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 0;border:0 none;height:14px;" /></a>';
// Dummy place holder, to end things
echo'
</div>';
}
// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;
// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';
$button_strip[$key] = $buttons[$key];
}
if (empty($button_strip))
return '<td> </td>';
echo '
<td class="', $direction == 'top' ? 'main' : 'main', 'strip_first', '"> </td>
<td class="', $direction == 'top' ? 'main' : 'main', 'strip">', implode(' | ', $button_strip) , '</td>
<td class="', $direction == 'top' ? 'main' : 'main', 'strip_last' , '"> </td>';
}
?>
Replace the file with a new one from the same template your using.
This don't look right:
// Show the [forum] button.
echo '<a href="', $scripturl, '" ' , $current_action == 'forum' ? 'class="nav_important"' : '' , '>' , $txt[103] , '</a> |';
// Show the [forum] button.
if($settings['TPortal_front_type']!='boardindex')
echo '<a href="', $scripturl, '?action=forum" ' , $current_action == 'forum' ? 'class="nav_important"' : '' , '>' , $txt['tp-forum'] , '</a> |';
Should be::
// Show the [home] button.
echo '<a href="', $scripturl, '" ' , $current_action == 'home' ? 'class="nav_important"' : '' , '>' , $txt[103] , '</a> |';
if($settings['TPortal_front_type']!='boardindex')
// Show the [forum] button.
echo '<a href="', $scripturl, '?action=forum" ' , $current_action == 'forum' ? 'class="nav_important"' : '' , '>' , $txt['tp-forum'] , '</a> |';
Thanks for that tip, maybe I have to re-mod them to support my mods! :) Just a button anyway.
ermm . . ..
Regarding the logout and tp (diff. theme) issue,
what else do you think can cause that?
The forum was using an older version of TP.
that version was not uninstalled prior to installing this one.
It really got things messed up!
www.razorbackvideos.com,
I re-installed SMF and TP (1.1x compatible) at www.razorbackvideos.com/forum and pointed it to the old db. ran repair_settings.php and changed path for sources, themes, etc.
and still have the problem!
Check all of your articles that are on the frontpage and set their option to not use the theme that you don't want. Each article can set the whole frontpage to use another theme.
Echo Echo in here :2funny:
Well, you may want to say it so that they understand what you're saying. :2funny: