UCP - Board Display options/Display posts from last . . . .

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
User avatar
parametric
Registered User
Posts: 23
Joined: Tue Aug 13, 2013 2:25 am

UCP - Board Display options/Display posts from last . . . .

Post by parametric »

There seems to be some curiousness in the UCP Board Display options section related to the

"Display Posts from the Last" <7-Days> dropdown . . . .

I'm using 3.2.1 - but one other forum I use may be using an older distribution - but the problem described

below is THE SAME . .

When viewing the forum - (Active Topics/New Posts/Unanswered Posts) the default

"Display Post from the Last . . . " is <7 - Days>

If you visit the UCP and CHANGE the setting to <3-Months> (for instance) - Submit changes -

the page refreshes as usual and returns you to that page in the UCP . . .

All Fine. Setting are displayed as "changed"

When you return to the forum, the dropdown on the LHS is STILL showing <7-Days> :? and the posts displayed

confirm this is the case . . . .

Surely, the user should be able to SET this preference to suit his needs . . . ? This seems NOT to be happening . . . .

Several phpBB Forums I use, currently have little traffic - so, defaulting to <7-days> usually results in

NOTHING FOUND - requiring you to go and change the setting each time . . . . .


Can this PLEASE be fixed?

Its bad enough that it can't be Globally set in the ACP, such that it "Stays" . . . .

I also noticed that on the same page in the UCP that the <Reset> button appears to do NOTHING . . .

i.e. the Page does NOT refresh, but just sits there . . . . . ? Surely this is NOT correct . . .?

parametric
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: UCP - Board Display options/Display posts from last . . . .

Post by david63 »

Cannot see any problem - for me it works as expected, even the Reset.

Perhaps it is style related - which style are you using?

Or do you have some form of caching (such as Cloudflare) installed on your site that is causing the problem?
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
parametric
Registered User
Posts: 23
Joined: Tue Aug 13, 2013 2:25 am

Re: UCP - Board Display options/Display posts from last . . . .

Post by parametric »

Nothing fancy David, just 3.2.1 running Prosilver . . .

I did purge the cache in the ACP - but the problem remains . . .

As far as I know I don't have Cloudflare - installed (wouldn't know where to look for it . . )

parametric
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53398
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: UCP - Board Display options/Display posts from last . . . .

Post by Brf »

From what I can see, only Active Topics defaults to 7 days. The others use your UCP settings.
User avatar
parametric
Registered User
Posts: 23
Joined: Tue Aug 13, 2013 2:25 am

Re: UCP - Board Display options/Display posts from last . . . .

Post by parametric »

Precisely -

My point being that even if you CHANGE the setting in your UCP to something other than 7 days, SUBMIT the change . .

When you return to view the forum, its STILL at 7 days. (It should have changed to whatever YOU chose)

So I conclude that the setting DOESN'T WORK . . . . . :roll:

parametric
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: UCP - Board Display options/Display posts from last . . . .

Post by RMcGirr83 »

parametric wrote: Fri Dec 15, 2017 12:49 pm When you return to view the forum, its STILL at 7 days. (It should have changed to whatever YOU chose)
Viewing the forum uses the "Display topics from previous days" number. Viewing a topic is then the "Display posts from previous days" used.

Are you confusing the two?
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53398
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: UCP - Board Display options/Display posts from last . . . .

Post by Brf »

As I already said, "Active Topics" does not use your default settings. It always defaults to 7-Days. That is by-design, not a bug.
User avatar
parametric
Registered User
Posts: 23
Joined: Tue Aug 13, 2013 2:25 am

Re: UCP - Board Display options/Display posts from last . . . .

Post by parametric »

BOTH setting (IMO) are related within the context of my question . . . .

Visitors are going to be interested in new topics AND new posts surely?

I have BOTH set to 3-months in my UCP - and the result on visiting the Forum - is that nothing is displayed . . . .

. . . necessitating the visit to the drop-down to alter it . . . . :roll:

This may be fine for a forum such as this one, which receives 100s of posts a day, but the forum I have in mind last had a new topic or post back in November . . . .

So the 7-days settings will show "nothing" . . . .

I can't really see a reason not to offer this setting?

And also - WHY are those setting there - if they don't actually DO anything? :?

parametric
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53398
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: UCP - Board Display options/Display posts from last . . . .

Post by Brf »

Those UCP settings are for viewforum and viewtopic.
By definition, any topic that has not been posted in for more than a week is not "Active".
User avatar
parametric
Registered User
Posts: 23
Joined: Tue Aug 13, 2013 2:25 am

Re: UCP - Board Display options/Display posts from last . . . .

Post by parametric »

Ok Guys . . .

Thanks for your observations.

Its free software - and I am glad to use it.

I'll live with it.

parametric
dtleahy
Registered User
Posts: 169
Joined: Sun Aug 24, 2008 5:47 pm

Re: UCP - Board Display options/Display posts from last . . . .

Post by dtleahy »

Even though the feature is by design, there must be code that can be changed to select a different option from the drop-down list. Those of us with "sleepy" forums, like the OP (parametric), know that 7 days is not a good default setting for our forums. I'm going to hunt through code and see what needs to be (hand) edited. I'll report back here.
User avatar
parametric
Registered User
Posts: 23
Joined: Tue Aug 13, 2013 2:25 am

Re: UCP - Board Display options/Display posts from last . . . .

Post by parametric »

dtl -

THANK YOU sincerely for offering to take a look at this. I really DO appreciate it - and thank you too, for understanding the problem in the case of "sleepy forums" :)

It has been pointed out to me elsewhere, that editing "core files" has the caveat (of course), that the edit must be "re-done", if you subsequently update the forum SW VERSION . . ..

So I'll have to make some notes, if you are successful in finding that setting :)

I'll check back from time to time ;)

Happy New Year Sir! - and thanks again!

parametric
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: UCP - Board Display options/Display posts from last . . . .

Post by 3Di »

phpBB 3.2.1
file: search.php
line 374

$sort_days = $request->variable('st', 7); ;) Change that 7 to be the desired number of days.

or use the event core.search_modify_param_after located in search.php to create an extension.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26502
Joined: Fri Aug 29, 2008 9:49 am

Re: UCP - Board Display options/Display posts from last . . . .

Post by Mick »

Or request an extension.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
dtleahy
Registered User
Posts: 169
Joined: Sun Aug 24, 2008 5:47 pm

Re: UCP - Board Display options/Display posts from last . . . .

Post by dtleahy »

3Di wrote: Mon Jan 01, 2018 3:55 am phpBB 3.2.1
file: search.php
line 374

$sort_days = $request->variable('st', 7); ;) Change that 7 to be the desired number of days.

or use the event core.search_modify_param_after located in search.php to create an extension.
Ah, well done, 3Di!

(Without tracing through the code) I have a suspicion that the number chosen should be one of the named day intervals (1,7,14,30,90,180, or 365), so the dropdown can find which item to display.

$limit_days = array(0 => $user->lang['ALL_POSTS'], 1 => $user->lang['1_DAY'], 7 => $user->lang['7_DAYS'], 14 => $user->lang['2_WEEKS'], 30 => $user->lang['1_MONTH'], 90 => $user->lang['3_MONTHS'], 180 => $user->lang['6_MONTHS'], 365 => $user->lang['1_YEAR']);

I might look into making this into an extension, but at this point I know nothing about writing extensions. Can an extension overwrite a hard-coded value (such as the "7" that was coded into the $sort_days string), or would the ability to change that value in the ACP (in a new extension) require that a variable be used in place of the 7?

extract($phpbb_dispatcher->trigger_event('core.search_modify_param_after', compact($vars)));

...and, I would want only the default number of days to be changed, so that the user can still use the other options (30, 90, etc.) in the dropdown.
Post Reply

Return to “[3.2.x] Support Forum”