The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#71
|
||||
|
||||
One of the side menus in the admin section, a dropdown accessible only within that area.
|
#72
|
||||
|
||||
Quote:
|
#73
|
|||
|
|||
I used this code, IT actually adds the thread but i get the following warning
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in \global.php on line 329 Warning: Invalid argument supplied for foreach() in \includes\functions.php on line 2177 Also if the subject in the forum ID is send again then it just exits it doesn't flow through the code. Help Thanks, LOW LOW. Quote:
|
#74
|
||||
|
||||
that's a problem with php5
before the require global.php add these lines: PHP Code:
|
#75
|
|||
|
|||
Thanks for the quick help !
I have a small follow up. I know how to get the threadid, but how would i post a reply to that ID ? Do i put instead of the 0, you put the threadid (lets say 3212) ? example: build_new_post('thread', $foruminfo, array(), 3212, $post, $errors); |
#76
|
|||
|
|||
I tried doing something like this ...
build_new_post('reply', $foruminfo, array(), 3212, $post, $errors); where 3212 is the thread i'm replying to, but it didn't work |
#77
|
|||
|
|||
Ok i found how to do it
You need these added: $threadid=1091; // the thread you want to reply to $threadinfo = fetch_threadinfo($threadid); build_new_post('reply', $foruminfo, $threadinfo, $_POST['postid'], $post, $errors); |
#78
|
|||
|
|||
Hi Guys,
It works fine when called independently from the rest of my code. I have a feeling that because my php site uses a database as well it gets confused to which database its refering to. How can i make sure that when i run the post thread section it looks at the VB db and after it reverts back to my db. ?? |
#79
|
||||
|
||||
Use a different dbuser/pass for your application
|
#80
|
|||
|
|||
doesnt work
I decided to use URL stream instead. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|