> > It is not clear if you are talking about the main options page or
some
> > of the items on the display preferences page...?
> 
> Main options page.  The one that contains display prefs, personal
info,
> spam cop, etc.  The "disappearing options" are "new mail options" and
> "spell checker options".  I can recreate this very easily.  Wipe a
user's
> userpref entries from sql.  Log in as that user.  Edit something in
> "display preferences", refresh the page, and boom, no more spellcheck
or
> newmail options.
> 
> > Those two plugins are coded to check your browser version when they
are
> > inserting themselves into the main options page... if you are using
a
> > browser with questionable javascript conformance, they will not
insert
> > themselves into that page.
> 
> spellcheck and newmail?  But why would they show up at all to start
with?

Not sure.  I agree that this is very odd, but the only code that would
disable the plugin is where it checks for those "broken" browsers.....
at least that I can see.  And since those two are some of the only ones
that do that check and they are exactly the ones that are disappearing
for you, this is probably where the problem is located.

You can do a little more investigating by opening the file
functions/plugin.php

Find the soupNazi function:

/**
 * This function checks whether the user's USER_AGENT is known to
 * be broken. If so, returns true and the plugin is invisible to the
 * offending browser.
 */
function soupNazi(){

    $soup_menu = array('Mozilla/3','Mozilla/2','Mozilla/1', 'Opera 4',
                       'Opera/4', 'OmniWeb', 'Lynx');
    sqgetGlobalVar('HTTP_USER_AGENT', $user_agent, SQ_SERVER);
    foreach($soup_menu as $browser) {
        if(stristr($user_agent, $browser)) {
            return 1;
        }
    }
    return 0;
}


You can just put "return 0;" at the top of the function so it always
displays the plugin (disables this functionality).  Or before the
"return 1;" you can insert something like 

echo "<hr>soup nazi!!<hr>";

and see if it is telling you that it actually did find the 'bad
browser'...

  - paul




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to