Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-14-2007, 05:38 PM
cl4ym4n cl4ym4n is offline
 
Join Date: Jul 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 10-14-2007, 05:45 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 10-14-2007, 05:52 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 10-14-2007, 07:27 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This maybe: https://vborg.vbsupport.ru/showthread.php?t=102418 ?
Reply With Quote
  #5  
Old 10-14-2007, 09:10 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i saw that, but that's create posts. feel free to download my Mod Application System. I create threads with that.
Reply With Quote
  #6  
Old 10-14-2007, 09:24 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sabret00the View Post
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
Reply With Quote
  #7  
Old 10-15-2007, 06:29 PM
cl4ym4n cl4ym4n is offline
 
Join Date: Jul 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #8  
Old 10-15-2007, 07:50 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about this: https://vborg.vbsupport.ru/showpost....3&postcount=21 ?
Reply With Quote
  #9  
Old 10-15-2007, 08:28 PM
cl4ym4n cl4ym4n is offline
 
Join Date: Jul 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #10  
Old 10-16-2007, 02:48 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cl4ym4n View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:36 PM.


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.07268 seconds
  • Memory Usage 2,248KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete