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.
If i go to .../search.php?show=match to show my matches as default it shows the simple way ( without a match percentage ) |
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 |
And how can i show the age and the city from the match your viewing? |
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. |
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 |
Can't i just put it in BxBaseSearchProfile::PrintSearhResult? 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.
|
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 :-) |
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 |
Hello Can't i just put it in BxBaseSearchProfile::PrintSearhResult? 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 |
Thank you anton, so I did like this: In templates/base/search_profiles_ext.html <div class="short_desc" style="__add_style_c1__"> In templates/base/scripts/BxBaseSearchProfile.php function PrintSearhResult($aProfileInfo, $aCoupleInfo = '', $aExtendedKey = null, $sTemplateName = '', $oCustomTemplate = null) And $aKeys = array( It works ! Baloo |