|
Page 1 of 1
|
christmanrd
Joined: October 2008
Posts: 206
Location: Pennsylvania
|
Editing, "Top Menu" In The Header Using, "overall_header_bl.tpl"
I am trying to edit this menu.
What I want to do is change, "New" to "News Feed" which is a link to "newsfeed.php".
I also want this to be visible/available to all users.
I have tried changing this:
<!-- 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 -->
To this but, it did not work:
<a href="http://www.appaf.org/forum/newsfeed.php">News Feed</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
Any help will be greatly appreciated.
Thanks,
David
____________ Another Pro Bono
Version of Icy Phoenix: 1.3.0.53a
Version of PHP: 5.2.9
Version of MySQL: 5.0.81-community-log
Board started: 2009/07/18 - 11:50
Registered Users: 123 as of 17 Sep 09
|
#1 Thu 22 Jan, 2009 13:42 |
|
Sponsors
|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Limun
Joined: January 2008
Posts: 1334
Location: [Censor]
|
Re: Editing, "Top Menu" In The Header Using, "overall_header_bl.tpl"
the adress u writed is ok...
problem can be only where u did puted this
example : if you puted between
<!-- BEGIN switch_upi2db_off -->xxxx<!-- END switch_upi2db_off -->
you will not see it
try this (so add your link affter any <!-- END switch_upi2db_off --> ) :
<!-- BEGIN switch_user_logged_in -->
<a href="http://www.appaf.org/forum/newsfeed.php">News Feed</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- END switch_user_logged_in -->
this gona be visible for all users logged in .....
and for guests it gona be invisible ....
____________ We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
|
#2 Thu 22 Jan, 2009 14:12 |
|
christmanrd
Joined: October 2008
Posts: 206
Location: Pennsylvania
|
Re: Editing, "Top Menu" In The Header Using, "overall_header_bl.tpl"
Thank you however, let me show you the code again. This example shows more code.
Code 1: Original
<a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- 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 -->
Code 2: Modified
<a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="http://www.appaf.org/forum/newsfeed.php">News Feed</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<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 -->
____________ Another Pro Bono
Version of Icy Phoenix: 1.3.0.53a
Version of PHP: 5.2.9
Version of MySQL: 5.0.81-community-log
Board started: 2009/07/18 - 11:50
Registered Users: 123 as of 17 Sep 09
|
#3 Thu 22 Jan, 2009 14:24 |
|
Limun
Joined: January 2008
Posts: 1334
Location: [Censor]
|
Re: Editing, "Top Menu" In The Header Using, "overall_header_bl.tpl"
Thank you however, let me show you the code again. This example shows more code.
Code 1: Original
<a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- 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 -->
Code 2: Modified
<a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="http://www.appaf.org/forum/newsfeed.php">News Feed</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<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 -->
something is wrong in this your modified code ... there is missing one <!-- BEGIN switch_upi2db_off -->
here need to be something like this :
<a href="{FULL_SITE_PATH}{U_PORTAL}">{L_HOME}</a> ♦
<a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a> ♦
<a href="http://www.appaf.org/forum/newsfeed.php">News Feed</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- BEGIN switch_upi2db_off -->
<a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a> ♦
<!-- 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} ♦
<!-- END switch_upi2db_on -->
<!-- BEGIN switch_user_logged_in -->
<a href="{FULL_SITE_PATH}{U_PROFILE}">{L_PROFILE}</a> ♦
<!-- END switch_user_logged_in -->
<a href="{FULL_SITE_PATH}{U_SEARCH}">{L_SEARCH}</a> ♦
<a href="{FULL_SITE_PATH}{U_FAQ}">{L_FAQ}</a> ♦
<!-- BEGIN switch_user_logged_out -->
<a href="{FULL_SITE_PATH}{U_REGISTER}">{L_REGISTER}</a> ♦
<!-- END switch_user_logged_out -->
<a href="{FULL_SITE_PATH}{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT2}</a>
____________ We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
|
#4 Thu 22 Jan, 2009 14:53 |
|
christmanrd
Joined: October 2008
Posts: 206
Location: Pennsylvania
|
Re: Editing, "Top Menu" In The Header Using, "overall_header_bl.tpl"
As per your instructions this is what I did:
<td class="forum-buttons" colspan="3" width="100%">
<a href="{FULL_SITE_PATH}{U_PORTAL}">{L_HOME}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="http://www.appaf.org/forum/newsfeed.php">News Feed</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- 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 -->
It (News Feed) is not displaying for all and (New) is still displaying for "Users".
____________ Another Pro Bono
Version of Icy Phoenix: 1.3.0.53a
Version of PHP: 5.2.9
Version of MySQL: 5.0.81-community-log
Board started: 2009/07/18 - 11:50
Registered Users: 123 as of 17 Sep 09
|
#5 Thu 22 Jan, 2009 16:18 |
|
Limun
Joined: January 2008
Posts: 1334
Location: [Censor]
|
Re: Editing, "Top Menu" In The Header Using, "overall_header_bl.tpl"
so , you want to remove "New" and at same place add "News Feed" vieweble only to registred users ?
____________ We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
|
#6 Thu 22 Jan, 2009 18:22 |
|
christmanrd
Joined: October 2008
Posts: 206
Location: Pennsylvania
|
Re: Editing, "Top Menu" In The Header Using, "overall_header_bl.tpl"
Yes, that is exactly what I tried to say when I opened this post.
I am trying to edit this menu.
What I want to do is change, "New" to "News Feed" which is a link to "newsfeed.php".
I also want this to be visible/available to all users.
____________ Another Pro Bono
Version of Icy Phoenix: 1.3.0.53a
Version of PHP: 5.2.9
Version of MySQL: 5.0.81-community-log
Board started: 2009/07/18 - 11:50
Registered Users: 123 as of 17 Sep 09
|
#7 Thu 22 Jan, 2009 18:37 |
|
Limun
Joined: January 2008
Posts: 1334
Location: [Censor]
|
Re: Editing, "Top Menu" In The Header Using, "overall_header_bl.tpl"
<a href="{FULL_SITE_PATH}{U_PORTAL}">{L_HOME}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="http://www.appaf.org/forum/newsfeed.php">News Feed</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- 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 -->
it shoud work like this
____________ We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
|
#8 Thu 22 Jan, 2009 18:39 |
|
christmanrd
Joined: October 2008
Posts: 206
Location: Pennsylvania
|
Re: Editing, "Top Menu" In The Header Using, "overall_header_bl.tpl"
There has not been any change. It is still showing up as New when a user is logged in and does not show anything when a guest is viewing. I even went to a different computer that has not been at the website and it is the same.
Here is my complete file:
{DOCTYPE_HTML}
<head>
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-style-type" content="text/css" />
{META}
{META_TAG}
{NAV_LINKS}
<title>{PAGE_TITLE}</title>
<!-- INCLUDE overall_include.tpl -->
</head>
<body>
<span><a name="top"></a></span>
{TOP_HTML_BLOCK}
{PROFILE_VIEW}
<!-- {GREETING_POPUP} -->
<table width="100%" border="0" align="center" cellspacing="0" cellpadding="0">
<tr>
<td class="leftshadow" width="9" valign="top"><img src="{FULL_SITE_PATH}{SPACER}" alt="" width="9" height="1" /></td>
<td width="100%" valign="top">
<table id="forumtable" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" colspan="3" valign="top">
<div id="top_logo">
<table class="" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td height="150" align="left" valign="middle"><a href="{FULL_SITE_PATH}{U_PORTAL}" title="{L_HOME}"><img src="{FULL_SITE_PATH}{SITELOGO}" alt="{L_HOME}" title="{L_HOME}"/></a></td>
<td align="center" valign="middle">
<!-- BEGIN switch_header_banner -->
<center><br />{HEADER_BANNER_CODE}</center>
<!-- END switch_header_banner -->
</td>
<td align="right" valign="top">
<!-- <div class="sitedes"><h1>{SITENAME}</h1><h2>{SITE_DESCRIPTION}</h2></div> -->
<!-- BEGIN switch_user_logged_in -->
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_user_logged_out -->
<!-- END switch_user_logged_out -->
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td class="forum-buttons" colspan="3" width="100%">
<a href="{FULL_SITE_PATH}{U_PORTAL}">{L_HOME}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="http://www.appaf.org/forum/newsfeed.php">News Feed</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- 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 -->
<!-- BEGIN switch_user_logged_in -->
<a href="{FULL_SITE_PATH}{U_PROFILE}">{L_PROFILE}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- END switch_user_logged_in -->
<a href="{FULL_SITE_PATH}{U_SEARCH}">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}{U_FAQ}">{L_FAQ}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- BEGIN switch_user_logged_out -->
<a href="{FULL_SITE_PATH}{U_REGISTER}">{L_REGISTER}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- END switch_user_logged_out -->
<a href="{FULL_SITE_PATH}{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT2}</a>
</td>
</tr>
<!-- TOP LINKS -->
<!-- BEGIN switch_header_table -->
<tr>
<td width="100%" colspan="3">
<table class="forumline" width="100%" style="margin-left:10%;margin-right:10%;" cellspacing="0" cellpadding="0">
<tr><td class="row-header"><span>{L_STAFF_MESSAGE}</span></td></tr>
<tr><td class="row-post"><br /><div class="post-text">{switch_header_table.HEADER_TEXT}</div><br /><br /></td></tr>
</table>
</td>
</tr>
<!-- END switch_header_table -->
<!-- BEGIN ctracker_message -->
<tr>
<td width="100%" colspan="3">
<table class="forumline" width="100%" style="margin-left:10%;margin-right:10%;" cellspacing="0" cellpadding="0">
<tr>
<td align="center" style="background-color:#{ctracker_message.ROW_COLOR};"><img src="{ctracker_message.ICON_GLOB}" alt="" title="" /></td>
<td align="center" style="background-color:#{ctracker_message.ROW_COLOR};"><div class="gensmall">{ctracker_message.L_MESSAGE_TEXT}</div></td>
</tr>
<tr>
<td class="row1 row-center" colspan="2">
<div class="gensmall"><b><a href="{ctracker_message.U_MARK_MESSAGE}">{ctracker_message.L_MARK_MESSAGE}</a></b></div><br />
</td>
</tr>
</table>
</td>
</tr>
<!-- END ctracker_message -->
<tr>
<td colspan="3" id="content">
<!--
<a href="javascript:ShowHide('news','news2','news');" title="{L_SHOW} {NEWS_TITLE}"><img src="{IMG_NAV_MENU_NEWSPAPER}" alt="{L_SHOW} {NEWS_TITLE}" /></a>
<a href="javascript:ShowHide('quick_links','quick_links2','quick_links');" title="{L_SHOW} {L_QUICK_LINKS}"><img src="{IMG_NAV_MENU_APPLICATION}" alt="{L_SHOW} {L_QUICK_LINKS}" /></a>
<a href="javascript:ShowHide('calendar_display','calendar_open_close','quick_links');" title="{L_SHOW} {L_CALENDAR}"><img src="{IMG_CALENDAR}" alt="{L_SHOW} {L_CALENDAR}" /></a>
-->
<!-- BEGIN switch_user_logged_in -->
<div class="popup{PRIVMSG_IMG}"><a href="{FULL_SITE_PATH}{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a></div>
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_admin_disable_board -->
<table width="100%" align="center" cellspacing="0" cellpadding="10" border="0">
<tr><td align="center" class="forumline-no"><div class="genmed"><div class="topic_ann">{L_BOARD_DISABLE}</div></div></td></tr>
</table>
<!-- END switch_admin_disable_board -->
<!-- BEGIN switch_importal -->
{PORTAL_HEADER}
<table class="empty-table" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
{PORTAL_HEADERLEFT}
<td valign="top">
{PORTAL_HEADERCENTER}
<!-- END switch_importal -->
____________ Another Pro Bono
Version of Icy Phoenix: 1.3.0.53a
Version of PHP: 5.2.9
Version of MySQL: 5.0.81-community-log
Board started: 2009/07/18 - 11:50
Registered Users: 123 as of 17 Sep 09
|
#9 Thu 22 Jan, 2009 18:55 |
|
Limun
Joined: January 2008
Posts: 1334
Location: [Censor]
|
Re: Editing, "Top Menu" In The Header Using, "overall_header_bl.tpl"
man...i see style icy phoenix on your site
to display it on current template (icy phoenix) you need to edit overall_header.tpl
overall_header_bl.tpl is for blue and black pearl style .....
____________ We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
|
#10 Thu 22 Jan, 2009 19:07 |
|
christmanrd
Joined: October 2008
Posts: 206
Location: Pennsylvania
|
Re: Editing, "Top Menu" In The Header Using, "overall_header_bl.tpl"
BINGO!!!!!
That was the culprit.
Thank you. All is well now. At least until the next project.
____________ Another Pro Bono
Version of Icy Phoenix: 1.3.0.53a
Version of PHP: 5.2.9
Version of MySQL: 5.0.81-community-log
Board started: 2009/07/18 - 11:50
Registered Users: 123 as of 17 Sep 09
|
#11 Thu 22 Jan, 2009 19:38 |
|
Inactive User
|
Re: Editing, "Top Menu" In The Header Using, "overall_header_bl.tpl"
That is always a problem when you edit ONE template to try to affect what should be done Globally by editing the Lang File: lang_main_upi2db.php
Then you wouldn't need to edit any templates. Apart from changing permissions as you require.
I suggest that you put back the Lang Var and make your changes to the appropriate lang file - otherwise you will have edit every theme overall_header*.tpl that you use now and in the future.
|
#12 Thu 22 Jan, 2009 20:40 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|