Look on the SM wiki in the DevelopersCorner; there is information there
about plugin coding, which is where you can learn about that.  The other
thing you can do is pick apart one of the plugins that does what you are
talking about; ie., the Notes, Bookmarks, File Manager, or other such
plugins.

http://www.squirrelmail.org/wiki/en_US/DevelopingPlugins

basically, register the hook in setup.php:

function squirrelmail_plugin_init_your_plugin() {

   global $squirrelmail_plugin_hooks;

   $squirrelmail_plugin_hooks['menuline']['your_plugin'] =
'your_plugin_link_function_name';

}


Then display the link:

function your_plugin_link_function_name() {

 
displayInternalLink('plugins/your_plugin/your_plugins_main_php_file.php'
, _("This Is Your Link Text"), '');

}

You can also specify a target for the link in that last parameter:

displayInternalLink('plugins/your_plugin/your_plugins_main_php_file.php'
, _("This Is Your Link Text"), '_top');

displayInternalLink('plugins/your_plugin/your_plugins_main_php_file.php'
, _("This Is Your Link Text"), '_blank');

etc

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of
Tamer
> Ziady
> Sent: Friday, February 14, 2003 11:30 AM
> To: [EMAIL PROTECTED]
> Subject: [SM-USERS] Adding additional links in menu
> 
> Hello All;
> 
>     I don't post to this list much. I was wondering what is the best
way
> to add clickable links to the top menu. I am looking for a way to add
> these links for the users to access certain items that are part of
> internal email system.
> 
> Cheers
> Tamer
> 
> 
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
> are you planning your Web Server Security? Click here to get a FREE
> Thawte SSL guide and find the answers to all your  SSL security
issues.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
> --
> 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



-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
--
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