Bump Thread for myBB 1.4
Shemo Offline
Member
***
Posts: 184
Joined: Jan 2008
Post: #21
RE: Bump Thread for myBB 1.4
(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
Find all posts by this user Quote this message in a reply
faxcon Offline
Junior Member
**
Posts: 4
Joined: Jan 2011
Post: #22
RE: Bump Thread for myBB 1.4
(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
Find all posts by this user Quote this message in a reply
Shemo Offline
Member
***
Posts: 184
Joined: Jan 2008
Post: #23
RE: Bump Thread for myBB 1.4
(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
04-11-2015 09:52 AM
Find all posts by this user Quote this message in a reply
asilkmutt Offline
Junior Member
**
Posts: 1
Joined: Feb 2018
Post: #24
RE: Bump Thread for myBB 1.4
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
(This post was last modified: 02-12-2018 12:31 PM by asilkmutt.)
02-12-2018 12:30 PM
Find all posts by this user Quote this message in a reply
.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 »

 Standard Tools
Forum Jump: