Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Editing, "Top Menu" In The Header Using, "overall_header_bl.tpl" 
 
I am trying to edit this menu.



 tp_menu_hdr


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:

Code: [Download] [Hide] [Select]
        
<!-- BEGIN switch_upi2db_off -->
        <a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <!-- END switch_upi2db_off -->



To this but, it did not work:

Code: [Download] [Hide] [Select]
        
        <a href="http://www.appaf.org/forum/newsfeed.php">News Feed</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        


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
 
christmanrdSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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
Code: [Download] [Hide] [Select]
<!-- 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 --> ) :
Spoiler: [ Show ]

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!
 
LimunSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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

Code: [Download] [Hide] [Select]

<a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        
        <!-- BEGIN switch_upi2db_off -->
        <a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <!-- END switch_upi2db_off -->
        <!-- BEGIN switch_upi2db_on -->



Code 2:  Modified

Code: [Download] [Hide] [Select]

        <a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        
   <a href="http://www.appaf.org/forum/newsfeed.php">News Feed</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
  
        <span style="vertical-align:top;">{L_POSTS}:&nbsp;</span><a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a><span style="vertical-align:top;">&nbsp;•&nbsp;</span>{L_DISPLAY_U}<span style="vertical-align:top;">&nbsp;•&nbsp;</span>{L_DISPLAY_M}<span style="vertical-align:top;">&nbsp;•&nbsp;</span>{L_DISPLAY_P}&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <!-- 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
 
christmanrdSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Editing, "Top Menu" In The Header Using, "overall_header_bl.tpl" 
 
christmanrd wrote: [View Post]
Thank you however, let me show you the code again.  This example shows more code.

Code 1:  Original

Code: [Download] [Hide] [Select]

<a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        
        <!-- BEGIN switch_upi2db_off -->
        <a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <!-- END switch_upi2db_off -->
        <!-- BEGIN switch_upi2db_on -->



Code 2:  Modified

Code: [Download] [Hide] [Select]

        <a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        
   <a href="http://www.appaf.org/forum/newsfeed.php">News Feed</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
  
        <span style="vertical-align:top;">{L_POSTS}:&nbsp;</span><a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a><span style="vertical-align:top;">&nbsp;•&nbsp;</span>{L_DISPLAY_U}<span style="vertical-align:top;">&nbsp;•&nbsp;</span>{L_DISPLAY_M}<span style="vertical-align:top;">&nbsp;•&nbsp;</span>{L_DISPLAY_P}&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <!-- 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 :
Spoiler: [ Show ]

 




____________
We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
 
LimunSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Editing, "Top Menu" In The Header Using, "overall_header_bl.tpl" 
 
As per your instructions this is what I did:

Code: [Download] [Hide] [Select]
    <td class="forum-buttons" colspan="3" width="100%">
        <a href="{FULL_SITE_PATH}{U_PORTAL}">{L_HOME}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
         <a href="http://www.appaf.org/forum/newsfeed.php">News Feed</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <!-- BEGIN switch_upi2db_off -->
        <a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <!-- END switch_upi2db_off -->
        <!-- BEGIN switch_upi2db_on -->
        <span style="vertical-align:top;">{L_POSTS}:&nbsp;</span><a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a><span style="vertical-align:top;">&nbsp;•&nbsp;</span>{L_DISPLAY_U}<span style="vertical-align:top;">&nbsp;•&nbsp;</span>{L_DISPLAY_M}<span style="vertical-align:top;">&nbsp;•&nbsp;</span>{L_DISPLAY_P}&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <!-- 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
 
christmanrdSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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!
 
LimunSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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.


christmanrd wrote: [View Post]
I am trying to edit this menu.



 tp_menu_hdr


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
 
christmanrdSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Editing, "Top Menu" In The Header Using, "overall_header_bl.tpl" 
 
Spoiler: [ Show ]


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!
 
LimunSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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:

Code: [Download] [Hide] [Select]
{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 -->
        &nbsp;
        <!-- END switch_user_logged_in -->
        <!-- BEGIN switch_user_logged_out -->
        &nbsp;
        <!-- 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>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
         <a href="http://www.appaf.org/forum/newsfeed.php">News Feed</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
    
        <!-- BEGIN switch_upi2db_on -->
        <span style="vertical-align:top;">{L_POSTS}:&nbsp;</span><a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a><span style="vertical-align:top;">&nbsp;•&nbsp;</span>{L_DISPLAY_U}<span style="vertical-align:top;">&nbsp;•&nbsp;</span>{L_DISPLAY_M}<span style="vertical-align:top;">&nbsp;•&nbsp;</span>{L_DISPLAY_P}&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <!-- END switch_upi2db_on -->
        <!-- BEGIN switch_user_logged_in -->
        <a href="{FULL_SITE_PATH}{U_PROFILE}">{L_PROFILE}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <!-- END switch_user_logged_in -->
        <a href="{FULL_SITE_PATH}{U_SEARCH}">{L_SEARCH}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <a href="{FULL_SITE_PATH}{U_FAQ}">{L_FAQ}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <!-- BEGIN switch_user_logged_out -->
        <a href="{FULL_SITE_PATH}{U_REGISTER}">{L_REGISTER}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <!-- 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>&nbsp;
    <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>&nbsp;
    <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
 
christmanrdSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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!
 
LimunSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
christmanrdSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 
 
 
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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