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 / Public Forum / Main Forum / AdsManager problem with a multilingual site

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.

× OLD Forum post could be checked here : forum.joomprod.com

AdsManager problem with a multilingual site

More
10 years 11 months ago #16882 by yann.fr
Bonjour,

La détermination de l'Itemid, dans la classe TRoute ne fonctionne pas correctement sur un site multilingue.
En effet, il ne faut pas prendre le 1er item de menu, mais le 1er item dans la langue courante (celle dans lequel le site est affiché).

Cette détermination de l'Itemid est problématique, par exemple, quand une annonce est affichée et que l'utilisateur clique sur le lien "Répondre par Email".
La classe TRoute ayant calculé un Itemid faux, l'affichage devient problématique.

J'ai apporté une correction simple dans le fichier components/com_adsmanager/\helpers/field.php
La ligne 200 devient
$emailForm = TRoute::_("index.php?option=com_adsmanager&view=message&contentid=".$content->id."&catid=".$content->catid."&fname=".$fieldname."&Itemid=".JRequest::getInt('Itemid', 0));

En effet le formulaire de contact doit être affiché avec le même environnement que la petite annonce elle-même, soit avec le même Itemid.

J'utilise un template JA T3
The following user(s) said Thank You: adarr
More
10 years 11 months ago #16890 by tompap
Replied by tompap on topic AdsManager problem with a multilingual site
Bonjour,

En effet le TRoute essaye de faire du mieux qu'il peut :) mais il peut ne pas avoir gérer un cas, il ne prend pas le premier Itemid qu'il trouve il cherche le type, etc.. mais il se peut en effet que la gestion multilingue ne soit pas parfaite.
Nous travaillons à une modification profonde dans tout les cas de ce TRouter pour offrir à l'administrator la possibilité de rajouter ses propres règles (pour la selection Itemid et d'autres options dans le backend).

Pour le fix, en effet c'est plutôt un workaround, car si on veut un Itemid different pour la page view=message, on ne pourrait pas le faire avec le code.
The following user(s) said Thank You: adarr
Moderators: perry
Time to create page: 0.065 seconds
Powered by Kunena Forum