Page 1 of 1

Discussion Forum Tweek

Posted: Mon May 01, 2006 10:00 pm
by DB
Hello,
I have spent many hours trying to configure Serendipity to do what I want. I am having not too much luck.

I need a web page that has a discussion forum. It must be secure, because I will be allowing users to upload a file to my server. Right now I have Serendipity v.1 beta setup with the discussion forum plugin, and adjusted so guests can upload files. Then I put password protection server side on my web page. I will spare you the details, but there is actually quite a lot of stuff to go through to make it secure, have guests add an entry, be able to upload files, and not have to login twice (if you can understand what I mean). All users need to be able to download a certain file from the sidebar, update it and upload it in their forum entry.

Question 1: How do I make Serendipity replace the same file that is uploaded, so it can be downloaded as the latest version from an html nugget link in the sidebar?

Question2: How do I make Serendipity increase the file size of an uploaded file in my discussion forum to about a max of 15mb?

I could use any help. I know the setup seems confusing, but it is the only way I can figure.

Thanks in advance, DB

Re: Discussion Forum Tweek

Posted: Tue May 02, 2006 9:00 am
by garvinhicking
Hi!

Sadly I did not develop the forum plugin and know little about it, so I can't specifically help you with that.
Question 1: How do I make Serendipity replace the same file that is uploaded, so it can be downloaded as the latest version from an html nugget link in the sidebar?
I think you will need to patch the forum plugin there, and create a new sidebar nugget PHP plugin to read the uploaded file listings from the table dma_forum_uploads.
Question2: How do I make Serendipity increase the file size of an uploaded file in my discussion forum to about a max of 15mb?
For that you need to adjust your PHP.ini "upload_max_filesize" and "post_max_size" variables to 15MB, and restart the webserver to set those settings.

HTH,
Garvin

Re: Discussion Forum Tweek

Posted: Tue May 02, 2006 9:01 am
by garvinhicking
Hi!

Sadly I did not develop the forum plugin and know little about it, so I can't specifically help you with that.
Question 1: How do I make Serendipity replace the same file that is uploaded, so it can be downloaded as the latest version from an html nugget link in the sidebar?
I think you will need to patch the forum plugin there, and create a new sidebar nugget PHP plugin to read the uploaded file listings from the table dma_forum_uploads.
Question2: How do I make Serendipity increase the file size of an uploaded file in my discussion forum to about a max of 15mb?
For that you need to adjust your PHP.ini "upload_max_filesize" and "post_max_size" variables to 15MB, and restart the webserver to set those settings.

HTH,
Garvin

Posted: Wed May 03, 2006 7:14 pm
by DB
Hey, What do you know? The plugin is has been updated and now offers an "overwrite" file option.

Thanks for the help all! I try to steer clear of code butchering.

:lol: