Skip to main content
Topic: menu entry as link to external site (Read 2499 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

menu entry as link to external site

Is there a manual what needs to be done to get a new menu entry with a link to an external site? I know TE wrote something like this for the impressum page. I installed the package from here, but no meny entry shows up.

Re: menu entry as link to external site

Reply #1

I also tried to work my way through Menu.subs.php and those miracles called arrays. But it's like a mystery to me. All I want is to change the help entry in the menu to lead to http://elkarte-erste-schritte.de. This would be so great for my users. :-[

Re: menu entry as link to external site

Reply #2

For the time being[1] it should be enough to change the href value from:
Code: [Select]
					'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
),
to:
Code: [Select]
					'help' => array(
'title' => $txt['help'],
'href' => 'http://elkarte-erste-schritte.de/',
'show' => true,
),
in Subs.php.
Until some more sophisticated way is built
Bugs creator.
Features destroyer.
Template killer.

 

Re: menu entry as link to external site

Reply #3

Great! And so it opens in a new tab:

Code: [Select]
					'help' => array(
'title' => $txt['help'],
'href' => 'http://elkarte-erste-schritte.de/',
'target' => '_blank',
'show' => true,
),

:D

Edit: Hey, and so I can easy add new menu entries! Just copy this code and my wish is fullfilled:)  I rearranged the menu entries too (recent posts on top, help at last) and now it's fine! Thanks!