vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Creating a Thread through an external formular... (https://vborg.vbsupport.ru/showthread.php?t=160227)

cl4ym4n 10-14-2007 04:38 PM

Creating a Thread through an external formular...
 
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

Code:

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 04: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 04: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 06:27 PM

This maybe: https://vborg.vbsupport.ru/showthread.php?t=102418 ?

sabret00the 10-14-2007 08: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 08:24 PM

Quote:

Originally Posted by sabret00the (Post 1360068)
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 05: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 06:50 PM

How about this: https://vborg.vbsupport.ru/showpost....3&postcount=21 ?

cl4ym4n 10-15-2007 07: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 01:48 PM

Quote:

Originally Posted by cl4ym4n (Post 1361046)
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.


All times are GMT. The time now is 11:21 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02106 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete