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
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
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:
You are priceless! Big thanks! Yipi
Can I only apply it to one forums? Is there an easy solution to this? :>
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.

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)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-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)
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)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.

Pages: 1 2 3
Reference URL's