The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I am trying to add a new thread. This is for a non-vb page and trying with the build thread function was not working because including global and was changing some of the session data for another program that we are using.
So I thought about just adding the post to the db directly. I found a few posts here and there about it, and put something together, but it is not working. PHP Code:
Also I am not sure if this is even correct. Can someone please help me out? Thanks |
#2
|
||||
|
||||
![]()
the best way is to use that function since it will correctly update and insert all the information
![]() |
#3
|
|||
|
|||
![]()
That's what I was hoping to do. But what we have is a seperate knowledge base and I want to post a thread when there is a new entry. But when we included global and functions_newpost is was messing with the session data for the knowledgebase and it stopped working.
![]() Ok, I think I got past the first set of errors, but now I get a new error. Fatal error: Call to a member function on a non-object on line 15 PHP Code:
|
#4
|
|||
|
|||
![]()
You will need to require_once global.php, or you will not have access to the $DB_site functions.
|
#5
|
|||
|
|||
![]()
Thanks. A friend of mine got it working fine now without the manual inserting.
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|