Bump Thread for myBB 1.4
TriTop Offline
Member
***
Posts: 53
Joined: Apr 2008
Post: #1
Bump Thread for myBB 1.4
Hello Community,
glad to see this site is reopened. Instantly I have a request Tongue. If you have a free hour do me a favour and update Bump Thread for 1.4 series. Thanks in advance.

Best regards
TriTop
07-23-2010 09:37 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Bump Thread for myBB 1.4
I think I actually did update it, but a long time ago.
Haven't checked the following (sorry, don't really have much time) - you should try it out to ensure that it works:


Attached File(s)
.php  bumpthread.php (Size: 4.12 KB / Downloads: 999)

My Blog
07-23-2010 09:55 PM
Find all posts by this user Quote this message in a reply
TriTop Offline
Member
***
Posts: 53
Joined: Apr 2008
Post: #3
RE: Bump Thread for myBB 1.4
You are priceless! Big thanks! Yipi
07-23-2010 10:06 PM
Find all posts by this user Quote this message in a reply
Zenk Offline
Junior Member
**
Posts: 27
Joined: Nov 2011
Post: #4
RE: Bump Thread for myBB 1.4
Can I only apply it to one forums? Is there an easy solution to this? :>
01-31-2012 03:48 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #5
RE: Bump Thread for myBB 1.4
Dunno if works, but you can try:
find

PHP Code:
global $mybb, $thread, $db;

Add below

PHP Code:
if($thread['fid'] != 2) return;

where '2' is the forum ID where you want the plugin to work.

Moved threads which have been bumped may stay bumped in other forums.


My Blog
01-31-2012 04:49 PM
Find all posts by this user Quote this message in a reply
Zenk Offline
Junior Member
**
Posts: 27
Joined: Nov 2011
Post: #6
RE: Bump Thread for myBB 1.4
Nice, thanks Biggrin It seems to work. Two more questions though.

1. Can I add multiple forums?
2. Is this a really bad plugin to use for some reason? (eg: for big forums?)
02-02-2012 10:38 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #7
RE: Bump Thread for myBB 1.4
(02-02-2012 10:38 PM)Zenk Wrote:  1. Can I add multiple forums?

Maybe you can try using array? Something like this:

PHP Code:
if(!in_array($thread['fid'],array(2,3,4))) return;


02-03-2012 02:50 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #8
RE: Bump Thread for myBB 1.4
(02-02-2012 10:38 PM)Zenk Wrote:  2. Is this a really bad plugin to use for some reason? (eg: for big forums?)
I don't think the field is exactly indexed if you have a lot of threads.
But this is also the case with a number of places in MyBB.  If your forums are large enough that this becomes a problem:
1) You'll notice it
2) You should have enough knowledge of MySQL indexing to fix it (if not, I strongly suggest learning it)

My Blog
02-03-2012 09:34 AM
Find all posts by this user Quote this message in a reply
Zenk Offline
Junior Member
**
Posts: 27
Joined: Nov 2011
Post: #9
RE: Bump Thread for myBB 1.4
Both work on 1.6.4 and 1.6.5 -- thank you Biggrin
Zinga Burga, thanks, I'm trying not to overload my forums with 1million plugins, but I find this plugin very useful.

The only thing that is missing is - there is no information when has the thread been last bumped. Hard to keep track for moderators, if the thread has been bumped before its time. (Different forums got different allowed bump times, some have 24h and some 72h etc.)
02-06-2012 02:34 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #10
RE: Bump Thread for myBB 1.4
(02-06-2012 02:34 AM)Zenk Wrote:  The only thing that is missing is - there is no information when has the thread been last bumped. Hard to keep track for moderators, if the thread has been bumped before its time.

The plugin records the last bump time in threads table. Maybe you can use it for displaying the info.
Something like this:
Find:

PHP Code:
eval('$bumpthread = "'.$templates->get('showthread_bumpthread').'";');

Add this code before the code above:

PHP Code:
$thread['lastbump'] = my_date($mybb->settings['dateformat'], $thread['lastpostbump']).', '.my_date($mybb->settings['timeformat'], $thread['lastpostbump']);


Then put the {$thread['lastbump']} code to the showthread_bumpthread template.

By default, the value is the same as the lastpost value when you activate the plugin.


02-07-2012 02:05 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: