Love the snippet, very useful! I’ve encountered a problem, however.
I have a file in a documents directory called Talentedandgiftedstudents.doc. The file icon for this file does not appear. I suspect this is because the script thinks it is a .gif file. I checked this by removing "gifted" from the file name and it displayed correctly. I have no file type image specified for .gif files. Is there a way around this problem? I can’t rename the file as it is the official title of the school policy and thus the policy document.
Your help is appreciated.
neilcreek, good find. There was an error in how the extension was getting pulled off of the filename. I have fixed it and you can get the latest version from the repository (just use the link in the first post). Let me know if it works for you or if there are any other issues.
Thanks,
Kyle
Thanks for the quick response.
I updated the snippet with the version linked to in the first post, but now I am getting a new error. Have I missed a step perhaps? This appears in place of the file list:
Warning: Unterminated comment starting line 191 in /home/orioscom/public_html/wip/ppps/manager/includes/document.parser.class.inc.php(705) : eval()’d code on line 191
Any suggestions?
Did you change any code in the snippet? I looked at the code and there is a comment on line 190 but it is teminated correctly. If you changed the image array, check to make sure it is setup right.
Glad to hear it is working now. Thanks for finding the image bug!
This is just for the note that I can only call a directory this way on my server (1and1.com):
getFolder=`./assets/js`
(with the dot and slash before them all)
...or else it doesn’t work at all. Maybe it’s just the server’s configuration, but anyways, maybe other people get this as well.
Congratulations, this tool is really useful!
bs.i.d..e...s....
Brazilian Portuguese Translator