Question #48798 on phpns changed:
https://answers.launchpad.net/phpns/+question/48798

    Status: Answered => Solved

RACooper confirmed that the question is solved:
here is my archive of just the modified/added files to incorporate the
upload functionality:

http://www.noidea.us/download.php?f=phpns-upload-patch.zip

I don't know anything about bazaar so feel free to incorporate it
however you want.  I've included the readme for hypersilence.net in the
docs folder of the archive.

NOTES:
1) modified the uploader.php from it's original to ignore index.php in the 
../files/ folder, so any attempt to access the folder directly will result in 
being bounced back to the site homepage.

2) added .pdf as an allowed extension.

3) changed $maximum_file_size from 50k to 8MB.

4) changed the upload directory from "files/" to "../files/" on line 29.
did not change line 30, so "files/" should be in site root.

5) modified upload.php to output into the $content variable to integrate
with phpns templates, added note that spaces in upload filenames would
be converted to underscores, and changed approx upload max calculation
to be MB instead of KB.

6) added upload.php to the $rep_patt[] array in inc/global_files.php.

7) added images/upload.png, borrowed from the Tango Icons set.

8) added "upload file" link to menu <UL> in
themes/default/admin.tpl.php.

if you find any problems with it please let me know, you can post a blog
comment at http://www.noidea.us/blog/index.php?entryid=54 just remember
that I moderate all comments, so it may not show up immediately but I
will be notified when it's entered.

-- 
You received this question notification because you are a member of
Phpns-team, which is an answer contact for phpns.

_______________________________________________
Mailing list: https://launchpad.net/~phpns-team
Post to     : phpns-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~phpns-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to