The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
code to post a thread
im building a mod and one of the features i need is for it to automatically make threads but i cant seem to get it to work this the code ive got atm ive taken it from the newthread.php file but it doesnt work or give me any information as to why.
PHP Code:
|
#2
|
|||
|
|||
ok it sort of works now . now atleast something happens but it returns
Quote:
|
#3
|
||||
|
||||
I don't know exactly what you are trying to do, but I am guessing the problem lies where you are reassigning the userid. That is the area I would be looking into.
And what does this mean - "If you are racken and" - racken? |
#4
|
|||
|
|||
because the thread im trying to create i want to be posted under a different user so that user can edit it so if i run that script logged into an account renlok i was trying to make a thread posted by racken
|
#5
|
||||
|
||||
I understand that. What I'm saying is that it seems to me that that is the area that has problems so that is the area I would focus on. Try posting the thread without switching the userid - does it work then? How about manually putting in a userid - like '5' (use a valid userid) - does it work then? Typical debug stuff to do.
|
#6
|
|||
|
|||
finally got it to work
thanks |
#7
|
||||
|
||||
Do you want a new thread or a new post? It looks to me like you are using a new post method for a new thread.
You should be using the datamanager built in to vbulletin to post threads. My suggestion would be to go and download my Welcome Thread mod and look how I did it. https://vborg.vbsupport.ru/showthread.php?t=229473 |
#8
|
||||
|
||||
Out of curiosity, what was the problem?
|
#9
|
|||
|
|||
it was trying to set the userid as 0 so it was trying to make the post as a guest which was why i was getting that error message. but it works now apart from it times out after making the post which is annoying but i dont mind.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|