Hello,
In the script menu_design.php (templates/templ_dfl/scripts) they compare a array with a member.
By that i mean this:
PHP Code:
function TopCodeMenuItem( $text, $link, $path='', $target='' )
{
global $site;
global $link_arr;
global $logged;
if ( !strlen( $path ) && !strlen($onclick) ) $path = $site['url'];
$active = IsMenuItemActive( $link, $path );
$ret = "";
if ( !$active )
{
$link = $link_arr['0'];
$ret .= '<li>';
$ret .= '<div class="active" onmouseover="this.className=\'over\'" onmouseout="this.className=\'active\'">';
if (('_Chat' == $text)&&($logged['member']))
{
$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>';
}
On the top where the function begins the call the array $logged, $site and $link_arr trough the global.
But where are the pulling this array from.
I know that the array $site is in inc/header.inc.php.
But i don't see anything about an include or require somewhere.
The problem with my site is that i installed flaschat and when a non member clicks on the chat button he can login.
A member with restriction cannot join (that's good) but a member who's paid for it cannot join the chat (i get a new window with my site in it).
I changed te
PHP Code:
$ret .= TopCodeMenuItem( '_Chat', 'aemodule.php?ModuleName=chat', $site['url'] );
To:
PHP Code:
$ret .= TopCodeMenuItem( '_Chat', 'aemodule.php?ModuleName=fchat', $site['url'] );
Gr Paul
Bookmarks