vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Groupicons (https://vborg.vbsupport.ru/showthread.php?t=68182)

Eagle Creek 08-10-2004 10:09 AM

Groupicons
 
Is it possible to give groupicons?

So that all the admin will have an icon under their name etc.. And settible for al usergroups.

Reeve of shinra 08-10-2004 12:44 PM

There's something like that at vbulletintemplates.com I think.

Eagle Creek 08-10-2004 12:54 PM

Didn't see that yet but I'll take a look.
Thx

nexialys 08-10-2004 02:26 PM

simple... no need of a hack at all.

in the Admincp >> Usergroup Manager >> Edit a Group >> Username HTML Markup

in that HTML markup, there is two fields... one for start, one for end...

in the start field, you simply have to add something like
Code:

<img src="images/icon/this_group_icon.gif" /> ...

Eagle Creek 08-10-2004 02:28 PM

It's not exactly what I want because the members lose their title's on this way. But it's a nice solution. Thx.

Logikos 08-10-2004 02:32 PM

Do this instead.

Inside your postbit template add the following to where ever you want the icon to appear. You can see my postbit at vbhacks.us as an example. Change X with the usergroup ID.

PHP Code:

<if condition="$post[usergroupid]==x"IMG VAR HERE </if> 


nexialys 08-10-2004 02:35 PM

yeah, you can do like livewire is doing, and create a if condition for each group or icon you want to display, because the if is displayed only when the usergroup is ok...

Eagle Creek 08-10-2004 02:35 PM

Quote:

Originally Posted by Live Wire
Do this instead.

Inside your postbit template add the following to where ever you want the icon to appear. You can see my postbit at vbhacks.us as an example. Change X with the usergroup ID.

PHP Code:

<if condition="$post[usergroupid]==x"IMG VAR HERE </if> 


Cool!

2. questions:
1. Will it work with secondary usergroups too?
2. And is this viewable everywhere? So I mean in the topic under the members name, in his profile and when he send a PM?

Logikos 08-10-2004 02:44 PM

when you add that to the postbit, it will show up in all areas that the postbit shows up. Annoucments, PM, post....

As for the profile you could do this in template MEMBERINFO:

PHP Code:

<if condition="$userinfo[usergroupid]==x"IMG VAR HERE </if> 

Of course change X to the Usergroup Id

Quote:

Will it work with secondary usergroups too?
And it will only show up as there primary usergroup. So if you have a member that is in the registered usergroup, and you add him as a mod in a secondary usergroup. The register usergroup will show in the post seeing as its his primary group id.

Hope this helps...

Eagle Creek 08-10-2004 02:51 PM

SUPER PERFECT FANTASTIC GREAT COOL MAN :D

THANKS!


One little question about that usergroup. I don't understand it fully.
Group A hasn't an icon, group B has, group C hasn't.
A member is member of group A so no icon. When I set his secondary group to B will he have that icon too?


All times are GMT. The time now is 07:40 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.02201 seconds
  • Memory Usage 1,738KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete