Menu button open in new window...

Started by Burke ♞ Knight, November 21, 2008, 08:47:27 PM

Previous topic - Next topic

Burke ♞ Knight

I'm working on something for one of my sites, and need a button to open in a new window.

Here is the call for the button in Subs.php:

'href' => !empty($modSettings['chat_tab_execute_url']) ? $modSettings['chat_tab_execute_url'] : $scripturl,


Thank you in advance. :)

[SiNaN]

Try this:

'href' => (!empty($modSettings['chat_tab_execute_url']) ? $modSettings['chat_tab_execute_url'] : $scripturl) . '" target="_blank',
Former SMF Core Developer | My Mods | SimplePortal

Burke ♞ Knight


[SiNaN]

'href' => (!empty($modSettings['website_execute_url']) ? $modSettings['website_execute_url'] : $scripturl) . '" target="_blank',
Former SMF Core Developer | My Mods | SimplePortal

Burke ♞ Knight

Thanks.. I had just figured that out and had deleted the post, but you still beat me...LOL

Advertisement: