MyBB Community Forums

Full Version: One more option on toplinks bar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello.
I would like to add one more option [a link to my chat] on toplinks bar, here: /Logout User CP Admin CP Member List Search Help Calendar Home/
I guess I have to edit some file and than some template.
Thanks for help Smile
heloo there,

umm i'm not sure from where did u get that menu, i think u have customized it before.

how ever by default the top links menu has
Search Member List Calendar Help
To add something to them u have to go to
Admin CP > Templates > Modify / Delete > Header

and find
<li><a href="$settings[bburl]/search.php"><img src="$theme[imgdir]/toplinks/search.gif" border="0" alt="$lang->toplinks_search" />$lang->toplinks_search</a></li>
					<li><a href="$settings[bburl]/memberlist.php"><img src="$theme[imgdir]/toplinks/memberlist.gif" border="0" alt="$lang->toplinks_memberlist" />$lang->toplinks_memberlist</a></li>
					<li><a href="$settings[bburl]/calendar.php"><img src="$theme[imgdir]/toplinks/calendar.gif" border="0" alt="$lang->toplinks_calendar" />$lang->toplinks_calendar</a></li>
					<li><a href="$settings[bburl]/misc.php?action=help"><img src="$theme[imgdir]/toplinks/help.gif" border="0" alt="$lang->toplinks_help" />$lang->toplinks_help</a></li>

just below it add

<li><a href="http://ursite.com/urpage.php"><img src="http://ursite.com/theimageuwant.gif" border="0" alt="Chat" />Chat Room</a></li>

In case u have made any modification to that links menu, or u have changed it's location, then u have to refere to the template where u menu in, and just add the code

<a href="http://ursite.com/urpage.php">Chat Room</a>
as i think u have also remove the images, (by looking at the description u gave)

many regards



Thanks for reply, but i can't really find the peace of code you are talking about.
In the place you point me to that's all i can find:

Code:
<script language="JavaScript" type="text/javascript">
var cookieDomain = "$settings[cookiedomain]";
var cookiePath = "$settings[cookiepath]";
</script>
        <a name="top"></a>
        <div id="container">
        <div id="header">
            <a href="$settings[bburl]" class="logo"><img src="$theme[logo]" alt="$settings[bbname]" border="0" /></a>
            <div class="menu">
                $toplinks
                <br class="clear" />
            </div>
        </div>
        <hr class="hidden" />
            <div id="panel">
                <p>
                    $welcomeblock
                </p>
            </div>
            <hr class="hidden" />
            <div id="content">
                $bbclosedwarning
��������������������������������������������������������������������������������������$bbmessage
                $unreadreports
                <navigation>
                <br class="clear" />

I guess it is needed to mention that I am on 1.00 Release Candidate 4 and that is how the untouched toplinks bar looks for me:
[attachment=2088]
Should i look in a different place than?
ok i haven't seen the templates for Release Candidate 4 however by looking at the code, i see that there there should be a template in the template manager toplinks

u should have the links over there, if u find that template , but u dont understand what's in it, please put the code here

bbye
As you can see no images are used in release 4
I would better place the code here:
This is for toplinks option
<ul>
<li><a href="$settings[bburl]/member.php?action=login">$lang->toplinks_login</a></li>
<li><a href="$settings[bburl]/member.php?action=register">$lang->toplinks_register</a></li>
<li><a href="$settings[bburl]/memberlist.php">$lang->toplinks_memberlist</a></li>
<li><a href="$settings[bburl]/search.php">$lang->toplinks_search</a></li>
<li><a href="$settings[bburl]/misc.php?action=help">$lang->toplinks_help</a></li>
<li><a href="$settings[bburl]/calendar.php">$lang->toplinks_calendar</a></li>
<li><a href="$settings[bburl]/index.php">$lang->toplinks_home</a></li>
</ul>
And this is for toplinks_admin[as these 3 option are in there]
<ul>
<li><a href="$settings[bburl]/member.php?action=logout">$lang->toplinks_logout</a></li>
<li><a href="$settings[bburl]/usercp.php">$lang->toplinks_usercp</a></li>
<li><a href="$settings[bburl]/admin/index.php">$lang->toplinks_admincp</a></li>
<li><a href="$settings[bburl]/memberlist.php">$lang->toplinks_memberlist</a></li>
<li><a href="$settings[bburl]/search.php">$lang->toplinks_search</a></li>
<li><a href="$settings[bburl]/misc.php?action=help">$lang->toplinks_help</a></li>
<li><a href="$settings[bburl]/calendar.php">$lang->toplinks_calendar</a></li>
<li><a href="$settings[bburl]/index.php">$lang->toplinks_home</a></li>
</ul>
This is for toplinks_member
<ul>
<li><a href="$settings[bburl]/member.php?action=logout">$lang->toplinks_logout</a></li>
<li><a href="$settings[bburl]/usercp.php">$lang->toplinks_usercp</a></li>
<li><a href="$settings[bburl]/memberlist.php">$lang->toplinks_memberlist</a></li>
<li><a href="$settings[bburl]/search.php">$lang->toplinks_search</a></li>
<li><a href="$settings[bburl]/misc.php?action=help">$lang->toplinks_help</a></li>
<li><a href="$settings[bburl]/calendar.php">$lang->toplinks_calendar</a></li>
<li><a href="$settings[bburl]/index.php">$lang->toplinks_home</a></li>
</ul>
It is strange for me because i cant see anywhere there case sensitive words like Logout, User CP, Admin, CP Member etc.
Thanks again for help.
heloo there

under toplinks_member

just after
<li><a href="$settings[bburl]/index.php">$lang->toplinks_home</a></li>

add

<li><a href="http://ursite.com/urpage.php">Chat Room</a></li>

same for the toplinks and i guess toplinksadmin

umm actually u were wondering were is for example the Logout?? actually $lang->toplinks_logout will display "Logout" coz mybb uses the lang files.

regards
Once again, thanks a lot zaher1988,
I've done everything, and now it looks fine, just as i need.
Cheers!