Visitors Statistics

mahmoodee

Member
Hello,
I created experts profile directory by Fabrik .....list of experts profiles synchronized with joomla users component.
Companies can subscribe and visit experts profiles.
Is there a way in Fabrik to know the number of visits for each profile ,so I can sort list with most visited profiles or most popular ..etc ?
thank you
 
There isn't a built in way, but you could probably do it with a PHP plugin, running onLoad, which updated a hit count in the table for that rowid.

-- hugh
 
thank you
Is there a way to run when onload details view ? I want to update hit counter when click view details not onload list page.
any suggestion please .
thank you
 
php form "onload" is running also in details view.
There's no option for "in form" or "in details" so you have to check the URL param if you don't want to count form access.
 
thank you
I try the code in this post
http://fabrikar.com/forums/index.php?threads/detail-view-hit-counter.40372/
Code:
if (!$formModel->isEditable()) {
  $rowid = $formModel->getRowId();
  if (!empty($rowid)) {
    $db = FabrikWorker::getDbo();
    $query = $db->getQuery(true);
    $query->update('yourtable)->set('hitcount = COALESCE(hitcount,0) + 1')->where('id = ' . $rowid);
    $db->setQuery($query);
    $db->execute();
  }
}
but now when I click on view record it show blank deatils view
 
It is working now , I missed ' after table name update('yourtable).
the hit counter now increase one every time I click time
How I can calculate only one hit for several clicks for session ?
 
It is working now , I missed ' after table name update('yourtable).
the hit counter now increase one every time I click time
How I can calculate only one hit for several clicks for session ?
 
Back
Top