PDA

View Full Version : Creating a Thread through an external formular...


cl4ym4n
10-14-2007, 05:38 PM
Hi.

I am building an external join-us form for our trialmember-candidates.
We got a 'Join Us'-subforum in our forums...
Until now, all the people posted in there, but they missed many things to say, like age, country etc.

So i created an external form with all required fields to be filled.
All this is posted into a seperate, own mysql-table.

But i would like it to have like that:

Someone goes to the join-us form, fills out the required fields, sents the form.
Then the fields should be formatted like


Personal
Name: xx
Age: xx


Its no problem for me to get a pre-formatted string like that.

The thing is, i want to create a thread with the title 'Joining-Application by *Name*' with icon and the above named string as message.

Usually i would just INSERT INTO the threads-table, but i have no idea, how all the tables are connected to each other.

So...my question is:
Is it enough to insert the text into the thread-table or are there more tables to be updated when a new thread has been created?

Sry for my english...i'm german :D

Lynne
10-14-2007, 05:45 PM
I know you also need to update the post table. You may want to take a look at the newthread.php script and copy a lot of that over to your external form.

sabret00the
10-14-2007, 05:52 PM
you could use the forms hack. or you could use the built in api and just send it as you want on the fly.

if you opt for the data manager check out the official help files on vb.com or check out the vb.org article section.

EDIT: Lynne gave you terrible advice. to create a new thread. it's like 10/15 lines of code.

Opserty
10-14-2007, 07:27 PM
This maybe: https://vborg.vbsupport.ru/showthread.php?t=102418 ?

sabret00the
10-14-2007, 09:10 PM
i saw that, but that's create posts. feel free to download my Mod Application System. I create threads with that.

Opserty
10-14-2007, 09:24 PM
i saw that, but that's create posts. feel free to download my Mod Application System. I create threads with that.
Ooops oh yeah lol. Someone needs to make a [How-To] Create threads :p

cl4ym4n
10-15-2007, 06:29 PM
Uhm...i am kinda confused now... :Z

Searched the articles but just found the 'how-to create posts'.
Also checked the database for some other articles which could help me, but i didn't find anything...

Took a look on the form hack, but somehow it is not, what i am searching for...
I don't want to integrate the formular into my vB coz it has its own style...
I just need a class or a function to create a thread through this formular...

Opserty
10-15-2007, 07:50 PM
How about this: https://vborg.vbsupport.ru/showpost.php?p=1346573&postcount=21 ?

cl4ym4n
10-15-2007, 08:28 PM
I am getting even more confused... lol

I'm not really familiar with the vB-classes and i don't know what all the functions do... :/

But the link you posted looks like - besides the thread-table - only the forum counter is updating...

Or am i wrong?

Opserty
10-16-2007, 02:48 PM
I am getting even more confused... lol

I'm not really familiar with the vB-classes and i don't know what all the functions do... :/

But the link you posted looks like - besides the thread-table - only the forum counter is updating...

Or am i wrong?

Datamangers are the best way you should be doing it, they will handle most things for you.

If you don't know PHP I wouldn't bother try to do this yourself though. I mean you can try mucking around with the code in that link its really quite simple. Just look at the comments in the PHP script and read what is going on.