PDA

View Full Version : [MODIFICATION v2.0.8.1] TRUE COUPLES MOD Beta 1.0


mpeetsma
06-07-2008, 05:47 AM
Attached are the files and basic instructions for modifying osDate 2.0.8.1 release to incorporate a TRUE SINGLE REGISTRATION COUPLES PROFILE. THIS mod is offered to this community at large and freely and it is my hope that you wizard programmers out there enhance and improve and give back to the community so we all benefit. THIS IS A STARTING POINT!

Attachment is all fixes applied to June 11, 2008

osDate Version 2.0.8.1 Couples Modified Site. Integrated to Default template.
This mod can be seen live and working here. (http://chatterhost.com/%7Edevelope/)



SPecial Instructions:
On a standard default installation, the .php and .tpl files are direct replacements for the ones that come with 2.0.8.1 version of OSdate which have no other modifications made to them. The source code is commented where the mod actually is added to all files. You will need to add to your existing language file and default.css file the addons included in this zip file as well as create additional fields in your osdate.users database table.

IF YOUR SYSTEM HAS MODIFICATIONS TO THE FILES INCLUDED IN THIS ZIPFILE, THEN YOU WILL NEED TO MAKE YOUR CHANGES TO CONSIDER THIS.
php files will need to be modified with changes.
template tpl files should work directly unless yours have otherwise been modified.
language, lib files contain what needs to be added to your existing files.
instructions on new fields to add to your database are included.

If you want to know what this actually does.. then check out the test site. (http://chatterhost.com/%7Edevelope/) it has open registrations so you may create a userid and test the registration and edit profile functions directly and view user profiles with new data.

Your feedback, commentary are welcome and invited and it is my hope that these files and changes are what you are seeking in a basic concept for a single profile for couples.
:)
Have fun!
Mike

msszroberts
06-07-2008, 06:56 AM
mpeetsma,

Thank you for providing a long and hard-sought modification to the osdate script. You did not have to make your mod a free one, but you did, and I'm confident that it will be highly appreciated by the osdate community.



Osdate users,
As mpeetsma has indicated by the title of the thread, the mod is in beta format. This means that he is aware of some minor imperfections to the mod; and if you choose to use it, you do so at some minor risk. As this is a modification offered by a fellow member, and not the official developer of the osdate script, all users are required to post all feedback, anomalies, bugs, improvements, etc. to this thread solely and NOT to the other sections of the tufat board.
Thanks for your understanding and cooperation

mpeetsma
06-07-2008, 07:41 AM
Thanks for the kind words.. This has been offered FREE as there does come a time when we all should give something back, given that this application is free to begin with... Can't always just take..

mpeetsma,
Thank you for providing a long and hard-sought modification to the osdate script. You did not have to make your mod a free one, but you did, and I'm confident that it will be highly appreciated by the osdate community.

mpeetsma
06-09-2008, 04:27 PM
Please replace the following files in the download zip file.

modifyuser.php,
savesignup.php
edituser.tpl
nickpage_basic.tpl

Click here to checkout Couples Mod Live Demosite for osDate v 2.0.8.1. (http://chatterhost.com/%7Edevelope)

This corrects some template errors with IE and editing of user information fields when editing user information in COUPLES MOD.

THanks

paul12345
06-10-2008, 11:57 PM
Please replace the following files in the download zip file.

modifyuser.php,
savesignup.php
edituser.tpl
nickpage_basic.tpl

Click here to checkout Couples Mod Live Demosite for osDate v 2.0.8.1. (http://chatterhost.com/%7Edevelope)

This corrects some template errors with IE and editing of user information fields when editing user information in COUPLES MOD.

THanks

Hi mpeetsma,
There is a small problem, the age for Partner 2 is not showing when you view there profile, otherwise all seems ok, still testing :) Thanks again for the mod

mpeetsma
06-11-2008, 04:08 AM
Thanks.. Feedback is appreciated.. Let me know how it works for you. Original posted file set has been updated to include these and previous fixes. CLICK TO DOWNLOAD FULL FILE SET from the original post updated fileset. (http://forum.tufat.com/attachment.php?attachmentid=2150&d=1213183072)

Here is the fix. Let me know how it goes.. I've attached corrected replacement files for osdate 2.0.8.1 without other mods or changes. IT wasn't saving the birthdate information to the user record when editing profile for the second partner in couples profile. This should fix it.

Fixes denoted in bold red

Edituser.php - approximently on line 54 - (missing terminator comma)
find p2_birthdate change to p2_birthdate, modifyuser.php - approximently on line 249
look for
$birthdate = $birthyear . '-' . $birthmonth . '-' . $birthday;
add new line after
$p2birthdate = $p2birthyear . '-' . $p2birthmonth . '-' . $p2birthday;Hi mpeetsma,
There is a small problem, the age for Partner 2 is not showing when you view there profile, otherwise all seems ok, still testing :) Thanks again for the mod

kilik
06-11-2008, 10:51 AM
great mod, thank you..!

but i cant make it works..

Error - Unable to insert records :(



-edit: i changed the value in the init.php with my database prefix (i dont have osdate_ as the default)..and now it works..

but the dropdown lists in the signup page("smoking", "drinking" etc etc) doesnt show anything..

beside it, i would like to add this mod in my already modded files, where i have added other genders :|

-edit2: and on the index,there arent the info on the profiles "Distance:", "looking For:" " Gender" Weight" etc etc..
i tried both templates (dfault & smoking hot, and also cleaning up the cache and the templates_c :(

mpeetsma
06-11-2008, 02:21 PM
but the dropdown lists in the signup page("smoking", "drinking" etc etc) doesnt show anything..
Did you add to your language file and then reload your language file?.. values for dropdown fields are in the lanugage file.

beside it, i would like to add this mod in my already modded files, where i have added other genders :|
Shouldn't be hard.... but not in my control.. this mod was presented with base stock files only, but the gender stuff should work the same as other gender mods.Just go through the source files, it is commented where any changes for this mod took place.

-edit2: and on the index,there arent the info on the profiles "Distance:", "looking For:" " Gender" Weight" etc etc..
i tried both templates (dfault & smoking hot, and also cleaning up the cache and the templates_c:(
No idea what your referring too.. but presentation of the information on a users profile is accomplished through the nickpage_basic.tpl template file. you might want to check that the version supplied in this mod is available to your templates with either replacing the one in the templates/default directory or perhaps even in the template directory for the template you are using.

Again.. all files are stock without any previous mods applied. If you've already modded your files with other changes you will need to consider this before overwriting any files on your installed system.

If curious.. a slightly different presentation with additional data in the userrecord is available on my other development site here (http://chatterhost.com/%7Edatetest)

Hope some of this helps... I have no control over other mods you may have made, but I'm sure examining the changes in the modded files will show you where to make changes in your existing files.

kilik
06-11-2008, 03:39 PM
thx for your answer, i really like what have you done and i truly want to add your mods to my files.
i know that your mods are stock without any mods applied, i just did a backup of my modded file, then overwrited with yours, but i think i have some problems with my nickpage.tpl (or somethin in my template) cause it only shows: age, gender, place (with country and state, no city though :mad:) and last login.

mpeetsma
06-11-2008, 06:07 PM
Happy to help you figure it out.. I've sent you a PM regarding your troubles.

thx for your answer, i really like what have you done and i truly want to add your mods to my files.
i know that your mods are stock without any mods applied, i just did a backup of my modded file, then overwrited with yours, but i think i have some problems with my nickpage.tpl (or somethin in my template) cause it only shows: age, gender, place (with country and state, no city though :mad:) and last login.

paul12345
06-12-2008, 12:23 AM
Thanks.. Feedback is appreciated.. Let me know how it works for you. Original posted file set has been updated to include these and previous fixes. CLICK TO DOWNLOAD FULL FILE SET from the original post updated fileset. (http://forum.tufat.com/attachment.php?attachmentid=2150&d=1213183072)

Here is the fix. Let me know how it goes.. I've attached corrected replacement files for osdate 2.0.8.1 without other mods or changes. IT wasn't saving the birthdate information to the user record when editing profile for the second partner in couples profile. This should fix it.

Fixes denoted in bold red

Edituser.php - approximently on line 54 - (missing terminator comma)
modifyuser.php - approximently on line 249
look for

add new line after

Hi mpeetsma,
Thanx the partner 2 age is working well.

mpeetsma
06-12-2008, 03:21 PM
Good.. I'll be interested to know how you and your users like the mod.. let me know..

There is a version 2 coming soon with some additional expansion and features with a 2 and 3 part optional sign up process.


Hi mpeetsma,
Thanx the partner 2 age is working well.

paul12345
06-13-2008, 12:15 AM
Good.. I'll be interested to know how you and your users like the mod.. let me know..

There is a version 2 coming soon with some additional expansion and features with a 2 and 3 part optional sign up process.

Hi Mike,
I have had alot of couples complimenting on the couples mod, as they have seen this when viewing a profile and joining. Is it possible to have the HEIGHT, WEIGHT AND ZODIAC to show "Ask Me Later" LOL all members who have not updated are 5ft and 120 lbs.

mpeetsma
06-13-2008, 02:41 AM
Good to hear that your user response has been a positive one! :)
Quick lesson in basics for this mod and other things you might like to tweak.

First, you need to add a new default value for zodiac.

In your language file look for:
$lang['zodiac']=array(
"aries" =>'Aries',
Insert a new line into your language file so that in the case of the zodiac stuff, it looks like this: You will have to reload your language file one you've edited it so that the new entries are available to your system.
$lang['zodiac']=array(
"na" => 'No Answer',
"aries" =>'Aries',
Then go to your signup.tpl file and look for
{html_options options=$lang.zodiac selected='aquarius'}and change this to show the new entry you want for default from the language file array, in this case we want it to use "na" or "No Answer" as the default, so change the default entry so that this line reads like this:
{html_options options=$lang.zodiac selected='na'}do the same for weight and height.

in the case of height, look for:
{html_options options=$lang.userheight selected='120'}Note that the selected entry for default is "120". If you examine your language file for the "height" array you will notice that there does exist a line that reads "na"
$lang['userheight'] = array(
'na' => 'Ask Me',So just like we did here for zodiac, change the line to read:
{html_options options=$lang.userheight selected='na'}Do the same modifications to your edituser.tpl file to make default selections when a user signs up as well if you want too.


You can simply alter your langauge file for new entries and then tweak the template file that calls for the values from the language file. So do the same type of tweak for weight and other things you may like to change.
Be care when modifying your language file to ensure that you use all the proper syntax ie: commas in the right place etc.

Have fun


Hi Mike,
I have had alot of couples complimenting on the couples mod, as they have seen this when viewing a profile and joining. Is it possible to have the HEIGHT, WEIGHT AND ZODIAC to show "Ask Me Later" LOL all members who have not updated are 5ft and 120 lbs.

swingersnvegas
06-14-2008, 11:19 PM
I'm also getting the Error - Unable to insert records. Where in init.php do you have to edit for the table?

mpeetsma
06-15-2008, 03:44 AM
IT doesn't happen in the init.php file. init.php just links the language definitions.

database insertions occur in the other php files.. edituser.php, modifyuser.php etc

I'm also getting the Error - Unable to insert records. Where in init.php do you have to edit for the table?

myfriendsusa
06-15-2008, 10:01 AM
Mike IM me about hosting.

swingersnvegas
06-15-2008, 10:46 AM
IT doesn't happen in the init.php file. init.php just links the language definitions.

database insertions occur in the other php files.. edituser.php, modifyuser.php etc

here are the steps I took.

1. I backed up all the php and tpl files that would overwrite my own.

2. I added the additions to the language file and loaded with no problems.

3. I went into my phpmyadmin for my database and added the fields necessary in osdate_user starting under the field id. I got no database errors.

4. I replaced the php files with your php files and replaced for both update 1 for your zip and the 2nd update zip.

5. I replaced the tpl files with your files in my esl.2-1 template folder and added the additions to the default.css.

6. I added the additions to the user_data.php in modOsDate.

I'm really stuck.

kilik
06-15-2008, 11:42 AM
here are the steps I took.

1. I backed up all the php and tpl files that would overwrite my own.

2. I added the additions to the language file and loaded with no problems.

3. I went into my phpmyadmin for my database and added the fields necessary in osdate_user starting under the field id. I got no database errors.

4. I replaced the php files with your php files and replaced for both update 1 for your zip and the 2nd update zip.

5. I replaced the tpl files with your files in my esl.2-1 template folder and added the additions to the default.css.

6. I added the additions to the user_data.php in modOsDate.

I'm really stuck.

same here testing the mod in local.
i gived up :confused:

on my site instead i changed the value in the init.php cause my table prefix in the database is not osdate_ as default and that worked

swingersnvegas
06-15-2008, 11:46 AM
same here testing the mod in local.
i gived up :confused:

on my site instead i changed the value in the init.php cause my table prefix in the database is not osdate_ as default and that worked

well my osdate_ is my default but it still comes up as the same error.

angel5000
06-16-2008, 03:10 AM
Hi,

I have the same error too.

Perhaps it's in the line 408:
INSERT INTO osdate_onlineusers VALUES ('0','$now','1','0','0','$now','$_SERVER[REMOTE_ADDR]','1')

If i look in my database for osdate_onlineusers i have only 5 columns

userid / lastactivitytime / is_online / last_ping / session_id

kilik
06-16-2008, 03:46 AM
Hi,

I have the same error too.

Perhaps it's in the line 408:
INSERT INTO osdate_onlineusers VALUES ('0','$now','1','0','0','$now','$_SERVER[REMOTE_ADDR]','1')

If i look in my database for osdate_onlineusers i have only 5 columns

userid / lastactivitytime / is_online / last_ping / session_id

the clue is in the init.php :)

mpeetsma
06-16-2008, 03:59 AM
RE: init.php

Two things occur in init.php related to this mod. The first is adding the language file definitions as below. I doubt that the problems on inserting data into your new user table fields is in this file. Init php is not changing values in your database, only system and session variables.

/* MOD START */

/* COUPLES MOD - Added definitions in lanugage files */
/* addin lang definitions for variables used in fields to user record for couples modifications */
$lang['cplgender'] = get_lang_values('cplgender');
$lang['userweight'] = get_lang_values('userweight');
$lang['userheight'] = get_lang_values('userheight');
$lang['sexuality'] = get_lang_values('sexuality');
$lang['zodiac'] = get_lang_values('zodiac');
$lang['playlevel'] = get_lang_values('playlevel');
$lang['motivations'] = get_lang_values('motivations');
$lang['usersmokes'] = get_lang_values('usersmokes');
$lang['userdrinks'] = get_lang_values('userdrinks');
$lang['userage'] = get_lang_values('userage');

THe Second is to create the new "couple" gender type. YOU can refer to other Gender and Couples threads about what to change for that.


/* COUPLES MOD - Added new gender type replacement for couples */
/* Gender mods - added K for couples and changed C for friends */

$sql = 'select sum(if(gender=\'M\',1,0)) as gents, sum(if(gender=\'F\',1,0)) as females, sum(if(gender=\'K\',1,0)) as couples from ! where active = ? and status in (?, ?)';

$row = $db->getRow( $sql, array( USER_TABLE, '1', 'active', get_lang('status_enum','active') ) );

$t->assign( 'gents', $row['gents'] );

$t->assign( 'females', $row['females'] );

$t->assign( 'couples', $row['couples'] );
Thats it. there is no database insertions going on here at all. Any data/records added to the table are done in other php files such as modifyuser.php, savesignup.php, etc etc.

There is also an assumption made that basic and elemental skills in php, sql are available to install it, particularly in a system that already has modifications done as other mods and changes already made will have to be considered and this is not an area I can help you with. This is not a technically complex modification, but it does touch on critical aspects of the basic user profile and data records for the system and it is critical that care is taken in making any changes.. particularly in syntax etc (missing comma's, brackets, misspelling of field names). This mod is running fine in several installations already that are heavily modified with other mods already. DO NOT RUSH YOUR EFFORTS AND BE CAREFUL.

The files offered for the mod are, with the exception of the additions and changes to specific files, unchanged from the stock 2.0.8 and 2.0.8.1 base files. If you have other changes that you've made to your system, there is no way for me to consider this in attempting to help you and you have to rely on your own skills here. On a stock installation this mod works well and reliably.

Check for typos, ommisions etc, etc










the clue is in the init.php :)

angel5000
06-16-2008, 12:28 PM
Hi,

Try with this one 2158

It's a ini.php modified

kilik
06-16-2008, 12:37 PM
Hi,

Try with this one 2158

It's a ini.php modified


its like i did :)

did u substituted the "osdate_" prefix with "!"? or did u change other code?

mpeetsma
06-16-2008, 02:12 PM
I just examined your init.php file and noticed the following statement is repeated twice.

/* COUPLES MOD - Added new gender type replacement for couples */
/* Gender mods - added K for couples and changed C for friends */
$sql = 'select
sum(if(gender=\'M\',1,0)) as Male,
sum(if(gender=\'F\',1,0)) as Female,
sum(if(gender=\'K\',1,0)) as Couples from ! where active = ? and status in (?, ?)';
/* FIN MOD Couples */Immediately following this statement is another which effectively replaces the the one above and pulls the M gender to "gents" and not males along with the wrong case in your variable names ie: couples instead of Couples that the system is expecting.. Recommend you delete or comment out this sql statement.
$sql = 'select sum(if(gender=\'M\',1,0)) as gents, sum(if(gender=\'F\',1,0)) as females, sum(if(gender=\'K\',1,0)) as couples from ! where active = ? and status in (?, ?)';
Just an observation and comment.... it is important to be careful in applying this and any mod... I believe this will cause problems the way it is in your init.php file now..

case is important... K is different than k to the system.. so Couples is a different variable name than that of couples..

Let me know if it makes a difference.




Hi,

Try with this one 2158

It's a ini.php modified

angel5000
06-17-2008, 03:30 AM
Yes right

I haven't see this yesterday night lol

it's now modified 2161

Sorry

It's working well www.sexy-rencontre.eu

paul12345
06-17-2008, 03:57 AM
Hi all,
Does anyone know how to sort the problem out with I.E and the black & grey template (In my case the bi-alternative template) when viewing a profile the background seems to be pushed to the right side, all works well with firefox and opera, your help would be greatly appreciated.

mpeetsma
06-17-2008, 04:39 AM
Glad to hear you sorted it out!.. I looked at your site.. and it seems to work well...

Congrats!

Yes right

I haven't see this yesterday night lol

it's now modified 2161

Sorry

It's working well www.sexy-rencontre.eu (http://www.sexy-rencontre.eu)

kilik
06-20-2008, 06:46 AM
fully working on my site too, but i cant make it work on the homepage, but smething goes wrng in my template.
i tried deleting my old template files and replacing with the modded, but its still the same..the userrresult_viewsmall.tpl doesnt show some detail like age, sexuality, etc..
any suggestion?



edit_ should i put the showing of the profiles in one row? cause i have 2 profiles per row now

ps- my site in the sign has adult content-

mpeetsma
06-21-2008, 02:14 AM
userrresult_viewsmall.tpl is not a supported aspect of this mod and not the default display... but showprofile.php is what loads the values for this tpl file.. use and edit your userrresultviewsmall.tpl that came with osdate.

The rest of your template issues are beyond the scope of this mod.. but occasionally can present a challenge to all of us! :)

fully working on my site too, but i cant make it work on the homepage, but smething goes wrng in my template.
i tried deleting my old template files and replacing with the modded, but its still the same..the userrresult_viewsmall.tpl doesnt show some detail like age, sexuality, etc..

kilik
06-21-2008, 03:19 AM
userrresult_viewsmall.tpl is not a supported aspect of this mod and not the default display... but showprofile.php is what loads the values for this tpl file.. use and edit your userrresultviewsmall.tpl that came with osdate.

The rest of your template issues are beyond the scope of this mod.. but occasionally can present a challenge to all of us! :)

thank you, ill give a look in the afternoon :)

purely4dating
06-27-2008, 05:06 AM
Hi, I have installed the mod, and as far as I can tell I have followed the instructions correctly, but obviously I have done something wrong.
There are two problems.
1. when I select, I am/we are: 'couple' in the registration page, the section for the second persons details, of the couple, does not show, as it does in your demo site.
2. The selectable information for the smoking? drinking? height, weight etc fields, is not showing.
My website is www.purely4dating.com/love/public_html/
I will continue to play with it, until someone answers and saves me..lol
thanks in advance.

mpeetsma
06-27-2008, 01:54 PM
OK.. had a peek...

Did you add to the language file? and then include these arrays in your init.php file as per the instructions.. Might explain why the selectable options aren't displaying anything...

Then review the documentation again!!!.. its quite simple actually.

Although I have never tried to use this mod in a subdirectory setup myself, I can't think of any reason off hand it wouldn't work.

IF there are no other changes in your system, you could simply replace the files in your installation with the ones supplied in terms of the php and tpl files..

Otherwise, PM me with details and I'll take a quick look.







Hi, I have installed the mod, and as far as I can tell I have followed the instructions correctly, but obviously I have done something wrong.
There are two problems.
1. when I select, I am/we are: 'couple' in the registration page, the section for the second persons details, of the couple, does not show, as it does in your demo site.
2. The selectable information for the smoking? drinking? height, weight etc fields, is not showing.
My website is www.purely4dating.com/love/public_html/ (http://www.purely4dating.com/love/public_html/)
I will continue to play with it, until someone answers and saves me..lol
thanks in advance.

purely4dating
06-27-2008, 05:17 PM
Thank you mpeetsma for the super fast reply.
I had included the info into the language file, but not the init. I have now done that and have got a bit further along.
The section for the second persons details, still does not show, however, and when I went to do a test sign up as a couple, I was given the error message, 'Individual usernames of members forming couple should be entered.
* indicates required information'

If you have any other suggestions, I would be grateful, but in the meantime, I am going to go file by file to make sure I have followed the instructions completely.

The reason I have it in a subfolder, is because, once I have the osdate script fully installed, with all the add-ons, it will be replacing the current dating site I have on the main website. (and Once I work out how to transfer the existing members from the current website to the osdate site..)

thanks again..it is much appreciated.

paul12345
07-08-2008, 03:20 AM
Hi, I seem to have a problem in the admin panel when viewing a profile, it shows the couples mod! But the information is incorrect (not updated) is anyone else having this problem, also when going to edit profile the mod does not display

kilik
07-08-2008, 07:47 AM
after a few weeks working fine, today i check and it doesnt show the extra-field for the partner2 in the signup when choosing couple as gender.
i replaced all the files once again, but its the same.:mad:im pissed off

mpeetsma
07-08-2008, 01:35 PM
Back from vacation!..
Admin screens?.. guess I failed to update the showprofile.tpl files etc in the admin section.. my fault.. will upload a correction once I get to it this week.

Hi, I seem to have a problem in the admin panel when viewing a profile, it shows the couples mod! But the information is incorrect (not updated) is anyone else having this problem, also when going to edit profile the mod does not display

mpeetsma
07-08-2008, 01:37 PM
No idea.. If it was working for a few weeks then no reason not to work today!.. unless something has changed in your server, your osdate install or something else changed...

I've been running since it was created and it has never failed.

Has anything changed in any of your php files etc? specifically signup.php or edituser.php etc? or did you change your language file or something?





after a few weeks working fine, today i check and it doesnt show the extra-field for the partner2 in the signup when choosing couple as gender.
i replaced all the files once again, but its the same.:mad:im pissed off

mpeetsma
07-08-2008, 01:39 PM
There are a few addtions coming shortly that address the advsearch and mymatches functions to accomodate the couples mod.

Should be available within the week or so.. also changes signup process to a multistage signup process in the new release (optional of course) but addresses some new additions/plugins I've created for upcoming 2.1 release.


I just got the mod installed on my test site...It's very cool. Can't believe osDate didn't come with something like this to begin with. Looking forward to the next update. I made a few modifications to your mod to make it more friendly for my site. Have not put it into production yet as I want to see what you come up with first.....


Great work

kilik
07-08-2008, 01:40 PM
no nothing, and i restored the files.
i gived up :(

paul12345
07-08-2008, 10:32 PM
Back from vacation!..
Admin screens?.. guess I failed to update the showprofile.tpl files etc in the admin section.. my fault.. will upload a correction once I get to it this week.

Thanks Mike,
Other than that all is working well, have had no problems except the issue with I.E and the background shifting to the right with Black & Grey template, would be nice if the fields SMOKING and DRINKING would apply to both genders ;)

konafan23
07-18-2008, 09:53 PM
Im only have 1 option under releationship desired, like to play. smoking , drinking...etc. i updated the lang file and reloaded it and cleared the cache and templates_c. Also the couples pictures are not showing up

ddukswingers
07-19-2008, 06:30 AM
Fantastic Script that has been worth waiting for.... WELL DONE! :D
Your work is very much appreciated!

One slight little problem (for me that is). I have seen posts in the forum abaout adding genders to database, however, I have just done a search and can not find any?:confused:

Can anyone please post a link to point me in the right direction as I would love to get this addon up and running asap.

Thanks anyone who can help

Debbie

rogerbr9999
07-19-2008, 09:57 AM
following the topic - really good mod

mpeetsma
07-19-2008, 11:28 AM
The gender issue is a very simple one.
Just examine the language file and you will find where you can define Gender Type coding.

Then with the php files in this mod, simply search for the gender identifiers "M" "F" and "K". M = male, F= female and K = couples. If you define more gender types in your langauge file, routines in the php files will have to be adjusted with your new gender identifiers to use various routines, ie: search etc.

it really isn't that hard to do.. butyou can also refer this this thread on this forum for more clues and guidance... might help you too.

http://forum.tufat.com/showthread.php?t=26847&highlight=gender&page=2



Fantastic Script that has been worth waiting for.... WELL DONE! :D
Your work is very much appreciated!

One slight little problem (for me that is). I have seen posts in the forum abaout adding genders to database, however, I have just done a search and can not find any?:confused:

Can anyone please post a link to point me in the right direction as I would love to get this addon up and running asap.

Thanks anyone who can help

Debbie

konafan23
07-19-2008, 01:09 PM
fixed the problems now the only thing is that some choices appear more that once. and its random normally ask me later any help?

kutte128
07-23-2008, 05:11 AM
hello, i have a strange issue:

the mod works perfect for registering, but i can't change my profile anymore.
the drop-down for "County / District" shows the first entry from db but not the saved one and if i try to change it, the page jumps to "basic Information".
the same for "City / Locality" and ZIP. problem is for all 3 gendertypes

but: it works if i change the "State / Province" to another value and back again.then i can select the right settings and save them.

can someboy help me?

[edit] i found one of the errors: in edituser.tpl is reads{html_options options=$lang.counties selected=$user.countycode} but i should be
{html_options options=$lang.counties selected=$user.county}

now it saves the right values, but the problem with the javascript saving after changing the values is still there

best regards,
kutte128

sorry for the spelling...

chickenhouse
07-24-2008, 08:40 PM
Hi,

Thanks for the mod it's a great idea and just what I need.

Problem is my site is totally screwed up. I've only just started the site I don't have any real data yet so I was happy to just upload your changes and see how it goes. I assume uploading, changing the files necessary and uploading, and adding those variables to the DB is all I need. I don't need to run any install files again?

Anyway all I get is the Error - Unable to insert records
You can see it at my site (http://www.3dsex-reviews.com/osDate_v2081/public_html/)

I can't even go to the admin pages.

Any help with this would be greatly appreciated.

Thanks,
Travis

I did notice one thing when I was updating the language file. Pisces has been misspelt as Pices. Not a big deal but something you might want to fix for your own site.

kayo
07-26-2008, 04:16 AM
When i search profiles, filters dont work - if you looking for eg couples who seeking females youve get couples who seeking couple or man too.
Any idea?
PS sorry for my english

paul12345
07-26-2008, 11:48 PM
hello, i have a strange issue:

the mod works perfect for registering, but i can't change my profile anymore.
the drop-down for "County / District" shows the first entry from db but not the saved one and if i try to change it, the page jumps to "basic Information".
the same for "City / Locality" and ZIP. problem is for all 3 gendertypes

but: it works if i change the "State / Province" to another value and back again.then i can select the right settings and save them.

can someboy help me?

[edit] i found one of the errors: in edituser.tpl is reads{html_options options=$lang.counties selected=$user.countycode} but i should be
{html_options options=$lang.counties selected=$user.county}

now it saves the right values, but the problem with the javascript saving after changing the values is still there

best regards,
kutte128

sorry for the spelling...

Hi all,

I'm having the same problem, Mike mentioned bringing a new version of the couples mod out, sure he will look into this. Until then I have asked the members to change country then select the country of origin and state, city and save, a few members have noticed this bug.

sunset
07-27-2008, 10:25 AM
Hi,

Thanks for the mod it's a great idea and just what I need.

Problem is my site is totally screwed up. I've only just started the site I don't have any real data yet so I was happy to just upload your changes and see how it goes. I assume uploading, changing the files necessary and uploading, and adding those variables to the DB is all I need. I don't need to run any install files again?

Anyway all I get is the Error - Unable to insert records
You can see it at my site (http://www.3dsex-reviews.com/osDate_v2081/public_html/)

I can't even go to the admin pages.


Any help with this would be greatly appreciated.

Thanks,
Travis

I did notice one thing when I was updating the language file. Pisces has been misspelt as Pices. Not a big deal but something you might want to fix for your own site.

Look at page 3 of this thread and you will find a post by angel5000 with a modified init.php file for download. I had exactly the same problem you have and that fixed it. The problem is that the script is trying to insert more field values into the database than there are fields available. Your problem should be solved with the newer file.

I would be sure to read every post in this thread to date, as there have been little modifications along the way to help with little things as they have come up. I have little things going on with my script as well...but it is getting there! :)

Wonder if files (for fresh installs) of all the necessasary files for this mod would be a good idea? Meaning.. someone could just replace all files.. no editing of their files what so ever and an sql file to add the fields to the database? I know that many of them are that way already.. but from reading this thread front to back... the problems and confusions seem to be in the few files that are being edited by users. This step might help cut out alot of the install problems and guess work for all of this. Hmmmm... something to think about.

jeffkoz
08-01-2008, 06:35 AM
I'm new to osDate after a monster load of troubles with another package. So far I love it and am moving forward. This mod is what has me sold as of right now, because couples is my target (swingers).

I have one issue - the smoking and drinking is at the "couple" level. How difficult would that be to move to each individual? Many times one member of a couple will smoke and/or drink and the other does not....

Thanks for a great mod!

chickenhouse
08-08-2008, 08:00 PM
Look at page 3 of this thread and you will find a post by angel5000 with a modified init.php file for download. I had exactly the same problem you have and that fixed it. The problem is that the script is trying to insert more field values into the database than there are fields available. Your problem should be solved with the newer file.

I would be sure to read every post in this thread to date, as there have been little modifications along the way to help with little things as they have come up. I have little things going on with my script as well...but it is getting there! :)

Wonder if files (for fresh installs) of all the necessasary files for this mod would be a good idea? Meaning.. someone could just replace all files.. no editing of their files what so ever and an sql file to add the fields to the database? I know that many of them are that way already.. but from reading this thread front to back... the problems and confusions seem to be in the few files that are being edited by users. This step might help cut out alot of the install problems and guess work for all of this. Hmmmm... something to think about.

Thanks for the advice I'll give it a go. I agree a full install pack with couples mod would be great. It gets very confusing with all these little fixes.

chickenhouse
08-08-2008, 08:16 PM
PS. What's the word on v2.1.0 will they have true couple profiles in this version. It's supposed to come out any day now. Is it worth waiting for that?

jackal1
08-12-2008, 09:14 AM
I have a question, can someone in tell me where or how do i install the new database tables? what file is the file name to add this? is it sql folder? Sorry I am new to this.

Thanks

chickenhouse
08-13-2008, 02:03 AM
Go into the osdate_user table.

If you have mysql just click on the SQL tab and insert this code;

ALTER TABLE `osdate_user` ADD `p1_orientation` VARCHAR( 10 ) DEFAULT 'na' NOT NULL ,
ADD `p1_height` VARCHAR( 8 ) ,
ADD `p1_weight` VARCHAR( 8 ) ,
ADD `p2_age` CHAR( 3 ) NOT NULL ,
ADD `p2_orientation` VARCHAR( 10 ) DEFAULT 'na' NOT NULL ,
ADD `p2_height` VARCHAR( 8 ) ,
ADD `p2_weight` VARCHAR( 8 ) ,
ADD `p1_zodiac` VARCHAR( 12 ) ,
ADD `p2_birthdate` DATE DEFAULT '0000-00-00' NOT NULL ,
ADD `p2_zodiac` VARCHAR( 12 ) ,
ADD `usersmokes` VARCHAR( 20 ) NOT NULL ,
ADD `userdrinks` VARCHAR( 20 ) NOT NULL ,
ADD `motivation` VARCHAR( 20 ) NOT NULL ,
ADD `playtype` VARCHAR( 20 ) NOT NULL ,
ADD `p1_gender` VARCHAR( 2 ) DEFAULT 'M' NOT NULL ,
ADD `p2_gender` VARCHAR( 2 ) DEFAULT 'F' NOT NULL

jackal1
08-13-2008, 05:02 AM
thankyou very much

jackal1
08-14-2008, 08:46 AM
Ok I got it working now, but the

/templates/default/images/custom/icons/cplicon.gif
/templates/default/images/custom/icons/malicon.gif
/templates/default/images/custom/icons/femicon.gif"


don't showup in the homepage. I like the icons are missing.

Can anyone help.

Thanks

chickenhouse
08-16-2008, 03:20 PM
I had this same problem.

getsnap.php deals with the photos.

My photos are called male.jpg, female.jpg and couple.jpg.

Just change

else {

if ($gender == 'M') {
$nopic = SKIN_IMAGES_DIR.'male.jpg';
} elseif ($gender == 'F') {
$nopic = SKIN_IMAGES_DIR.'female.jpg';
} elseif ($gender == 'C') {
$nopic = SKIN_IMAGES_DIR.'couple.jpg';
}

to

else {

if ($gender == 'M') {
$nopic = SKIN_IMAGES_DIR.'male.jpg';
} elseif ($gender == 'F') {
$nopic = SKIN_IMAGES_DIR.'female.jpg';
} elseif ($gender == 'K') {
$nopic = SKIN_IMAGES_DIR.'couple.jpg';
}

mpeetsma
08-20-2008, 05:18 PM
New mod is undergoing tests now and can be seen live at www.kanadate.com (http://kanadate.com). This site is osdate 2.1 release. Suggest create an account then edit the profile to see mod functions.

Also, will be integrate with new mymatch and search functions so that proximity searches actually work as we all would expect them too! I"ll announce it when it this code is done, still testing some api stuff out with google and yahoo geocoding api that are integrated to test and qualify user locations information etc... THe zipcode data supplied by osdate is trash.. not accurate at all to the postal codes... 95% incorrect longitude and latitude data... and eliminating the need to specify county and/or state and or country to do a simple proximity search..

My view of it that the entire world has a latitude and longitude and if you live close to a border (country or state/province) you should be able to see those who live there that fall within the radius of your search! SO have completely rewritten the code for all searches, matches and zipcode/location stuff so it makes intuitive sense to use. Still testing on development site. Expecting to be made available at Kanadate.com (http://kanadate.com) for evaulation within about a week. Letcha know


This mod will NOT be released until formal announcement and release of version 2.1 is made to the public.

solid.nl
09-10-2008, 01:45 AM
I believe the 2.1 is officially out now? I would love to see the true couples mod for that version.


Sander

mpeetsma
09-10-2008, 04:31 AM
I believe the 2.1 is officially out now? I would love to see the true couples mod for that version.
Sander

Couples MOD has been integrated into 2.1 can be seen at Kandate.com (http://kanadate.com).
Simply signup or login with a test user id: ie test2/test2 etc.

Release date is unknown at this time as I am currently separating the search match stuff from the sign up and edit. if you wish to see what a full "couples" profile looks like on the system, simply examine the profile for "theboss" user on the site. It reflects the current state of the modificaitons for profiles.

IF you examine the code for 2.1 against 2.0.8.1, you will see that you can easily replicate the mod into 2.1 the same way as you did 2.0.8.1.

On this site, I"ve shortened the entire signup process and leave the profile detail on the edituser stuff.

leo89
10-03-2008, 11:26 AM
will work this mod on 2.1.0 ? just want to know and if is posible a HOWTO step by step for newbie`s please..
best regards Leo

mpeetsma
10-05-2008, 02:38 AM
will work this mod on 2.1.0 ? just want to know and if is posible a HOWTO step by step for newbie`s please..
best regards Leo

The changes necessary to facilitate this mod in 2.1 are quite similar to that in 2.0.8.1, but you will need to do them manually, but its not difficult if you simply follow the logic since the two versions are so very similar.

The approach to the modifications is the same for both versions. Just do them a step at a time.

I will release this mod for 2.1 once I complete the separation of the Search Match stuff from the sign up and profile editing aspect of the system and render the Match and Search functions as a separate function of the profile and get the damn Match Making stuff and radius search stuff to work a little more intuitively and without such restrictive ties to the unnecessary overhead of "Country, State,County,City" relationships that is REQUIRES as its designed right now.

kilik
10-10-2008, 07:42 AM
im doin the manual edit in 2.1, i cant edit succesfully the nickbasic.tpl (in 2.1 i suppose it is nick_address or something like that) the userresultviewsmall and the signup tpl..


can u please suggest where i have to edit? or copy the whole codepage? :confused:

thank you

angel5000
10-20-2008, 06:40 AM
Hi,

The mod is still running on osdate 2.1.3 but i have little problem with userresultviewsmall.tpl that don't display the good height and weight...

msszroberts
10-20-2008, 10:26 AM
http://forum.tufat.com/showthread.php?t=45173

Hi,

The mod is still running on osdate 2.1.3 but i have little problem with userresultviewsmall.tpl that don't display the good height and weight...

VirtuaProjects
10-20-2008, 02:44 PM
Hello everyone,

I just noticed this mod & tried to install it.
Badly it seems not to work, although i did all the steps?

Anyone had this problem before?

Thanks for your support

MAWarGod
10-20-2008, 04:14 PM
ok I really want this mod..so am starting now to try to see if it will work on My site..

VirtuaProjects
10-21-2008, 01:34 AM
Redid everything.
- added to language file
- updated mysql structure
- added the tpl files
- changed the init.php
- etc

This script doesn't work at my website.:(
Hope to solve this with just adding extra fields, unless somebody is willing to help me out.

Thanks

awarrior
11-13-2008, 05:41 AM
Any updates on a new version of this mod for the 2.1.x versions yet ??

MSport
11-13-2008, 02:21 PM
I second that! Any news on the mod for v 2.1.x?

Looks great how you have it running on your site at kandate.com, mpeetsma. I have given a 1st-round attempt at manually integrating the files from your first release - unsuccessfully. Hopefully you're close to having a package ready for 2.1.x.

Very much appreciate all of the work that has gone in to this mod!


Any updates on a new version of this mod for the 2.1.x versions yet ??

cyborex
12-04-2008, 12:00 PM
Has anyone else had this problem? I'm using osdate 2.1.6 with php 5.2.6 and mysql 5.0.67. whenever I try to create a new user account, I can fill in all of the fields, click on send, I see the confirmation page that it successfully registered, I even receive the confirmation e-mail, however when I go to log in with the newly created account it says that the account doesn't exist. I'm assuming it's not writing the to the mysql database, however I don't know which file or files I need to be looking at to correct this issue. any ideas?

cheops@collector
12-19-2008, 08:18 AM
I could kill for this mod too :-D

cyborex
12-19-2008, 09:19 AM
I did finally get my couples mod to work, it involved changing the "C" field in a couple of the files to "K" and then reloading my language pack. after that it was just a matter of setting up the different question sets for the couples section. It works pretty well and best of all it gets along with my sql database.

mrjem
01-27-2009, 12:58 AM
I did finally get my couples mod to work, it involved changing the "C" field in a couple of the files to "K" and then reloading my language pack. after that it was just a matter of setting up the different question sets for the couples section. It works pretty well and best of all it gets along with my sql database.


I am using osdate 2.1.6 witch mod did u use ?

looking some time for a mod like this

Thanx

cheops@collector
01-27-2009, 02:10 PM
Hi Cyborex, can you share your working mod..?

kobiadato1603
01-28-2009, 01:52 AM
will y share it please

ygpmaverick
02-18-2009, 07:22 PM
Looks like its a no go. His sites are now offline.

Litheran
03-04-2009, 11:04 AM
Anyone able to share the modified files for 2.1.8.?

Seems that this mod is really broken with the latest release..

bonoboy
03-05-2009, 01:43 PM
Yes, that will be appreciated... I try to understand who's taken the decision to implemented the current version of "couple profiles"... Or if we could have the option to choose which version to use in the standard osdate.

Thanks coder

Bonoboy

sfraise
03-26-2009, 04:28 PM
I would really like to see a mod for this in 2.1.8 also.
Maybe if I get the time and energy I'll see if I can't put something together for it this weekend.

tammy123
04-18-2009, 10:33 PM
For users 2.1.8.: http://forum.tufat.com/showthread.php?t=48867&highlight=couples+modification&page=2 :D

TheHebe
04-20-2009, 06:57 AM
So this script isn't running live, hasn't been added to the 'default script' so I guess it doesn't pass muster.

eraserhead
04-29-2009, 06:35 PM
Hello!

I install the mod following the steps, but when i try access the site, nothing happen, any error msn just a blank page. i try change template but nothing...

Help me!

tammy123
04-30-2009, 01:37 AM
@eraserhead

It would be appriciated by us if you post you're OSDATE settings (version, etc...)
Errors in one version, are different than in others.

I just installed it for 2.1.9. and it works :-D

eraserhead
04-30-2009, 05:20 AM
I try install mod in osdate 2.0.8, dont work, so i install in 2.1.9, but same problem.
i belive that the problem is in 2 files index.php and init.php, if i change this files
some errors appears

Ex: if i open my init.php and make the changes this error appears:
Call to a member function getAll() on a non-object in /home/public_html/index0.php on line 354, but if i upload thee init.php from the mod a blank page appears.

www.candyclub.com.br/index0.php to see

thanks

TheHebe
04-30-2009, 04:51 PM
I retried.

On refresh I lost my color scheme. (no background colour no div's) although the text was in place. Upon refreshing my language file 'manage language' I got blank pages.

I deleted the files and restored my files.

Seems mods don't work when 'see this mod working live' is a not found file and it's an old mod which doesn't make it into the next upgrade of osDate.

Although I did remove the orientation, play.., motivation in my fields as that isn't what I'm geared for on my site, but that should not have been no matter.

tammy123
04-30-2009, 11:58 PM
@eraserhead

It is a database error i believe. Go to you're .php file in you're case index0.php,
look for $db and replace with $osDB (for versions 2.1.8 and above)
They changed the name that points to the database.
It is a problem you will find in many modifications.

By the way, with this mod, you need to look for what they changed, in the files, if you work from a fresh install, you can replace the files, otherwise, look for
everything between /* COUPLES MOD ADDITIONS */ and /* END OF COUPLES MOD ADDITIONS */ otherwise, all your other changes are gone


Hope it helps ;)

eraserhead
05-01-2009, 09:27 PM
Thanks !!!

Its work! i change to $osDB in all mod files, everything is right now!

Very Thanks:)

tammy123
05-01-2009, 09:29 PM
You're welcome, keep in mind, it is an error you are gone stumble on manny times, so you now know what you have to do :mrgreen:

Drandarian Grey
05-09-2009, 01:27 PM
@eraserhead

It is a database error i believe. Go to you're .php file in you're case index.php,
look for $db and replace with $osDB (for versions 2.1.8 and above)



Hey Tammy, when you refer to $db are you refering to the index.php that comes with the couples mod?

DG

eraserhead
05-14-2009, 11:39 AM
hello!

I have a new problem in my osdate after i install the couple mod, my Newest Profiles and Featured Profiles don't show in my site(www.candyclub.com.br), i need a help, i try many things but i dont know where is the problem.

Thanks guys

tammy123
05-15-2009, 03:57 AM
@Drandarian Grey
Yep, i now check all the .php files in the modificationfiles for $db and replace them with $osDB (so not only the index.php, buth the rest as well)

JWebDD
05-20-2009, 08:12 AM
If anyone has this working on a fresh install of 2.1.9, can you please post the modified files. It would be much appreciated. Will send $20 paypal to whomever sends me the working files for 2.1.9

JWebDD
05-22-2009, 01:56 PM
I will give $30 to anyone who can send me this for 2.1.9

paul12345
05-23-2009, 01:08 AM
I will give $30 to anyone who can send me this for 2.1.9

Give the $30 to the Osdate team, as they are working on a new couples sign up ;)

tammy123
05-23-2009, 01:13 AM
@JWebDD

Here you got the files for 2.1.9.
I got it working in there.
Just replace the .php files and the .tpl files with this ones (works for the default site)
In the txtfile for sql-database, i wrote the sql instructions so it can be done automaticly, you find it at the end of the file.
For the rest, follow the instructions in the readme1st text file.
I relaced the main_lang file with my one, so just replace the whole file.
As for you're money, ...:roll:
I myself think it's a good program, and it's free so why not donate the money to Tufat.com :-D

PS. removed the old couples mod, and replaced with the latest adjustments (08/06/2009)

JWebDD
05-23-2009, 04:52 AM
I've replaced the files but when I choose 'couple' under Member Information, I do not get the drop the that allows you to input the info of the second person.

Any ideas?

Can be seen here:

http://tinyurl.com/r58s2z

@JWebDD

Here you got the files for 2.1.9.
I got it working in there.
Just replace the .php files and the .tpl files with this ones (works for the default site)
In the txtfile for sql-database, i wrote the sql instructions so it can be done automaticly, you find it at the end of the file.
For the rest, follow the instructions in the readme1st text file.
I relaced the main_lang file with my one, so just replace the whole file.
As for you're money, ...:roll:
I myself think it's a good program, and it's free so why not donate the money to Tufat.com :-D

JWebDD
05-24-2009, 06:57 PM
I really need some help

JWebDD
05-25-2009, 12:24 PM
I finally have this installed but now I have another problem. When you go to choos an option under 'Smoking' it shows 'Anything' twice. This also happens in the 'Relationship desired', 'Like To Play', 'Drinking' and 'My Sexual Orientation' drop down boxes. Anyone know why this is happening?

Also under Search Preferences on the initial signup page, there are no States to choose from in the 'Where should we look?' drop down.

tammy123
06-03-2009, 11:37 PM
Nope, i have the same problem, have looked at it, and don't know what is wrong. If some one knows, ...

vijaynair
06-04-2009, 01:40 AM
I finally have this installed but now I have another problem. When you go to choos an option under 'Smoking' it shows 'Anything' twice. This also happens in the 'Relationship desired', 'Like To Play', 'Drinking' and 'My Sexual Orientation' drop down boxes. Anyone know why this is happening?

Also under Search Preferences on the initial signup page, there are no States to choose from in the 'Where should we look?' drop down.

I believe, you have added 'Anything' as option for the question.

JWebDD
06-04-2009, 05:43 PM
I believe, you have added 'Anything' as option for the question.

Actually under smoking, "Ask Me Later" appears twice, I said "Anything" by mistake.

JWebDD
06-06-2009, 07:48 PM
Nope, i have the same problem, have looked at it, and don't know what is wrong. If some one knows, ...

To fix this problem I removed all similar bits of code from signup.tpl I dont know if this is a good idea so try it at your own risk. Seems to work though. Just search for /option and remove the lines that look somilar to the one below.

<option value="">{lang mkey='motivations'}</option>

tammy123
06-07-2009, 10:01 PM
To fix this problem I removed all similar bits of code from signup.tpl I dont know if this is a good idea so try it at your own risk. Seems to work though. Just search for /option and remove the lines that look somilar to the one below.

<option value="">{lang mkey='motivations'}</option>

Hey thanks man, seems to be working fine :)
I did also a copy/replace of the country code (from the original files), and it works now al right for me also.
I attached the new signup.tpl, and the complete correct zip, with adjusted .tpl so it is easyer for new users.

JWebDD
06-10-2009, 06:13 PM
edituser.tpl also needed to be modified (showed duplicate choices). I've included the modified version.

2633