Hello
The code below is for when a member does not upload a photo to his blog, it will use the member's profile photo instead of the none.gif image. It works great. I already posted a tutor at vld Forum http://www.vldpersonals.com/forum/viewtopic.php?id=5797 Since I have posted this on the forum, I have gotten several emails requesting how to do the same thing for member's account page. I tried adding the ELSEIF statement I added to member_blog_entry (see code below) to both account_blog.tpl and account_blog_edit.tpl, but the member's profile image does not show (only the none.gif image shows). Radioact, do you know what I may be doing wrong? I hope it is a simple solution, if not than don't worry about it. thanks THE FOLLOWING CODE I ADDED TO MEMBER_BLOG_ENTRY.TPL SO WHEN A MEMBER DOES NOT UPLOAD AN IMAGE, IT WILL DISPLAY THEIR PROFILE PHOTO INSTEAD OF THE NONE.GIF. Open member_blog_entry.tpl FIND: <!-- IF entry_picture --> <a class="picture_zoom" href="{top.virtual_pic_path}{entry_picture_large}" id="blog_picture_{entry_id}" target="_blank"><img src="{top.virtual_pic_path}{entry_picture}" alt="" border="0" /><br></a> div id="blog_picture_{entry_id}_zoom" style="display:none"><img src="{top.virtual_pic_path}{entry_picture_large}" alt="" border="0" /><br></div> AFTER ADD: <!-- ELSEIF member_picture AND member_picture_active --> <a class="picture_zoom" href="{top.virtual_pic_path}{member_picture_large}" id="profile_picture_{member_id}" target="_blank"><img src="{top.virtual_pic_path}{member_picture}" alt="" border="0" /><br></a> <div id="profile_picture_{member_id}_zoom" style="display:none"><img src="{top.virtual_pic_path}{member_picture_large}" alt="" border="0" /><br></div> |
vldCrowd Stats
- Members: 596
- Online Now: 0
- Blogs:585
- Files: 40
- Pictures:139
- Videos:89
Support vldCrowd
LuvPoint.com
Premium Dating Templates
for Your vldPersonals Website.
Serving Community for
Almost 3 Years!
- + Easy to Install & Activate
- + Full Documentation
- + Free Lifetime Updates
- + Visit LuvPoint.com





Comments
db3204
Dan
radioact
Try your code again, then open generated page source code and send to my email. We need to look into it.
db3204
<!-- ELSEIF session.picture AND session.picture_active -->
<a class="picture_zoom" href="{virtual_pic_path}{session.picture_large}" id="profile_picture_{session.member_id}" target="_blank"><img src="{top.virtual_pic_path}{session.picture}" alt="" border="0" /><br></a>
<div id="profile_picture_{session.member_id}_zoom" style="display:none"><img src="{top.virtual_pic_path}{session.picture_large}" alt="" border="0" /><br></div>
For that matter, no image displayed at all.
I tried removing "session.picture AND session.picture_active" from the ELSEIF but I got the none.gif when I did that.
Hmmm, not sure. No biggie!
db3204
radioact
Log in to leave a comment