Nuno Loureiro | 1 Oct 01:51 2003
Picon

HTMLArea driver and IMP patch


Hi!!

Here's a new Editor class (it replaces the old one), with a driver for
Htmlarea. 

With this driver you can replace any textarea in Horde with a WYSIWYG
editor (IE and Mozilla compatible) very easily.

The driver autoconfigurates it, and allows you to add buttons or
customize the buttons in the toolbar. The Driver is pretty documented so
it should be very easy to include HTMLArea in your pages (with only 3 or
4 lines of code). Also note that you only have 3 or 4 public methods.

It's also included an IMP patch to use htmlarea in the compose page.

I only have one thing that I don't like at all. It's the need of calling
a method in the <head> of the HTML that will use htmlarea, to include
the respective CSS. I had a few discussions with Chuck and Jan on IRC
about this  and no good solutions were found. I'm sure that after
everyone see the code a solution would come up.

The link where you can find the patch and the rest of the files is:

http://nuno.uncovering.org/htmlarea.tgz

-nuno

--

-- 
Nuno Loureiro <nuno <at> co.sapo.pt>
(Continue reading)

Joel Vandal | 1 Oct 05:40 2003
Picon

Patch for Applications Permissions

Hi,

Yesterday, I've begin to work on an Application Permission system for Horde
Framework. After a few hours, I've come with a patch (see attachment) that
allow me to control some permissions on each applications (ex. Gollem,
Kronolith, Mnemo, ...)

This patch apply to the latest CVS version ...

Currently, you can set if the application will be accessible or not
(_PERMS_SHOW) by Users and/or Groups. If the application is  added to the
Application Permissions system and the user don't have permission to show
the application, the app will not be visible on the menu (menu.php).

In a future version, the system will be able to set permission by function
and preferences setting.

Here is an example for Gollem of the modification to apply for deny access
IF and ONLY IF the application is set on the Application Permissions and
that the user have no right to this.:

Index: lib/base.php
===================================================================
RCS file: /repository/gollem/lib/base.php,v
retrieving revision 1.37
diff -r1.37 base.php
30a31,39
> // Application Permissions system.
> require_once HORDE_BASE . '/lib/Perms.php';
> $appPerms = &Perms::singleton('horde.apps');
(Continue reading)

Jon Parise | 1 Oct 06:18 2003

Re: Auto Detect Language (with patch)

On Mon, Sep 29, 2003 at 06:29:14PM -0400, Mike Pelley wrote:

> +                /* Strip quality value for language */
> +                if (($pos = strpos($lang, ';')) !== false) {
> +                        $lang = substr($lang, 0, $pos);
> +                }

My only gripe is that you're not so much stripping the quality value
from the string but extracting the language identifier from before the
semicolon.  The comment should be updated accordingly.

Other than that, the code looks good (although I haven't tested it).

-- 
Jon Parise (jon <at> horde.org) :: The Horde Project (http://horde.org/)

--

-- 
Horde developers mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: dev-unsubscribe <at> lists.horde.org

Etienne Goyer | 1 Oct 15:31 2003

Re: [PATCH] Adding quota info to IMP summary block

Here is included a newer patch that is a bit cleaner and fix formatting 
issue with the first one.  If this is uncommitable, please tell so I can
fix it (or drop the idea entirely).

Thanks ! 

On Fri, Sep 26, 2003 at 11:30:19AM -0400, Etienne Goyer wrote:
> As discussed earlier this week, here is a patch that add quota
> information to the summary block from IMP.  Hopefully, this is clean
> enough to be applied.  If not, please advise and I will rework it.
> 
> Also, I posted a block that displayed the user email address as 
> retrieved from the from_addr preference.  Would it be interesting to add 
> it, or it is too trivial to be incorporated ?

--

-- 
Etienne Goyer                    Linux Québec Technologies Inc.
http://www.LinuxQuebec.com       etienne.goyer <at> linuxquebec.com
--- summary.php.orig	Tue Sep 23 14:25:28 2003
+++ summary.php	Wed Oct  1 09:24:37 2003
 <at>  <at>  -74,6 +74,36  <at>  <at> 
                         }
                         $html .= '</td><td>&nbsp;&nbsp;&nbsp;</td><td>';
                         $html .= !empty($sts->unseen) ? '<b>' . $sts->unseen . '</b>' : '0';
+                        $html .= '</td><td align="right">';
+                        // Quota info, if available
+                        if (isset($_SESSION['imp'])) {
+                            $imp = $_SESSION['imp'];
(Continue reading)

Chuck Hagenbuch | 1 Oct 16:40 2003

Re: [cvs] commit: horde/lib Auth.xml Category.xml Compress.xml Crypt.xml Data.xml Form.xml IMAP.xml Identity.xml MIME.xml Maintenance.xml Prefs.xml Serialize.xml Template.xml Text.xml Tree.xml iCalendar.xml

Quoting Jan Schneider <jan <at> horde.org>:

>   Log:
>   Packages that depend on Horde_Util have an optional dependency on gettext
>   now too.
>   Should we perhaps remove this dependency completely because of the inherited
>   dependency on gettext from Horde_Util?

Yes, that makes sense to me.

-chuck

--
Charles Hagenbuch, <chuck <at> horde.org>
Born right the first time.

--

-- 
Horde developers mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: dev-unsubscribe <at> lists.horde.org

rlitten | 1 Oct 17:44 2003

Dev Question

I am having issues with the css being inconsistant.
With different browsers the background colors that I set are not showing up
correctly. Is there a minimum browser that I can forward to clients to let them
now that they need to update their browsers?

Also, is there anyway to just change one common-header.inc and
common-footer.inc, instead of modifying each occurance for each module ie.
(imp, kronotlith, etc..) ?

Thanks
Rob

--

-- 
Horde developers mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: dev-unsubscribe <at> lists.horde.org

Michael M Slusarz | 1 Oct 19:14 2003
Picon

Re: [PATCH] Adding quota info to IMP summary block

Quoting Etienne Goyer <etienne.goyer <at> linuxquebec.com>:

| Here is included a newer patch that is a bit cleaner and fix formatting
| issue with the first one.  If this is uncommitable, please tell so I can
| fix it (or drop the idea entirely).

Cleaned up and committed.  Thanks.

michael

______________________________________________
Michael Slusarz [slusarz <at> bigworm.colorado.edu]
The University of Colorado at Boulder

--

-- 
Horde developers mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: dev-unsubscribe <at> lists.horde.org

Etienne Goyer | 1 Oct 19:23 2003

Re: [PATCH] Adding quota info to IMP summary block

On Wed, Oct 01, 2003 at 11:14:14AM -0600, Michael M Slusarz wrote:
> Cleaned up and committed.  Thanks.

Thank you very much.  Just so I can improve the quality of my patch in
the future, which part needed cleaning ?

-- 
Etienne Goyer                    Linux Québec Technologies Inc.
http://www.LinuxQuebec.com       etienne.goyer <at> linuxquebec.com

--

-- 
Horde developers mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: dev-unsubscribe <at> lists.horde.org

Jon Parise | 1 Oct 19:57 2003

Re: [cvs] commit: horde/lib Auth.xml Category.xml Compress.xml Crypt.xml Data.xml Form.xml IMAP.xml Identity.xml MIME.xml Maintenance.xml Prefs.xml Serialize.xml Template.xml Text.xml Tree.xml iCalendar.xml

On Wed, Oct 01, 2003 at 01:38:03AM -0700, Jan Schneider wrote:

>   Log:
>   Packages that depend on Horde_Util have an optional dependency on gettext
>   now too.
>   Should we perhaps remove this dependency completely because of the inherited
>   dependency on gettext from Horde_Util?

No, leave the explicit dependency.  Users will also satisfy the
dependency because of Horde_Util, but it should still be registered.

-- 
Jon Parise (jon <at> horde.org) :: The Horde Project (http://horde.org/)

--

-- 
Horde developers mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: dev-unsubscribe <at> lists.horde.org

Jon Parise | 1 Oct 19:59 2003

Re: Re: [cvs] commit: horde/lib Auth.xml Category.xml Compress.xml Crypt.xml Data.xml Form.xml IMAP.xml Identity.xml MIME.xml Maintenance.xml Prefs.xml Serialize.xml Template.xml Text.xml Tree.xml iCalendar.xml

On Wed, Oct 01, 2003 at 01:57:42PM -0400, Jon Parise wrote:

> On Wed, Oct 01, 2003 at 01:38:03AM -0700, Jan Schneider wrote:
> 
> >   Log:
> >   Packages that depend on Horde_Util have an optional dependency on gettext
> >   now too.
> >   Should we perhaps remove this dependency completely because of the inherited
> >   dependency on gettext from Horde_Util?
>    
> No, leave the explicit dependency.  Users will also satisfy the
                                                 ^^^^
I meant "already".

> dependency because of Horde_Util, but it should still be registered.

-- 
Jon Parise (jon <at> horde.org) :: The Horde Project (http://horde.org/)

--

-- 
Horde developers mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: dev-unsubscribe <at> lists.horde.org


Gmane