IP.Board Tutorials

Verification Badge for Staff

Submitted by Yondu, , Thread ID: 252122

Thread Closed
Yondu
Marry Poppins Y'all
Administrators
Level:
34
Reputation:
190
Posts:
1.48K
Likes:
325
Credits:
3.49K
26-09-2022, 11:24 PM
#1
This tutorial will show you a verification badge for staff. Let's begin.

[Image: 19d03737b9990a5844b2f686bd0f728c.png]

In order to make it:

1)Go to/applications/core/modules/front/members/profile.php in your file manager.

2)Add the code under:

Code:
public function execute()
{
/* Load Member */
$this->member = \IPS\Member::load( \IPS\Request::i()->id );

Code:
Code:
if ($this->member->inGroup(4,6)) {
      $this->member->name = $this->member->name . " ?";
    }

Basically, this code is checking if the visited profile's group is 4 or 6 (For me, 4 = Administrator, 6 = Moderators) and if it's, it's adding a verification symbol next to username.

Hope that worked.
[Image: wsUuw16j6oyxLLRnnK.gif]

Users browsing this thread: 1 Guest(s)