|
|
|
|
- Readme First! - Read and follow the rules, otherwise your posts will be closed |
|
|
|
|
|
There are currently, 365 guest(s) and 0 member(s) that are online.
You are Anonymous user. You can register for free by clicking here |
|
|
|
|
|
| The comments are owned by the poster. We aren't responsible for their content. |
| | | | |
No Comments Allowed for Anonymous, please register | | | | |
Re: Ready for Halloween? Paranormal Nuke! (Score: 1) by gdt on Thursday, September 30 @ 17:06:52 CEST (User Info | Send a Message) | I could probably whip up a quick how-to, but it would be pretty minimal. Basically, you need to know how to take file uploads with php (google search, its really easy), then you need to modify /modules/Submit_News/index.php pretty much everywhere the story is passed in via post, which means on first preview, subsequent previews, and on finl submit. You need to modify the form to include 5 uploads, and you have to check after upload that you did in fact receive an image file, and not some malicious php file or something.
Then, create a folder for the images, chmod 777 or at least give apache full rights to it, and have your script copy the images to that folder and insert tags into the story text for each. On previews, you'll want to see if a replacement image came in, and delete the old if so.
Sounds complicated, but it wasnt too bad. You also need to modify the tables _queue and _stories to include the path to the images so you can delete them from within /admin/modules/stories.php
haha good luck. seriously, though, it wasnt too bad. took 3 days, but its definitely reproducable. |
| Parent | | | | | |
|