
(Suggestion) Tab Menus And Upi2db (Unread Posts) Problem
I've noted that Unread Posts when active creates a menu problem particularly if one is trying to change the layout to "Expanding Tabs"
I found the only way is to move "Unread Posts" and put it in the breadcrumbs_main.tpl - So you may find these code changes useful if you are using "Expandable Tabs".
overall_header.tpl
Find and remove:
<!-- BEGIN switch_upi2db_off -->
<a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- END switch_upi2db_off -->
<!-- BEGIN switch_upi2db_on -->
<span style="vertical-align: top;">{L_POSTS}: </span><a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a><span style="vertical-align: top;"> • </span>{L_DISPLAY_U}<span style="vertical-align: top;"> • </span>{L_DISPLAY_M}<span style="vertical-align: top;"> • </span>{L_DISPLAY_P} <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- END switch_upi2db_on -->
forum.php
Find:
$nav_server_url = create_server_url();
$breadcrumbs_links_right = '<a href="' . $nav_server_url . append_sid(FORUM_MG . '?mark=forums') . '">' . $lang['Mark_all_forums'] . '</a> ' . MENU_SEP_CHAR . ' <a href="' . $nav_server_url . append_sid(SEARCH_MG . '?search_id=newposts') . '">' . $lang['Search_new'] . '</a> ' . MENU_SEP_CHAR . ' <a href="' . $nav_server_url . append_sid(SEARCH_MG . '?search_id=egosearch') . '">' . $lang['Search_your_posts'] . '</a>';
}
Replace With:
$nav_server_url = create_server_url();
$breadcrumbs_links_right = '<a href="' . $nav_server_url . append_sid(FORUM_MG . '?mark=forums') . '">' . $lang['Mark_all_forums'] . '</a> ' . MENU_SEP_CHAR . ' <a href="' . $nav_server_url . append_sid(SEARCH_MG . '?search_id=egosearch') . '">' . $lang['Search_your_posts'] . '</a>';
}
breadcrumbs_main.tpl
Delete all:
Replace with:
{IMG_TBL}<div class="forumline nav-div">
<p class="nav-header">
<a href="{U_PORTAL}">{L_HOME}</a>{BREADCRUMBS_ADDRESS}
</p>
<div class="nav-links">
<div class="nav-links-left"><!-- IF S_BREADCRUMBS_LINKS_LEFT -->{BREADCRUMBS_LINKS_LEFT}<br /><!-- ENDIF -->{CURRENT_TIME}</div>
<!-- IF S_LOGGED_IN --><a href="{FULL_SITE_PATH}{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a> | <!-- ENDIF --><a href="{U_RECENT}" class="gensmall">{L_RECENT}</a> | <a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a><br />
<!-- BEGIN switch_upi2db_off -->
<a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a> |
<!-- END switch_upi2db_off -->
<!-- BEGIN switch_upi2db_on -->
<span class="gensmall" style="vertical-align: top;"><b>{L_SEARCH_NEW}:</b> </span><a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a><span style="vertical-align: top;"> • </span>{L_DISPLAY_U}<span style="vertical-align: top;"> • </span>{L_DISPLAY_M}<span style="vertical-align: top;"> • </span>{L_DISPLAY_P} |
<!-- END switch_upi2db_on -->
<!-- IF S_BREADCRUMBS_LINKS_RIGHT -->{BREADCRUMBS_LINKS_RIGHT}
<!-- ENDIF -->
</div>
</div>{IMG_TBR}
The pic shows my preferred location in the breadcrumbs! And the "Default Menu" is visible ONLY because I took the snapshot while I was playing with it.
Description: |
|
Filesize: |
8.78 KB |
Viewed: |
221 Time(s) |

|