Tutorials Blog
Hosting
Software
Dolphin Tips
Help Forums FREE Mods
Licensing
People
Donate
News
Search
  •  
 
 
Tutorial
07.16.2011 01:30    Categories: Dolphin 7     

How to set Dolphin 7 Join and Login links nofollow

This is a Dolphin 7 tutorial that shows you how to set nofollow links on Join and Login near the top right of your website next to Hello, Guest!

Since my site is set to invitation only I see no sense in having the link followed by Google. Even if joining was enabled I still don't know that the join page is really that important for Google to follow, but that is up to you.

The same goes for the Login link that opens the pop-up window. I really don't see the point in having Google follow this one either. It is just a login form with almost no text or info. You will have to think about this one too.

It is not my intent to tell you to do so. I am simply showing you how to do it should you ever want to.





How to set or change Dolphin 7 Join and Login links to nofollow


Download a backup copy of /templates/base/scripts/BxBaseMenu.php to your local computer.

Then, find near the bottom:

$sAddons = _t('_Hello member', _t('_sys_breadcrumb_guest'));
$sAddons .= ' <a href="' . $this->sSiteUrl . 'join.php">' . _t('_sys_breadcrumb_join') . '</a>';
$sAddons .= ' <a href="javascript:void(0)" onclick="showPopupLoginForm(); return false;">' . _t('_sys_breadcrumb_login') . '</a>';



Change to:

$sAddons = _t('_Hello member', _t('_sys_breadcrumb_guest'));
$sAddons .= ' <a href="' . $this->sSiteUrl . 'join.php" rel="nofollow">' . _t('_sys_breadcrumb_join') . '</a>';
$sAddons .= ' <a rel="nofollow" href="javascript:void(0)" onclick="showPopupLoginForm(); return false;">' . _t('_sys_breadcrumb_login') . '</a>';


Save changes back to your host.

Clear Dolphin 7 cache if necessary.

Refresh your website or page.

Verify the changes by viewing page source code or using a Firefox addon.

Example viewing page source code:

Dolphin 7 Page Source Code



Example using a Firefox addon. Pink/red is nofollow and purple/blue is dofollow:

Firefox Addon Showing Nofollow



Note:
You could do Join, Login, both, or neither.

You might also be interested in this tutorial:
How to set Dolphin 7 footer links Nofollow

 
Share It