Welcome to Admin Junkies, Guest — join our community!

Register or log in to explore all our content and services for free on Admin Junkies.

How to add Custom Profile Backgrounds for profiles.

_B_

Addicted member
Joined
May 18, 2020
Messages
934
Credits
0
This is a neat cosmetic feature for your members on your MyBB forums. And what's better is that no plugins are needed
5v8GIlz.png


[hide cost="6"]
1) ACP > Configuration > Custom Profile Fields > Add New Profile Field
For each of the following areas type the following:

Title: Profile Background
Short Description1125x182.
Field Type: Textbox
Minimum Post count, Display Order, Required and Show on Registration: Your choice
Display on Profile and Display on Postbit: No
Viewable by: All groups
Editable by: Your choice of if you want it to be a selective feature.

Save this as your new profile field


8TULRF0.pngbbb-53e4e932e0be

Make a note of this number as you will need this for editing the template.


In between the <head> and </head> tags, paste the following code:

PHP:
<style>
.profbg {
background-image: url({$userfields['fidX']});
}
</style>
Add the following code at the end to style the textbox. If you're quite good at CSS then you can obviously adjust to your own liking if you understand but try not to deviate too much from this:

PHP:
.user-details {
background: transparent;
}

.profbg {
background-size: 100% 100%;
border: 1px solid #555555;
border-radius: 3px;
box-shadow: 0px 0px 10px 5px #888888;
}

.ud-text {
background: rgba(255,255,255,0.7);
padding: 5px;
border: 2px solid #FFFFFF;
border-radius: 6px;
max-width: 350px;
}

.ud-img img {
border: 2px solid #FFFFFF;
border-radius: 6px;
max-width: 350px;
}
Just a few notes:
1) Numerous themes may have slightly different formats of their templates. This just requires you to search around a bit but should not affect the outcome. It may also require you to style it differently which again should not be too hard but is upto you.
[/hide]











 
Advertisement Placeholder
This is a feature that i tend to like on a forum because it gives you the chance in order to try and customize what you are doing on the forum as well so adding this feature is a good idea.
 

Log in or register to unlock full forum benefits!

Log in or register to unlock full forum benefits!

Register

Register on Admin Junkies completely free.

Register now
Log in

If you have an account, please log in

Log in
Who read this thread (Total readers: 0)
No registered users viewing this thread.

New Threads

Would You Rather #9

  • Start a forum in a popular but highly competitive niche

    Votes: 9 27.3%
  • Initiate a forum within a limited-known niche with zero competition

    Votes: 24 72.7%
Win this space by entering the Website of The Month Contest

Theme editor

Theme customizations

Graphic Backgrounds

Granite Backgrounds