Short description

Hi all, can anyone help, im looking to add some items to the 'short description' that you see when looking at the 'exteneded view' on browse.php. i would like to add the members sex, age, location etc but can seem to work out where to start?

 

Thanks in advance :)

You Creature!!
Quote · 13 Jan 2013

You can try this,

will chang extended on browse and search page

1)
open file templates/base/search_profiles_ext.html

Find this code:
    <div class="short_desc" style="__add_style_c1__">
            <div class="nick">__nick__</div>
            <div class="age_from">
                __zodiac_sign__ __info__
            </div>
            <div class="desc">__i_am_desc__</div>
        </div>

edit to this:
    <div class="short_desc" style="__add_style_c1__">
            <div class="nick">__nick__ __info__</div>
            <div class="age_from">
                <img src="__sex_image__" alt="__sex_image__" />
            __zodiac_sign__
            __age__ __city_con__
            </div>
            <div class="desc">__i_am_desc__</div>
        </div>


2)
Open file templates/base/scripts/BxBaseSearchProfile.php

find this function: function PrintSearhResult($aProfileInfo, $aCoupleInfo = '', $aExtendedKey = null, $sTemplateName = '', $oCustomTemplate = null)

Find this code:
    $sProfileZodiac = ($bExtMode && getParam('zodiac')) ? $GLOBALS['oFunctions']->getProfileZodiac($aProfileInfo['DateOfBirth']) : '';


Add this code bellow it

    // profile Nick/Age/Sex etc.
    $sAgeStr = ($aProfileInfo['DateOfBirth'] != "0000-00-00" ? (_t("_y/o", age( $aProfileInfo['DateOfBirth'] )) .' ') : "");
    $sAgeOnly = ($aProfileInfo['DateOfBirth'] != "0000-00-00" ? ( age( $aProfileInfo['DateOfBirth'] )) : "");
    $y_o_sex = $sAgeStr ;

    $city =  _t("_City").": ".process_line_output($aProfileInfo['City']);
   
    $country = $aProfileInfo['Country'] ?
    _t("_Country").": "._t($aPreValues['Country'][$aProfileInfo['Country']]['LKey']).'&nbsp;<img src="'. ($site['flags'].strtolower($aProfileInfo['Country'])) .'.gif" alt="flag" />'
    : '';

    // country flag
    $sFlag = ($aProfileInfo['Country'] != '') ? '&nbsp;<img src="'. ($site['flags'].strtolower($aProfileInfo['Country'])) .'.gif" alt="flag" />' : '';
    $sCityName = ($aProfileInfo['City']) ? process_line_output($aProfileInfo['City']) . ', ' : null ;
              if (!empty($aProfileInfo['Country']))
    $city_con = $sFlag . ' ' . $sCityName . _t( $aPreValues['Country'][$aProfileInfo['Country']]['LKey'] );
        else
    $city_con = '';
    $sSexIcon = $GLOBALS['oFunctions']->genSexIcon($aProfileInfo['Sex']);


3)
find this code:
    $aKeys = array(
            'thumbnail' => $sProfileThumb,
            'match' => $sProfileMatch,

            'nick' => $sProfileNickname,
            'info' => $sProfileInfo,
            'i_am_desc' => $sProfileDesc,
            'zodiac_sign' => $sProfileZodiac,


Add this code bellow it
        'city_con' => $city_con,
            'age' => $y_o_sex,
            'sex_image' => $sSexIcon,


4)
Delete cache


5)
Done..

Quote · 13 Jan 2013

Thanks for that it works great :)

You Creature!!
Quote · 14 Jan 2013
 
 
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.