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

How to: Zodiac works. Part 1

06/08/2009 11:04 PM
1085 3 18
In this tutorial I'm going to explain nice way of creating zodiac fields and displaying zodiac sign in member's profile page.
 
1. First of all go and find some good zodiac icons. Free or paid.
Here's a couple of useful links in case you don't know how to use Google:
http://roundpixel.org/?p=69, Free zodiac icons by Ken Saunders
 
If you are too lazy take these resized Ken Saunders' icons I'm using in the tutorial.
 
2. Go to your vldP Control panel -> Settings -> Custom fields and create new custom field 'zodiac' under General group. And locate it under Age field cause it makes sense.
 

 
3. Rename your icons using this pattern: zodiac_[item_id].png (or gif depending on your file):
 

 
Renaming files you must set your own item ids you've got creating field at step 2.
Place files to your template's media folder.
 
4. Open your member_profile.tpl (member's profile page template) and account_home.tpl (My profile or My page template) and find code:
<div class="datainfo"> (which is right before
<!-- INCLUDE member_sections_name.tpl -->)
 
and make it look like:
<div class="datainfo" style="background: url('{virtual_tpl_path}{session.template}/media/zodiac_{profile_field_zodiac_value_id}.png') no-repeat 200px 10px;">
 
5. Test and enjoy!
 

 
This is result I've got.
 
P.S.: We could be using 'icon_Libra.png' and link to it as {profile_field_zodiac_value}.png but in that case no multi language would be supported. "Id has no nationality :)" (c) Me
 
P.P.S.: We could be using <img src="{virtual_tpl_path}{session.template}/media/zodiac_{profile_field_zodiac_value_id}.png" alt="{profile_field_zodiac_value}" border="0" /> instead of styles but that would break your design layout by putting lots of space to profile fields.
 
Next time I'll tell you how to automate zodiac selection depending on birthday.

Comments

nathinah

  • Posted on 11/17/2010 02:56 AM
hi!
 
i tried to follow your tutorial, but i'm not so good with vldP :(
 
i'm using 2.5.7 version and i can't find the codes that you say
 
that's my membe_profile.tpl file
 
<!-- INCLUDE settings.tpl -->
<!-- IF alt_profile == "1" -->
<!-- INCLUDE member_profile_alt.tpl -->
<!-- ELSEIF alt_profile == "2" -->
<!-- INCLUDE member_profile_opn.tpl -->
<!-- ELSE -->
<!-- INCLUDE member_profile_or.tpl -->
<!-- ENDIF -->
 
can you help me? :(

radioact

  • Posted on 10/09/2010 07:56 PM
Try to add top. before your variable name {top.profile_field_zodiac_value_id} cause you may be trying to get it from inside loop (<!-- BEGIN -->... <!-- END --->)

zillemedia

  • Posted on 10/09/2010 07:53 PM
yes. i have set them to yes. It works on my own profile.. but from public view, when i view my own profile.. it dont show.

radioact

  • Posted on 10/09/2010 07:26 PM
Hi,
Did you have set for that field and it's group Load in member's page (public) to: Yes?

zillemedia

  • Posted on 10/09/2010 01:58 PM
why dosnt it show on member profile view. Is shows on my profile homepage. but not for other users visiting

timaria

  • Posted on 08/22/2010 07:51 AM
Thanks .

pierrehs

  • Posted on 08/16/2010 06:40 PM
At home he wrote but is displayed in the image do not appear
Can you help me ?

pierrehs

  • Posted on 08/16/2010 06:40 PM
At home he wrote but is displayed in the image do not appear
Can you help me ?

Log in to leave a comment