1 (edited by lie2815 2007-05-10 00:49)

Topic: navmenu

I want to add this to the function generate_navlinks:

                $links[] = '<li id="navadmin"><a href="admin_index.php">'.$lang_common['Admin'].'</a>';
            if ($pun_config['o_chatbox'] == '1')
      $links[] = '<li id="navchat"><a href="#" onClick="toggleChat('modchat');">'.$lang_common['Chat'].'</a>';

But it returns an error message:

Parse error: parse error, unexpected T_STRING in <mysite>/forum/include/functions.php on line 304

I think this is because of the 'modchat' thing. What can I do against that?

FluxBB - v1.4.8

Re: navmenu

Moved to Modifications

Try

if ($pun_config['o_chatbox'] == '1')
                $links[] = '<li id="navchat"><a href="#" onClick="toggleChat(\'modchat\');">'.$lang_common['Chat'].'</a>';
 $links[] = '<li id="navadmin"><a href="admin_index.php">'.$lang_common['Admin'].'</a>';

I think that's what you meant wink

Re: navmenu

Yep, you're right. wink
Just edited it.

FluxBB - v1.4.8

Re: navmenu

love you, smartys big_smile
works...

FluxBB - v1.4.8