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 / Support / AdsManager Support / Advanced search, prefilled category

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.

Advanced search, prefilled category

More
11 years 10 months ago #8759 by tompap
Replied by tompap on topic Advanced search, prefilled category
Hello,

You need to add a small fix for that
edit views/search/view.html.php

replace
$catid = $currentSession->get("searchfieldscatid",JRequest::getInt('catid', 0 ));

by
 $catid = JRequest::getInt('catid', 0 );
        if ($catid == 0)
       		$catid = $currentSession->get("searchfieldscatid",0);
The following user(s) said Thank You: brsi, adarr
More
11 years 10 months ago #8954 by brsi
Replied by brsi on topic Advanced search, prefilled category
Hello, works perfectly, also with advanced search module.
My only issue is how to best create a module override (for later upgrades) as this file is not a view file located in module's tmpl folder? Do I have to modify xml?
thanks.
The following user(s) said Thank You: adarr
More
11 years 10 months ago #8955 by tompap
Replied by tompap on topic Advanced search, prefilled category
The fix is added already for the future 3.0.3
The following user(s) said Thank You: adarr
More
11 years 9 months ago #9111 by DimToun
Replied by DimToun on topic Advanced search, prefilled category

tompap wrote: Hello,

You need to add a small fix for that
edit views/search/view.html.php

replace

$catid = $currentSession->get("searchfieldscatid",JRequest::getInt('catid', 0 ));

by
 $catid = JRequest::getInt('catid', 0 );
        if ($catid == 0)
       		$catid = $currentSession->get("searchfieldscatid",0);


First of all, thanks for your interest, but i am afraid we are not done yet.

I would like this to happen for the advanced search module. So i go at modules/mod_adsmanager_advancedsearch and i edit the file mod_adsmanager_advancedsearch.php replace the
$catid = $currentSession->get("searchfieldscatid",JRequest::getInt('catid', 0 ));

by
 $catid = JRequest::getInt('catid', 0 );
        if ($catid == 0)
       		$catid = $currentSession->get("searchfieldscatid",0);

I save the file and after this i go to the menu manger and i edit the menu item e.g Hardware on the way i show you in the attached picture, but it doesn't work.

Is there something that i am doing wrong??
Attachments:
The following user(s) said Thank You: adarr
More
11 years 9 months ago #9112 by DimToun
Replied by DimToun on topic Advanced search, prefilled category

brsi wrote: Hello, works perfectly, also with advanced search module.
My only issue is how to best create a module override (for later upgrades) as this file is not a view file located in module's tmpl folder? Do I have to modify xml?
thanks.

Can you give me an advice?? What did you do and worked??
The following user(s) said Thank You: adarr
More
11 years 9 months ago #9115 by brsi
Replied by brsi on topic Advanced search, prefilled category
Hi,
Have you assigned the (modified) adsmanager advanced search module to this 'Hardware' menu item?
The following user(s) said Thank You: adarr
Time to create page: 0.056 seconds
Powered by Kunena Forum