The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vB_DataManager_Thread, How do I do?
Hey!
I am trying to generate threads with the class: vB_DataManager_Thread. I tried searching Google and the forums. I couldn't really find what I need. I need a simple piece of code on how to make a thread in forum, by userid, with contents and dateline. I have seached a lot, Thanks in advance, Ralle |
#2
|
|||
|
|||
hi,
You must create a datamanager instance set the things you want to set check for errors and finally when things are ok save them PHP Code:
|
#3
|
|||
|
|||
Never mind, I fixed it.
I replaced all setr with set Once again, thank you! Quote:
|
#4
|
|||
|
|||
In setr the value is passed as a reference. (So it must be a variable I assume.)
PHP Code:
|
#5
|
||||
|
||||
Correct - setr() means set by reference, so cannot be a constant.
|
#6
|
|||
|
|||
I am getting the following error:
That username is already in use or does not meet the administrator's standards. any ideas? |
#7
|
|||
|
|||
Didn't you read the error?
Quote:
You probably need to add something like: PHP Code:
|
#8
|
|||
|
|||
Quote:
It just doesn't make sense to me. I already have: PHP Code:
|
#9
|
|||
|
|||
What is the value of $uname? Also make sure it is set to the username of the member with the same userid which is defined earlier.
|
#10
|
|||
|
|||
Here is my entire script - the variables in $_GET are all form variables being sent via AJAX to a page processing the form and creating a new thread:
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|