Hello and welcome to the Webmasters Forums!. This is the best place to get webmasters resources for free. Get $2 for free today, read more - Make your payment today. Download premium and professional templates for free. Get free web hosting without ads, read more. You can get lot more by simply join with this forum. To gain full access to the forums you must sign up for a free account.


Post Reply  Post Thread 

Forum Attachment Scripting Support

Post Bank
Posting Manager
******

Posts: 995
Group: Forum Team
Joined: Sep 2006
Status: Online
Make money from now. You can make money just for posting on this forum. Every discussions on this community gives you more money. $2 minimum payout. So get your payment today, SignIn with this forum.

Signin to Remove this Post

crazy:)boy
Newbie


Posts: 2
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 0
Points: 10 (Donate)
Post: #1

Cool Forum Attachment Scripting Support


hai guys, i am new to your forum and this post will be probably my first in your forum..
i am having a simple forum which runs on simple php and mysql..
i am doing modifications of it and now i am trying to add a multiple file attachment system to the forum post... i dont want the files to uploaded in the database i just want them to be uploaded in the folder lets say "files" in the server,, and the file size, file name, and file location to be inserted to the database table lets say "file"...
but some how i am not been able to attach the uploaded files with the forum post if any one of you know a way to make it run successfully then please do reply....
Wink

27-02-2008 04:51 AM
Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,179
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4389 (Donate)
Post: #2

RE: forum attachment..


That needs little bit of coding. First make the script for uploading files and place them on the destination folder. Then make its database insertion script, which runs along with the uploading script.

On the attach file table (Which is for the attached files), include necessary fields for file informations (actual url, size, ect.. ) and post informations.

When displaying post's contents, check for the existance of any attached files with post id in attach file table.

I hope you understand the steps....

For codes, you can find many file uploading scripts,

Create table with phpMyAdmin...

Make other necessary codes yourself..


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
28-02-2008 02:05 AM
Find all posts by this user Quote this message in a reply
crazy:)boy
Newbie


Posts: 2
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 0
Points: 10 (Donate)
Post: #3

RE: Forum Attachment Scripting Support


ok now i was just wondering when you will reply thanks for it,, now i have been able to upload the files into the server folder and yes the name of the files in the table value "filename", now the problem with me is that i am not been able to attach the file with the post of the thread,, i have also called the table in the index file, some times the file is shown in the post and when i refresh the page its gone all i can say is that i am not having the luck right now,, by the way the script that i am modifing is chipmunk board... yes its a little bit more error script..if you can give a little more info how to attach it with the post then sure i will do it,, i just need a little help on this ....

28-02-2008 03:54 AM
Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,179
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4389 (Donate)
Post: #4

RE: Forum Attachment Scripting Support


Assume table: attach(id, postid, filename,desc,location)

On post view page:

* Get the post's ID as pid.

SQL: SELECT * FROM attach WHERE postid=pid.

Get the result. Dispaly file name, description and location link with the post.

It is simple. Iam not familier with chipmunk script. This is only an idea. I hope that this info will help you.


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
28-02-2008 10:29 PM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Cool Steps To install Chipmunk Forum ivenms 27 1,105 Today 10:00 PM
Last Post: shadav
Question how can i modified chipmunk forum aman_verma 0 12 10-10-2008 03:32 AM
Last Post: aman_verma
  An Electron Forum Anish 0 109 04-04-2008 12:29 AM
Last Post: Anish
  MyBB forum - opinions Cedik 14 417 07-10-2007 10:51 PM
Last Post: ivenms
  Remove forum led by: godkillah 4 226 01-10-2007 02:44 PM
Last Post: godkillah
Question Can direct upload n another for url upload both be integrate with forum? Lord_Daksh 6 257 27-09-2007 11:34 PM
Last Post: shadav
  SMF - Simple Machines Forum - review Cedik 1 237 27-09-2007 04:28 AM
Last Post: ivenms

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites
Rate This Thread:

Forum Jump:

Sign In to Remove Ads

Download 1000's of web templates. Unlimited access!
World's Best Web Hosting
Website of the Month

Create-a-Page for Free
SOTM June 2008


Accepting Submissions
for July 2008
Resources

Recommended Sites:



Visit our Sponsors!

Current time: 13-10-2008, 10:02 PM


Copyright © 2002-2008 MyBB Group
Powered By MyBB