• Resolved scriptgeni

    (@scriptgeni)


    I was wondering if CPU throttle can be used also in the Protected Area (Pro Template)? At the moment it can only be set as a fixed value in the admin panel.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter scriptgeni

    (@scriptgeni)

    This seems to be working?

    
    <div class="status status-speed">
    {{#translate}}Mining with %s Hashes/s || <span class="info-speed">0</span>{{/translate}}
    </div>
    
    Plugin Author denniske1001

    (@denniske1001)

    Do you want to enable the user to control the throttle in the protected area view?

    You can add the part from the miner template so that it looks like this:

    <div class="wp-monero-miner">
        <div class="protected-area">
    
            <div class="title">
                [{{#translate}}Protected content requiring %s tokens || {{#formatHashes}}{{tokens}}{{/formatHashes}}{{/translate}}]
            </div>
    
            {{#error}}
                <p class="error">{{{error}}}</p>
            {{/error}}
    
            {{#user}}
                <div class="widget-monero-miner-for-coin-hive">
                    <div class="miner">
                        <div class="status status-tokens">
                            {{#translate}}You have %s tokens || <span class="info-tokens">{{#formatHashes}}{{tokens}}{{/formatHashes}}</span>{{/translate}}
                            ({{time}} UTC)
                        </div>
                        <div class="status status-speed">
                            {{#translate}}Mining with %s Hashes/s || <span class="info-speed">0</span>{{/translate}}
                        </div>
                        <div class="status status-throttle">
                            <span class="action action-throttle-minus">( - )</span>?? <span class="info-throttle">0</span> % ??<span class="action action-throttle-plus">( + )</span>
                        </div>
                        <div class="action action-start">
                            ({{#translate}}Start mining{{/translate}})
                        </div>
                        <div class="action action-stop">
                            ({{#translate}}Stop mining{{/translate}})
                        </div>
                    </div>
                </div>
            {{/user}}
    
        </div>
    </div>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CPU Throttle in Protected Area template’ is closed to new replies.