How does the image ...
 
Notifications
Clear all

How does the image upload feature work?

5 Posts
3 Users
0 Reactions
1,506 Views
(@charl)
Posts: 17
Active Member
Topic starter
 

Hi there,

I'm moving my fanfic site from a custom content management system to eFiction and I'm wondering if there's any documentation out there showing how the image upload system works. I've got 122 images (nearly everyone has a different artist) to upload. I've tried uploading one and it seems that the image is placed in a folder called Images and that folder is inside another folder named after the uploader's ID number. e.g. 1. There's a file called imagelist.js inside the image folder which lists the image's vital statistics.

Does that mean I have to work out the ID number of each artist, create a folder with that number and upload the image into it, then create an imagelist.js file for every one of those 122 image files, in order to get images working on eFiction?

Thanks in advance for your help.

Charl


 
Posted : 04/05/2008 11:43 am
(@becca)
Posts: 553
Honorable Member
 

I think what can be done (most likely Tammy could help you with you with this) is to write some SQL to convert your current members to eFiction assuming that your custom script uses MySQL. Or something along those lines. I'm also guessing that your script is made by you, or a modified version of a script such as Drupal , e107 or something?


 
Posted : 04/05/2008 2:40 pm
(@charl)
Posts: 17
Active Member
Topic starter
 

It's not necessary for Tammy to go to all that trouble. I can write PHP and MySQL myself. I've already moved over 4000 stories in a matter of hours, using the PHP scripts I've created.

All I need to know is how the image system works, and I can handle it from there.


 
Posted : 04/05/2008 6:19 pm
(@carissa)
Posts: 791
Member Moderator
 

They work the way you said in your post. The script uses user ids instead of names so that users can change their name if they want to. When a user uploads an image, the script creates an file in their uid folder for the images. If necessary, it creates the uid folder too since those are only created when they're needed (for a story, if you are storing them in files or an image upload).

The imagelist.js is something used by TinyMCE to allow users to easily insert their images into their stories.


 
Posted : 04/05/2008 7:34 pm
(@charl)
Posts: 17
Active Member
Topic starter
 

Thanks for the confirmation. I'm off to write the scripts to make the js files and transfer the data...


 
Posted : 05/05/2008 5:09 am
Share: