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]Affichage annonces par date inversée

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]Affichage annonces par date inversée

  • frederic45
  • frederic45's Avatar Topic Author
  • Offline
  • Bronze
  • Bronze
More
11 years 5 months ago - 11 years 5 months ago #2298 by frederic45
Bonjour,
j'ai la version bronze
Bonjour, par défaut adsmanager affiche les annonces par date de la plus récente à la plus ancienne.
Comment faire pour changer cet ordre : de la plus ancienne à la plus récente ?

mon site


merci
Last edit: 11 years 5 months ago by tompap.
The following user(s) said Thank You: adarr
More
11 years 5 months ago #2334 by tompap
Replied by tompap on topic Affichage annonces par date inversée
il faut modifier la fonction getContents dans backend/components/com_adsmanager/model/contents.php
The following user(s) said Thank You: adarr
  • frederic45
  • frederic45's Avatar Topic Author
  • Offline
  • Bronze
  • Bronze
More
11 years 5 months ago #2345 by frederic45
Replied by frederic45 on topic Affichage annonces par date inversée
Bonjour, merci pour la réponse.
je ne trouve pas contents.php dans model
je ne l'ai que dans 2 repertoires controllers ou tables
et pouvez vous m'indiquez quelle ligne remplacer et par quoi ?
je n'ai pas d'énormes connaissances en programmation et j'ai peur de faire des bêtises.
merci
cordialement.
The following user(s) said Thank You: adarr
More
11 years 5 months ago #2358 by tompap
Replied by tompap on topic Affichage annonces par date inversée
Bonjour,

Le plus simple est en fait components/com_adsmanager/views/list/view.html.php

$orderdir = $app->getUserStateFromRequest('com_adsmanager.front_content.orderdir','orderdir','DESC');

remplacer par

$orderdir = $app->getUserStateFromRequest('com_adsmanager.front_content.orderdir','orderdir','ASC');
The following user(s) said Thank You: adarr
  • frederic45
  • frederic45's Avatar Topic Author
  • Offline
  • Bronze
  • Bronze
More
11 years 5 months ago #2361 by frederic45
Replied by frederic45 on topic Affichage annonces par date inversée
ça ne marche pas :(

dans un 2e temps j'ai modifié la ligne suivante :
$orderdir = $app->getUserStateFromRequest('com_adsmanager.front_content.orderdir','orderdir','ASC');
$orderdir = strtoupper($orderdir);
if (($orderdir != "DESC") && ($orderdir != "ASC")) {
$orderdir = "ASC";

ça ne marche pas non plus :sick:
The following user(s) said Thank You: adarr
More
11 years 5 months ago #2402 by tompap
Replied by tompap on topic Affichage annonces par date inversée
Il y a une autre petite modif a faire dans administrator/com_adsmanager/model/content.php

la fonction getListOrder il faut cherche id DESC, et mettre ASC
The following user(s) said Thank You: frederic45, adarr
Time to create page: 0.188 seconds
Powered by Kunena Forum