News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Making a tab open in new window

Started by matias_e, December 22, 2008, 06:08:09 AM

Previous topic - Next topic

matias_e

Hi,

I'm using SMF 2.0 Beta 4 and want to add a tab that opens up a new window for the AJAX-chat I recently installed.

I manage to add the tab itself by adding it in Subs.php, but can't figure out how to make it open in a new window instead of the current one.

Would be grateful if someone has a solution to this :)

Kermit

#1
Which mod did you install,i couldn't find it,but adding a custom tab to the navbar should be like this

http://www.simplemachines.org/community/index.php?topic=234816.0;topicseen

and after that go to your index.template.php



Code (find) Select
<a', $button['active_button'] ? ' class="active"' : '', ' title="', $act , '" href="', $button['href'], '">

Code (replace with) Select
<a', $button['active_button'] ? ' class="active"' : '', ' title="', $act , '" href="', $button['href'], '" ', $act == ajaxchat ? ' target="_blank"' : '','>


ajaxchat should be replaced with the array name for the custom tab

My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

matias_e

Thank you for your help, works just the way I wanted it to :)

Advertisement: