Changing the LOGO link

anyone care to help me change the link when the logo is clicked?

i need to redirect it to another page, and not the home page, when logo is clicked.

Quote · 21 Apr 2010

Maxshakourian, contacted me privately seeking support for this issue, among others. I have answered his request and according to his words, the solutions I have provided were successful. In case anyone else is looking for the same solution, I am posting what I wrote to him in our private message below:

To change the URI of the logo, edit the design.inc.php file under ./inc/ and look for the following:

function getMainLogo() {
global $dir, $site;

$sFileName = getParam('sys_main_logo');
if(!file_exists($dir['mediaImages'] . $sFileName))
return '';

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

Change the value ' . BX_DOL_URL_ROOT . ' to point to the needed file/directory. For example, if wanted the new location to be http://www.website.com/newhomepage/, it would look like:

function getMainLogo() {
global $dir, $site;

$sFileName = getParam('sys_main_logo');
if(!file_exists($dir['mediaImages'] . $sFileName))
return '';

return '<a href="http://www.website.com/newhomepage/"><img src="' . $site['mediaImages'] . $sFileName . '" class="mainLogo" alt="logo" /></a>';;
}

The needed change is shown in red. Notice that I also removed the two ' symbols, leaving only two " symbols.

Once you have finished editing the file, save your changes and clear the ./cache/ and ./cache_public/ directories, leaving the .htaccess file intact.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 21 Apr 2010

Magnussoft, you are the best. I have received the best answers to all of my questions, and i truely appreciate all your help and support :)

Quote · 3 May 2010

Exactly what I was looking for, thanks!

Is there a way to change the 'Home' URL in the breadcrumbs too? Thanks.

Quote · 21 Jun 2010

Exactly what I was looking for, thanks!

Is there a way to change the 'Home' URL in the breadcrumbs too? Thanks.

Edit the BxBaseMenu.php file under ./templates/base/scripts/ on line 887:

//--- Get breadcrumb path(left side) ---//
$sDivider = '<img class="bc_divider" src="' . getTemplateImage('bc_divider.png') . '" />';
$aPathLinks = array();
foreach($aPath as $sLink)
$aPathLinks[] = '<div class="bc_unit">' . $sLink . '</div>';
$sPathLinks = implode($sDivider, $aPathLinks);

Change the "$sLink" value to the new URI.

//--- Get breadcrumb path(left side) ---//
$sDivider = '<img class="bc_divider" src="' . getTemplateImage('bc_divider.png') . '" />';
$aPathLinks = array();
foreach($aPath as $sLink)
$aPathLinks[] = '<div class="bc_unit">'http://www.website.com/newuri/'</div>';
$sPathLinks = implode($sDivider, $aPathLinks);

The needed changes is shown in red.

Save your changes and empty the ./cache/ and ./cache_public/ directories, leaving the .htaccess file in the former intact.

Have fun (this was not tested).

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 22 Jun 2010

This results in a syntax error I'm afraid:

Parse error: syntax error, unexpected T_STRING in ... line 887

Quote · 22 Jun 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.