×
Kunena 5.2 Beta 1 Released (24 Sep 2020)

The Kunena team is thrilled to announce the first public beta release of Kunena 5.2, a native Joomla extension for Joomla 3.9. This is a development release and should be only be used for testing; this version is not recommended for live websites at this stage.

The purpose of this release is to encourage testing by downloading, installing and identifying any problems or shortcomings that people may discover. K 5.2.0 B1 is stable and we are aware that people will discover defects. We encourage you to use the forum to report defects, as soon as they are discovered, so that the development team can work through the problems before the release of K 5.1 as a stable product. Reporting defects does not mean that the problems can or will be fixed. The Kunena team is looking forward to hearing your feedback on how well we have achieved our design goals.

× Please note: The Kunena project team takes NO responsibility for maintaining nor supporting anything in this category.

Solved Hack K 3.0 to change the default date-range in the search feature

More
7 years 2 months ago - 7 years 2 months ago #1 by korri78
Hi,

In search field "Find Posts from menu" has "A year ago" setting by default.
How can I change the default setting to "Any Date"?

I knew how to do it when I used Kunena 1.7 but can't find it in Kunena 3.0.

Attachments:
Last edit: 7 years 2 months ago by korri78.

Please Log in or Create an account to join the conversation.

More
7 years 2 months ago #2 by korri78
can somebody answer for it?

Please Log in or Create an account to join the conversation.

More
7 years 2 months ago #3 by 810
Hi change components\com_kunena\models\search.php line 49
$value = JRequest::getString ( 'searchdate', 365 );

to
$value = JRequest::getString ( 'searchdate', 'all' );
The following user(s) said Thank You: Jiminimonka

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #4 by korri78
It works perfectly!
Thank you, 810.

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago - 5 years 1 month ago #5 by Kotsolis
With Kunena version 4.0 what is the line that we have to edit?

Also.

Can you solve this so that it is set as default in all future versions?

Let me simplify this to you.
The difference on this is simple:
A)A user searches for a topic ex. of a video game or a game movie, the setting is set to "One year old topics", he doesn't see it, he sees no result, he leaves our forum or he opens a new topic for a topic that is already open!

or

B)A user searches for a topic ex. of a video game or a game movie, the setting is set to "Any Date" and he sees 15 results, 6 from 2013, 4 from 2012 etc. He replies to those old topics by asking questions.

You chose A. Switch to B. This happens to all forum components in the world. It's not something new. Iam a Forum Admin since 1997.

Cheers.
Last edit: 5 years 1 month ago by Kotsolis.

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago - 5 years 1 month ago #6 by Kotsolis
Hello, someone respond to me here!

Is this line that I have to edit?

'replyless' => 0, 'replylimit' => 0, 'searchdate' => 'all', 'beforeafter' => 'after', 'sortby' => 'lastpost',



It doesn't work like this.


My configuration.

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-08-2014' at line 1 SQL=SHOW FULL FIELDS FROM jos_kunena_messages29-08-2014

This message contains confidential information

Database collation check:

Joomla! SEF: Enabled | Joomla! SEF rewrite: Enabled | FTP layer: Disabled |

This message contains confidential information
htaccess: Exists | PHP environment: Max execution time: 30 seconds | Max execution memory: 128M | Max file upload: 2M

Kunena menu details:

Warning: Spoiler!

Joomla default template details : whiteboard | author: Opensource | version: 2.6 | creationdate: Unknown

Kunena default template details : Blue Eagle | author: Kunena Team | version: 4.0.0-BETA1 | creationdate: 2015-04-12

Kunena version detailed: Kunena 4.0.0-BETA1 | 2015-04-12 [ Blue Dawn ]
| Kunena detailed configuration:

Warning: Spoiler!
| Kunena integration settings:
Warning: Spoiler!
| Joomla! detailed language files installed:
Warning: Spoiler!

Third-party components: Jomsocial 3.2.1.4

Third-party SEF components: None

Plugins: Search - Kunena Search 3.0.1 | JomSocial - My Kunena Forum Menu 2.0.3 | JomSocial - My Kunena Forum Posts 2.0.3 | JomSocial - Kunena Groups 2.0.3

Modules: Kunena Latest 3.0.1 | Kunena Search 3.0.1

Last edit: 5 years 1 month ago by Kotsolis.

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #7 by 810
You have still Beta1, that's isn't supported.

So you need to update.

But there is an option for that, on kunena config - frontend

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago - 5 years 1 month ago #8 by Kotsolis

810 wrote: You have still Beta1, that's isn't supported.

So you need to update.

But there is an option for that, on kunena config - frontend



Ok the option in the Configuration solved it. Sorry, my mistake.

But please put in "Any Date" for all the next versions. Even here, in this forum, if someone has a very simple question and he doesn't find an answer within 12 months of posts he will start re-posting the same question.

Do you want to be spammed by the same questions every year?
So please change it in the next version. All forums in the world have the "Any date search" by default!

Thanks.
Last edit: 5 years 1 month ago by Kotsolis.

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.358 seconds