Welcome to Discussion Hub

Discussion Hub is a general discussion hub helping you get a little blast from the past. Enjoy coloured usernames, special userbars and a tight-knit community.

MYBB - Background header in each forum

Mastersly

Making themselves at home
Joined
May 31, 2020
Messages
51
Reaction score
15
Points
48
Hubux
$122
Winbux
$0.00
Hello everyone.
In this tutorial I will show you how to add an image in each forum
Like this


KhEQIx3.png
CUGBimz.png


[hide]
STEP 1:GO ACP>>Templates and style>> Themes>>YOUR THEME >> global.css and add this
.forumnameonavatarcs {
text-align: center;
color: #fff;
font-size: 30px;
height: 115px;
margin-top: -151px;
}


STEP 2:GO ACP >> Templates and style>>Templates>>YOUR THEME>>Forum Display Templates>>forumdisplay
Bellow {$header} add this and save
<style>.forumsimagesbg1{opacity: 0.3;height: 230px;background: url("images/forums/{$foruminfo['fid']}.jpg") center center no-repeat #292929;background-size: cover !important;background-repeat: no-repeat;overflow: hidden;}</style>



<table width="100%" height="200" cellspacing="0" cellpadding="25" border="0" class='forumsimagesbg1' ></table>
<div class="forumnameonavatarcs">
{$foruminfo['name']}
</div>

Login in on your ftp and go at images/forums/
If you havent folder "forum" in images just create one and upload banners to that folder

the image files should be named
1.jpg
2.jpg
3.jpg

were 1, 2 and 3 are the forum's id or number.

if images doesn't appear correctly just play with css[/hide]
 

Hungry Ego

Community Partner
Diamond Member
Joined
May 30, 2020
Messages
930
Reaction score
220
Points
73
Location
Canada, The Great White North
Hubux
$2,225
Winbux
$0.00
This is awesome! Thanks for sharing :)
 
Top