Try this
Code:
$ret .= TopCodeMenuItem( '_Chat', 'aemodule.php?ModuleType="fchat.php" target="blank', $site['url'] );
-------------------------------------------------------------------
or What I did was create a java popup so I could change the size of the window.
BACK UP YOUR ORINGINAL FILE FIRST!!!! (This works for me)
Find this function (it's like the 3rd function in menu_design.php
Code:
function TopCodeMenuItem( $text, $link, $path='', $target='' )
{
global $site;
global $link_arr;
if ( !strlen( $path ) && !strlen($onclick) ) $path = $site['url'];
$active = IsMenuItemActive( $link, $path );
$ret = "";
$link = $link_arr['0'];
$ret .= '<li id="id-' . _t("$text") . '">';
$ret .= '<a href="' . $path . $link . '" ' . $target . ' title="' . _t("$text") . '">' . _t("$text") . '</a>';
$ret .= "</li>\n";
return $ret;
}
and replace it with....
Code:
function TopCodeMenuItem( $text, $link, $path='', $target='' )
{
global $site;
global $link_arr;
if ( !strlen( $path ) && !strlen($onclick) ) $path = $site['url'];
$active = IsMenuItemActive( $link, $path );
$ret = "";
$link = $link_arr['0'];
$ret .= '<li id="id-' . _t("$text") . '">';
$ret .= '<div class="active" onmouseover="this.className=\'over\'" onmouseout="this.className=\'active\'">';
if (('_Chat' == $text))
{
$ret .= '<a href="javascript:void(0);" onClick=\'javascript: window.open("' . $path . $link . '", "' . _t("$text") . '", "dependent,left=150,right=50,height=550,width=790,resizable=yes,scrollbars=no");\'>'. _t("$text") . '</a>';
}
else
{
$ret .= '<a href="' . $path . $link . '" ' . $target . ' title="' . _t("$text") . '">' . _t("$text") . '</a>';
}
$ret .= "</li>\n";
return $ret;
}
Bookmarks