Okay, I want to know if I can only make an IMAGE appear instead of a username in a postbit.
For example I have created a small transparent image with my username in a unique font. I want to make this image appear where my username normally is for postbit.
I tried to make myself a custom group and change username style to just the <img> tag but it forces you to also include {Username} so the best I can do is add image before or after my username.. Any way to make ONLY image show?
for the
specific group username style you can add
inline style display:none; for the user name & suffix required image code
<span style="color: green; display: none;"><strong><em>{username}</em></strong></span><img src="imageURL" alt="" />
Okay, that worked very well, thank you! Username now shows as image in postbit.
Now, my only issue is this, in my "who's online" list it also shows image. Is there any way to make the image only appear in posts and not in who's online list and member list?
Example, my username is Pelican on my website so I created image with text "Pelican" to use in postbit, but as you can see it shows up in who's online list very large:
Picture:
http://i.imgur.com/zOtxtnl.png
Is there any way I can make it display normal everywhere EXCEPT posts? :-) Thank you!!
You can also do it by specifying {username} as the value for the <img>'s alt attribute.
Thank you Cookie123, that works as well the same way, but still same problem with the member list and Who's Online list <3
revert username style code for the specific user group. for your requirement you can use
template conditionals plugin
in the
postbit templates you can
replace {$post['profilelink']} with code like below
<if $post['uid'] == youruserIDnumber then><img src="imageURL alt="" /> <else> {$post['profilelink']}</if>
if you need profile link for your user image then you can add it like below
<if $post['uid'] == 1 then><a href="{$mybb->settings['bburl']}/member.php?action=profile&uid=1"><img src="imageURL alt="" /></a> <else> {$post['profilelink']}</if>
PERFECT!! I cannot thank you enough .m.!! Cheers my friend!