x% match after search

After a search there is x% match given.

What's this based on? I know you can match field in the backend and give a %. But how is this all calculatet?

And where can i find that code to use it sidewide

Quote · 4 Aug 2008

anyone?

if you have a field for example age and you set the % to 25%.

Would this mean it would get 25% of the bar if it matches?

Would it get 25% out of the number of possible matching items?

How does it work if i set everything to match 100%?

Can anyone please give his experience and opinion on this?

Quote · 6 Aug 2008

BTW the percentage after search, where can i find that part of the code?

I want to use it on more place :)

Quote · 6 Aug 2008

BTW the percentage after search, where can i find that part of the code?

I want to use it on more place :)

Hello,

i had the same question. I found a function 'getProfilesMatch' in file /inc/class/BxDolProfileFields.php. If this is the correct function you can see if how it works. In my opinion, it douesn't work correct cause the code is a little buggy.

I think the switch statement

switch( "{$aField1['Type']} {$aField1['Type']}" ) {

should be changed in

switch( "{$aField1['Type']} {$aField2['Type']}" ) {

The following statement in switch "range date" should be change from

if( (int)$aVal1[0] <= $sVal2 and $sVal2 <= (int)$aVal1[0] )

to

if( (int)$aVal1[0] <= $sVal2 and $sVal2 <= (int)$aVal1[1] )

Hope this helps.

Quote · 1 Sep 2008

Has anyone tried this? Does this code change work?

BTW the percentage after search, where can i find that part of the code?

I want to use it on more place :)

Hello,

i had the same question. I found a function 'getProfilesMatch' in file /inc/class/BxDolProfileFields.php. If this is the correct function you can see if how it works. In my opinion, it douesn't work correct cause the code is a little buggy.

I think the switch statement

switch( "{$aField1['Type']} {$aField1['Type']}" ) {

should be changed in

switch( "{$aField1['Type']} {$aField2['Type']}" ) {

The following statement in switch "range date" should be change from

if( (int)$aVal1[0] <= $sVal2 and $sVal2 <= (int)$aVal1[0] )

to

if( (int)$aVal1[0] <= $sVal2 and $sVal2 <= (int)$aVal1[1] )

Hope this helps.

Quote · 4 Sep 2008

Could someone tell me how I can get rid of the "Percent match" on the search function entirely?  I hate to mess with trying to edit php code.  Is this in a templete file where I could just comment it out?   Does anyone know?

-

Thanks

-

Rob

Quote · 22 Feb 2009

Could someone tell me how I can get rid of the "Percent match" on the search function entirely?  I hate to mess with trying to edit php code.  Is this in a templete file where I could just comment it out?   Does anyone know?

-

Thanks

-

Rob


I have the following settings on my site:

admin panel >>> advanced settings >>> Enable cupid mails - untick >>> Enable matchmaking - untick >>> Send a cupid mail if the recently joined profile matches more than this percentage - set to 300

I do not get match % showing up anywhere on search and/or match emails etc sent.

clubbeyourself
Quote · 22 Feb 2009

Fantastic - no code to edit.  Thanks Club.

Quote · 22 Feb 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.