Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 MOD: File Lister for snitz 3.4.x
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

burthold
Junior Member

USA
426 Posts

Posted - 10 October 2002 :  01:52:04  Show Profile  Visit burthold's Homepage
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  Show Profile  Visit burthold's Homepage
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
Go to Top of Page

burthold
Junior Member

USA
426 Posts

Posted - 10 October 2002 :  12:46:53  Show Profile  Visit burthold's Homepage
Bug: File lister wasn't handling the dreaded spaces in file names.
Fixed: New Files up at download site!
Go to Top of Page

alex042
Average Member

USA
631 Posts

Posted - 10 October 2002 :  13:21:52  Show Profile  Send alex042 an AOL message  Send alex042 a Yahoo! Message
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?
Go to Top of Page

burthold
Junior Member

USA
426 Posts

Posted - 10 October 2002 :  13:26:33  Show Profile  Visit burthold's Homepage
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
Go to Top of Page

burthold
Junior Member

USA
426 Posts

Posted - 10 October 2002 :  13:29:29  Show Profile  Visit burthold's Homepage
Woops! I put up a new zip file and also posted a zip with just the icons in it.

Cheers,
Wes
Go to Top of Page

Bookie
Average Member

USA
856 Posts

Posted - 10 October 2002 :  14:22:04  Show Profile  Visit Bookie's Homepage  Send Bookie an AOL message  Send Bookie a Yahoo! Message
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
Go to Top of Page

burthold
Junior Member

USA
426 Posts

Posted - 10 October 2002 :  14:36:11  Show Profile  Visit burthold's Homepage
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
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 10 October 2002 :  20:32:27  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
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
Go to Top of Page

burthold
Junior Member

USA
426 Posts

Posted - 11 October 2002 :  00:30:18  Show Profile  Visit burthold's Homepage
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.43 seconds. Powered By: Snitz Forums 2000 Version 3.4.07