MyBB Community Forums

Full Version: Profile permissions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, i deactivated access to users profiles ...

[Image: pxZ8q9s.png]

but i want that any user can view his owen profile. Exclamation  thank for help.
You could achieve this with PHP in Templates and Template Conditionals. Re-enable "Can view user profiles" and do something like:

<if $mybb->user['uid'] != $memprofile['uid'] then>
error_no_permission();
</if>
(08-23-2018, 09:59 PM)Wires Wrote: [ -> ]You could achieve this with PHP in Templates and Template Conditionals. Re-enable "Can view user profiles" and do something like:

<if $mybb->user['uid'] != $memprofile['uid'] then>
error_no_permission();
</if>

worked but error_no_permission page not showen! it's showen as text.