How to Customize the Top Nav Bar by Taking Links Out or Adding Custom Links Manually
This tutorial refers to the very top nav bar.
Requirements
You need to make sure you have the correct set up and that you can login to the admin panel.
Instructions
The top links are listed in the _header.html file. That file can be found in the templates/tmpl_uni/ directory.
On or about line 8 is:
<div class="main">
<!-- top -->
<div class="topestMenuWrapper">
<div class="topestMenu">
__TOP_Links__
__TOP_News__
__TOP_ContactUs__
__TOP_About__
__TOP_Privacy__
__TOP_Termsofuse__
__TOP_FAQ__
__TOP_Feedback__
__TOP_Aff__
__TOP_Invitefriend__
__TOP_Bookmark__
__switch_lang_block__
</div>
</div>
The tags beginning and eding with "__" are bound to top nav bar. If you take one out it will no longer show up in the list.
If you want to add a custom link, you do that. Just use an html tag. You can do something link this:
<div class="main">
<!-- top -->
<div class="topestMenuWrapper">
<div class="topestMenu">
__TOP_Links__
__TOP_News__
__TOP_ContactUs__
__TOP_About__
__TOP_Privacy__
__TOP_Termsofuse__
__TOP_FAQ__
__TOP_Feedback__
__TOP_Aff__
__TOP_Invitefriend__
__TOP_Bookmark__
__switch_lang_block__
<a class="menu_item_link" href="http://www.JamesTadeo.com" target="_blank">JamesTadeo.com</a>
</div>
</div>
In the above example, I just added a link to my site.
You may be wondering where the "_TOP_Links", "_TOP_News" etc. get their value. First off, it isn't from the database. You can open up the design.inc.php file located in the inc folder found in your Dolphin root. On or about line 516 is the following script:
// topest menu items
{
$_page_cont[0]['TOP_Home'] = '<a class="menu_item_link" href="' . $site['url'] . 'index.php">' . _t("_Home") . '</a>';
$_page_cont[0]['BMI_Home'] = '<a class="bottommenu" href="' . $site['url'] . 'index.php">' . _t("_Home") . '</a>';
$_page_cont[0]['TOP_About'] = '<a class="menu_item_link" href="' . $site['url'] . 'about_us.php">' . _t("_About Us") . '</a>';
$_page_cont[0]['BMI_About'] = '<a class="bottommenu" href="' . $site['url'] . 'about_us.php">' . _t("_About Us") . '</a>';
$_page_cont[0]['TOP_Privacy'] = '<a class="menu_item_link" href="' . $site['url'] . 'privacy.php">' . _t("_Privacy") . '</a>';
$_page_cont[0]['BMI_Privacy'] = '<a class="bottommenu" href="' . $site['url'] . 'privacy.php">' . _t("_Privacy") . '</a>';
$_page_cont[0]['TOP_Termsofuse'] = '<a class="menu_item_link" href="' . $site['url'] . 'terms_of_use.php">' . _t("_Terms_of_use") . '</a>';
$_page_cont[0]['BMI_Termsofuse'] = '<a class="bottommenu" href="' . $site['url'] . 'terms_of_use.php">' . _t("_Terms_of_use") . '</a>';
$_page_cont[0]['TOP_Services'] = '<a class="menu_item_link" href="' . $site['url'] . 'services.php">' . _t("_Services") . '</a>';
$_page_cont[0]['BMI_Services'] = '<a class="bottommenu" href="' . $site['url'] . 'services.php">' . _t("_Services") . '</a>';
$_page_cont[0]['TOP_FAQ'] = '<a class="menu_item_link" href="' . $site['url'] . 'faq.php">' . _t("_FAQ") . '</a>';
$_page_cont[0]['BMI_FAQ'] = '<a class="bottommenu" href="' . $site['url'] . 'faq.php">' . _t("_FAQ") . '</a>';
$_page_cont[0]['TOP_Articles'] = '<a class="menu_item_link" href="' . $site['url'] . 'articles.php">' . _t("_Articles") . '</a>';
$_page_cont[0]['BMI_Articles'] = '<a class="bottommenu" href="' . $site['url'] . 'articles.php">' . _t("_Articles") . '</a>';
$_page_cont[0]['TOP_Stories'] = '<a class="menu_item_link" href="' . $site['url'] . 'stories.php">' . _t("_Stories2") . '</a>';
$_page_cont[0]['BMI_Stories'] = '<a class="bottommenu" href="' . $site['url'] . 'stories.php">' . _t("_Stories2") . '</a>';
$_page_cont[0]['TOP_Links'] = '<a class="menu_item_link" href="' . $site['url'] . 'links.php">' . _t("_Links") . '</a>';
$_page_cont[0]['BMI_Links'] = '<a class="bottommenu" href="' . $site['url'] . 'links.php">' . _t("_Links") . '</a>';
$_page_cont[0]['TOP_News'] = '<a class="menu_item_link" href="' . $site['url'] . 'news.php">' . _t("_News") . '</a>';
$_page_cont[0]['BMI_News'] = '<a class="bottommenu" href="' . $site['url'] . 'news.php">' . _t("_News") . '</a>';
$_page_cont[0]['TOP_Aff'] = getParam("enable_aff") == 'on' ? '<a class="menu_item_link" href="' . $site['url'] . 'affiliates.php">' . _t("_Affiliates") . '</a>' : '';
$_page_cont[0]['BMI_Aff'] = getParam("enable_aff") == 'on' ? '<a class="bottommenu" href="' . $site['url'] . 'affiliates.php">' . _t("_Affiliates") . '</a>' : '';
$_page_cont[0]['TOP_Invitefriend'] = '<a class="menu_item_link" href="javascript:void(0);" onclick="return launchTellFriend();">' . _t("_Invite a friend") . '</a>';
$_page_cont[0]['BMI_Invitefriend'] = '<a class="bottommenu" href="javascript:void(0);" onclick="return launchTellFriend();">' . _t("_Invite a friend") . '</a>';
$_page_cont[0]['TOP_Contacts'] = '<a class="menu_item_link" href="' . $site['url'] . 'contact.php">' . _t("_Contacts") . '</a>';
$_page_cont[0]['BMI_Contacts'] = '<a class="bottommenu" href="' . $site['url'] . 'contact.php">' . _t("_Contacts") . '</a>';
$_page_cont[0]['TOP_Browse'] = '<a class="menu_item_link" href="' . $site['url'] . 'browse.php">' . _t("_Browse Profiles") . '</a>';
$_page_cont[0]['BMI_Browse'] = '<a class="bottommenu" href="' . $site['url'] . 'browse.php">' . _t("_Browse Profiles") . '</a>';
$_page_cont[0]['TOP_Feedback'] = '<a class="menu_item_link" href="' . $site['url'] . 'story.php">' . _t("_Add story") . '</a>';
$_page_cont[0]['BMI_Feedback'] = '<a class="bottommenu" href="' . $site['url'] . 'story.php">' . _t("_Add story") . '</a>';
$_page_cont[0]['TOP_ContactUs'] = '<a class="menu_item_link" href="' . $site['url'] . 'contact.php">' . _t("_contact_us") . '</a>';
$_page_cont[0]['BMI_ContactUs'] = '<a class="bottommenu" href="' . $site['url'] . 'contact.php">' . _t("_contact_us") . '</a>';
$_page_cont[0]['TOP_Bookmark'] = '<a class="menu_item_link" href="javascript:void(0);" onclick="addBookmark();">' . _t("_Bookmark") . '</a>';
$_page_cont[0]['BMI_Bookmark'] = '<a class="bottommenu" href="javascript:void(0);" onclick="addBookmark();">' . _t("_Bookmark") . '</a>';
}
You can go in the above script and just update the links manually.
There is a caveat. The orca forum needs to have the top nav bar updated separately. From your root, you can get to the file by going to orca\layout\uni\xsl\canvas.xsl. On or about line 181 you will see this:
<div style="padding:0px 8px 0px 11px">
<div class="topestMenuWrapper">
<div class="topestMenu">
<a class="menu_item_link" href="{/root/url_dolphin}links.php">Links</a>
<a class="menu_item_link" href="{/root/url_dolphin}news.php">News</a>
<a class="menu_item_link" href="{/root/url_dolphin}contact.php">Contact Us</a>
<a class="menu_item_link" href="{/root/url_dolphin}about_us.php">About us</a>
<a class="menu_item_link" href="{/root/url_dolphin}privacy.php">Privacy Policy</a>
<a class="menu_item_link" href="{/root/url_dolphin}terms_of_use.php">Terms</a>
<a class="menu_item_link" href="{/root/url_dolphin}faq.php">FAQ</a>
<a class="menu_item_link" href="{/root/url_dolphin}story.php">Add feedback</a>
<a class="menu_item_link" href="{/root/url_dolphin}affiliates.php">Affiliates</a>
<a class="menu_item_link" href="javascript:void(0);" onclick="addBookmark( '{/root/url_dolphin}', 'Dolphin6' );">Bookmark</a>
</div>
</div>
Download(s)
N/A
Addendum
N/A

|