Author |
Topic |
|
burthold
Junior Member
USA
426 Posts |
Posted - 10 October 2002 : 01:52:04
|
PLEASE POST ALL PROBLEMS IN THE HELP FORUM! http://forum.snitz.com/forum/topic.asp?TOPIC_ID=36640
Mod Name: File Lister v1.00 for Snitz 3.4.03 Version: v1.00 Tested on: 3.4.03 only should work with any 3.4.x forums though Databases: Tested on MySQL v3.23.40NT, MS Access, and MS-SQL 2000 should work with 7.0 as well though not tested with it. OS Tested: Windows 2000/IIS5 Creator Name: Wesley Brown Contributors: Aecio Lemos, Lewis Moten, Mike Shaffer(whether they know it or not) Creator Email: Burthold@yahoo.com Download at: www.wesworld.net/mods/default.asp Demo Site: www.wesworld.net/testforum/default.asp
AS WITH ANY MOD, TEST IT BEFORE YOU GO LIVE WITH IT!
Notes: This is a spin off of my Photo Album mod. You must have FileSystemObject access for this to work! You must have write access to the folder you want to use! It can be a virtual directory as long as you have write permission!
Installing for the first time: Unzip all files into your snitz forum folder.
Insert this around line 568 in default.asp before these lines
if strShowStatistics = "1" then WriteStatistics
'photo album insert into main page %> <!--#include file="inc_file_lister.asp"--> <% 'end insert
In inc_iconfiles this should be in your const statements at the end around line 152 '################# File Lister Icons ####################### Const strIconWord = "icon_word.jpg|32|32" Const strIconZip = "icon_winzip.jpg|32|32" Const strIconAdobe = "icon_adobe.jpg|32|32" Const strIconNotePad = "icon_notepad.jpg|32|32" Const strIconFileFolderOpen = "icon_folder_open.jpg|32|32" '################# File Lister Icons #######################
admin_home.asp around 135 insert this: " <LI><span class=""spnMessageText""><a href=""admin_file_lister.asp"">File Lister Configuration</a></span></LI>" & vbNewLine & _
Before this line: " <LI><span class=""spnMessageText""><a href=""admin_config_colors.asp"">Font/Table Color Code Configuration</a></span></LI>" & vbNewLine & _
Goto the file lister administrator page in the admin options. If you want the setup to make a directory then give it a directory name to create. If not, please create a directory on your web site or a virtual directory attached to your web site.
That's it folks the only two lines of code you have to insert into your forums. I got tired of seeing mods that required a ton of changes to your forum code and always broke when the next version of snitz would come along. Hopefully this add-on will not be that way.
If you have any questions just email me at burthold@yahoo.com.
PLEASE POST ALL PROBLEMS IN THE HELP FORUM! http://forum.snitz.com/forum/topic.asp?TOPIC_ID=36640 |
Edited by - burthold on 10 October 2002 07:20:06 |
|
burthold
Junior Member
USA
426 Posts |
Posted - 10 October 2002 : 07:06:29
|
If there are any file types not supported please just post here what you would like to see and I will add them. It is a manual process right now I am trying to make dynamic for the future.
Cheers, Wes |
|
|
burthold
Junior Member
USA
426 Posts |
Posted - 10 October 2002 : 12:46:53
|
Bug: File lister wasn't handling the dreaded spaces in file names. Fixed: New Files up at download site! |
|
|
alex042
Average Member
USA
631 Posts |
Posted - 10 October 2002 : 13:21:52
|
quote: It is a manual process right now I am trying to make dynamic for the future.
Same with the photoalbum? Seems like you could add a database field in the config table to list acceptable extensions and another field for associated icons. As long as the extensions had a seperator, they could probably all be included in the same field and just pull the list from there.
Btw, was this zip suppose to include the icons?
|
|
|
burthold
Junior Member
USA
426 Posts |
Posted - 10 October 2002 : 13:26:33
|
I am working on a table to handle extentions it won't fix the const you have to insert into inc_icons file though. Also, I check mime types with the upload script I would have to basicly include all the mime types I could find and associate them with the extentions as well. The zip was suppose to include the icons... I'll check it out.
Wes |
Edited by - burthold on 10 October 2002 13:31:28 |
|
|
burthold
Junior Member
USA
426 Posts |
Posted - 10 October 2002 : 13:29:29
|
Woops! I put up a new zip file and also posted a zip with just the icons in it.
Cheers, Wes |
|
|
Bookie
Average Member
USA
856 Posts |
Posted - 10 October 2002 : 14:22:04
|
Looks good. Good idea. I have a suggestion. Use smaller images and smaller text. I use a 17" monitor at 1024x768 and it looks big. I couldn't imagine what it would look like at a smaller resolution or smaller screen.
Also, instead of stacking the icon on the file name, maybe put them side by side. If you use a 16x16 icon next to the file name, that would look slick, IMO. |
Participate in my nonsense |
|
|
burthold
Junior Member
USA
426 Posts |
Posted - 10 October 2002 : 14:36:11
|
I develop on 800x600 and it didn't look horrible to me :) In the edit table the icons are to the side and not stacked. I'll make the changes in my test envionrment and see how the look!
Thanks for the feed back.
Wes |
|
|
@tomic
Senior Member
USA
1790 Posts |
Posted - 10 October 2002 : 20:32:27
|
The file word.jpg is called icon_word.jpg in inc_iconfiles.asp. Just a simple rename needed for that one.
I tested it on SQL 7 and it's working just fine.
@tomic |
SportsBettingAcumen.com |
|
|
burthold
Junior Member
USA
426 Posts |
Posted - 11 October 2002 : 00:30:18
|
Lol, I need to quit working like I'm on a schedule. I'm working out the details now so you can add file extentions and it will use the icon specified if you add a new one or it will use a default icon.
Wes |
|
|
|
Topic |
|