Traffic Counter & Forum Statistics (Real-Time, GeoIP, AMS)

Add-ons Traffic Counter & Forum Statistics (Real-Time, GeoIP, AMS) 1.6.1

Register & Get access to index

DANYQC

Registered
Of course.
A small change in the statistiche_widget_sidebar template, replace lines 91 to 101:
HTML:
<xf:if is="$hasLicense AND $sparklineMax > 0">
                <div class="stat-sparkline" title="Trend ultimi 7 giorni">
                    <xf:foreach loop="$sparklineData" value="$val" i="$i">
                        <div class="stat-spark-bar {{ $loop.last ? 'today' : '' }}"
                             style="height: {{ ($val / $sparklineMax) * 100 }}%;"
                             data-xf-init="tooltip"
                             title="{{ $val }} visite">
                        </div>
                    </xf:foreach>
                </div>
            </xf:if>
with these lines:
HTML:
<xf:if is="$hasLicense AND $sparklineMax > 0">
    <div class="stat-sparkline" title="Trends last 7 days">
        <xf:foreach loop="$sparklineData" value="$val">
            <div class="stat-spark-bar {{ $loop.last ? 'today' : '' }}"
                 style="height: {{ ($val / $sparklineMax) * 100 }}%;">
               
                <span class="stat-spark-value">
                    {{ $val }}
                </span>

            </div>
        </xf:foreach>
    </div>
</xf:if>

Add these lines to the extra.less template:
CSS:
.stat-spark-bar {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.stat-spark-value {
    width: 100%;
    text-align: center;
    padding-bottom: 3px;

    font-size: clamp(9px, 30%, 14px);
    line-height: 1;
    color: #fff;

    text-shadow: 0 1px 2px rgba(0,0,0,.65);
    pointer-events: none;
}
/* Emphasize today */
.stat-spark-bar.today .stat-spark-value {
    font-weight: @xf-fontWeightHeavy;
}

I made it so that there was an automatic scaling of the font size.
Done! ;)
Thank you so much friend...
 

gatto

Registered
The resource has been updated to version 1.5.7 🧠 "Quiz System" Widget Integration
Performance: SQL query optimization for technological data retrieval.
Clean Code: Code completely cleaned of redundant comments and debugging for maximum execution speed. 🔥
 
  • Tags
    advanced traffic statistics: from insight to active defense 1.6.1 geoip traffic counter & forum statistics (real-time
  • Back
    Top Bottom