vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Default Avatar for Usergroups? (https://vborg.vbsupport.ru/showthread.php?t=294253)

Tyran1 01-22-2013 06:19 PM

Default Avatar for Usergroups?
 
I need a default Avatar for usergroup X and for usergroup Y!!

Can help me??

Sorry for my English i am vom Germany

Tyran1 05-07-2013 09:33 PM

Can i help me?

blind-eddie 05-08-2013 01:04 AM

In 3.8 series, you can set permissions per user group to use certain avatars.
Look in acp Avatar Manager, create new categories, add an avatar to that category and only allow the user group you want to use that avatar via Avatar Manager/permissions.

Tyran1 05-09-2013 03:10 PM

Quote:

Originally Posted by blind-eddie (Post 2420617)
In 3.8 series, you can set permissions per user group to use certain avatars.
Look in acp Avatar Manager, create new categories, add an avatar to that category and only allow the user group you want to use that avatar via Avatar Manager/permissions.

I know that, but an avatar should have automatically each or two user groups!

blind-eddie 05-09-2013 10:00 PM

The Avatar will not automatically appear unless you do as I stated & as you said you already know...

Lynne 05-09-2013 10:33 PM

Could do a plugin:
hook location - postbit_display_complete

PHP Code:

if (is_member_of($this->post,x)) {
$this->post['avatarurl'] = "http://yoursite.com/path/to/avatar.jpg"
$this->post['avwidth'] = 'width="100"'
$this->post['avheight'] = 'height="100"'


replace x with the usergroupid and enter the correct path to the url and the correct width and height. That should work for the postbit (I think, I haven't tried it). Just do similar for wherever else you use avatars.

Tyran1 05-12-2013 09:27 AM

Thanks!!

YungAnh 05-14-2013 05:52 AM

Quote:

Originally Posted by Lynne (Post 2420970)
Could do a plugin:
hook location - postbit_display_complete

PHP Code:

if (is_member_of($this->post,x)) {
$this->post['avatarurl'] = "http://yoursite.com/path/to/avatar.jpg"
$this->post['avwidth'] = 'width="100"'
$this->post['avheight'] = 'height="100"'


replace x with the usergroupid and enter the correct path to the url and the correct width and height. That should work for the postbit (I think, I haven't tried it). Just do similar for wherever else you use avatars.

Hi Lynne, Can you help me with the code of adding a frame to certain user group avatar - frame 1 for group 1 and frame 2 for group 2-?
This look like what I could try but I can't figure out how.
I'm using vbb 3.8 and postbit, not postbit_legacy
I also had several image of the 100x100 frame in png file.

Lynne 05-14-2013 03:06 PM

Did you try the code I posted? I don't think it matters if it is for postbit or postbit_legacy.

YungAnh 05-14-2013 05:05 PM

Hi Lynne,
No I didn't. The code you posted was to replace usergroups' avatars to default avatars. I want them to have their own avatar, I just want to add a frame/border around their avatar. Just like in the demo here

http://us.battle.net/sc2/en/forum/topic/628075820

Moderator group has green frame while normal user has blue frame.


All times are GMT. The time now is 03:48 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.01029 seconds
  • Memory Usage 1,737KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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