News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Open new window?

Started by Hammarby, May 13, 2008, 08:48:05 AM

Previous topic - Next topic

Hammarby

Hi

I have enter this to subs.php and it opens in IE so no problem there, But i want it to open in a new IE like the codes  _self,Main,Blank etc...How do i do that?

I use SMF 2.0 Beta 3.1 Public.


'test' => array(
            'title' => 'Test',
            'href' => 'hxxp:balbalbalb.com/bbbllgf.php', [nonactive]
            'show' => true,
            'sub_buttons' => array(
            ),
         ),

ONLiNEZONE

Quote from: Hammarby on May 13, 2008, 08:48:05 AM
Hi

I have enter this to subs.php and it opens in IE so no problem there, But i want it to open in a new IE like the codes  _self,Main,Blank etc...How do i do that?

I use SMF 2.0 Beta 3.1 Public.


'test' => array(
            'title' => 'Test',
            'href' => 'http://balbalbalb.com/bbbllgf.php',
            'show' => true,
            'sub_buttons' => array(
            ),
         ),

Hi,

I have no idea, I'm not good at coding. There are other people that might be able to help you.

Sorry.
Regards,
Mark.

50 | 100 | 150 | 200 | 250 | 300...

Kindred

onlinezone...  If you have no idea, then don't waste post space by responding...

That was a pointless post.

Hammarby,

There is no way, by default, to add a target in the menu array.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

karlbenson

Seems to a logical feature request to me.

ONLiNEZONE

Quote from: Kindred on May 13, 2008, 10:36:55 AM
onlinezone...  If you have no idea, then don't waste post space by responding...

That was a pointless post.

Hammarby,

There is no way, by default, to add a target in the menu array.

Sorry :D
Regards,
Mark.

50 | 100 | 150 | 200 | 250 | 300...

karlbenson

It seemed a logical request to other people aswell so I put it on the tracker
Bug #2084: Menu Array - Link Target (open in new window)

NickC

You could achieve this by modifying the function theme_linktree in index.template.php and putting in a condition that opens a new window if the $tree['name'] is the one you want.

Rumbaar

You can 'trick' it though and put the HTML code after the URL to target whatever you like

example:
'test' => array(
            'title' => 'Test',
            'href' => 'http://balbalbalb.com/bbbllgf.php" target="_blank',
            'show' => true,
            'sub_buttons' => array(
),
),

It should then render 'correctly' <a href="http://balbalbalb.com/bbbllgf.php" target="_blank">Test</a>

Though I agree it should be a stand alone option.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Advertisement: