Solved: 5 Years, 5 Months, 3 Weeks ago If usergroup doesn't allow custom titles, display message instead
#1
Solved: 5 Years, 5 Months, 3 Weeks ago
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
Reply
#2
Solved: 5 Years, 5 Months, 3 Weeks ago
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...
We can't help everyone, but everyone can help someone - Ronald Reagan
Did you know? Your question has already been answered. But you haven't searched it yet.
Don’t  Forget to “Mark as Solved” after the fix
Reply
#3
Solved: 5 Years, 5 Months, 3 Weeks ago
Thank you. Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)