MyBB Community Forums

Full Version: Would like private buttons- how?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there any way I can get a new box above or below the welcome member templates? I can't seem to get it to show outside the boundaries of the welcome member area.

I want to add links that only members will see and not guests.

Right now I'm building a new site and the board is closed. The attached image shows the 'closed board' box and I would like a box to show there whether it is a table or just a list.

I just don't know enough on how to do this. Any help would be appreciated. Thanks.

[attachment=11398]
Well there are a few ways to do it, but the easiest would be to use the welcomeblock templates.

In your main header template you'd need to replace:
			<div class="panel">
				{$welcomeblock}
			</div>

And replace it with:
				{$welcomeblock}

Then edit all of your welcomeblock_guest and welcomeblock_member templates to include the div start and end tags. EG, welcomeblock guest would become:
			<div class="panel">
<script type="text/javascript">
<!--
	lang.username = "{$lang->login_username}";
	lang.password = "{$lang->login_password}";
	lang.login = "{$lang->login}";
	lang.lost_password = "<div style=\"float: right;\" class=\"welcomebutton\"><a href=\"{$mybb->settings['bburl']}/member.php?action=lostpw\"><span><img src=\"{$theme['imglangdir']}/icons/lostpassword.png\" alt=\"\"/>{$lang->lost_password}<\/span><\/a>";
	lang.register_url = "<a href=\"{$mybb->settings['bburl']}/member.php?action=register\"><span><img src=\"{$theme['imglangdir']}/icons/register.png\" alt=\"\"/>{$lang->welcome_register}<\/span><\/a><\div>";
// -->
</script>
<div id="quick_login" style="height: 25px;"><div style="float: right;" class="welcomebutton"><a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="MyBB.quickLogin(); return false;"><span><img src="{$theme['imglangdir']}/icons/login.png" alt=""/>{$lang->welcome_login}</span></a><a href="{$mybb->settings['bburl']}/member.php?action=register"><span><img src="{$theme['imglangdir']}/icons/register.png" alt=""/>{$lang->welcome_register}</span></a></div>
<div style="padding: 5px;">{$lang->welcome_guest}</div></div>
			</div>

After that, it would be easy to add another div underneath the panel in the welcomeblock_member template.

Tell me if that makes sense.. I'd be glad to do it for $10 too, if this isn't your cup of tea.
Yes sort of thanks!