26

Re: Automatic Zodiac Sign

I am assuming the custom field type is "CHECKBOX"
I am using the dateamour template

Using Plebejus' mods

This is what I did in the member_profile.tpl file

<!-- IF field_type == "checkbox" -->
       {break:field_value}
          <!-- ELSEIF field_type == "birthday" -->
{field_value_years};
{zodiac:birthday=field_value_years}  <---------------- added this line here
<!-- ELSE -->
{field_value}
<!-- ENDIF -->


I get this Javascript error:
error 'virpath' is undefined

and ofcourse it doesnt work. I expect something is missing or incorrectly passed here but cant figure out what.

I have tried everything shown on this page in the plage of field_value_years

I am guessing this is not correct for my template. What should I be looking at to get the correct field here?

Greatly appreciate any help from the authors FredL or Plebejus

Thanks

Last edited by spyder (2010-02-07 05:21:27)

27

Re: Automatic Zodiac Sign

spyder wrote:

Greatly appreciate any help from the authors FredL or Plebejus
Thanks

Hi spyder,

If you use {zodiac:birthday=field_value} instead of {zodiac:birthday=field_value_years} everything must work, I just now checked the DateAmour with Zodiac specially.

The point is that expression "field_value_years" for "birthday" field of profile it is an age (in years)  of profile's owner, but  you need a date of his(her) birth for calculating a Zodiac - "birthday_field_value".

I hope you have installed ext.zodiac.tpl and ext.zodiac.php in right folders.

Last edited by Plebejus (2010-02-07 08:43:26)

28

Re: Automatic Zodiac Sign

Hey thanks Plebejus

I have installed those 2 files as follows:

/templates/dateamour/ext.zodiac.tpl
/templates/dateamour/tmp/ext.zodiac.php

Tried both the options:
{zodiac:birthday=field_value} and
{zodiac:birthday=field_value_years}

Neither work. My member_profile.tpl template file is unmodified so I don't see any reason it should not work.

Oh and do I need to add any custom fields or anything to the members table?


What I dont understand is just adding that small line {zodiac:birthday=field_value} as shown in the earlier post in member_profile.tpl seems to make the profile details area go blank. Can see the image and profile member sub menu

http://www.dating-genie.com/index.php?m … amp;id=148

see that link to see what I mean

Last edited by spyder (2010-02-07 09:20:50)

29

Re: Automatic Zodiac Sign

Just a thought... do I need to include anything in the member_profile.tpl file?

I mean something like <!-- INCLUDE ext.zodiac.tpl--> ?

And if so where and what section?

30

Re: Automatic Zodiac Sign

spyder wrote:

Hey thanks Plebejus
I have installed those 2 files as follows:

/templates/dateamour/ext.zodiac.tpl
/templates/dateamour/tmp/ext.zodiac.php

That's why extension is not working smile
Right path to php file must be:  {yoursite}/includes/ext/ext.zodiac.php because it's a global extension.
Move this file to ext folder and check is extension available now in CP-> Utilities -> Extensions

Last edited by Plebejus (2010-02-07 10:22:51)

31

Re: Automatic Zodiac Sign

Thanks a million... was a dumb mistake on my part. I hope you can add that line about the file locations to your original post here too. This is a great mod!

Last edited by spyder (2010-02-07 10:39:21)

32

Re: Automatic Zodiac Sign

spyder wrote:

Thanks a million. This is a great mod!

Enjoy!
I  only changed this mod a little for appearance.
Thanks to FredL (although original idea as usual from radioact smile).
Right pathes to files in FredL first post.

33

Re: Automatic Zodiac Sign

Yes ofcourse. Thanks FredL and radioact

34

Re: Automatic Zodiac Sign

Please, what change for version VLD 2.5.6?

35

Re: Automatic Zodiac Sign

I havent tested it in 2.5.6.
But it should work or doesn't it?

36

Re: Automatic Zodiac Sign

I fail to do, where I have to put:
If you want to display zodiac sign you can use 2 different ways

1. {zodiac:field="profile_age"} - Show to logged in members their zodiac sign depending on "profile_age" field.

2. {zodiac:birthday=member_profile_age} - Display in the member list, search etc...


PLiz example my zodiac

Www.Agregargente.com/Pantallazo.png

Www.Agregargente.Com |  Community Social Spain

37

Re: Automatic Zodiac Sign

I had follow another tutorials.
zodiac 1
zodiac 2

Give the world the best you have, and the best will come to you.
Tutorials and Mods for VldPersonals  Add CometChat to your vldPersonals site

38

Re: Automatic Zodiac Sign

Congratulations to you, it works!
Version 2.7 does not work unfortunately.
I have been struggling with the problem of hours, but always the same zodiac with each user record.
What should I do? Someone could help me? Thank you very much