How can I make postbit cover only for admins/moderators?

NickxD

User Suspended

Status

offline

Posts

5

Likes

1

Bits 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.
<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.

  1. Create a custom user field. Go to Admin CP > Users > Custom user fields
  2. Field ID: This can be anything you want i.e. postbit_cover
  3. Title: This can be anything you want i.e Postbit Cover
  4. Description: URL of the image. Support types: PNG, JPG, GIF.
  5. Display location: Personal details
  6. Field type: Single-line text Box
  7. General option: User editable, Moderator editable
  8. Go to Admin CP > Appearance > Templates > Search: message_macros
  9. Go to Admin CP > Appearance > Templates > Search: extra.less
 
Liked by:

NickxD

User Suspended

Status

offline

Posts

5

Likes

1

Bits Credits

0

LEVEL

0

0 XP

Member suspended from NullForums
How can I go about adding this for upgraded users aswell instead of everyone.
 
Liked by:

Latest threads

Forum statistics

Threads
58,393
Messages
89,488
Members
55,291
Latest member
Fortyros
Top Bottom