Return-Path: <leo@lns.com.br>
Received: from murder ([unix socket])
	 by linuxnotes.net (Cyrus v2.2.4) with LMTPA;
	 Wed, 14 Jul 2004 21:36:08 -0400
X-Sieve: CMU Sieve 2.2
Received: by www.linuxnotes.net (Postfix, from userid 1005)
	id 948B62A0016; Wed, 14 Jul 2004 21:36:08 -0400 (EDT)
Received: from lns.com.br (unknown [200.169.15.2])
	by www.linuxnotes.net (Postfix) with SMTP id C008C2A000E
	for <quincy@linuxnotes.net>; Wed, 14 Jul 2004 21:36:03 -0400 (EDT)
Received: (qmail 15519 invoked by uid 504); 15 Jul 2004 01:35:40 -0000
Received: from unknown (HELO blackbird.local) (leo@lns.com.br@10.50.50.2)
  by 0 with SMTP; 15 Jul 2004 01:35:39 -0000
From: Leonardo Pimenta Gonzalez <leo@lns.com.br>
Reply-To: leo@lns.com.br
Organization: LNS - Linux & Network Solutions
To: "Jon Nelson" <quincy@linuxnotes.net>
Subject: Squirrelmail plugin - abook_group - Link at the Address Book bottom
Date: Wed, 14 Jul 2004 22:35:43 -0300
User-Agent: KMail/1.6.2
MIME-Version: 1.0
Content-Disposition: inline
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Message-Id: <200407142235.43981.leo@lns.com.br>
X-Virus-Scanned: Scanned for Viruses by LNS - Linux & Network Solutions (http://www.lns.com.br) 
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on linuxnotes.net
X-Spam-Level: 
X-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,HTML_MESSAGE autolearn=ham 
	version=2.63
X-Spam-Pyzor: Reported 0 times.

=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,=20

I wrote a little code to add a link for abook_group at the Address Book bot=
tom=20
page. I think that users are confused about find the abook_group on differe=
nt=20
place of Default Address Book. (on options)

Maybe you can't like it and put in the next version :)

Here it goes:


On setup.php

Added on  function squirrelmail_plugin_init_abook_group() {

  $squirrelmail_plugin_hooks["addressbook_bottom"]["abook_group_linking"] =
=3D=20
"abook_group_linking";

}


Create function abook_group_linking on setup.php

 function abook_group_linking() {
      if (defined('SM_PATH'))
         include_once(SM_PATH . 'plugins/abook_group/functions.php');
      else
         include_once('../plugins/abook_group/functions.php');

      create_link_form();
   }


Create the file functions.php with:

<?php
function create_link_form() {
      global $color;

echo html_tag('br');
echo html_tag('table',
        html_tag ('tr',
        html_tag ('td', "\n" . '<strong>' . ' <a=20
href=3D/plugins/abook_group/list_abook_group.php>Address Book Groups</a' .=
=20
'</strong>' . "\n", 'center', $color[0] )) , 'center', '', 'width=3D"100%"'=
 );

   }
?>


It's done.

Thanks and sorry for my poor English.


=2D --=20
Atenciosamente,

Leonardo Pimenta Gonzalez
LNS - Linux & Network Solutions
=46one: 31 3281-9461
http://www.lns.com.br
leo@lns.com.br
=2D ----------------------------------------------------------------------
Linux Registered User: #259045
=2D ----------------------------------------------------------------------
Got an Access Denied !? Good, my job is done!!
=2D ----------------------------------------------------------------------
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFA9d9vheOy3GF14XURArITAJ0XyZWK83RokbNf9D97SLWpDNVS5QCgm02f
YwpccmzmvGq0pSxN1FmTvtg=3D
=3DF4OQ
=2D----END PGP SIGNATURE-----

