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)
 File Library Mod 3
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

al_iguana
Junior Member

138 Posts

Posted - 18 October 2002 :  21:47:15  Show Profile  Visit al_iguana's Homepage
Site File Library Mod : v3
Current Author: Al Iguana
Original Author: Dave
Last Modified: October 24, 2002
For Snitz Version: 3.4.03

Formerly known as "Dave's File Library Mod 1.1". He has given me permission to develop it and post it here.

What this mod does is allow you to set up a links page to any files you have on your server that you would like people to download.

The original version listed Snitz related files. I've expanded this so you can list several common filetypes, and the platforms they run on. I've also added a download counter, so you can see how many times they have been downloaded. This mod doesn't upload files for you. You just enter the url of the file (could be on your snitz server, or on another server entirely).

Simple enough to install. Run the dbs file, upload the asp files to your forum folder and the graphics to your graphics folder. (If you have changed your inc_iconfiles, then just copy/paste the File Library section from the enclosed inc_iconfiles into yours). Then make a link to "Filelibrary.asp" from your header, and a link to "admin_library.asp" from your admin_home page.

---

UPDATES
Now uses strTablePrefix throughout, to make it more compatible. Added an "Any" platform type, because some files like MP3 and PDF are platform independent. Also added an "Other" filetype. Removed the download count from the site page, now only admins can see the count (if you want the users to see it there is an alternate version with the counter). Improved Admin section, multiple deletions, and options to edit a file (if the url changes or whatever).

Download 27k

This will be the last version of this mod, unless there are any bugs.

If you want a demo, Serverhacker is using it on his site.

----------
note: please do not confuse this with Burthold's File Lister Mod. That is an entirely different beastie, with uploads, user areas etc.
----------

----

Don't Dream It ~ Be It
http://www.peppermintiguana.co.uk/cymrugothic/

Edited by - al_iguana on 24 October 2002 19:33:16

@tomic
Senior Member

USA
1790 Posts

Posted - 18 October 2002 :  22:05:44  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
Your link is dead.

@tomic

SportsBettingAcumen.com
Go to Top of Page

al_iguana
Junior Member

138 Posts

Posted - 18 October 2002 :  22:19:17  Show Profile  Visit al_iguana's Homepage
**** server

*kicks it*

working now

----

Don't Dream It ~ Be It
http://www.peppermintiguana.co.uk/cymrugothic/
Go to Top of Page

Arne2
New Member

Denmark
51 Posts

Posted - 20 October 2002 :  13:27:59  Show Profile
You should use the strTablePrefix, since it fails because of the lack of use. You have hardcoded it in a few different places to FORUM_FILES

Else it is a good MOD :-)

Regards
Arne
Go to Top of Page

al_iguana
Junior Member

138 Posts

Posted - 20 October 2002 :  13:43:06  Show Profile  Visit al_iguana's Homepage
it fails? could you explain? it works fine for me.

----

Don't Dream It ~ Be It
http://www.peppermintiguana.co.uk/cymrugothic/
Go to Top of Page

Arne2
New Member

Denmark
51 Posts

Posted - 20 October 2002 :  14:09:55  Show Profile
It fails because there are many instances where FORUM_FILES is hardcoded. My prefix is not FORUM but something else.

Like here in filelibrary.asp you have:
... my_conn.Execute ("DELETE FROM FORUM_FILES WHERE FORUM_FILES.ID='" & .....

Regards
Arne
Go to Top of Page

al_iguana
Junior Member

138 Posts

Posted - 20 October 2002 :  15:35:40  Show Profile  Visit al_iguana's Homepage
updated to V3. See first post in this thread

----

Don't Dream It ~ Be It
http://www.peppermintiguana.co.uk/cymrugothic/

Edited by - al_iguana on 24 October 2002 19:33:57
Go to Top of Page

jeffery
Junior Member

USA
176 Posts

Posted - 01 November 2002 :  12:44:25  Show Profile
Al,

How hard would it be to change this Mod to create categories?

www.thomasforum.com
Go to Top of Page

al_iguana
Junior Member

138 Posts

Posted - 01 November 2002 :  18:17:56  Show Profile  Visit al_iguana's Homepage
easy, you need to change a few files but its not hard.

admin_library_add:

add your catagory to the list of options. if it is a filetype, add it after line 99:

<option>Exe</option>
<option>Whatever</option>
<option>Other</option>

or if its a platform make your change after line 109.

you need to make the same change in admin_library_edit. This file is a little more complicated in its option format, but just copy one thats already there and rename.

now you need to make a 32x32 icon for your file/platform. put it in your images folder and then add the following line to your inc_iconfiles:

Const strIconwhatever = "icon_whatever.gif|32|32"

all thats left is to edit FileLibrary.asp:

case "Whatever"
     Response.Write getCurrentIcon(strIconWhatever,"","align=""absmiddle""")&"<br>" & RS("Type") &vbNewline

I don't know if these are case sensitive, but its best to stick to the same thing in all the asp files ie use Rar or RAR or rar, don't mix them.

i think thats all. like i said, its easy-ish. sorry if these instructions are messy, its late here

i'm looking into some way of making the categories dynamic, ie the admin can choose them rather than using hard-coded ones. Thats for the next version

----

Don't Dream It ~ Be It
http://www.peppermintiguana.co.uk/cymrugothic/

Edited by - al_iguana on 01 November 2002 18:19:05
Go to Top of Page

jeffery
Junior Member

USA
176 Posts

Posted - 01 November 2002 :  22:31:27  Show Profile
Great job Al, thanks.

www.thomasforum.com
Go to Top of Page

jeffery
Junior Member

USA
176 Posts

Posted - 01 November 2002 :  23:03:37  Show Profile
quote:
admin_library_add:

Oops. This was helpful but I think I meant to ask a different way. I want to display the list of files in some sort of hierarchal way. The "categories" perhaps being the file type, platform, etc. But when you get a long list of files it's be nice to have them grouped. I'd like to be able to name categories .. such as "Music", "New", "Needs work", whatever ...

Does that make sense?

www.thomasforum.com

Edited by - jeffery on 01 November 2002 23:04:47
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.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07