![]() |
|
|
|||||||
| Register | FAQ | Top Posters | Members List | Calendar | Search | Today's Posts | Resend Activation Email | Mark Forums Read |
| dotProject Documentation | dotProject FAQ | Bugs & Feature Requests | Language Packs & Themes | Download dotProject |
| New Patch Announcements Please place announcements of new patches here. For support on patches, please go to the General Forums |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
I thought this looked really good, so I've decided to share. Patch's page is taking refuge on my blog. direct download link
__________________
dotProject 2.0.4 fork; SunOS; Apache/2.2.3; PHP/4.4.2; Oracle/10g; Tony's Blog on [URL="http://compsci.ca/blog"]Computer Science and Programming[/URL] and another on [URL="http://compsci.ca/tech"]Technology and Robots[/URL] |
|
#2
|
||||
|
||||
|
Quote:
Karen C
__________________
I love deadlines. I like the whooshing sound they make as they fly by. Douglas Adams Please do not use Private Messages to ask support questions. ------ IMPORTANT - READ THIS PLEASE: http://forums.dotproject.net/showthread.php?p=35045 dotProject Admin & Development Blog - http://blogs.sakienvirotech.com/dotProject DOCUMENTATION SITE - http://docs.dotproject.net Like Crime Fiction - http://www.austcrimefiction.org |
|
#3
|
||||
|
||||
|
Looks good, Tony. Thanks (again) for your contribution to the project. You've been a real big help since you've been here!
MOTE |
|
#4
|
||||
|
||||
|
__________________
dotProject 2.0.4 fork; SunOS; Apache/2.2.3; PHP/4.4.2; Oracle/10g; Tony's Blog on [URL="http://compsci.ca/blog"]Computer Science and Programming[/URL] and another on [URL="http://compsci.ca/tech"]Technology and Robots[/URL] |
|
#5
|
||||
|
||||
|
Doh, I was about to commit some file icons too.
![]() |
|
#6
|
||||
|
||||
|
Quote:
Would you mind if I'd do it with Vista Inspirate instead? (http://www.gnome-look.org/content/sh...?content=28352) Again thanks, Pedro A. |
|
#7
|
||||
|
||||
|
Well Vista Inspirate just extends nuoveXT, where all the MIME type icons come from.
It's pretty awesome how they have an icon for just about every recognized MIME type, but the problem is that the icons were designed for much larger size (128x128) and the scaled down versions (required for this application) look pretty bad (blured, missing detail, etc).
__________________
dotProject 2.0.4 fork; SunOS; Apache/2.2.3; PHP/4.4.2; Oracle/10g; Tony's Blog on [URL="http://compsci.ca/blog"]Computer Science and Programming[/URL] and another on [URL="http://compsci.ca/tech"]Technology and Robots[/URL] |
|
#8
|
||||
|
||||
|
Quote:
update `dotproject`.`files` set `file_icon`='icons/x-office-document.png' where `file_name`LIKE '%doc%'; update `dotproject`.`files` set `file_icon`='icons/x-office-presentation.png' where `file_name`LIKE '%ppt%'; update `dotproject`.`files` set `file_icon`='icons/x-office-spreadsheet.png' where `file_name`LIKE '%xls%'; update `dotproject`.`files` set `file_icon`='icons/x-office-document.png' where `file_name`LIKE '%pdf%'; update `dotproject`.`files` set `file_icon`='icons/image-x-generic.png' where `file_name`LIKE '%png%'; update `dotproject`.`files` set 'file_icon`='icons/application-x-executable.png' where `file_name`LIKE '%zip%' ; Too bad there's not a specific icon for pdf's ![]() MOTE |
|
#9
|
||||
|
||||
|
good call on the update SQL. Actually I would also run
update `dotproject`.`files` set `file_icon`='icons/image-x-generic.png' where `file_icon` = NULL so that any file that doesn't get covered by any of the LIKE %% statements (say one really odd extension) will end up with a generic icon. There was no PDF specific icon I would have put that in otherwise.
__________________
dotProject 2.0.4 fork; SunOS; Apache/2.2.3; PHP/4.4.2; Oracle/10g; Tony's Blog on [URL="http://compsci.ca/blog"]Computer Science and Programming[/URL] and another on [URL="http://compsci.ca/tech"]Technology and Robots[/URL] |
|
#10
|
||||
|
||||
|
Quote:
http://www.gnome-look.org/content/sh...?content=28352 within the "Vista-Inspirate 1.0 (KDE)" set under 22x22/mimetypes/pdf.png. I then added a few lines to your code from index_table.php to make it look like this (to kinda cheat the system a bit) Code:
<?php
if ($file_row['file_type'] == "application/pdf") {
echo "<img src=\"images/icons/pdf.png\" />";
}
else {
$file_icon = $file_row['file_icon'];
echo "<img src=\"images/$file_icon\" />";
}
?>
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|