Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 08-10-2004, 10:09 AM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 08-10-2004, 12:44 PM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's something like that at vbulletintemplates.com I think.
Reply With Quote
  #3  
Old 08-10-2004, 12:54 PM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Didn't see that yet but I'll take a look.
Thx
Reply With Quote
  #4  
Old 08-10-2004, 02:26 PM
nexialys
Guest
 
Posts: n/a
Default

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" /> ...
Reply With Quote
  #5  
Old 08-10-2004, 02:28 PM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not exactly what I want because the members lose their title's on this way. But it's a nice solution. Thx.
Reply With Quote
  #6  
Old 08-10-2004, 02:32 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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> 
Reply With Quote
  #7  
Old 08-10-2004, 02:35 PM
nexialys
Guest
 
Posts: n/a
Default

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...
Reply With Quote
  #8  
Old 08-10-2004, 02:35 PM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 08-10-2004, 02:44 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #10  
Old 08-10-2004, 02:51 PM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

SUPER PERFECT FANTASTIC GREAT COOL MAN

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?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:32 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.04210 seconds
  • Memory Usage 2,251KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (3)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (8)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete