From 57ba5fa9aeb9e5f4073afd7dbd8ac379b35f0e3e Mon Sep 17 00:00:00 2001 From: avel Date: Fri, 21 Nov 2003 11:35:59 +0000 Subject: [PATCH] A bit of documentation for my favorite function, makeComposeLink()... git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6186 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- doc/compose.txt | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/doc/compose.txt b/doc/compose.txt index 9cf0904e..7abdea47 100644 --- a/doc/compose.txt +++ b/doc/compose.txt @@ -1,5 +1,25 @@ -Using the comp_in_new function -============================== +Creating Links to compose.php easily +==================================== + +makeComposeLink() PHP function helps to create links to the compose page +easily, taking into account the user's settings, "Compose in new window" and +"Use javascript". Here's how to use it: + +1) Build the last part of the URL as follows: + $comp_uri = 'src/compose.php?mailbox='.$mailboxbox.'&send_to='.urlencode($usermail); + +2) The display part of the link can be anything you like (such the name of the user): + $disp = 'The user's name'; + +3) Print it: + echo makeComposeLink($comp_uri, $disp); + +makeComposeLink() has been available since Squirrelmail 1.4.2. + + + +Using the comp_in_new javascript function +========================================= comp_in_new is the javascript function to popup a new compose window. -- 2.25.1