vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   Custom conversation_userinfo (https://vborg.vbsupport.ru/showthread.php?t=324099)

Kumara87 12-31-2016 02:25 PM

Custom conversation_userinfo
 
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.

PHP Code:

<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

Quote:

Originally Posted by noypiscripter (Post 2580170)
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

Quote:

Originally Posted by noypiscripter (Post 2580226)
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

Quote:

Originally Posted by noypiscripter (Post 2580615)
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.


All times are GMT. The time now is 12:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01065 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete