0
Hi,
I just purchased and installed the extended professional version of content statistics because I wanted a reliable front-end display of a list of most viewed pages/items (K2).
I would like to condense the reporting of the item title, and I see there is a parameter to do this. I have set it a 35 (chars), but it does not seem to work. I am still seeing the full title (see attached).
Is there perhaps something else I need to do? This occurs with default, default with bars and table displays.
Thanks!
Al Rossi
I just purchased and installed the extended professional version of content statistics because I wanted a reliable front-end display of a list of most viewed pages/items (K2).
I would like to condense the reporting of the item title, and I see there is a parameter to do this. I have set it a 35 (chars), but it does not seem to work. I am still seeing the full title (see attached).
Is there perhaps something else I need to do? This occurs with default, default with bars and table displays.
Thanks!
Al Rossi
Responses (4)
-
Accepted Answer
-
Accepted Answer
0Let me add a little more information.
First, a correction. The problem exists only for table and default. Default with bars seems to do the truncation correctly. See attached.
However, with default with bars ... which I would perfectly happy to use on this site ... the line color is not being picked up. See my attached configuration page in the admin panel.
I have looked at bar.php. A cursory glance at the code does not reveal to me any glaring bugs. So the problem must lie elsewhere.
I would appreciate some help here ... since I did purchase the most expensive version of your package. The color scheme of the page is ruined by this ugly green and I cannot see where to correct it. Statistics.css does not seem to carry any hard-coded color values that correspond to that color.
Thanks again, al rossi -
Accepted Answer
0For my own purposes I have resolved this problem by hacking the default.php, adding:
<div class="stat_item">
<p><span class="item_count" style="width:<?php echo $width; ?>%; background-color:<?php echo $params->get('linecolor','#000000'); ?>;"><?php echo number_format($item->howmuch,0); ?></span></p>
<p><span class="item_name" style="width: 100%"><a href="/<?php echo $link; ?>" title="<?php echo htmlentities($item->item_name); ?>"><?php echo modContentStatisticsHelper::crop_string($item->item_name, $params->get('cropstring', 0)); ?></a></span></p>
</div>
Looks much nicer now, and I don't even need to truncate.
But I still think that you either specify that truncation only works with default with bars, or you fix the code.
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 »