MyBB Community Forums

Full Version: If usergroup doesn't allow custom titles, display message instead
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi!
Under a group's permission, you can set whether or not they can set a custom user title. That's awesome.

If they can, they will see this nice box;

[Image: l85JUIv8EwP81pw.png]

Awesome.

If they can NOT set a custom user title, they will see nothing there. The box will simply not be there. Is there a way to leave the box there but replace the text areas with a message such as "You must be in __ group to set a custom title. Click here to join that group." or something along those lines?

Thanks.
  Heart
if a user do not have permission to change the usertitle, then the "usercp_profile_customtitle" template will not be called and that entire part of the page will be hidden to them.. this part of usercp.php controls it: https://github.com/mybb/mybb/blob/featur...#L762-L765

you can either fill in the message you want there for $customtitle or create a new template and call it there...
Thank you. Smile