Generating a new topic using a form

Support for IntegraMOD 140

Moderator: Integra Moderator

Generating a new topic using a form

PostAuthor: ihammo » Wed May 31, 2006 3:43 am

Hi all

First off, i am a php noob so please be nice!! <img>

I have trawled through the forums and as yet haven't been able to find out how to do this.

What I want to do is create a simple form on a page that can be filled in and submitted. Once the form is submitted I would like the data in the form to appear as a new topic in a certain forum.

Is that actaully possible?

Thanks
Last edited by ihammo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

ihammo
Newbie
Newbie
 
Posts: 28
Likes: 0 post
Liked in: 0 post
Joined: Thu May 25, 2006 2:42 am
Cash on hand: 0.00

PostAuthor: phDaemon » Thu Jun 01, 2006 6:42 am

there is a code function in the phpBB Mod Authors Discussion forum that does this...if your not a php savvy person you may have problems doing this....however, i believe a simple html form could do it as well...
( unless phpBB fixed this bug )

something like
<form>

and the appropriate fields and field names for it.

BTW: notice that i said bug because it is fairly easy to make a javascript application that can spam a forum every set number of seconds using "post" and the forum id.
Last edited by phDaemon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

phDaemon
Newbie
Newbie
 
Posts: 26
Likes: 0 post
Liked in: 0 post
Joined: Fri May 26, 2006 6:35 am
Cash on hand: 0.00

Re: Generating a new topic using a form

PostAuthor: ihammo » Thu Jun 01, 2006 7:22 am

Hi

I managed to find a function that might be able to help with this:

http://www.phpbb.com/phpBB/viewtopic.php?t=45535

looking through the code you have to use a specific user ID to be able to post which you hard code. So I am assuming that as I dont have any public forums and only php on my host server can run SQL queries, that noone could use this to spam mt forum

I can knock a simple HTML form up pretty fast, all I need to work out is how to pass the variables to the insert_post() function

<img>
Last edited by ihammo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

ihammo
Newbie
Newbie
 
Posts: 28
Likes: 0 post
Liked in: 0 post
Joined: Thu May 25, 2006 2:42 am
Cash on hand: 0.00


Return to IntegraMOD 140

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]