Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Change default search option

More
15 years 6 months ago #68568 by Mikote
Hi.

I want to change the default search option "Find post from" to "Any date" and not "A year ago" as it appears.

How could it?

Thanks.

Miguel
Madrid (Spain)

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

More
15 years 6 months ago - 15 years 6 months ago #68752 by xillibit
Hello,

Look into the file you can change it easily : components/com_kunena/template/default/search/advsearch.php

I don't provide support by PM, because this can be useful for someone else.
Last edit: 15 years 6 months ago by xillibit.

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

More
15 years 6 months ago - 15 years 6 months ago #68823 by Mikote
Replied by Mikote on topic Change default search option
Thanks Xilibit.

I edited the file components/com_kunena/template/default/search/advsearch.php and I modified it is marked in red and works, I do not know if it is correct:

<option value="all" selected="selected"<?php if ($this->params=="all") echo $this->selected;?>><?php echo JText::_('COM_KUNENA_SEARCH_DATE_ANY'); ?></option>


Another way I think is more correct is:

components/com_kunena/lib/advsearch.php

Around line 50 change:

var $defaults = array ('titleonly' => 0, 'searchuser' => '', 'starteronly' => 0, 'replyless' => 0, 'replylimit' => 0, 'searchdate' => '365', 'beforeafter' => 'after', 'sortby' => 'lastpost', 'order' => 'dec', 'catids' => '0', 'show' => '0' );

by (marked in red)

var $defaults = array ('titleonly' => 0, 'searchuser' => '', 'starteronly' => 0, 'replyless' => 0, 'replylimit' => 0, 'searchdate' => 'all', 'beforeafter' => 'after', 'sortby' => 'lastpost', 'order' => 'dec', 'catids' => '0', 'show' => '0' );

Greetings

Miguel
Madrid (Spain)
Last edit: 15 years 6 months ago by Mikote.

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

Time to create page: 0.255 seconds