MyBB Community Forums

Full Version: help needed to add links
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi i`ve edited my template for the welcome block to changed the look but now i cant get the mod cp and admin cp links on there to only show to mods and admin can some1 please tell me what i need to put in the admin and mod welcome block templates the pic shows where i want them
header_welcomeblock_member_admin:

<a href="{$mybb->settings['bburl']}/{$config['admin_dir']}/index.php">{$lang->welcome_admin}</a>

header_welcomeblock_member_moderator:

<a href="{$mybb->settings['bburl']}/modcp.php">{$lang->welcome_modcp}</a>

header_welcomeblock_member:

<table class="tborder" border="0" cellspacing="0" cellpadding="0" align="center" style="border-top-width:0px">
<tbody><tr align="center">

Your normal code for the UserCP link etc. just add:
{$modcplink} for moderator link
{$admincplink} for admin link
thanks but where do i put the php code
(2012-05-27, 04:34 PM)CRAIG@VM Wrote: [ -> ]thanks but where do i put the php code

What PHP code since its not "really" php code?

You mean this:

Quote:{$modcplink} for moderator link
{$admincplink} for admin link

?

You just add them like you probably added the UcerCP one:

<table class="tborder" border="0" cellspacing="0" cellpadding="0" align="center" style="border-top-width:0px">
<tbody>
<tr align="center">
(user cp etc stuff)
<td (something dont know which class you use here)>{$modcplink}</td>
<td (something dont know which class you use here)>{$admincplink</td>
</tr>
</tbody>
</table>