NickxD
User Suspended
Status
offline
Posts
5
Likes
1
Credits
0
LEVEL
0
0 XP
Member suspended from NullForums
So I was wondering with the custom user field way. I do not want members having access to adding there own postbit cover. I want only admins/moderators to have this. How can I go about doing this. I have this coding? do I need to add something else to the coding to block it? I selected in custom fields. User editable and Moderator Editable. When I go into a test account they can still see postbit cover. I don't want them to see this nor have access to it.
I have this code.
I am using this guide.
I have this code.
<xf:if is="{$user.Profile.custom_fields.postbit_cover}">
<div class="postbit_background" style="background-image: url({$user.Profile.custom_fields.FIELD_ID});"></div>
</xf:if>
.postbit_background {
position: absolute;
height: 120px;
width: 170px;
opacity: .40;
}
I am using this guide.
- Create a custom user field. Go to Admin CP > Users > Custom user fields
- Field ID: This can be anything you want i.e. postbit_cover
- Title: This can be anything you want i.e Postbit Cover
- Description: URL of the image. Support types: PNG, JPG, GIF.
- Display location: Personal details
- Field type: Single-line text Box
- General option: User editable, Moderator editable
- Go to Admin CP > Appearance > Templates > Search: message_macros
- Go to Admin CP > Appearance > Templates > Search: extra.less