ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 4873

Verification Badge for Staff

by NickxD - 01-08-2022 - 06:00 PM
#1
This tutorial will show you a verification badge for staff. Lets begin.

Recently, I coded something for my website that puts verify symbol next to our staff team.

[Image: 19d03737b9990a5844b2f686bd0f728c.png]

https://gyazo.com/19d03737b9990a5844b2f686bd0f728c

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 visited profile's group is 4 or 6 (For me, 4 = Administrator, 6 = Moderators) and if it's, it's adding verification symbol next to username.

Hope that worked. Enjoy if need help just lmk.
Reply

Users browsing: 1 Guest(s)