The Arcive of vBulletin Modifications Site. |
|
Defualt Profile Picture in Profile Details »»
|
|||||||||||||||||||||||||
Just like the defualt avatar for users who don't have one, I wanted to fill the void for users who didn't have a profile picture.
Here is an example of someone with no profile information http://www.hr3rdgen.org/member.php?u=273 And someone with all the information filled out http://www.hr3rdgen.org/member.php?u=1 This is very simple, just follow the directions. ACP > Styles & Templates > Style Manager Edit your MEMBERINFO template Find: HTML Code:
<if condition="$show['profilepic']"> <td valign="top" align="$stylevar[right]" rowspan="2"> <img src="$userinfo[profilepicurl]" $userinfo[profilepicsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /> </td> </if> HTML Code:
<if condition="$show['profilepic']"> <td valign="top" align="$stylevar[right]" rowspan="2"> <img src="$userinfo[profilepicurl]" $userinfo[profilepicsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /> </td> <else /> <td valign="top" align="$stylevar[right]" rowspan="2"> <img src="$stylevar[imgdir_misc]/no_pic.jpg" alt="$userinfo[username]" border="0" style="border:1px solid $stylevar[tborder_bgcolor];" /> </td> </if> Now all you need to do is create a defualt profile picture image to use. I made one in photoshop real quick and named it no_pic.jpg and uploaded to the images/misc directory. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
how come the register link (>> Registration is free!) on your forum leads to a different forum? lol
|
|
#3
|
|||
|
|||
|
HAHA, thanks for point that out, cuase I made that style for a friend's site, I ended up liking it so much I used it on mine.
|
|
#4
|
||||
|
||||
|
haha alright, nice mod indeed
|
|
#5
|
|||
|
|||
|
thanx
|
|
#6
|
||||
|
||||
|
Works on 3.5.2?
|
|
#7
|
||||
|
||||
|
Thanks for this....installed on 3.5.2 and all is well!
|
|
#8
|
||||
|
||||
|
Oh thanks!
|
|
#9
|
|||
|
|||
|
This only show for the logged in users only? When I'm not logged in, it showed the nopix.gif even though this user (me) had a picture!
Thanks CK |
|
#10
|
||||
|
||||
|
Strange, I did everything you said to do. I made a no_pic.jpg, uploaded it to my images/misc folder, did the template edits, but all I get is this...
http://www.bassnutz.com/member.php?u=7 This is what I made for my board. Does it need to be a certain size in order for it to work? And will it work with Opera browser? ![]() Sorry, I'm confused. Thanks, Joe |
![]() |
|
|