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 5 months ago - 10 years 4 months ago #20595 by netsurf
Hello,
I use Adsmanager with FaLang (1 default language and 3 translations). I want that some ads are visibles only in certain languages. How can I show/hide an ad in a particular language?
Thanks in advanced
Last edit: 10 years 4 months ago by loic.
The following user(s) said Thank You: adarr
More
10 years 5 months ago #20603 by loic
Replied by loic on topic Show/hide ads based on language
Hello,

That is not possible with adsmanager, sorry.

Best regards.
The following user(s) said Thank You: adarr
More
10 years 5 months ago #20636 by netsurf
Replied by netsurf on topic Show/hide ads based on language
Ok, is it possible to introduce it?
I think we can introduce an hidden textual filter on ads where we can write the languages supported (for example 'en, it, es') and then when we execute a query for extract ads to display we can introduce a filter (like status published) that check this new field (<field> LIKE '%<current_language>%').
I think that current language can be read with this code as I see in another topic :
<?php
$lang = JFactory::getLanguage();
$tag = $lang->getTag();
$tag = substr($tag,0,strpos($tag,'-'));
?>
Where can we modify the code to introduce this feature?
Thanks in advanced
The following user(s) said Thank You: adarr
More
10 years 5 months ago #20643 by loic
Replied by loic on topic Show/hide ads based on language
Hello,

the fields value are processed in 'components/com_adsmanager/helpers/field.php' in the function showFieldValue().

Best regards.
The following user(s) said Thank You: adarr
More
10 years 5 months ago #20652 by netsurf
Replied by netsurf on topic Show/hide ads based on language
This function is called when ads are displayed but I have to add a condition in the query that extract ads (where is applied for example the filter "published = 1"). Where can I find it?
Thanks
The following user(s) said Thank You: adarr
More
10 years 4 months ago #20681 by juloaadmin
Replied by juloaadmin on topic Show/hide ads based on language
Hello,

ads requests are in administrator/components/com_adsmanager/models/contents.php
The following user(s) said Thank You: adarr, netsurf
Time to create page: 0.054 seconds
Powered by Kunena Forum