![]() |
If User Hasn't Got An Avatar Show Default Avatar With Link To Set One
I think that when most of your users have custom avatars set it makes your forum look alot better as your user has shown some sort of commitment to it. Using this small template hack it will encourage your users to set an avatar and if they haven't give a nice alternative. Also, its worth noting that the link to set a new avatar will only be shown to the user, not everyone using the forum. Firstly, I will show you the one with the default avatar included. Then another version without it. Ok, so open up the style manager and open the postbit for what ever style you are using. Then where you want your avatar to display paste this code: HTML Code:
<if condition="$bbuserinfo[showavatars]"> So, this will show the default avatar and a link below it to set their own custom avatar. This version will not show the default avatar, just the link to set one. Do the same as the first step just paste in this code instead. HTML Code:
<if condition="$bbuserinfo[showavatars]"> |
nice. What hack do you have that displays the activity. longevity under the AV? I like that, too
|
<a href="https://vborg.vbsupport.ru/showthread.php?t=177366" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=177366</a>
Its for vB 3.7 but its working fine on 3.8. |
Quote:
|
hello!
i have like this in my postbit template PHP Code:
i will have this image like is when users-members put own avatars.(their own after select will change default no-avatar image) regards macc |
Try this:
HTML Code:
<!-- user info --> |
every avatar is clickable ..and after clik go to userprofile - shoud i will lose this function ?
regards macc |
Quote:
|
tried your code (few posts above) and get this error message
PHP Code:
regards macc |
your code works not - put </if> tag and could not see text and picture is on top-left - see here - http://libar-libar.com/libar/vb/show...=3377#post3377
will that be like default avatars pictures to all members like original - and that code change all members avatars ...??? regards macc |
All times are GMT. The time now is 09:18 AM. |
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:
|