2016-01-04, 01:28 AM
I'm trying to add in some cool areas for others to use to be able to stylize their profile page to their liking so its not just the normal ol' theme.
BUT for example:
When I add in the user custom field for "Body Background Image" and they do not fill it out with an image, the body background goes to black.
I want for it to instead of going to black if the field is empty, to just not do anything at all (as if the field wasn't even there).
I've seen this done on other MyBB forums so I know it's possible.
Here's my code I'm using for the body background image:
http://ltts.wolvenlore.com/index.php <-- Forum
BUT for example:
When I add in the user custom field for "Body Background Image" and they do not fill it out with an image, the body background goes to black.
I want for it to instead of going to black if the field is empty, to just not do anything at all (as if the field wasn't even there).
I've seen this done on other MyBB forums so I know it's possible.
Here's my code I'm using for the body background image:
<body style="background-image: url('{$userfields['fid19']}');"></body>
http://ltts.wolvenlore.com/index.php <-- Forum