Quote:
Originally Posted by Lynne
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.