View Full Version : Image as Username
Mysterious2207
04-09-2009, 03:29 AM
Well ive seen on other vB forums that users have Images as their username. Not sure if its a mod because i cant find it. How can i do this?
Example:
https://vborg.vbsupport.ru/external/2011/07/1.png
Thanks in advance,
Mysterious2207
There's a couple ways to do this. You can either do a template conditional...
<if condition="$post[username] == "InsertUN">
<img src="http://link.to/image" />
<else />
$post[musername]
</if>
Or add a plug-in to do it. You would hook it to postbit_complete... the code should look like this...
if ($this->post["username"] == "Username") {
$this->post["musername"] = "<img src=\"http://link.to/image\">";
}
Obviously if you want more usernames to have it you would keep adding if statements. If you wanted to make it more involved you could add a custom profile field and just do something like...
if ($this->post["fieldXX"] != "") {
$this->post["musername"] = "<img src=\"". $this->post["musername"] ."\">";
}
Obviously replace "XX" with the number of the field you created. You put a URL in there and it will switch their username to that image.
I can't test all this at the moment, but everything should be correct.
merk_aus
04-10-2009, 04:51 AM
Hey mate
Don't know if this will help but am just trying to help
https://vborg.vbsupport.ru/showthread.php?t=198287
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.