Back to vBulletin 4.x Add-ons

[hoangkiso] Avatar First letter from username in postbit
Mod Version: 1.3, by hoangserip

vB Version: 4.2.x Rating: (1 vote - 5.00 average) Installs: 7
Released: 04 May 2013 Last Update: 10 Sep 2014 Downloads: 69
Supported Uses Plugins Template Edits Code Changes Is in Beta Stage  

Demo online: http://webtailieu.org

Info:

Getting alphabet The first of names user as a avatar.

How to install:
  • Download attachments
  • Import file product-hoangkiso_avatar.xml

Open postbit or postbit_legacy, add anywhere code:

Code:
{vb:raw ad_location.hoangkiso_avatar_show}
additional.css:

Code:
.khung {
float: left;
margin: 3px 5px;
}
.pavatar {
color: white;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
float: left;
width: 50px;
height: 50px;
text-align: center;
font-size: 30px;
cursor: default;
}
Way displayed avatar member is already avatar

Find :
PHP Code:
                <vb:if condition="$show['avatar']">
                    <
class="postuseravatarlink" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
                        <
vb:if condition="$post.avatarurl">
                            <
img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
                        <
vb:else />
                            <
img src="{vb:stylevar imgdir_misc}/unknown.gif" />
                        </
vb:if>
                    </
a>
                </
vb:if> 
And change :

PHP Code:
                <vb:if condition="$show['avatar']">
                    <
class="postuseravatarlink" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
                        <
vb:if condition="$post.avatarurl">
                            <
img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
                        <
vb:else />
                            <
img src="{vb:stylevar imgdir_misc}/unknown.gif" />
                        </
vb:if>
                    </
a>
                <
vb:else />
                    {
vb:raw ad_location.hoangkiso_avatar_show}
                </
vb:if> 
Thats all.

Download

File Type: %1$s product-hoangkiso_avatar.xml (3.8 KB, 57 downloads)

Screenshots

Click image for larger version
Name:	vidu.jpg
Views:	505
Size:	64.9 KB
ID:	144812  


vblts.ru supports vBulletin®, 2022-2024