vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Permissions question on display (https://vborg.vbsupport.ru/showthread.php?t=217286)

Eruantien 06-27-2009 06:21 PM

Permissions question on display
 
I hope I can adaquately describe what I want to do and any assistance is very much appreicated.

Step 1) Give a specific usergroup a small icon next to their name. This will of course be separate from their avatar. This will be a descriptor for their status on the forums; via their usergroup. It is important to note that this icon will appear for two separate usergroups; A and B respectively. So to the casual user, usergroup A and B will appear the same for all intent and purpose.

Step 2) Give usergroup A the ability to to differentiate between A and B. Usergroup A members will see the usernames of other A members in red versus B which remain in black. Usergroup B is completely unaware of the difference as are the other regular members of the board.

Cryo 06-27-2009 07:10 PM

1. Admin CP -> Usergroups -> (Select Usergroup) -> Username HTML Markup

Simply place...

Code:

<img src="http://url.to/image.png" align="absmiddle">
... in the first field. This will show whatever icon you would like almost everywhere their username appears on the forum.

2. If you only want to do this in postbits you could do something like...

Code:

<if condition="$post[usergroupid] == $bbuserinfo[usergroupid]">
<span style="color: #FF000">$post[musername]</span>
<else />
$post[musername]
</if>

The problem with this is if the marked up username is a different color I believe it will overwrite the span color. You could alternatively use the $post[username] variable, but then you lose the icon... unless you manually edit it in.

Hope this helps!


All times are GMT. The time now is 08:38 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.00921 seconds
  • Memory Usage 1,710KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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