Search profiles

If i go to .../search.php?show=match to show my matches as default it shows the simple way ( without a match percentage )
How can i set it to extended as default?

I have version 7.1.1.

Quote · 15 May 2013

Hello

You need to use the following link search.php?show=match&mode=extended instead the default one.

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 15 May 2013

And how can i show the age and the city from the match your viewing?
In 7.0.9 i could do it like this: __age__ __just_city__

In 7.1.1. it don't works...

Quote · 15 May 2013

Let me clarify,

It is better to use 'search_result_mode=ext&mode=ext' instead of 'mode=extended' (in case of 7.1.x).

Regarding extra fields (__age__ __just_city__), actually, most of similar fields were removed from BxBaseSearchProfile::PrintSearhResult, so you can't use them anymore in search_profiles_ext.html

But, you can add a code to this file to introduce desired fields. It is also possible to another 'brief info' for 'extended' mode. It is in admin panel -> Advanced settings -> Profiles -> Member brief info (option). There are four possibilities.

Quote · 16 May 2013

Hello 

Let me clarify,
It is better to use 'search_result_mode=ext&mode=ext' instead of 'mode=extended' (in case of 7.1.x).

search.php?show=match&mode=ext doesn't work in Dolphin 7.1. You may check it on BoonEx Demo, login with kangaroo/dolphin http://demo.boonex.com/search.php?show=match&mode=ext displayes profiles in Simple mode.

In the same time search.php?show=match&mode=extended is working fine. http://demo.boonex.com/search.php?show=match&mode=extended displayes profiles in Extended mode.

Also I checked the code of showMatchProfiles function in search.php file and as I see it checkes for 'extended', not for 'ext'.

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 16 May 2013

Can't i just put it in BxBaseSearchProfile::PrintSearhResult?
We want to have the age and only the city.

Regarding extra fields (__age__ __just_city__), actually, most of similar fields were removed from BxBaseSearchProfile::PrintSearhResult, so you can't use them anymore in search_profiles_ext.html

But, you can add a code to this file to introduce desired fields. It is also possible to another 'brief info' for 'extended' mode. It is in admin panel -> Advanced settings -> Profiles -> Member brief info (option). There are four possibilities.

 

Quote · 16 May 2013

Thank you Anton for your clarification. Indeed, it works well in case of 'match' page.

I tested it with a general case (search.php), look and compare:

http://demo.boonex.com/search.php?show=match&mode=extended

http://demo.boonex.com/search.php?search_result_mode=ext

The same page (search.php) uses different GET params. In any event - nevermind :-)

Quote · 16 May 2013

 Hello Andrew

I tested it with a general case (search.php), look and compare:
http://demo.boonex.com/search.php?show=match&mode=extended
http://demo.boonex.com/search.php?search_result_mode=ext

Looks like there is additional GET param for Search. :) However it doesn't work correctly for Match page.

http://demo.boonex.com/search.php?search_result_mode=ext - It works but it's 'People Search', not 'Match' and if we try to add show=match it stops working in case we need to see Extended View. http://demo.boonex.com/search.php?show=match&search_result_mode=ext - displays results in somehow "Simplest" mode instead. There is no Username and Headline. Also such display type cannot be reproduced using Simple/Extended tabs. :) 

http://demo.boonex.com/search.php?show=match&mode=extended - Extended mode for Match page.

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 17 May 2013

Hello 

Can't i just put it in BxBaseSearchProfile::PrintSearhResult?
We want to have the age and only the city.

Regarding extra fields (__age__ __just_city__), actually, most of similar fields were removed from BxBaseSearchProfile::PrintSearhResult, so you can't use them anymore in search_profiles_ext.html

But, you can add a code to this file to introduce desired fields. It is also possible to another 'brief info' for 'extended' mode. It is in admin panel -> Advanced settings -> Profiles -> Member brief info (option). There are four possibilities.

 

You need to modify templates/base/search_profiles_ext.html template file and add keys (__age__ and __just_city__) in it somewhere.

Then you need to modify PrintSearhResult function in templates/base/scripts/BxBaseSearchProfile.php file and add age and just_city keys in $aKeys array.

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 17 May 2013

Thank you anton, so I did like this:

In templates/base/search_profiles_ext.html

<div class="short_desc" style="__add_style_c1__">
            <div class="nick">__nick__</div>
            <div class="age_from">
                __member_badge__ __zodiac_sign__ __age__ - __info__
            </div>
            <div class="desc">__i_am_desc__</div>
        </div>

In templates/base/scripts/BxBaseSearchProfile.php

function PrintSearhResult($aProfileInfo, $aCoupleInfo = '', $aExtendedKey = null, $sTemplateName = '', $oCustomTemplate = null)
    {
        global $site;
        global $aPreValues;

        $iVisitorID = getLoggedId();
        $bExtMode = (!empty($_GET['mode']) && $_GET['mode'] == 'extended') || (!empty($_GET['search_result_mode']) && $_GET['search_result_mode'] == 'ext');
        $isShowMatchPercent = $bExtMode && $iVisitorID && ( $iVisitorID != $aProfileInfo['ID'] ) && getParam('view_match_percent') && getParam('enable_match');

        $sProfileThumb = get_member_thumbnail( $aProfileInfo['ID'], 'none', ! $bExtMode, 'visitor' );
        $sProfileMatch = $isShowMatchPercent ? $GLOBALS['oFunctions']->getProfileMatch( $iVisitorID, $aProfileInfo['ID'] ) : '';
        $sAgeStr = ($aProfileInfo['DateOfBirth'] != "0000-00-00" ? (_t("_y/o", age( $aProfileInfo['DateOfBirth'] )) .' ') : "");

And

$aKeys = array(
            'thumbnail' => $sProfileThumb,
            'match' => $sProfileMatch,

            'nick' => $sProfileNickname,
            'info' => $sProfileInfo,
            'i_am_desc' => $sProfileDesc,
            'zodiac_sign' => $sProfileZodiac,
            'member_badge' => $sMemberBadge,
            'age' => $sAgeStr,

It works !

Baloo
Quote · 25 Apr 2014
 
 
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.