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.

Accueil / forum / Support / AdsManager Support / How to hide image add option for ads

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.

How to hide image add option for ads

More
10 years 6 months ago #19559 by hadia9683
Hi,

We want to hide ad image option for special categores. for example we have a category jobs we don't want to show add images option to users
Report This
The following user(s) said Thank You: adarr
More
10 years 6 months ago #19564 by loic
Hello,

The only way to do that is to add a condition in the code to hide the button for the categories you want.

Best regards.
Report This
The following user(s) said Thank You: adarr
More
10 years 6 months ago #19638 by hadia9683
Could you please send us the condition and page , how we can implement
Report This
The following user(s) said Thank You: adarr
More
10 years 6 months ago #19651 by loic
Hello,

In the edit page 'components/com_adsmanager/views/edit/tmpl/default.php' or 'templates/your_template/html/com_adsmanager/edit/default.php' if you are using an override, find that line :
displayImagePackOption($this->content,$this->adext);

This function is used to display the upload button.

Yu can use the following condition to hide the button :
<?php if ($withImages) {?>

The method to hide the button change if you reload the page after selecting a category or not.
If not, you need to right a new jquery function to hide the block when the category is changed and if you don't want the button for the selected category.
If so, you need to recover the catid variable and if you don't want the button for the selected category then, you hide the button.

Best regards.
Report This
The following user(s) said Thank You: adarr
Time to create page: 0.083 seconds
Powered by Kunena Forum