alrossi55
alrossi55
Offline
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
Responses (4)
  • Accepted Answer

    alrossi55
    alrossi55
    Offline
    Monday, July 31 2017, 12:33 PM - #Permalink
    0
    Forgot to include info:

    Joomla 3.7.4
    php: 7.1.1
    K2: Version 2.7.1
    MySql: 5.6.32

    Content Statistics Installed version: 2.0.0
    Content Statistics System plugin version: 2.2.1
    The reply is currently minimized Show
  • Accepted Answer

    alrossi55
    alrossi55
    Offline
    Monday, July 31 2017, 02:30 PM - #Permalink
    0
    Let 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
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    alrossi55
    alrossi55
    Offline
    Monday, July 31 2017, 03:36 PM - #Permalink
    0
    For 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.
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    alrossi55
    alrossi55
    Offline
    Monday, July 31 2017, 03:37 PM - #Permalink
    0
    The reply is currently minimized Show
Your Reply