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 / Hide empty categories

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.

Hide empty categories

More
12 years 6 months ago - 12 years 6 months ago #4881 by obejo
Hide empty categories was created by obejo
Hello,

I would like to hide the empty categories in the AdsManager menu and in the Search Module dropdown. I want them to be visible just if somebody is uploading ads on the category.
Anybody has some advice ?
Last edit: 12 years 6 months ago by obejo.
The following user(s) said Thank You: adarr
More
12 years 6 months ago #4900 by loic
Replied by loic on topic Hide empty categories
Hello,

You need to directly modify the files of AdsManager.

The solution is to modify the categories helper to not show the categories if they don't have any ads.

You can also modify the module menu and the module search by removing from the list the empty categories.

Be aware that this kind of modification will be erased if you update adsManager.
The following user(s) said Thank You: adarr
More
12 years 6 months ago #4914 by obejo
Replied by obejo on topic Hide empty categories
Thank You for your reply.

The most important for me is to remove the empty categories from the module menu. Please give some more details which code should i change in the module menu files.
I would greatly appreciate it if you could do this for me.
Thanks in advice.
The following user(s) said Thank You: adarr
More
12 years 6 months ago #4954 by loic
Replied by loic on topic Hide empty categories
Hello,

To make the modification, open the file 'modules/mod_adsmanager_menu/mod_adsmanager_menu.php' and just after the foreach line 23, add this block of code:
if($row->num_ads == 0) {
    continue;
}

Best Regards.
The following user(s) said Thank You: adarr
Time to create page: 0.066 seconds
Powered by Kunena Forum