inherit
103942
0
Jan 27, 2013 20:37:17 GMT -8
Themark
Good Grief
97
May 2007
themark
|
Post by Themark on Nov 14, 2010 15:20:50 GMT -8
My goal is to create an html form in the header of one board that inputs the information to the server and creates a new thread. People make custom quick reply forms so I'm only assuming this isn't any different and doesn't goes against Proboards TOS.
I'm not sending any additional information to the server. Only subject and the message.
I've been tinkering with the code all evening but I'm unable to get the action of actually posting to work. Is there something I'm missing? Can anyone give me the exact action script to not reply to a specific thread but to create a new one?
Thanks
|
|
inherit
*this CT deserves an achievement*
136400
0
Jun 25, 2021 18:23:00 GMT -8
Trill
hola
6,232
January 2009
ghbraingle
|
Post by Trill on Nov 14, 2010 16:56:48 GMT -8
Here are the essential portions of a sample form that I'm using to create a new thread: <form action="/index.cgi" method="post" name="postForm" enctype="multipart/form-data" onSubmit="disable(this)" style="display: inline"> <input type="hidden" name="action" value="post2"> <input type="hidden" name="board" value=" warnings"> <font size="2">SUBJECT:</font> <input type="text" name=" subject" size="20" maxlength="30"/> <font size="2">MESSAGE:</font><font size="1"><textarea name=" message" rows="8" cols="70" wrap="soft"></textarea><br /> <input type="hidden" name="icon" value="xx"/> <input type="hidden" name="nextaction" value="post"> <input type="submit" value="Post Message" onClick="document.postForm.nextaction.value='post';"> </form> Basically, just copy the source of the New Thread page HTML to see what types of form and input HTML is needed. It's very similar to the new reply HTML, but if you need me to elaborate on any parts of the code, let me know.
|
|
proseth
inherit
-4246472
0
Nov 29, 2024 13:47:26 GMT -8
proseth
0
January 1970
GUEST
|
Post by proseth on Nov 14, 2010 19:50:13 GMT -8
|
|
inherit
*this CT deserves an achievement*
136400
0
Jun 25, 2021 18:23:00 GMT -8
Trill
hola
6,232
January 2009
ghbraingle
|
Post by Trill on Nov 14, 2010 20:23:44 GMT -8
That post was from before the TOS was updated, I believe. If I remember correctly, there was a thread about this in the support board where Craig mentioned it was permitted for HTML forms to be used. For some reason, I'm thinking it may have been Eton who posted the thread, but my memory of that isn't very clear. I'll try to find the thread. Edit: maybe I'm imaginig this, I can't seem to find the thread I'm looking for
|
|
inherit
103942
0
Jan 27, 2013 20:37:17 GMT -8
Themark
Good Grief
97
May 2007
themark
|
Post by Themark on Nov 15, 2010 0:28:33 GMT -8
First of all, Trill your icon is totally awesome ;]
Second, I'm still getting the same problem I was before, that when I try to create the new thread, clicking the submit button, I get the error message that I'm trying to access a thread that doesn't exist. I'm obviously missing SOMETHING here. When you say to copy the new page html are you referring to the code you just gave me, or something I need to go source and grab myself? Because I've tried searching and digging and trying lots of stuff and I still can't get the thread to actually get created...
|
|
inherit
*this CT deserves an achievement*
136400
0
Jun 25, 2021 18:23:00 GMT -8
Trill
hola
6,232
January 2009
ghbraingle
|
Post by Trill on Nov 15, 2010 13:05:49 GMT -8
It's essentially the source of the form of the Create New Thread page, or the HTML in my post. Both should create a new thread. I'm going to try to get clarification if this is within TOS since I can't find the thread I referenced above.
|
|
inherit
103942
0
Jan 27, 2013 20:37:17 GMT -8
Themark
Good Grief
97
May 2007
themark
|
Post by Themark on Nov 15, 2010 16:05:15 GMT -8
Thanks.
I copied your code exactly, and have also tried the source from the Proboards thread creating page. I can't get it to work. It tells me the thread I'm trying to access doesn't exist, and won't post.
|
|
inherit
*this CT deserves an achievement*
136400
0
Jun 25, 2021 18:23:00 GMT -8
Trill
hola
6,232
January 2009
ghbraingle
|
Post by Trill on Nov 15, 2010 17:27:23 GMT -8
Did you change the board ID from warnings to some board on your forum? Could you also provide a link to where you have the code if that doesn't work.
|
|
inherit
103942
0
Jan 27, 2013 20:37:17 GMT -8
Themark
Good Grief
97
May 2007
themark
|
Post by Themark on Nov 15, 2010 19:31:09 GMT -8
SOLVED! Thank you! Makes sense ><
Another question; is there a way that the text that's put into these forms can be wrapped in other text of my choice, that gets automatically added to the new thread when it posts?
EDIT: I have a new issue that came out of no where, I didn't touch a thing and everything was fine but now it suddenly stops me from posting a new thread to tell me I didn't enter a valid message icon. Then from that page I don't touch anything but resend and it posts. But how can I cut out that middle section of picking a message icon?
|
|
inherit
*this CT deserves an achievement*
136400
0
Jun 25, 2021 18:23:00 GMT -8
Trill
hola
6,232
January 2009
ghbraingle
|
Post by Trill on Nov 16, 2010 14:39:22 GMT -8
You're welcome Do you have this line still intact? <input type="hidden" name="icon" value="xx"/>
|
|
inherit
103942
0
Jan 27, 2013 20:37:17 GMT -8
Themark
Good Grief
97
May 2007
themark
|
Post by Themark on Nov 16, 2010 19:19:11 GMT -8
Sure do. I have no other code in headers or footers for that board, and I've disabled global headers and footers on the board I'm currently testing on. Even on one with nothing, not even the disable global headers code, will the form submit without first telling me I didn't selected a valid message icon.
|
|
inherit
103942
0
Jan 27, 2013 20:37:17 GMT -8
Themark
Good Grief
97
May 2007
themark
|
Post by Themark on Nov 18, 2010 11:50:29 GMT -8
bump
|
|
inherit
103942
0
Jan 27, 2013 20:37:17 GMT -8
Themark
Good Grief
97
May 2007
themark
|
Post by Themark on Nov 19, 2010 2:44:31 GMT -8
bump
|
|
inherit
*this CT deserves an achievement*
136400
0
Jun 25, 2021 18:23:00 GMT -8
Trill
hola
6,232
January 2009
ghbraingle
|
Post by Trill on Nov 19, 2010 17:17:22 GMT -8
|
|