> > > if (isset($plugins) && is_array($plugins)) {
> > > foreach ($plugins as $name) {
> > > print "$name<br>\n";
> > > use_plugin($name);
> > > }
> > > }
> > >
> > > I see both squirrelspell and newmail listed when I do that. Is
there
> > > anything else I can look at? Just a reminder, I did look at the
page
> > > source to make sure that for some reason my browser was not
displaying
> > > them. And I can make them come back by deleting all my
userprefs...
> >
> > Pretty strange. You can go into the setup.php file for each plugin,
> > locate the line that has this:
> >
> > if ( !soupNazi() ) {
> >
> > and put debug statements before and after that line, to see if it is
> > doing something weird there. also, you could just remove that if
> > statement... it's not the end of the world to do so.
>
> Comes up clean, I see my message before that block and in it.
>
> I also put an array print in the 'if ( !soupNazi() )' block like so:
>
> if ( !soupNazi() ) {
> echo "soup nazi OK";
> /* Register Squirrelspell with the $optionpages array. */
> $optpage_blocks[] = array(
> 'name' => _("NewMail Options"),
> 'url' => SM_PATH . 'plugins/newmail/newmail_opt.php',
> 'desc' => _("This configures settings for playing
sounds
> and/or s
> howing popup windows when new mail arrives."),
> 'js' => TRUE
> );
> print_r($optpage_blocks);
> }
>
> This prints out the following:
>
> soup nazi OK
> Array ( [0] => Array ( [name] => Personal Information [url] =>
> options.php?optpage=personal [desc] => This contains personal
information
> about yourself such as your name, your email address, etc. [js] => )
[1]
> => Array ( [name] => Display Preferences [url] =>
> options.php?optpage=display [desc] => You can change the way that
> SquirrelMail looks and displays information to you, such as the
colors,
> the language, and other settings. [js] => ) [2] => Array ( [name] =>
> Message Highlighting [url] => options_highlight.php [desc] => Based
upon
> given criteria, incoming messages can have different background colors
in
> the message list. This helps to easily distinguish who the messages
are
> from, especially for mailing lists. [js] => ) [3] => Array ( [name] =>
> Folder Preferences [url] => options.php?optpage=folder [desc] => These
> settings change the way your folders are displayed and manipulated.
[js]
> => ) [4] => Array ( [name] => Index Order [url] => options_order.php
> [desc] => The order of the message index can be rearranged and changed
to
> contain the headers in any order you want. [js] => ) [5] => Array (
[name]
> => NewMail Options [url] => ../plugins/newmail/newmail_opt.php [desc]
=>
> This configures settings for playing sounds and/or showing popup
windows
> when new mail arrives. [js] => 1 ) )
>
> I'm lost at this point. Just a reminder, it's this plugin and
> squirrelspell, the ones that when they do show are at the bottom. And
> again, wiping out all the user prefs brings them back...
Hmm, so maybe it's something with the "js" part of the optpage_block.
Try changing newmail/setup.php, around line 83 from this:
'js' => TRUE
to this
'js' => FALSE
Otherwise, you can try printing out optpage_block after the hook that
builds it in src/options.php:
Around line 344 you should see this:
do_hook('optpage_register_block');
add something like this after it:
sm_print_r($optpage_blocks);
I am thinking it might be the first problem above; some weird
interaction with the js flag...
- paul
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
--
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