Jump to content

Recommended Posts

Can someone send me in the right direction on how to add a delete post feature to my forum. 

 

Also I would like for the user to be able to upload pictures to their post as well.  Any ideas on where to start finding information on how to accomplish this?

Very difficult with so little info.

 

Delete:

-Could do so an url goes to www.yourforum.com?forumId=123

-Then using $_GET['forumId'] your database deletes that id from the table (probably should ensure logged in user also)

 

Upload Photo:

- Quick search on Google found this:

http://www.tizag.com/phpT/fileupload.php

- Be aware that when allowing user to upload a photo that they could upload any file (e.g. a .php file) - you will need to look into the security around this.

- If uploading a photo, you should also convert the file received into something suitable. If user uploaded 8MB file you wouldn't want to store or display this. Look into "Imagick" for this (Google).

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.