I've been staring at this stuff for awhile, and I'm in the position of feeling suddenly very out of my comfortable pond.
By now I've figured out what is going on in most of the 1.1x modules, and program flow, but I am having trouble actually doing anything with it.
I figure, a good place to start is something really, really simple, but also useful.
For example, let's add back in the "Attachments".
To do that, the first step is to create a file upload routine.
Let's make it simple, and add it to the Admin area, so the Admin can attach a file (logo) to a link that has paid for one (or done whatever).
As simple as the first step will be, we have to do a few things that were not in the docs, such as add in user parameters.
1) We need to present the admin with a "setup" option, to pick the upload directory.
2) We need to then to install the module, and set up the "hooks" and interfaces on the admin screen.
3) We need an option to upload file (which will prompt with a box, and default file path)
4) We need the hook into the file upload routine (or we need to write a generic one if there isn't one).
5) We need to pass the file from the local disk, to the server, then into the upload directory.
That is the first step-- ie: setting up the module, and uploading the file.
Second step:
1) A routine to do the processing on the file --integrity, format, size, etc.
2) A routine to "move" the file to whatever directory we need it in.
3) A routine to re-name, delete, or otherwise modify the file.
4) A hook on the Add/Validate/Modify area to "attach" a file to a link.
Third Step:
Once the above is done, the skelleton exists. Then, actual features can be added. If I can get to this step, I'll be sooooooo happy!
:)
PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ
By now I've figured out what is going on in most of the 1.1x modules, and program flow, but I am having trouble actually doing anything with it.
I figure, a good place to start is something really, really simple, but also useful.
For example, let's add back in the "Attachments".
To do that, the first step is to create a file upload routine.
Let's make it simple, and add it to the Admin area, so the Admin can attach a file (logo) to a link that has paid for one (or done whatever).
As simple as the first step will be, we have to do a few things that were not in the docs, such as add in user parameters.
1) We need to present the admin with a "setup" option, to pick the upload directory.
2) We need to then to install the module, and set up the "hooks" and interfaces on the admin screen.
3) We need an option to upload file (which will prompt with a box, and default file path)
4) We need the hook into the file upload routine (or we need to write a generic one if there isn't one).
5) We need to pass the file from the local disk, to the server, then into the upload directory.
That is the first step-- ie: setting up the module, and uploading the file.
Second step:
1) A routine to do the processing on the file --integrity, format, size, etc.
2) A routine to "move" the file to whatever directory we need it in.
3) A routine to re-name, delete, or otherwise modify the file.
4) A hook on the Add/Validate/Modify area to "attach" a file to a link.
Third Step:
Once the above is done, the skelleton exists. Then, actual features can be added. If I can get to this step, I'll be sooooooo happy!
:)
PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ