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 / [RESOLVED] Adsmanager URL avec Sh404

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

[RESOLVED] Adsmanager URL avec Sh404

More
11 years 9 months ago - 11 years 6 months ago #9264 by jamalqc
[RESOLVED] Adsmanager URL avec Sh404 was created by jamalqc
Bonjour,

J'utilise Adsmanager plugin avec Sh404SEF.

Avez vous une idée comment raccourcir mes url en affichant seulement la première catégorie ou rien:

au lieu de monsite.com/annonces/immobilier/location/paris/belle-maison-a-vendre.html

j'affiche ca:

monsite.com/annonces/immobilier/belle-maison-a-vendre.html

ou tout simplement

monsite.com//immobilier/belle-maison-a-vendre.html

ou encore
monsite.com/belle-maison-a-vendre.html

mercu beacoup
Last edit: 11 years 6 months ago by loic.
The following user(s) said Thank You: adarr
More
11 years 8 months ago #10134 by jamalqc
Replied by jamalqc on topic Adsmanager URL avec Sh404
Rebonsoir :)

J'ai trouvé une belle solution. J'ai abbondonné SH404 apres quelques années d'utilisation, pas seulement à cause de ca, mais ...
Maintenant j'ai une question dans le même sens, avez vous une idée pour supprimer les chiffres des URL SEF (joomla pure)?
au lieux de ca:
/annonces/30-espace-commercial/9319-location-snack-a-la-medina.html
j'aurai
/annonces/espace-commercial/location-snack-a-la-medina.html

merci :)
The following user(s) said Thank You: adarr
More
11 years 7 months ago #10341 by tompap
Replied by tompap on topic Adsmanager URL avec Sh404
Bonjour,

Le problème si on supprime les numéros c'est qu'il va falloir faire deux requetes SQL pour parser l'URL donc on est moins bon en "perf"

On va réfléchir pour la deuxième moitié de l'année (avec surement le nouveau routeur Joomla dans Joomla3.5 pour avoir un système bcp plus évolué pour nos URLs pour avoir par exemple des champs pour construire l'url

genre pour un site de location
type de bien : appartement
taille: T4
ou : mer , montage

et avoir une URL comme ca : appartement-T4-mer-1432.html

Si vous voulez supprimer les URLS tout est dans router.php il y a une fonction pour remplacer l'url donc la il est simple de supprimer les ids, et une fonction pour retrouver l'url à partir de la SEF. donc la il faut faire une requete SQL un peut compliquer pour retrouver l'id de l'annonce et l'id de la categorie (attention au doublon )
More
11 years 6 months ago #11264 by jamalqc
Replied by jamalqc on topic Adsmanager URL avec Sh404
Merci beaucoup pour votre réponse.
La derniere question, avec le Plugin Sh404SEF, est ce on est capable facilmenet de mettre seulement la derniere categorie dans les URL, exemple au lieu:

annonces/immobilier/location/villa/belle-villa-a-vendre

j'aurai seulement le dernière ou les deux dernières catégories?

villa/belle-villa-a-vendre

actuellement si on a plusieurs sous catégories, on se ramasse avec un URL de 2km :)

merci
More
11 years 6 months ago #11317 by tompap
Replied by tompap on topic Adsmanager URL avec Sh404
Oui c'est possible il faut modifier le plugin

Il faut retirer du code du plugin
plugins/sh404sefextplugins/adsmanager/com_adsmanager.php

ce code

for($i = $size -1;$i>0;$i--)
{
$title[] = strtolower($current_list[$i]);
}
The following user(s) said Thank You: jamalqc
More
11 years 6 months ago #11318 by jamalqc
Replied by jamalqc on topic Adsmanager URL avec Sh404
Merci beaucoup Number 1:)
Moderators: perry
Time to create page: 0.078 seconds
Powered by Kunena Forum