The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
You don't need to escape anything going into datamanagers as they do the escaping for you.
|
#12
|
|||
|
|||
OK removing the escaping does not fix the error though:
Quote:
|
#13
|
|||
|
|||
What are the values of $uname and $userid just before you set them for the thread datamanager?
(I know you set them as $_GET bla bla but post an example you get when you run the script, it may be that it is not being assigned correctly somewhere else) |
#14
|
|||
|
|||
$uid = 1
$uname = 'admintw42' Both of these values are correct for my user account. If I set this to another user id & name it still fails with the same error. If I set this to a username and id that does not exist I get a different error (no users match query) which is just what I would expect. Quote:
Is that call being handled directly within the line: PHP Code:
PHP Code:
Sorry for all the questions - vBulletin is complex! |
#15
|
|||
|
|||
Hmm I don't know exactly what the problem is. How about hard coding the username and userid in the script and seeing if it works that way. I don't see why the vB code isn't working so its best to start from the beginning and work through to identify the problem.
Also try running this on your script and checking if the username returned matches $uname. PHP Code:
|
#16
|
|||
|
|||
Using that piece of code I get:
string(9) "admintw42" I don't have access to $user_userid or $user_username .... The values are being passed from the page before in an AJAX call. Does vB somehow not recognize the script as having permissions to create a thread? Is there something I could do to make vB recognize that I am the logged in user on the page that is running this code? Actually a closer look at the remainder of the error says: Quote:
|
#17
|
|||
|
|||
Quote:
Place PHP Code:
PHP Code:
I'm sure there is something easy were missing lol :erm: |
#18
|
|||
|
|||
Quote:
PHP Code:
Adding : PHP Code:
string(9) "admintw42" [QUOTEI'm sure there is something easy were missing lol :erm:[/QUOTE] I hope so - this is one of those 2% tasks taking 98% of the time. Is there an equivalent line of code needed before: PHP Code:
bump. anyone? this error is dogging me. I think it has something to do with the server script somehow not being "allowed" to post. |
#19
|
|||
|
|||
Hmm I'm not to sure, I'll run some test of my own see if I can make it work. I'll let you know of the results, won't be soon though so keep trying to figure it out.
|
#20
|
|||
|
|||
I am trying to use the vb_DataManager_Thread_FirstPost to insert a new thread on behalf of a user who has filled out a form on a page which calls this script vis AJAX.
The script SHOULD create a new thread in a specified forum and attribute the thread/post to the user who filled in the form. Unfortunately what I am getting in return is the following error: Quote:
Does anyone know what needs to be done to enable the script permissions as the user to create a new thread? Source below - one thing I am not sure of is the line: Quote:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|