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 / AdsManager Search option

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

AdsManager Search option

More
10 years 8 months ago #18584 by uranus
AdsManager Search option was created by uranus
I have a question about AdsManager Simple Search option. In front end when I don't write anything in the textfield (which is used to search among adds) and click enter It shows all the adds in my database. I don't want to show all of my adds when I haven't written anything. Any ideas how can I prevent this ?
More
10 years 8 months ago #18589 by loic
Replied by loic on topic AdsManager Search option
Hello,

If I understand correctly, when you let the search field empty, the result page must not return any ads ?
You can't do that without modifying the model content.php of AdsManager.

If you didn't enter anything in the searchfield then it si ignored by the system.

Best regards.
More
10 years 8 months ago - 10 years 8 months ago #18621 by uranus
Replied by uranus on topic AdsManager Search option
You understood correctly. Can you explain me what exactly I have to change in content.php ? Which SQL query ?
Last edit: 10 years 8 months ago by uranus.
More
10 years 8 months ago - 10 years 8 months ago #18646 by loic
Replied by loic on topic AdsManager Search option
Hello,

There are multiple files you need to custom to do this but we don't provide support for custom modifications.

Best regards.
Last edit: 10 years 8 months ago by loic.
More
10 years 8 months ago #18654 by uranus
Replied by uranus on topic AdsManager Search option
At least can you tell me in which files I have to make changes ?
More
10 years 8 months ago #18676 by loic
Replied by loic on topic AdsManager Search option
Hello,

You need to modify the file components/com_adsmanager/views/result/view.html.php. you need to add a filter in the tsearch variable if it is empty, currently it is ignored if empty.

You also need to modify the fiel administrator/components/com_adsmanager/models/content.php, the function _getSQLFilter().

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