Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / [RESOLVED] Drop down search (from-to)

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

[RESOLVED] Drop down search (from-to)

More
10 years 8 months ago - 10 years 8 months ago #18593 by Sabalys
[RESOLVED] Drop down search (from-to) was created by Sabalys
Hello,

It's possible in search mode to create dropdown choice like: Car Year (sort From-To).
It must to be two separate dropdown fields (Years From and Years To).
Now I can to create two separate fields with Type - Price and Search Mode - MinMax, but i want that this fields would be Drop Down type.
Last edit: 10 years 8 months ago by loic.
More
10 years 8 months ago #18599 by loic
Replied by loic on topic Drop down search (from-to)
Hello,

It is not possible with AdsManager yet.

You can try to custom the file that display those fields 'components/com_adsmanager/helpers/fields.php', the function is 'showFieldSearch()'

Best regards.
More
10 years 8 months ago #18602 by Sabalys
Replied by Sabalys on topic Drop down search (from-to)
In this code part need changes, or this part is a little part of changes? And I don't know where from get values to dropdow fields (from-to) in minmax fields values are typing by self.

case "minmax":
if(htmlspecialchars($options->placeholder_search) != '') {
$placeholder = explode(',',htmlspecialchars($options->placeholder_search));
echo "<input name='".$field->name."_min' id='f".$field->name."_min' value=\"".htmlspecialchars($minvalue)."\" maxlength='$field->maxlength' class='inputbox' placeholder='".JText::_($placeholder[0])."' type='text' size='$field->size' />";
echo "<input name='".$field->name."_max' id='f".$field->name."_max' value=\"".htmlspecialchars($maxvalue)."\" maxlength='$field->maxlength' class='inputbox' placeholder='".JText::_($placeholder[1])."' type='text' size='$field->size' />";
} else {
echo JText::_('ADSMANAGER_MINMAX_MIN')."<input name='".$field->name."_min' id='f".$field->name."_min' value=\"".htmlspecialchars($minvalue)."\" maxlength='$field->maxlength' class='inputbox' type='text' size='$field->size' />";
echo "&nbsp;".JText::_('ADSMANAGER_MINMAX_MAX')."<input name='".$field->name."_max' id='f".$field->name."_max' value=\"".htmlspecialchars($maxvalue)."\" maxlength='$field->maxlength' class='inputbox' type='text' size='$field->size' />";
}
break;
More
10 years 8 months ago #18604 by loic
Replied by loic on topic Drop down search (from-to)
Hello,

This is the correct file and the correct lines of code.

You must replace the input by a select for the min and max value, the name must stay the same.
After that, you can set a range of option to cover the maximum prices.

Best regards.
More
10 years 8 months ago #18607 by Sabalys
Replied by Sabalys on topic Drop down search (from-to)
Hm, interesting. If I change just one input to select (for example min) I see dropdown field (for min), but if I change both input to select I see just one field of dropdown.
More
10 years 8 months ago #18612 by loic
Replied by loic on topic Drop down search (from-to)
Hello,

Could you copy-paste the code here ?

Best regards.
Moderators: perry
Time to create page: 0.063 seconds
Powered by Kunena Forum