TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,236
  • Total Topics: 21,353
  • Online today: 577
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 295
  • Total: 295

Custom fields with uploaded files?

Started by jbayer, March 26, 2007, 02:58:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jbayer

OK.  The attached file contains all the files I had to modify.  All my modifications are surrounded by comments with my initials:  JBB

I created this change because I needed to store additional information with each file, with the idea that in the future I'll be able to
This needs to be untar'd using the following command in the main SMF directory:

tar xzf TPuserfields.taz


Be sure to make a backup.

Read the file TODO-JBB, it contains basic instructions as well as a list of the changes I had to make (not file change, just functionality)

The only thing I didn't automate was creating a new table.  The code for that is listed in the file TODO-JBB

I would appreciate any feedback and comments.

You can contact me at jbayer@bayerfamily.net


JBB

jbayer

I'm not sure the file uploaded.  You can download it at:

http://mrld.info/TPuserfields.tar.gz


JBB

jbayer

I've noticed that the performance of the download area is really bad.  For an example, go to my site  http://mrld.info.  I have over 1000 files, and it takes about 9 seconds to generate the first download screen.  By comparison, go to http://3pi.info/superark/  which is where I got the files from (I wrote some custom code to import all the files).  These two sites are on the same computer but the 3pi.info produces the screen in less than 1/2 a second.

I'm going to look at the code and try to see what is going on.  I already know that there are left joins, which can really slow down a database.


JBB

This website is proudly hosted on Crocweb Cloud Website Hosting.