You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
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
Threshold
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
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.154 Seconds - 184 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::