Author Topic: Keeping threads active for longer  (Read 3288 times)

Offline dgs

  • Wiki Editor
  • Grand Gunge Master
  • ******
  • Posts: 1307
  • Location: york
Keeping threads active for longer
« 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.
FOC water tests by Sandy brae or Karl Fischer for forum members.

Offline Julian

  • Administrator
  • Oil baron
  • *******
  • Posts: 6378
    • Used Cooking Oil Collection website
  • Location: East Surrey, UK.
Re: Keeping threads active for longer
« Reply #1 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!
Used Cooking Oil Collection website ... http://www.surreyusedcookingoilcollection.palmergroup.co.uk

Offline Tony

  • Administrator
  • Oil baron
  • *******
  • Posts: 5104
  • Fo' shizzle, biodizzle
    • Southampton Waste Oil Collection
  • Location: Southampton
Re: Keeping threads active for longer
« Reply #2 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...)
« Last Edit: June 09, 2017, 06:30:38 PM by Tony »

Offline Julian

  • Administrator
  • Oil baron
  • *******
  • Posts: 6378
    • Used Cooking Oil Collection website
  • Location: East Surrey, UK.
Re: Keeping threads active for longer
« Reply #3 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!
Used Cooking Oil Collection website ... http://www.surreyusedcookingoilcollection.palmergroup.co.uk

Offline dgs

  • Wiki Editor
  • Grand Gunge Master
  • ******
  • Posts: 1307
  • Location: york
Re: Keeping threads active for longer
« Reply #4 on: June 09, 2017, 07:35:35 PM »
Well done Tony, that looks a lot better.
FOC water tests by Sandy brae or Karl Fischer for forum members.

Offline Julian

  • Administrator
  • Oil baron
  • *******
  • Posts: 6378
    • Used Cooking Oil Collection website
  • Location: East Surrey, UK.
Re: Keeping threads active for longer
« Reply #5 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!
Used Cooking Oil Collection website ... http://www.surreyusedcookingoilcollection.palmergroup.co.uk

Offline Tony

  • Administrator
  • Oil baron
  • *******
  • Posts: 5104
  • Fo' shizzle, biodizzle
    • Southampton Waste Oil Collection
  • Location: Southampton
Re: Keeping threads active for longer
« Reply #6 on: June 09, 2017, 11:11:12 PM »
Nah, would also encourage oil outlet competition too, I'm good sitting pretty :)