Set Profile Default to Info

Is there a way to set the default to Profile Info when someone clicks on an Avatar/Photo of a member? (instead of the wall/profile albums)

Quote · 18 Dec 2010

Open your inc/profiles.inc.php

find this function

function getProfileLink( $iID, $sLinkAdd = '' ) {
$aProfInfo = getProfileInfo( $iID );
$iID = ($aProfInfo['Couple'] > 0 && $aProfInfo['ID'] > $aProfInfo['Couple']) ? $aProfInfo['Couple'] : $iID;

return (getParam('enable_modrewrite') == 'on') ? BX_DOL_URL_ROOT . getNickName($iID) . ( $sLinkAdd ? "?{$sLinkAdd}" : '' ) : BX_DOL_URL_ROOT . 'profile.php?ID='.$iID . ( $sLinkAdd ? "&{$sLinkAdd}" : '' );
}

 

change to below

function getProfileLink( $iID, $sLinkAdd = '' ) {
$aProfInfo = getProfileInfo( $iID );
$iID = ($aProfInfo['Couple'] > 0 && $aProfInfo['ID'] > $aProfInfo['Couple']) ? $aProfInfo['Couple'] : $iID;

if('http://'.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']!=BX_DOL_URL_ROOT . 'profile_info.php'){
return BX_DOL_URL_ROOT . 'profile_info.php?ID='.$iID;
}
else return  (getParam('enable_modrewrite') == 'on') ? BX_DOL_URL_ROOT . getNickName($iID) . ( $sLinkAdd ? "?{$sLinkAdd}" : '' ) : BX_DOL_URL_ROOT . 'profile.php?ID='.$iID . ( $sLinkAdd ? "&{$sLinkAdd}" : '' );

}

 

the bold one is the change

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 19 Dec 2010

Great - That worked!

Quote · 19 Dec 2010
 
 
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.