MyBB Hacks

Full Version: Bump Thread for myBB 1.4
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(03-30-2015 08:30 AM)faxcon Wrote: [ -> ]If you have a free hour do me a favour and update Bump Thread for 1.8.4 series.

Fatal error: Class 'databaseEngine' not found in /home/xxxxx/public_html/inc/plugins/bumpthread.php on line 125


Thanks in advance.

I could probably use this for a forum section on my forum that'll run 1.8.4 as well.
(04-06-2015 07:41 AM)Shemo Wrote: [ -> ]
(03-30-2015 08:30 AM)faxcon Wrote: [ -> ]If you have a free hour do me a favour and update Bump Thread for 1.8.4 series.

Fatal error: Class 'databaseEngine' not found in /home/xxxxx/public_html/inc/plugins/bumpthread.php on line 125


Thanks in advance.

I could probably use this for a forum section on my forum that'll run 1.8.4 as well.

I've installed, but the database gives the error. Frown
(04-07-2015 11:32 AM)faxcon Wrote: [ -> ]
(04-06-2015 07:41 AM)Shemo Wrote: [ -> ]
(03-30-2015 08:30 AM)faxcon Wrote: [ -> ]If you have a free hour do me a favour and update Bump Thread for 1.8.4 series.

Fatal error: Class 'databaseEngine' not found in /home/xxxxx/public_html/inc/plugins/bumpthread.php on line 125


Thanks in advance.

I could probably use this for a forum section on my forum that'll run 1.8.4 as well.

I've installed, but the database gives the error. Frown

the original plugin was written for mybb 1.2, I believe, so I'm not surprised that it doesn't work correctly for mybb 1.8

maybe when zinga gets a few minutes (or someone else), they'll update it to work on mybb 1.8
https://community.mybb.com/thread-215880.html

Working for mybb 1.8

apologies for nearly a 3 year bump, but i figure there are people out there who may be looking for a thread bump plugin
^ Thanks for sharing

Quote: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)

PHP Code:
'compatibility' => '14*',
to
'compatibility' => '14*,16*,18*',



Line 34 (Personal changes to style the text into a button)

PHP Code:
$new_template = ' <a href="showthread.php?tid={$tid}&amp;action=bump">Bump this thread.</a>';
to
$new_template = ' <a class="bump-button" href="showthread.php?tid={$tid}&amp;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 .


PHP Code:
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


PHP Code:
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.

Pages: 1 2 3
Reference URL's