Login     Sign up
add a new profile
andy (@andy)
Join date: Nov 26th 2010
Community posts: 12
View Profile
Send Message

hi
i am really interested by jcow, but i want to know if it is possible to add a new profile of couple : male - female - "couple"
thank you very much. it s a great script.

164 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

yes, i did that for someone, but i need to find the code.

it needs modifications of the code in different places.

164 months ago
andy (@andy)
Join date: Nov 26th 2010
Community posts: 12
View Profile
Send Message

i think files to edit are : account - memeber - browse - and signup. adding a new gender field.

the problem is when i browse , it does not work. all users as couple are hide gender in results.

may be there is something else to do in the databae.
please it s very important for me, because if i am sure it s possible to do, i will buy the license in the black friday .

thanks

164 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

2, means hidden

for couple you need 3 or something else (not 0,1 or 2)

164 months ago
andy (@andy)
Join date: Nov 26th 2010
Community posts: 12
View Profile
Send Message

i made couple in 3, but i maintain 0,1 and 2 , may this was the error ยก how could i fix it ?

this is what i edit for example in
includes/libs/account.module.php

'.label(t('Gender')).'');
if ($row['gender'] == 1) {
$male_checked = 'checked';
}
elseif ($row['gender'] == 0) {
$female_checked = 'checked';
}
elseif ($row['gender'] == 3) {
$couple_checked = 'checked';
}

                else {
                    $gender_hide = 'checked';
                }

                section_content('
                <input type="radio" name="gender" value="1" '.$male_checked.' />'.t('Male').' 
                <input type="radio" name="gender" value="0" '.$female_checked.' />'.t('Female').'

                                    <input type="radio" name="gender" value="3" '.$couple_checked.' />'.t('couple').'

                <input type="radio" name="gender" value="2" '.$gender_hide.' />'.t('Hide').'
                </p> 
164 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

yep that is it.

164 months ago
andy (@andy)
Join date: Nov 26th 2010
Community posts: 12
View Profile
Send Message

i try this but not working

164 months ago