Navigation Bar & Editing Links In Posts - Milky Way Red »  Show posts from    to     

Icy Phoenix


phpBB 3 MODS And Styles (Not Compatible With phpBB 3.1) - Navigation Bar & Editing Links In Posts - Milky Way Red



falke [ Sat 19 Jul, 2008 06:20 ]
Post subject: Navigation Bar & Editing Links In Posts - Milky Way Red
Currently using the Milky Way Red style (love it), however I am unable to add/remove/edit any of the links in the navigation bar.

I'd like to remove the "Forum" link in the nav bar and replace it with one that says "Main Site" and just links back to the site's home page. Simple, right?
I've gone into menu_block.html and tried making edits to existing links, adding new links, and even removing all but one link, but when I save the file and upload it, none of the changes appear and the navigation bar appears untouched and fully functional.

I'm painfully new at this. Am I looking in the right spot? Is there anywhere else I need to make changes to?

I'm also having a minor issue with editing posts - if a user posts a link to a site (say, http://www.icyphoenix.com), then goes back to edit the post, it's adding
Code: [Hide] [Select]
" onclick="window.open(this.href);return false;
to the end of every link in the post.
So all links within the edited post end up looking like this:
Code: [Hide] [Select]
http://www.icyphoenix.com" onclick="window.open(this.href);return false;

Any idea how to prevent that?


Lopalong [ Sun 20 Jul, 2008 23:58 ]
Post subject: Re: Navigation Bar & Editing Links In Posts - Milky Way
Your question deals with modifying phpbb3 core files. And should be posted at phpbb.com/.


Mighty Gorgon [ Wed 23 Jul, 2008 15:23 ]
Post subject: Re: Navigation Bar & Editing Links In Posts - Milky Way
falke wrote: [View Post]
Currently using the Milky Way Red style (love it), however I am unable to add/remove/edit any of the links in the navigation bar.

I'd like to remove the "Forum" link in the nav bar and replace it with one that says "Main Site" and just links back to the site's home page. Simple, right?
I've gone into menu_block.html and tried making edits to existing links, adding new links, and even removing all but one link, but when I save the file and upload it, none of the changes appear and the navigation bar appears untouched and fully functional.

I'm painfully new at this. Am I looking in the right spot? Is there anywhere else I need to make changes to?

I'm also having a minor issue with editing posts - if a user posts a link to a site (say, http://www.icyphoenix.com), then goes back to edit the post, it's adding
Code: [Hide] [Select]
" onclick="window.open(this.href);return false;
to the end of every link in the post.
So all links within the edited post end up looking like this:
Code: [Hide] [Select]
http://www.icyphoenix.com" onclick="window.open(this.href);return false;

Any idea how to prevent that?

For your first question you need to edit menu_block.html.

Code: [Hide] [Select]
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="forum-buttons" colspan="3" width="100%">
<!-- IF not S_IS_BOT -->
<!-- IF not S_USER_LOGGED_IN and S_REGISTER_ENABLED --><a href="{U_REGISTER}">{L_REGISTER}</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->
<a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;
<!-- IF S_USER_LOGGED_IN --><a href="{U_PROFILE}">{L_PROFILE}</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF U_RESTORE_PERMISSIONS --><a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->
<a href="{U_INDEX}">{L_FORUM}</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;
<!-- IF not S_IS_BOT -->
<!-- IF S_USER_LOGGED_IN -->
<!-- IF S_DISPLAY_PM --><a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a><!-- IF PRIVATE_MESSAGE_INFO_UNREAD --><a href="#"> / </a><a href="{U_PRIVATEMSGS}" class="pm-new-link">{PRIVATE_MESSAGE_INFO_UNREAD}</a><!-- ENDIF -->&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF S_DISPLAY_MEMBERLIST --><a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF S_DISPLAY_SEARCH --><a href="{U_SEARCH}">{L_SEARCH}</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->
<a href="{U_FAQ}">{L_FAQ}</a>
</td>
</tr>
</table>


The second question I don't really understand... do you have a link to check it please?


drale [ Wed 30 Jul, 2008 18:16 ]
Post subject: Re: Navigation Bar & Editing Links In Posts - Milky Way
Don't forget to purge the cache on the main page of the Administrator panel. Its below the forum stats, click Run Now. It will refresh the template edit you have made.


Mighty Gorgon [ Sun 03 Aug, 2008 11:22 ]
Post subject: Re: Navigation Bar & Editing Links In Posts - Milky Way
drale wrote: [View Post]
Don't forget to purge the cache on the main page of the Administrator panel. Its below the forum stats, click Run Now. It will refresh the template edit you have made.

Yes... that is correct... I always forget this step.


jpavly [ Mon 04 Aug, 2008 10:52 ]
Post subject: Re: Navigation Bar & Editing Links In Posts - Milky Way
I don't know if by "Navigation bar" you mean this -> http://www.icyphoenix.com/viewtopic.php?f=32&t=4236
I wanted to change my top menu links, so that helped me.


eva [ Wed 18 Nov, 2009 15:48 ]
Post subject: Re: Navigation Bar & Editing Links In Posts - Milky Way Red
I have a similar question. I want to add a link to Home with a url before the first link in the nav bar in Milky Way Red. Where do I do that? Also by chance, do you know if you can integrate a phpbb forum into an existing html page to alleviate the problem of having a link to return to the main website? Thanks and I hope I'm posting in the right place.

Thanks!


Joshua203 [ Wed 18 Nov, 2009 22:41 ]
Post subject: Re: Navigation Bar & Editing Links In Posts - Milky Way Red
the links for what you call navbar are in menu_block.html as mentioned by MG

for your second question yes you could iframe it by example, but i think there s lots of better ways.


eva [ Thu 19 Nov, 2009 02:06 ]
Post subject: Re: Navigation Bar & Editing Links In Posts - Milky Way Red
This is all I have in my menu_block.html and I don't understand what I need to change to add a new link to a separate url:


Code: [Hide] [Select]
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="forum-buttons" colspan="3" width="100%">
<!-- IF not S_IS_BOT -->
<!-- IF not S_USER_LOGGED_IN and S_REGISTER_ENABLED --><a href="{U_REGISTER}">{L_REGISTER}</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->
<a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;
<!-- IF S_USER_LOGGED_IN --><a href="{U_PROFILE}">{L_PROFILE}</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF U_RESTORE_PERMISSIONS --><a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->
<a href="{U_INDEX}">{L_FORUM}</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;
<!-- IF not S_IS_BOT -->
<!-- IF S_USER_LOGGED_IN -->
<!-- IF S_DISPLAY_PM --><a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a><!-- IF PRIVATE_MESSAGE_INFO_UNREAD --><a href="#"> / </a><a href="{U_PRIVATEMSGS}" class="pm-new-link">{PRIVATE_MESSAGE_INFO_UNREAD}</a><!-- ENDIF -->&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF S_DISPLAY_MEMBERLIST --><a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF S_DISPLAY_SEARCH --><a href="{U_SEARCH}">{L_SEARCH}</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->
<a href="{U_FAQ}">{L_FAQ}</a>
</td>
</tr>
</table>


Joshua203 [ Thu 19 Nov, 2009 02:29 ]
Post subject: Re: Navigation Bar & Editing Links In Posts - Milky Way Red
may i point you to this post in another thread?

http://www.icyphoenix.com/viewtopic...ingle_Post_View



edit: uuuhm this worked different then i expected, i mean the last post in that thread ( http://www.icyphoenix.com/show_post.php?p=45564 )


eva [ Thu 19 Nov, 2009 02:42 ]
Post subject: Re: Navigation Bar & Editing Links In Posts - Milky Way Red
It worked! Thanks!


Joshua203 [ Thu 19 Nov, 2009 02:48 ]
Post subject: Re: Navigation Bar & Editing Links In Posts - Milky Way Red
not so hard to do after all eyy? , .. you re welcome


eva [ Thu 19 Nov, 2009 03:11 ]
Post subject: Re: Navigation Bar & Editing Links In Posts - Milky Way Red
Yep, pretty simple! Now why didn't I think of that? haha




Powered by Icy Phoenix