MyBB Community Forums

Full Version: using welcomeblocks
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,
I have used header_welcomeblock_guest & member to customize the board menus but for some reason if I add the same code to header_welcomeblock_admin (and alter things in that file) mybb does not display the code to anyone with admin status. I was just wondering why
bump Lightbulb
I don't quite understand. You're adding something to the admin welcomeblock but it's not showing up for admins?
(2011-11-24, 04:43 PM)Paul H. Wrote: [ -> ]I don't quite understand. You're adding something to the admin welcomeblock but it's not showing up for admins?

Ok we have 4 templates

  1. header_welcomeblock_guest
  2. header_welcomeblock_member
  3. header_welcomeblock_member_admin
  4. header_welcomeblock_member_moderator

so I would have thought that
code written in (3) would be displayed to admins only
code written in (4) would be displayed to admins and mods
code written in (2) would be displayed to admins, mods and users
code written in (1) would be displayed to admins,mods,users & guests

The problem I have is that any code written in (3) and (4) is not executed at all eg I added
<div class="smalltext">Hello World!</div>
to (3) and no one can see it. the above code is the only code in the template
Are
{$modcplink}{$admincplink}
in header_welcomeblock_member?
(2011-11-24, 07:47 PM)Paul H. Wrote: [ -> ]Are
{$modcplink}{$admincplink}
in header_welcomeblock_member?

Ok that worked but it did not do exactly what I thought it would. so back to the drawing board with my welcomeblock_x code