News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Verified Account

Started by Edwar Colt, April 29, 2023, 07:10:44 AM

Previous topic - Next topic

Edwar Colt

Hello

how to insert code for verified account picture next to profile name?

what part of the code can be manually edited for each profile?

Arantor

What *exactly* are you trying to do? The obvious answer would be a custom field of some kind but it's hard to understand what exactly you're trying to do to be able to help you.
Holder of controversial views, all of which my own.


Edwar Colt

Insert a manually verified account badge next to the profile name. With each new profile on the forum, I would place the seal directly in the correct position. Like on twitter, for example. but without major transformations in the platform code.

Edwar Colt

Or on the avatar, as a watermark.

I simulated one by changing the default image to admin category

Arantor

So use the custom field system, placement as 'After Username', permissions to 'users can see this field, admins can edit it'.

Make the field a textbox, make sure you leave it blank for unverified, put anything in (like a verification date maybe) for verified, use the 'Show Enclosed Within Text (Optional)' box to put the actual icon in then just put the <img> tag in the box for the icon.
Holder of controversial views, all of which my own.


Edwar Colt

Well, I created a new member group - Verified Account - and inserted the new icon for that category and removed the newbie title that depended on the number of posts.

it was very easy to change "verified" members to new category. It was not exactly as I imagined, but in practicality it was very good.

The new category inherited the permissions of the regular members with some adaptations to display some more boards

Advertisement: