Adding a button in mainmenu

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
ESPERO
Registered User
Posts: 6
Joined: Fri Feb 08, 2008 9:47 am

Adding a button in mainmenu

Post by ESPERO » Sun Feb 10, 2008 9:38 am

hello,
I added a button in the mainmenu (for link to site) but it loads the site in the same page. How should be modified to load the site in another page (tab).

overall_header.tpl
<td valign="top" background="templates/AirHead/images/AirHead_nav_back.jpg">&nbsp;<span class="mainmenu">&nbsp;<a href="http://www.mysite.org" class="mainmenu">MySite</a></span><span class="mainmenu">&nbsp;<a href="{U_FAQ}" class="mainmenu">{L_FAQ}</a></span><span class="mainmenu">&nbsp; &nbsp;<a href="{U_SEARCH}" class="mainmenu">{L_SEARCH}</a>&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="mainmenu">{L_MEMBERLIST}</a>&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu">{L_USERGROUPS}</a>&nbsp;

Thank you.
Last edited by ric323 on Sun Feb 10, 2008 1:11 pm, edited 1 time in total.
Reason: Topic icon changed

User avatar
ric323
Former Team Member
Posts: 22909
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: Adding a button in mainmenu

Post by ric323 » Sun Feb 10, 2008 9:49 am

edit

Code: Select all

<a href="http://www.mysite.org" class="mainmenu">MySite</a>
to become

Code: Select all

<a href="http://www.mysite.org" target="_blank" class="mainmenu">MySite</a>
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions

ESPERO
Registered User
Posts: 6
Joined: Fri Feb 08, 2008 9:47 am

Re: Adding a button in mainmenu

Post by ESPERO » Sun Feb 10, 2008 1:00 pm

Thank you very much!

Locked

Return to “2.0.x Support Forum”