![]() |
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 |
Can i help me?
|
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. |
Quote:
|
The Avatar will not automatically appear unless you do as I stated & as you said you already know...
|
Could do a plugin:
hook location - postbit_display_complete PHP Code:
|
Thanks!!
|
Quote:
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. |
Did you try the code I posted? I don't think it matters if it is for postbit or postbit_legacy.
|
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. |
Quote:
Look for the following code in the postbit: PHP Code:
PHP Code:
HTML Code:
img.usertitle {border: 2px solid #00f;} --don |
Hi Don,
Thank you very much for the help. Wish there is a thank button here. But I actually had some frames ready just like in the blizzard forum in the demo above and would like to use those frames for different user group. |
So no one can help me? :(
|
With a quick look at the site to which you linked, it looks like they surrounded their avatars with a div, then set the background image of that div to the appropriate frame by using classes.
I hope this gives you a place to start. |
Quote:
Do you mean they use something like this: user postbit background https://vborg.vbsupport.ru/showthrea...ground+postbit But is it going to be a tight fit. I'm not a computer guy, I learned to do these stuff on my own. Thank you for your time helping me. |
Quote:
No, you do not need a plugin or a mod. You need to edit the postbit template, and write a selector into the additional CSS. Create a new style and edit it. If you mess it up, delete it and create a new one so you can try again. That's how you learn. --don |
I see.
Thanks for the clarification but I think it is out of my hand. :| |
i got this....
Parse error: syntax error, unexpected $end in /home/cracking/public_html/includes/class_postbit.php(294) : eval()'d code on line 131 vb 3.8.7 pl3 Quote:
|
Sounds to me like you missed something in the c/p pate the exact code in your plugin here.
|
All times are GMT. The time now is 07:14 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|