What is vldPersonals?

vldPersonals is a very easy to use dating/social software. It allows you to create a fully functioning & modern dating website in a matter of minutes. If You think it's too complicated - check vldPersonals!
Know more about how You can become a dating website owner

What is vldCrowd?

vldCrowd.com is the biggest unofficial community of vldPersonals owners. It is a place to share ideas and thoughts about Your dating website. It is a place to answer questions and receive answers.
Do You own a vldPersonals license? Don't hesitate and join!

Connect Today

Community members help each other to take their dating websites to the next level. Can You make your vldPersonals website better? Join and find out...

Connect With More Than 500 Dating Website Owners! Sign Up Today
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>

Comments

db3204

  • Posted on 06/20/2009 11:21 AM
Hey Ramil...will get back later when I have a few other things cleared up. Thanks
 
Dan

radioact

  • Posted on 06/19/2009 09:31 PM
For that matter, no image displayed at all.
That means <!-- ELSEIF session.picture AND session.picture_active --> returned TRUE.
Try your code again, then open generated page source code and send to my email. We need to look into it.

db3204

  • Posted on 06/19/2009 01:10 PM
I tried this, but it did not work:
 
<!-- 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

  • Posted on 06/19/2009 12:01 PM
Thanks ramil, I will give that a try.

radioact

  • Posted on 06/19/2009 10:34 AM
May be you should try session.picture session.picture_active session.picture_large, session.member_id?

Log in to leave a comment