1

Topic: customize code according to "profile type"

Hi guys,

I would like to hide some of the functionalities of the website to some profile types, but without having to create several member groups. Can any of you let me know if there's any piece of code that I can use to do this?

Something like this:

If profiletype is A
then ...
Elseif is B
then ...

Thanks in advance!
Rui

2

Re: customize code according to "profile type"

I´m not sure I understand you but maybe this ?
Example:

<!-- IF profile_field_gender1_value == "Woman" -->
content for woman
<!-- ELSE -->
content for man
<!-- ENDIF -->
Give the world the best you have, and the best will come to you.
Tutorials and Mods for VldPersonals   Swedish Dating on Love2u.se   VldCrowd:s Community

3

Re: customize code according to "profile type"

I need something exactly like that, but regarding "profile types" instead of "profile fields". The profile type functionality was added on the version 2.5.4 of the platform, and allows you to have different fields per type.

http://www.vldpersonals.com/downloads/changelog/

- profile ‘types’ added to allow support of completely different types of members

4

Re: customize code according to "profile type"

What I basically want is to hide the "events" funtionality from a specific profile type, while keeping it available for the others.

There must be an if statement for that smile

Regards.