Bonjour,
Voila la nouvelle version (0.3) de ce petit plugin qui permet de compter le nombre d’affichage d’un article.
Ce qui a changé par rapport à la version 0.2 :
Ce qui a changé par rapport à la version 0.1 :
Pour son utilisation même chose:
Il suffit de mettre la balise : dans un module (form) pour l’incrémentation se fasse! sans oublier au besoin de renseigner les tags category, section et force.
Pour afficher le compteur il suffit d’afficher la valeur du custom field avec : et le tour est joué.
pour télécharger le plugin :
Version 0.3: FICHIER ::
dzd_counter_view_v0.3.txt [5.44KB]
dzd_counter_view_v0.3
Category: plugin
download: 214
Version 0.2: FICHIER ::
dzd_counter_view_0_2.txt [5.11KB]
dzd_counter_view version 0.2, textpattern plugin testé sous txp 4.0.4
Category:
download: 1671
Le plugin a été testé sous Textpattern 4.0.8 mais devrait fonctionner quelque soit la version.
Les documents et articles du site sont la propriété de leurs auteurs
Site conçu par iX Services
Hi! What about txp 4.0.8? dzd_counter_view_0_2 don’t work in 4.0.8.
— Eugene Aug 14, 12:26 PM #
It work, maybe you havent use correctly, the counting function work only when the article is viewed individualy not in list, check textpattern forum for further help
— Webmaster BlogiX Sep 8, 12:00 PM #
Is it possible, that the custom_field name should be lower case? Had the problem, that with mixed upper and lower case names, the plugin didn’t wrote anything …
Anyway, good plugin! I use it for hitlists …
— Andreas Sep 11, 02:27 PM #
Don’t work in 4.0.8 after upgrade from 4.0.6 with -force=“1”
Without -force=“1” – it work
— Eugene Sep 14, 09:22 AM #
@Eugen : Hi Eugene, I have make test under a local install (WAMP) of txp 4.0.8 with force=“1” and it works, the first time when the article is displayed nothing happen, but the second time it works. give me the complete code you use in dzd_counter_view to see if something else dont work.
@Andreas : You can change that in the plugin code, go to Admin>Plugin and then clic on “Edit” link in same line of dzd_counter_view, then change all “countxx” in the code to whatever you want. If i have some time i will release a new version that can make easy to change custom_field name.
Cheers.
— Webmaster BlogiX Sep 22, 03:18 PM #