Bump Thread for myBB 1.4
.mouni Offline
Junior Member
**
Posts: 2
Joined: Feb 2015
Post: #25
RE: Bump Thread for myBB 1.4
^ 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:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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.

02-12-2018 12:56 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Bump Thread for myBB 1.4 - TriTop - 07-23-2010, 09:37 PM
RE: Bump Thread for myBB 1.4 - ZiNgA BuRgA - 07-23-2010, 09:55 PM
RE: Bump Thread for myBB 1.4 - TriTop - 07-23-2010, 10:06 PM
RE: Bump Thread for myBB 1.4 - Zenk - 01-31-2012, 03:48 AM
RE: Bump Thread for myBB 1.4 - ZiNgA BuRgA - 01-31-2012, 04:49 PM
RE: Bump Thread for myBB 1.4 - Zenk - 02-02-2012, 10:38 PM
RE: Bump Thread for myBB 1.4 - RateU - 02-03-2012, 02:50 AM
RE: Bump Thread for myBB 1.4 - ZiNgA BuRgA - 02-03-2012, 09:34 AM
RE: Bump Thread for myBB 1.4 - Zenk - 02-06-2012, 02:34 AM
RE: Bump Thread for myBB 1.4 - RateU - 02-07-2012, 02:05 AM
RE: Bump Thread for myBB 1.4 - Zenk - 02-07-2012, 03:09 AM
RE: Bump Thread for myBB 1.4 - Sama34 - 02-11-2012, 02:00 PM
RE: Bump Thread for myBB 1.4 - ZiNgA BuRgA - 02-11-2012, 06:47 PM
RE: Bump Thread for myBB 1.4 - Sama34 - 02-12-2012, 06:02 AM
RE: Bump Thread for myBB 1.4 - kcc - 02-24-2012, 08:46 PM
RE: Bump Thread for myBB 1.4 - RateU - 02-25-2012, 01:52 AM
RE: Bump Thread for myBB 1.4 - kcc - 02-25-2012, 05:47 AM
RE: Bump Thread for myBB 1.4 - ZiNgA BuRgA - 02-25-2012, 04:45 PM
RE: Bump Thread for myBB 1.4 - kcc - 02-26-2012, 06:53 AM
RE: Bump Thread for myBB 1.4 - faxcon - 03-30-2015, 08:30 AM
RE: Bump Thread for myBB 1.4 - Shemo - 04-06-2015, 07:41 AM
RE: Bump Thread for myBB 1.4 - faxcon - 04-07-2015, 11:32 AM
RE: Bump Thread for myBB 1.4 - Shemo - 04-11-2015, 09:52 AM
RE: Bump Thread for myBB 1.4 - asilkmutt - 02-12-2018, 12:30 PM
RE: Bump Thread for myBB 1.4 - .mouni - 02-12-2018 12:56 PM

 Standard Tools
Forum Jump: