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 / [SOLVED] Module Search

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

[SOLVED] Module Search

More
11 years 1 month ago - 11 years 1 month ago #4105 by zizi80
[SOLVED] Module Search was created by zizi80
hi,
i have one question: the module search, only search the title and description fields, but not in the other,
if I wanted to try to do it in all fields.
where can I find the select search?.


I wish he was looking for in all fields without advanced search
is possible?

Pease help me
Last edit: 11 years 1 month ago by zizi80.
The following user(s) said Thank You: adarr
More
11 years 1 month ago #4124 by tompap
Replied by tompap on topic Module Search
in administrator/com_adsmanager/models/content.php
case 'search':
	    				if (intval($filter) != 0) {
	    					$filter = JString::strtolower($filter);
	    					$id = intval($filter);
                            if (version_compare(JVERSION,'1.7.0','<')) {
                                $search .= $temp."(a.id = $id OR LOWER(a.ad_headline) LIKE '%".$this->_db->getEscaped($filter,true)."%' OR LOWER(a.ad_text) LIKE '%".$this->_db->getEscaped($filter,true)."%')";
                            }else{
                                $search .= $temp."(a.id = $id OR LOWER(a.ad_headline) LIKE '%".$this->_db->escape($filter,true)."%' OR LOWER(a.ad_text) LIKE '%".$this->_db->escape($filter,true)."%')";
                            }
	    				} else {
	    					$filter = JString::strtolower($filter);
                            if (version_compare(JVERSION,'1.7.0','<')) {
                                $search .= $temp."(LOWER(a.ad_headline) LIKE '%".$this->_db->getEscaped($filter,true)."%' OR LOWER(a.ad_text) LIKE '%".$this->_db->getEscaped($filter,true)."%')";
                            }else{
                                $search .= $temp."(LOWER(a.ad_headline) LIKE '%".$this->_db->escape($filter,true)."%' OR LOWER(a.ad_text) LIKE '%".$this->_db->escape($filter,true)."%')";
                            }
	    				}
	    				break;
You will have to do some changes here
The following user(s) said Thank You: zizi80, adarr
More
11 years 1 month ago #4136 by zizi80
Replied by zizi80 on topic [SOLVED]Module Search
thanks

I solved it by adding the following fields that interest me
The following user(s) said Thank You: adarr
More
11 years 1 month ago #4177 by tompap
Replied by tompap on topic [SOLVED]Module Search
Great !
The following user(s) said Thank You: adarr
Moderators: perry
Time to create page: 0.162 seconds
Powered by Kunena Forum