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 / ads manager description tags field and seo

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

ads manager description tags field and seo

More
8 years 10 months ago - 8 years 10 months ago #20614 by boost
Hello

comment limiter a 165 caractères le texte automatique du tags description d'une annonce ?

SEO : gogol me fait resortir des liens d'iurls bizarre pour les annonces avec insertion de ads_manager ???

www.google.fr/search?q=very+yachting+&ie...odyssey+42+ds+bandol

merci pour le coup de main

www.bretweb.net
Editeur de : www.bateaux-doccasion.com
Toutes les annonces du nautisme
Last edit: 8 years 10 months ago by boost.
The following user(s) said Thank You: adarr
More
8 years 10 months ago #20624 by loic
Bonjour,

Le contenu de la balise meta-description est enregistré à la ligne 413 du fichier 'components/com_adsmanager/controller.php' :
$content->metadata_description = strip_tags(JRequest::getVar('ad_text', ''));

Pour la limiter à 165 caractères, vous pouvez faire comme ceci :
$ads_text = strip_tags(JRequest::getVar('ad_text', ''));
$af_text = JString::substr($ads_text, 0, 165);
if (strlen($ads_text)>165) {
    $af_text .= "...";
}
$content->metadata_description = $af_text;

Cordialement.
The following user(s) said Thank You: adarr
More
8 years 10 months ago - 8 years 10 months ago #20633 by boost
Replied by boost on topic ads manager description tags field and seo
bonjour
on est d'accord que l'on remplace la balise par ce code ?
Je viens de tester cela ne change rien (a noter si cela a son importance : les annonces sont importées directement pas editées en backend )
Question : peut être en limitant le nbr max de caracteres du champ dans la BD ?

www.bretweb.net
Editeur de : www.bateaux-doccasion.com
Toutes les annonces du nautisme
Last edit: 8 years 10 months ago by boost.
The following user(s) said Thank You: adarr
More
8 years 10 months ago #20640 by loic
Bonjour,

Oui, ça a de l'importance, ma solution vous permet de limiter le nombre de caractères si l'annonce est postée directement à partir du site.
La même solution peut être utilisée dans le script d'importation, il doit y avoir une ligne similaire.
Vous pouvez aussi essayer de limiter la taille du champs dans la BDD, mais testez bien que ça ne fasse pas tout simplement planter l'enregistrement.

Cordialement.
The following user(s) said Thank You: adarr
More
8 years 10 months ago #20645 by boost
Replied by boost on topic ads manager description tags field and seo
Ok merci pour les infos
mais dans le script d'import je n'ai rien pour faire cela ...
j'importe directement et uniquement dans le champ description ... rien d'autre ... donc je suppose que qu'il ne me reste plus que la BD ?
j'ai testé ça sur le BD l'import fonctionne , mais cela n'a pas l'air de limiter le champ....
ALTER TABLE `yacht_adsmanager_ads` CHANGE `metadata_description` `metadata_description` VARCHAR(165) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL;

www.bretweb.net
Editeur de : www.bateaux-doccasion.com
Toutes les annonces du nautisme
The following user(s) said Thank You: adarr
More
8 years 10 months ago #20648 by loic
En fait, il faudrait trouver dans le script d'import comment sont sauvegardé les annonces.

Si on sait ou est défini la valeur pour cette colonne, alors on peut la limiter en php.

Cordialement.
The following user(s) said Thank You: adarr
Moderators: perry
Time to create page: 0.178 seconds
Powered by Kunena Forum