![]() |
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 |
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?
|
do you have some code example on how to delete thread?
|
Not that I've written and tested, no. However, the editpost.php file contains this code:
PHP Code:
|
ok, and how i create $threadinfo and $foruminfo ?
i've threadid to delete... |
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. |
All times are GMT. The time now is 08:17 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|