×
Kunena 5.1.3 Released (19 Aug 2018)

The Kunena team has announce the arrival of Kunena 5.1.3 [K 5.1.3] which is now available for download as a native Joomla extension for J! 3.8.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1. This is a maintenance release.

× 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
5 years 2 months ago - 5 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: 5 years 2 months ago by korri78.

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

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

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

More
5 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
5 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
3 years 3 months ago - 3 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: 3 years 1 month ago by Kotsolis.

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

More
3 years 2 months ago - 3 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! [ Click to expand ]

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! [ Click to expand ]
| Kunena integration settings:
Warning: Spoiler! [ Click to expand ]
| Joomla! detailed language files installed:
Warning: Spoiler! [ Click to expand ]

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: 3 years 1 month ago by Kotsolis.

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

More
3 years 2 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
3 years 2 months ago - 3 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: 3 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 add attachements.
  • Not Allowed: to edit your message.
Time to create page: 0.179 seconds