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 / Auto Populate Dropdown List(current year)

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

Auto Populate Dropdown List(current year)

More
11 years 5 months ago - 11 years 5 months ago #1659 by wafa
Hi guys,

How would I automate the dropdown list in adsmanager backend so that I dont have to modify it each year (example: when the year reaches 2014)


Any help would be greatly appreciated B)

tunisie annonce


AdsManager : 3.0.4
Joomla : Joomla! 3.4.1
Host : OVH
Last edit: 11 years 5 months ago by wafa.
The following user(s) said Thank You: adarr
More
11 years 5 months ago #1674 by loic
Hello,

You can create a file who will directly add the new category in your database.

Or, you can modify a file you open often with your browser and write the code to add the new category in it.

It's not very clean, but it will work.
The following user(s) said Thank You: adarr
More
11 years 5 months ago #1694 by wafa
ci dessous une image d la liste déroulante (des années successifs)


j'ai pas bien compris votre idée
pouvez vous me donner plus d'amples détails

merciiii

tunisie annonce


AdsManager : 3.0.4
Joomla : Joomla! 3.4.1
Host : OVH
The following user(s) said Thank You: adarr
More
11 years 5 months ago #1710 by loic
Bonjour,

L'idée serai de placer un bout de code dans un des fichiers d'une page de l'administration que vous visitez souvent, par exemple, la page listant les annonces AdsManager.

Ce bout de code sera appelé à chaque fois que vous allez sur cette page et il fera ceci :

- récupération de l'année en cours
- Vérification dans la table si l'année n'existe pas déjà
- Si oui, on ne fais rien, si non, on ajoute l'année.

Vous pouvez aussi paramétrer un cron qui exécutera un script de vérification chaque jour.

Ce que je vous donne la est bien entendu une astuce, il faut savoir que si vous positionnez ce bout de code dans un AdsManager ou autre, la mise à jour du composant supprimera ce code.
The following user(s) said Thank You: adarr
Moderators: perry
Time to create page: 0.153 seconds
Powered by Kunena Forum