2018-02-12, 02:25 AM
This plugin was originally created by Zinga Burga.
Attached is currently working for 1.8.
Changes:
Line 17 (Added compatibility for 1.6 and 1.8)
Line 34 (Personal changes to style the text into a button)
Line 116-138 (hide error variable changed, added write_query, changed t.lastpost string to t.lastpost; because it was replacing "t.lastpost"er with t.lastbumper .
to
So far, I haven't ran into any new issues. Got help from a friend to update this, because I needed it for my forum and I seen people who used to want it updated. Unsure if anyone else still does, but if so, here ya go.
Attached is currently working for 1.8.
Changes:
Line 17 (Added compatibility for 1.6 and 1.8)
'compatibility' => '14*',
to
'compatibility' => '14*,16*,18*',
Line 34 (Personal changes to style the text into a button)
$new_template = ' <a href="showthread.php?tid={$tid}&action=bump">Bump this thread.</a>';
to
$new_template = ' <a class="bump-button" href="showthread.php?tid={$tid}&action=bump">Bump</a>';
Line 116-138 (hide error variable changed, added write_query, changed t.lastpost string to t.lastpost; because it was replacing "t.lastpost"er with t.lastbumper .
function bumpthread_foruminject()
{
global $db;
eval('
class BumpThreadDummyDB extends '.get_class($db).'
{
function BumpThreadDummyDB(&$olddb)
{
$vars = get_object_vars($olddb);
foreach($vars as $var => $val)
$this->$var = $val;
}
function query($string, $hideerr=0)
{
$string = str_replace(\'t.lastpost\', \'t.lastpostbump\', $string);
return parent::query($string, $hideerr);
}
}
');
$db = new BumpThreadDummyDB($db);
}
to
function bumpthread_foruminject()
{
global $db;
eval('
class BumpThreadDummyDB extends '.get_class($db).'
{
function BumpThreadDummyDB(&$olddb)
{
$vars = get_object_vars($olddb);
foreach($vars as $var => $val)
$this->$var = $val;
}
function query($string, $hide_errors = 0, $write_query = 0)
{
$string = str_replace(\'t.lastpost;\', \'t.lastpostbump\', $string);
return parent::query($string, $hide_errors);
}
}
');
$db = new BumpThreadDummyDB($db);
}
So far, I haven't ran into any new issues. Got help from a friend to update this, because I needed it for my forum and I seen people who used to want it updated. Unsure if anyone else still does, but if so, here ya go.