Topic: Help Please!
Ok heres my problem.....right now iam trying to create a second navigation link called <pun_memblinks>
sort of similar to <pun_navlinks> expect in this navigation bar it only contains basic member navigation such as links to there profiles, messages, there posts, login, logout ect. well you get the point. Heres the code that iam placing at the end of functions.php and im getting the following error
My Error:
Parse error: syntax error, unexpected $end in /home/fatalgam/public_html/fatal-gfx/include/functions.php on line 1117
My Code:
//
// Generate the "navigator" that appears at the top of every page
//
function generate_memblinks()
{
global $pun_config, $lang_common, $pun_user;
// Index and Userlist should always be displayed
if ($pun_user['is_guest'])
{
$info = $lang_common['Not logged in'];
}
else
{
if ($pun_user['g_id'] > PUN_MOD)
{
$links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>';
$links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>';
}
else
{
$links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>';
$links[] = '<li id="navadmin"><a href="admin_index.php">'.$lang_common['Admin'].'</a>';
$links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>';
}
As you can see this code is almost a duplicate of the navlinks generation code....with just some parts edited out.