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: 16
Joined: Tue Aug 13, 2013 2:25 am

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

Post by parametric » Tue Dec 12, 2017 3:08 pm

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
Jr. Extension Validator
Posts: 14733
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

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

Post by david63 » Tue Dec 12, 2017 3:55 pm

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!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
parametric
Registered User
Posts: 16
Joined: Tue Aug 13, 2013 2:25 am

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

Post by parametric » Fri Dec 15, 2017 2:37 am

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: 51348
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 » Fri Dec 15, 2017 3:22 am

From what I can see, only Active Topics defaults to 7 days. The others use your UCP settings.

User avatar
parametric
Registered User
Posts: 16
Joined: Tue Aug 13, 2013 2:25 am

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

Post by parametric » Fri Dec 15, 2017 12:49 pm

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
Recognised Extension Developer
Posts: 20931
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

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

Post by RMcGirr83 » Fri Dec 15, 2017 1:36 pm

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?
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51348
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 » Fri Dec 15, 2017 2:50 pm

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: 16
Joined: Tue Aug 13, 2013 2:25 am

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

Post by parametric » Sat Dec 16, 2017 2:34 pm

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: 51348
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 » Sat Dec 16, 2017 10:01 pm

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: 16
Joined: Tue Aug 13, 2013 2:25 am

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

Post by parametric » Sat Dec 16, 2017 11:04 pm

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 » Sun Dec 31, 2017 6:02 pm

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: 16
Joined: Tue Aug 13, 2013 2:25 am

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

Post by parametric » Mon Jan 01, 2018 3:20 am

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
Registered User
Posts: 12948
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

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

Post by 3Di » 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.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

User avatar
Mick
Support Team Member
Support Team Member
Posts: 20130
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

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

Post by Mick » Mon Jan 01, 2018 8:57 am

Or request an extension.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

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 » Mon Jan 01, 2018 8:16 pm

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”

Who is online

Users browsing this forum: craig.constantine, david63, geohei, thecoalman, z.ukosa and 84 guests