Im looking for someone who has experience in developing mybb plugins. This will be a paid job. We can discuss price
Please write PM to me
for more info
thats better to say what do you want?!!
I wont delete last post in thread when I open thread
I write this but don't work
<?php
if(!defined("IN_MYBB"))
{
die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}
$plugins->add_hook('class_moderation_open_threads', 'test');
function test_info()
{
return array(
"name" => "test",
"description" => "test.",
"website" => "",
"author" => "ja",
"authorsite" => "",
"version" => "1.0",
"compatibility" => "16*"
);
}
function test_activate()
{
}
function test_deactivate()
{
}
function test_run($tid)
{
global $db, $mybb, $moderation;
$tid = (int)$mybb->input['tid'];
$thread = get_thread($tid);
$fid = $thread['fid'];
$query = $db->query("
SELECT pid
FROM ".TABLE_PREFIX."posts
WHERE tid='.{$tid}.'
ORDER BY dateline
DESC LIMIT 1");
$pid = $db->fetch_array($query);
if (empty($moderation))
{
require_once MYBB_ROOT."inc/class_moderation.php";
$moderation = new Moderation;
}
$moderation->delete_post($pid);
}
?>
no one wants to makemoney ?
How much do you pay for this?
Tell me what the price for such a thing
As I've accomplished this request, the thread can be closed.