Results 1 to 2 of 2

Thread: I am not understanding something... (menu_design.php)

  1. #1

    Join Date
    Aug 2006
    Posts
    20

    Default I am not understanding something... (menu_design.php)

    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
    Last edited by djpaul; 06-25-2007 at 06:10 PM.

  2. #2
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    A couple of quick comments....

    Quote Originally Posted by djpaul View Post
    But where are the pulling this array from.
    You really need to use a programmers editor that allows you to search multiple files and subdirectories for strings. Without that, you will never be able to find the variables / functions in other php files in the code base.

    The problem with my site is that i installed flaschat and when a non member clicks on the chat button he can login.
    When you installed flashchat, did you indicate in Flashchat that you were installing it on an aeDating / Dolphin site? If not, it will install as "stateless" and allow non-members to login.

    Also, did you load the fc.aemod located in the /modules directory in the manage modules panel in admin?

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Menu_design on external page
    By Toreador in forum General Issues, Comments, Questions
    Replies: 0
    Last Post: 04-15-2007, 11:10 AM
  2. menu_design icon links
    By Grif in forum General Troubleshooting
    Replies: 0
    Last Post: 06-28-2006, 05:04 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •