How to create a visitor counter on a page ?

jeromehej

Member
Hi,
How to create a visitor counter on a page please ?
Regard

French :
Bonjour,
Comment cr?er un compteur de visiteur sur une page s'il vous plait ?
Cordialement.
 
Hi,
Can you just tell me if in Fabrik, a counter visit pages exist please?
If not, I would link my articles to use those joomla counter joomla. But it's more complicated having a field Fabrik counts.

Bonjour,
Pouvez vous juste me dire s'il existe dans Fabrik un compteur de visite de pages s'il vous plait ?
Si non, je lierais mes articles ? ceux de joomla pour utiliser le compteur de joomla. Mais c'est plus compliqu? qu'avoir un champ de Fabrik qui compte.
 
With Fabrik, I posted articles Joomla but "hits" column does not change. I'm disappointed. :(
I find it important to know the number of people who read an article.


Avec Fabrik, j'ai affich? des articles Joomla mais la colonne "hits" ne change pas. Je suis d??u.:(
Je trouve important de connaitre le nombre de personnes qui lisent un article.
 
You can use a field element (set to integer) and a form php plugin (Process script = onload) which adds to this element on form load (so counting how often the form/details view is displayed)
 
Hi troester,

my code don't work :(
$hitold = (int)"{jehs_articles___hits}";
$hitnew = $hitold + 1;
$formModel->updateFormData('jehs_articles___hits',$hitnew);
 

Attachments

  • 2013-09-15 16_19_47-Test 01 - Joomla 2.5 - Administration - Fabrik_ éditer formulaire.png
    2013-09-15 16_19_47-Test 01 - Joomla 2.5 - Administration - Fabrik_ éditer formulaire.png
    18.5 KB · Views: 271
i need help too
i use
PHP:
unset($formModel->_data);

after the

PHP:
$hitnew= {srcdl___hits} + 1; $formModel->updateFormData('srcdl___hits_raw', $hitnew);

but field not change in visit page (detail view)
why??
 
The PHP plugin works only on form view (when you enter data), not on details.
I'd be curious too how to count hits on a detail view.
I guess you should try to look at the code that J! uses for the "hits" count.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top