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 / [RESOLVED] Show/hide ads based on language

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.

[RESOLVED] Show/hide ads based on language

More
10 years 4 months ago #20797 by netsurf
Replied by netsurf on topic Show/hide ads based on language
Ok, it works!
I create a text field (ad_displaylang) where I can specify the list of languages (for example "it, en, es") that have to show the ad. Then I modify the queries that extract ad for testing the language (test if the language displayed belong to ad_displaylang field).

Last question: is it possible to set a default value for a text field? When I create an ad I want that languages are compiled with a default value like "it, en, es".

Thanks for you support
More
10 years 4 months ago #20804 by loic
Replied by loic on topic Show/hide ads based on language
Hello,

For textfield, it is not possible.

The only way I see is to custom the 'components/com_adsmanager/helpers/field.php' fonction showFieldForm() to add this value if none exist for your field.

Best regards.
The following user(s) said Thank You: netsurf
More
10 years 4 months ago #20817 by netsurf
Replied by netsurf on topic Show/hide ads based on language
Ok, also default value works!
Thanks for your support
More
10 years 4 months ago #20825 by loic
Replied by loic on topic Show/hide ads based on language
Great :)

I update this topic to resolved.

Best regards.
Time to create page: 0.044 seconds
Powered by Kunena Forum