![]() |
Defualt Profile Picture in Profile
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']"> HTML Code:
<if condition="$show['profilepic']"> 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. |
how come the register link (>> Registration is free!) on your forum leads to a different forum? lol
|
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.
|
haha alright, nice mod indeed ;)
|
thanx
|
Works on 3.5.2?
|
Thanks for this....installed on 3.5.2 and all is well!
|
Oh thanks!
|
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 |
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? https://vborg.vbsupport.ru/external/2006/01/6.jpg Sorry, I'm confused. :confused: Thanks, Joe |
anyone have any free, generic profile picture I could use?
|
Quote:
|
if you have a custom profile field for Gender, how do you make it pick a different picture for male and female?
|
Quote:
|
installed
|
Worked like a charm, and easy to customise. Many thanks.
|
Can someone update this for 3.7.3?
|
Bump
|
No replies...uninstalls
|
Not sure if this is the best way to do it, but try this. Worked for me.
Find in MEMBERINFO: Code:
<td id="profilepic_cell" class="tborder alt2">$blocks[profile_picture]</td> Code:
<td id="profilepic_cell" class="tborder alt2">$blocks[profile_picture]</td> Not thoughly tested in a public forum, but on my test forum my profile has a picture and it shows. Checking a users that does not, my unknown.gif shows fine. |
Edited the copy/pasted code I used from above to make it valid.
|
Or even this might work.
Code:
<td id="profilepic_cell" class="tborder alt2">$blocks[profile_picture]</td> |
And if you really wanted to get carried away and add an avatar in the mini block memberinfo_block_ministats:
Find: Code:
<if condition="$prepared['avatarurl']"> Code:
<if condition="$prepared['avatarurl']"> |
All times are GMT. The time now is 09:29 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:
|