PDA

View Full Version : Display username as image


nosaes
01-05-2016, 04:20 AM
Hello,

I'm trying to figure out how to display certain members of my forum's usernames as images, similar to staff members of this site (http://www.sythe.org/sythe-org-news/1917948-new-year-staffing-changes-security-program-team.html). I read about a way to do this using replacement variables however that method replaces every instance of the user's name. I only want it to be replaced in the postbit and on their profile.

Is anyone aware of a plugin, hack, or method to go about doing this? Searching Google hasn't proven very helpful for me.

Regards.

MarkFL
01-05-2016, 11:44 AM
I think what I would do is create a "New User Profile Field" that can only be edited via the AdminCP, and then use plugins to do a replacement of the usernames if there is anything in a particular user's field.

Shoot me a PM if you'd like for me to come to your site and see if I can get that working. :)

Elite_360_
01-06-2016, 03:12 PM
you could use this mod but your users use the image they want Picture as Username Everywhere (https://vborg.vbsupport.ru/showthread.php?t=312487)

or do it your self by

this will work on everywhere there is a musername

hook fetch_musername
XX = the userid you would like to have a picture as username



if ($user['userid'] == XX)
{
$user['musername'] = '<img src="image.png" height="18px" border="0" />';
}

nosaes
01-09-2016, 06:55 PM
Thank you for the responses, I'll give your suggestions a try and hopefully be able to get everything working!