PDA

View Full Version : [help] How to get new thread title from external using POST


gx123
08-16-2012, 08:30 AM
hello,
is there a way to get the TITLE value for new thread from external form?

i want to able to make something like this form
TITLE: ...........
[submit]

then using POST, the newthread inside vbulletin will be able to get the title i submitted on the previous form.

thanks


EDIT:
the form code
<form name="input" action="vb418/newthread.php" method="post">
Judul: <input type="text" name="title" />
isi: <input type="text" name="pagetext" />
forum: <input type="text" name="forumid" />
<input type="hidden" name="securitytoken" value="<?php echo($vbulletin->userinfo['securitytoken']); ?>" />
<input type="submit" value="Submit" />
</form>

then i will enter the new thread page normally, but the title is all blanks :(

kh99
08-16-2012, 09:27 AM
You could try something like this:

<form name="input" action="vb418/newthread.php?do=newthread" method="post">
Judul: <input type="text" name="subject" />
isi: <input type="text" name="message" />
forum: <input type="text" name="forumid" />
<input type="hidden" name="do" value="postthread"/>
<input type="hidden" name="preview" value="1"/>
<input type="hidden" name="securitytoken" value="<?php echo($vbulletin->userinfo['securitytoken']); ?>" />
<input type="submit" value="Submit" />
</form>