Redirect user to profile when main logo is clicked

Hi everyone,

Has anyone modified the code to redirect a logged-in user to the profile page when they click on the main site logo?  I want a logged in user to go to their profile page because this is basically the same functionality that Facebook has.  However, if the user is not logged-in, I want them to go to the main site page.

Thanks in advance for the help.

Quote · 30 May 2010

i have been looking for this fuctionality as well, you are able to redirect promo member but not standard from the admin section. if anyone has a fix it would be great

Quote · 23 Jul 2010

I was finally able to figure this out.  Open the design.inc.php file located in the inc folder and make the following change to getMainLogo:

function getMainLogo() {

global $dir, $site; to

//Check if Logged In

check_logged();

$sFileName = getParam('sys_main_logo');

if(!file_exists($dir['mediaImages'] . $sFileName))

return '';

if(isLogged()) {

// Change member.php below to any page that you wish

return '<a href="' . BX_DOL_URL_ROOT . 'member.php' . '"><img src="' . $site['mediaImages'] . $sFileName . '" class="mainLogo" alt="logo" /></a>';

exit;

}

return '<a href="' . BX_DOL_URL_ROOT . '"><img src="' . $site['mediaImages'] . $sFileName . '" class="mainLogo" alt="logo" /></a>';

}

Quote · 31 Jul 2010

Thank you that just was looking for , but still there is a link in the toolbar (class="sys_breadcrumb") that directs you to the index .

can I change it also?

Quote · 19 Aug 2010

 

Thank you that just was looking for , but still there is a link in the toolbar (class="sys_breadcrumb") that directs you to the index .

can I change it also?

 

I actually ended up removing the breadcrumb functionality altogether to prevent the end-user from getting back to the home page.  I also removed it b/c there are way too many indications of where the user is on the default Dolphin installation.  So, it made more sense to remove it from a usability standpoint.

Quote · 26 Aug 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.