MyBB Community Forums

Full Version: Move welcomeblock into a different template.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm attempting to use the welcomeblock in a custom template:  I would like to move it to a {$sidebar} template.  I've attempted to input the following:

<div class="thead"><div class="theadcolor">
|--| WELCOME |--|
</div></div>

<div class="trow1"><div style="padding: 5px; width: 200px;">
{$header_welcomeblock_guest}
</div>
</div>

I've also tried to get {$welcomeblock} to work as well - but when I look at my coding on the main site:  It just shows the Divs but nothing with the welcomeblock.

[Image: unknown.png]

I've also put all of them in, as well as trying each one separately.. But I'm not sure what I'm doing wrong..
This is not the way MyBB template system works., You have to keep the {$welcomeblock} as is and try to move them around anywhere in your page using CSS Grid or Flexbox. Thats the easiest way. There are couple of alternatives as well such as using js...
Try using {$GLOBALS['welcomeblock']} in your template. It is a variable in the global scope so it should work, it does for me in the postbit template so unless your theme is different it should work as well.