View Full Version : Custom conversation_userinfo
Kumara87
12-31-2016, 02:25 PM
Hi,
I wanted to know that it has to be modified in the following code so that it works in vbulletin 5. What I want is to put an image depending on the group member that the user belongs to.
<vb:if condition="is_member_of($post,94) and is_member_of($post,6)"><img src="images/sadmin.gif">
<vb:elseif condition="is_member_of($post,6)" /><img src="images/admin.gif"><br><vb:else /></vb:if>
<vb:if condition="is_member_of($post,5)"><img src="images/smod.gif"><br></vb:if>
<vb:if condition="is_member_of($post,7)"><img src="images/mod.gif"><br></vb:if>
Thanks,
Kumara
noypiscripter
01-02-2017, 05:49 AM
You don't have to edit the template to do this.
Just go to AdminCP > Usergroups > Usergroup Manager, then Edit Usergroup of the target usergroup, then in the User Title field, specify the appropriate <img> tag. Repeat for other usergroups. Then Make sure in the AdminCP profile of the user, the "Custom User Title" option is set to No.
Nothing has changed for vB5, this has been the same for vB 3, 4 and 5.
Kumara87
01-02-2017, 11:59 PM
You don't have to edit the template to do this.
Just go to AdminCP > Usergroups > Usergroup Manager, then Edit Usergroup of the target usergroup, then in the User Title field, specify the appropriate <img> tag. Repeat for other usergroups. Then Make sure in the AdminCP profile of the user, the "Custom User Title" option is set to No.
Nothing has changed for vB5, this has been the same for vB 3, 4 and 5.
Thanks. I know this function, but it is not useful to me.
noypiscripter
01-03-2017, 09:51 AM
Why is it not useful for you? It accomplishes what you want without modifying any template.
Kumara87
01-09-2017, 12:33 AM
Why is it not useful for you? It accomplishes what you want without modifying any template.
Sorry for not responding sooner. Happy New Year! The User Title I use it to show the range that the user has in a staff. Ej: (designer, programmer, support, etc.)
I want to know that I must modify the code to make it work. Thank you.
noypiscripter
01-09-2017, 05:05 PM
Oh ok, it looks like you also need to put a custom image for users with combination of usergroups. In that case you have to modify the template or better yet, create a template hook mod.
Kumara87
01-09-2017, 11:21 PM
Oh ok, it looks like you also need to put a custom image for users with combination of usergroups. In that case you have to modify the template or better yet, create a template hook mod.
Yes, but I have no idea how to create template hook mod =(. I can't find how to replace the code to validate the usergroup.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.