Biopowered - vegetable oil and biodiesel forum

General => Wiki and forum discussion => Topic started by: dgs on June 09, 2017, 01:54:39 PM

Title: Keeping threads active for longer
Post by: dgs on June 09, 2017, 01:54:39 PM
I don't know if it's me but when a thread on here 'slows down' it doesn't seem long before it gets taken off the main page. OK, I know it's easy to make a post and get it back but for non members looking at the recent posts it seems to give the impression that the forum is less active than it actually is.

Could we not say leave the threads on another 24 hours before they naturally disappear.
Title: Re: Keeping threads active for longer
Post by: Julian on June 09, 2017, 03:16:37 PM
I've spent pushing on an hour looking through the admin options and can't find anywhere to adjust this.

I believe the "Recent Posts" facility was an add on that Tony instigated shortly after the site was up and running, so it may well not appear in the everyday admin stuff and is probably not doable by your run of the mill bumblefuck admin.

I entirely agree with your sentiments, but I'm afraid this is probably one only Tony is capable of changing.

Tooooonyyyyyyyyy!
Title: Re: Keeping threads active for longer
Post by: Tony on June 09, 2017, 06:26:06 PM
Took some head scratching from me too, it's been a while.  It was a code modification to the original forum software (a patch package, I think, which I'd adapted).

It's in Sources/Recent.php

Quote
                                'bugun' => intval(time()-2*24*60*60),  // another set down below too - search bugun
                                'yarin' => intval(time()),

Changed it to:
Quote
                                'bugun' => intval(time()-4*24*60*60),  // another set down below too - search bugun
                                'yarin' => intval(time()),

I remember writing the comment and sure enough there is another one of those calculations below, no idea why, just modified them both.

So that's 2 days to 4 days, see how that feels for a bit :)

I'm guessing the original coder was Turkish - bugun = today, yarin = tomorrow.  (The original code only showed the last 24 hours, if I remember rightly, so "yarin" isn't technically correct as a variable name any more...)
Title: Re: Keeping threads active for longer
Post by: Julian on June 09, 2017, 07:27:18 PM
Well done again Tony, you're a star.

Even if that code made sense to the rest of us, it being in Turkish would have probably snookered us anyway!
Title: Re: Keeping threads active for longer
Post by: dgs on June 09, 2017, 07:35:35 PM
Well done Tony, that looks a lot better.
Title: Re: Keeping threads active for longer
Post by: Julian on June 09, 2017, 11:09:33 PM
And well done Dave for the suggestion.  When the forum's slow, as it has been for some time, it really does look rather bare.

We need a big hike in fuel prices to encourage new blood!
Title: Re: Keeping threads active for longer
Post by: Tony on June 09, 2017, 11:11:12 PM
Nah, would also encourage oil outlet competition too, I'm good sitting pretty :)