MyBB Community Forums

Full Version: custom link
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,

How can i make a custom link on the navigation of theme "Afresh midnight" [The blue one]

Example:
[Image: image.php?id=6AB7_495D65A1&jpg]
You'll have to add some HTML to header_welcomeblock_member, and a new CSS class to global.css. You can copy what is already there, but change the name etc where appropriate.
So waht file am i editing?
No files, as I said, your header_welcomeblock_member template, and your global.css of your theme, both in the ACP.
Thanks half way der

I modifyed it and the code is:
<span class="float_right"><a href="http://runefantasy.org/status" class="status">{$lang->toplinks_status}</a><a href="{$mybb->settings['bburl']}/search.php" class="search">{$lang->toplinks_search}</a><a href="{$mybb->settings['bburl']}/memberlist.php" class="memberlist">{$lang->toplinks_memberlist}</a><a href="{$mybb->settings['bburl']}/calendar.php" class="calendar">{$lang->toplinks_calendar}</a><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help">{$lang->toplinks_help}</a></span>
	<span>{$lang->welcome_back} <a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}" class="logout">{$lang->welcome_logout}</a></span>
</div>
<div class="lower_panel">

The button is there and it goes the the right link how ever it doesnt show "Status page" as link name and icon doesnt show Confused
Unless you added $lang->toplinks_status in the language file, it will be an empty string. And unless you added the appropriate CSS for the icon it won't show either.

There's nothing wrong with doing:
<a href="http://runefantasy.org/status" class="status">Status Page</a>

I can't help you with the CSS since it seems to be from a custom theme.
You could always use the <image> tag instead of CSS for that one link.