The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Newthread.php and saving custom field to database
I'm trying to save data from an input field that I have in newthread template into the database. However, I want it to be in the same row as the newly created thread. However its hard when the thread doesn't exist. I cant find any documentation that EASILY describes how this is done, or how the forum's datamanager works.
A little help would be appreciated!!! |
#2
|
|||
|
|||
Quote:
I found quite a few references for the datamanager by Googling vbulletin.org using: "vbulletin datamanager forum" as my terms. vBulletin Manual - Datamanager https://www.vbulletin.com/docs/html/...nager_advanced |
#3
|
|||
|
|||
an Input field. <inpunt name='data'>
some php code to save to a database mysql_query("UPDATE vb_thread SET zevent='$mTime' WHERE threadid='$newT' ", $con); however ''''WHERE threadid'''' wont exist because the post hastn't been made yet..... so i have no idea how to do that externally. |
#4
|
|||
|
|||
You should start by looking for a similar modification in-which you can use as a template for your personal code.
Are you looking to create a thread via the datamanager? |
#5
|
|||
|
|||
I am simply trying to put some data into my database from an extra field i have in the template.
i have a conditional that only lets the field show up in newthread template with a specific forumid. At the exact same time my NEWPOST is made, i want the data from the input field to be saved into the database in the same row as the new post. --------------- Added [DATE]1409420788[/DATE] at [TIME]1409420788[/TIME] --------------- I found this, http://www.vbulletin.com/forum/forum...itional-fields however when he gets to the part that says: Once you cashed the field variable as described above, you can add it to the post by: I have no clue what the heck that means without some more Context. |
#6
|
|||
|
|||
I was writing something up when I came across this from @KH99 during a search. Basically it covers everything I was going to suggest, but in an example form (good ol' @KH99).
https://vborg.vbsupport.ru/showthread.php?t=307730 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|