Discussion Forum Tweek

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
DB
Regular
Posts: 22
Joined: Mon May 01, 2006 9:40 pm
Contact:

Discussion Forum Tweek

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Discussion Forum Tweek

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Discussion Forum Tweek

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
DB
Regular
Posts: 22
Joined: Mon May 01, 2006 9:40 pm
Contact:

Post 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:
Post Reply