The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Delete Thread From Code
Hi, do you know how can i delete a thread from an external script? (also using vB API).
[OFF TOPIC] Do you, also, know how modify a post? [/OFF TOPIC] regards, LeaderGL |
#2
|
|||
|
|||
I believe you'd use DataManagers for this. Perhaps someone who has posted about datamanagers in the private Coders Discussion would be willing to step over here and provide some insight?
|
#3
|
|||
|
|||
do you have some code example on how to delete thread?
|
#4
|
|||
|
|||
Not that I've written and tested, no. However, the editpost.php file contains this code:
PHP Code:
|
#5
|
|||
|
|||
ok, and how i create $threadinfo and $foruminfo ?
i've threadid to delete... |
#6
|
|||
|
|||
Yep, that's the question! I don't have a good answer... I'm exploring this at the same time as you. I'd start by carefully looking at the code in editpost.php. Start at line #982.
Maybe threadid is all you need? Looking at "class_dm_threadpost.php", there is a "delete" function for threads. You can see the signature for that function on line 1182 of that file. It looks like you can just set the $threadid variable for the thread you want to delete. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|