hmm, I believe that, what I have described in forum causes confusion, I'll change that description now..
First of, if you are working with PHP, in order to detect errors resulting from the code: turn on debug mode in gsconfig.php and enable full error reporting (including notices and messages), if necessary. then, however, you'll be able to recognize and eliminate such errors quickly and successfully.
Try the following, change the code in your template to this:
Then, change this line:
to this:
And here's the code for your navi:
These changes will fix the warnings "Undefined function or variable" when the frontainer is disabled. But! this will not fix your "500 Internal Server Error" and you'll still have to fix this issue.
As a last resort, you can send a PM with credentials ;-) good luck
First of, if you are working with PHP, in order to detect errors resulting from the code: turn on debug mode in gsconfig.php and enable full error reporting (including notices and messages), if necessary. then, however, you'll be able to recognize and eliminate such errors quickly and successfully.
Try the following, change the code in your template to this:
Code:
if(!defined('IN_GS')) die();
if(!isset($_SESSION)){session_start();}
$fnavi = array(
'login' => null,
'signup' => null,
'accounts' => null,
'logout' => null,
'recovery' => null
);
$fcontent = '';
if(function_exists('frontainer_get_content')) {
$fcontent = frontainer_get_content();
$fnavi['login'] = htmlspecialchars(get_section_url(LOGIN_SLUG));
$fnavi['signup'] = htmlspecialchars(get_section_url(SIGNUP_SLUG));
$fnavi['accounts'] = htmlspecialchars(get_section_url(ACCOUNTS_SLUG));
$fnavi['logout'] = htmlspecialchars(get_section_url(LOGOUT_SLUG));
$fnavi['recovery'] = htmlspecialchars(get_section_url(RECOVERY_SLUG));
}
Then, change this line:
Code:
<?php echo $content; ?>
to this:
Code:
<?php echo $fcontent; ?>
And here's the code for your navi:
Code:
<ul class="nav navbar-nav">
<li><a href="<?php get_site_url(); ?>forum/">Forum</a></li>
<?php
if(!isset($_SESSION['loggedin'])) {
echo '<li ';
if($id == $fnavi['login'] || $id == $fnavi['recovery'])
echo 'class="active"';
echo ' ><a href="'.$fnavi['login'].'">Login</a></li>';
echo '<li ';
if($id == $fnavi['signup'])
echo 'class="active"';
echo ' ><a href="'.$fnavi['signup'].'">Sign up</a></li>';
} else {
echo '<li ';
if($id == $fnavi['accounts'])
echo 'class="active"';
echo ' ><a href="'.$fnavi['accounts'].'">Private</a></li>';
echo '<li ';
if($id == $fnavi['logout'])
echo 'class="active"';
echo ' ><a href="'.$fnavi['logout'].'">Logout</a></li>';
}
?>
</ul>
These changes will fix the warnings "Undefined function or variable" when the frontainer is disabled. But! this will not fix your "500 Internal Server Error" and you'll still have to fix this issue.
As a last resort, you can send a PM with credentials ;-) good luck