6.0.0-alpha12
6/7/25

[#3132] Custom folder icons not shown in sidebar [patch]
Summary Custom folder icons not shown in sidebar [patch]
Queue IMP
Queue Version 4.0.4
Type Bug
State Resolved
Priority 1. Low
Owners
Requester okuhl (at) netcologne (dot) de
Created 12/13/2005 (7116 days ago)
Due
Updated 01/12/2006 (7086 days ago)
Assigned 12/13/2005 (7116 days ago)
Resolved 01/12/2006 (7086 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/12/2006 12:39:16 AM Jan Schneider Comment #12
State ⇒ Resolved
Reply to this comment
Fixed in 4.1.
12/20/2005 05:05:24 PM Jan Schneider Comment #11 Reply to this comment
As 4.2 is long away in the future, I suggest we leave it open. If not 
to backport the solution to 4.1, then to find a temporary hack.
12/20/2005 04:51:29 PM Chuck Hagenbuch Comment #10 Reply to this comment
Fine by me to close it..
12/20/2005 07:37:33 AM Michael Slusarz Comment #9 Reply to this comment
Please see:

http://lists.horde.org/archives/cvs/Week-of-Mon-20051219/052302.html



If someone would like to backport this to 4.1, that would be great.   
If not, then we should probably close this bug.
12/13/2005 10:29:37 AM okuhl (at) netcologne (dot) de Comment #8 Reply to this comment
Here are my comments:



1) I don't think Chucks patch will work, because the first thing I did 
was adding the hook call to tree_folders.php and it didn't. This is 
because folders.php need the complete <img>-code and tree_folders.php 
simply the filename.



Because I don't have a HEAD installation running, can someone confirm 
that there is still a problem? Then I will improve my patches and 
upload them again.



4) I changed the hook examples because the old one won't work with the 
new code.



5) Those are used in folders.php. I could remove the 'alt' tag and 
replace it with a default description like _("Mailbox").
12/13/2005 09:39:02 AM Jan Schneider Comment #7
State ⇒ Feedback
Reply to this comment
1) Please try the current CVS first, I saw that Chuck committed 
something yesterday or two days ago.

2) The upgrading instructions should go to IMP, because IMP is 
breaking bc in expecting a different return value from the hook.

3) We already added a spam folder icon to HEAD that is always used now.

4) AFAICS you merged the two examples in hooks.php.dist, why?

5) Don't set unnecessary image attributes in the hooks code.



Hm, now looking at the patches again, and what Chuck committed, the 
icons will probably work already if you replace  $dir2 with 
$mbox_icons in tree_folders.php.
12/13/2005 07:58:33 AM okuhl (at) netcologne (dot) de Comment #6
New Attachment: spam.png Download
Reply to this comment
spam folder icon for the example hook
12/13/2005 07:57:35 AM okuhl (at) netcologne (dot) de Comment #5
New Attachment: hooks.php.dist.patch Download
Reply to this comment
example hooks
12/13/2005 07:57:02 AM okuhl (at) netcologne (dot) de Comment #4
New Attachment: folders.php.patch Download
Reply to this comment
folders view
12/13/2005 07:56:35 AM okuhl (at) netcologne (dot) de Comment #3
New Attachment: tree_folders.php.patch Download
Reply to this comment
Menu folders...
12/13/2005 07:54:56 AM okuhl (at) netcologne (dot) de Comment #2
New Attachment: UPGRADING.patch Download
Reply to this comment
Upgrading infos added.
12/13/2005 07:54:13 AM okuhl (at) netcologne (dot) de Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Custom folder icons not shown in sidebar [patch]
Queue ⇒ IMP
State ⇒ Unconfirmed
Reply to this comment
As discussed in the imp mailing list, custom folder icons are shown in 
imp's folder view, but not in the menu to the left.



Here are the patches for a working version, but bc is broken, because 
the hook's return values changed. I added a comment to UPGRADING in 
horde. Maybe there should be something in imp? Problem is that the 
patches affect horde and imp.



I also added a spam folder icon for the example in hooks.php.dist to 
work fine and besides hope that my changes in hooks.php.dist to the 
kolab example are ok - I cannot test this.



Regards,

     Ollie.

Saved Queries