0
Hi, I am interested in using this with Mosets Tree. Please can you advise if this system can be used to show profile statistics to the profile owner. I.e. so that they login to their profile and then they can see how many hits that they have had.
Thanks in advance.
Thanks in advance.
Responses (12)
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0Thanks for your fast support.
I've installed...
- plg_contentstats_1.4.0.zip
- mod_content_statistics_compare_1.3.1_pro.zip
- mod_content_statistics_individual_1.3.2_pro.zip
- mod_content_statistics_1.3.1_pro.zip
- plg_contentstats_com_mtree_1.4.0.zip
... and i published any of these.
I would like only the owner of an entry may even see statistics for his entry. Regular visitors to the site will not see the statistics. As well as other registered users.
Where exactly do I change this?
Regards,
David -
Accepted Answer
0well first of all you need to set up the MODULE, because it's what shows the information.
what statistics you want to show? a graphic with evolution in time of the hits, on the very listing page?
there is actually not a way to set a module to be seen only for 1 particular user in Joomla if you know what I mean. we could customize some code for this.
but first, tell me: what is the statistics data you are planning to show? -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0Hi,
sorry for my late respone. This is the code that i use to show the module position only if "viewer" is admin or owner of a mtree listing.
$my = &JFactory::getUser();
$owner = $this->fields->getFieldById(3);
if ( $my->usertype == 'Super Administrator' || ($my->id == $owner->getValue(1) )) {
?>
$document = &JFactory::getDocument();
$renderer = $document->loadRenderer('module');
$params = array('style'=>-2);
$position = 'user9';
$contents = '';
foreach (JModuleHelper::getModules($position) as $mod) {
$contents .= '';';
$contents .= '' . $mod->title . '
';
$contents .= $renderer->render($mod, $params);
$contents .= '
}
echo $contents;
}
?>
But now i have a new question. Is it possible to view statistics in the module about how often was used the contact to the owner feature in mtree listing?Accepted Answer
Accepted Answer
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »