rbulmer55
Forum Replies Created

Forum: Fixing WordPress
In reply to: Post.php script exceeding execution timeSo far so good. Will update if the issue returns.
Thanks.
Forum: Plugins
In reply to: [GDPR Cookie Consent Banner] Absolute positioningsorry can I add: when in the ‘top bar’ state. I know theres blocks that are positioned over the top of the content but I would like it to be over the content when in across the whole top of the page.
Thanks
Forum: Plugins
In reply to: [TF Random Numbers] One number stays at 0I’ve added a function to tf_numbers.js file which adds the comma in.
However I have still paid $7 for the plugin and have identified a problem that does need fixing.
Forum: Plugins
In reply to: [TF Random Numbers] One number stays at 0function commaSeparateNumber(val){ while (/(\d+)(\d{3})/.test(val.toString())){ val = val.toString().replace(/(\d+)(\d{3})/, '$1'+','+'$2'); } return val; } //Statistics in numbers jQuery.fn.statsCounter = function(){ //declaring vars var stat = this.find('.statisticsinner').children(); var startValue = 0; //iterate through every .stat class and collect values stat.each(function(){ var count = jQuery(this).data('count'); var number = jQuery(this).find('.number'); var countstcs = commaSeparateNumber(count); //alert(countstcs); var start = 0; var go = setInterval(function(){ startCounter(); },1); //increment value every 1ms function startCounter(){ incrementBy = Math.round(count / 90); //Divide inputed number by 90 to gain optimal speed (not too fast, not too slow) if( count < 90 ) incrementBy = Math.round(count / 5); if( count < 5 ) incrementBy = Math.round(count / 2); start = start + incrementBy; if( count != 0 ) { jQuery(number).text(start); } else { jQuery(number).text(0); start = count; } //if desired number reched, stop counting if( start === count ) { clearInterval(go); } else if( start >= count ){ //or if greater than selected num  stop and return value clearInterval(go); jQuery(number).text(countstcs); } }//startCounter; });//stat.each() }//statsCounter();
Forum: Plugins
In reply to: [TF Random Numbers] One number stays at 0Hi, I’ve ammended the following code below to display the comma. However I have still purchased the Addon for $7 and would like a fix as its currently disabled and not used.
function commaSeparateNumber(val){
while (/(\d+)(\d{3})/.test(val.toString())){
val = val.toString().replace(/(\d+)(\d{3})/, ‘$1’+’,’+’$2′);
}
return val;
}
//Statistics in numbers
jQuery.fn.statsCounter = function(){
//declaring vars
var stat = this.find(‘.statisticsinner’).children();
var startValue = 0;//iterate through every .stat class and collect values
stat.each(function(){
var count = jQuery(this).data(‘count’);
var number = jQuery(this).find(‘.number’);
var countstcs = commaSeparateNumber(count);
//alert(countstcs);
var start = 0;
var go = setInterval(function(){ startCounter(); },1); //increment value every 1msfunction startCounter(){
incrementBy = Math.round(count / 90); //Divide inputed number by 90 to gain optimal speed (not too fast, not too slow)
if( count < 90 ) incrementBy = Math.round(count / 5);
if( count < 5 ) incrementBy = Math.round(count / 2);
start = start + incrementBy;
if( count != 0 ) {
jQuery(number).text(start);
} else {
jQuery(number).text(0);
start = count;
}
//if desired number reched, stop counting
if( start === count ) {
clearInterval(go);
} else if( start >= count ){ //or if greater than selected num – stop and return value
clearInterval(go);
jQuery(number).text(countstcs);
}
}//startCounter;
});//stat.each()
}//statsCounter();Forum: Plugins
In reply to: [TF Random Numbers] One number stays at 0I’ve made changes to the code in tf_numbers.js file which adds the comma in. But I would still like a fix for the addon as I’ve purchased it and I can’t use it.
function commaSeparateNumber(val){ while (/(\d+)(\d{3})/.test(val.toString())){ val = val.toString().replace(/(\d+)(\d{3})/, '$1'+','+'$2'); } return val; } //Statistics in numbers jQuery.fn.statsCounter = function(){ //declaring vars var stat = this.find('.statisticsinner').children(); var startValue = 0; //iterate through every .stat class and collect values stat.each(function(){ var count = jQuery(this).data('count'); var number = jQuery(this).find('.number'); var countstcs = commaSeparateNumber(count); //alert(countstcs); var start = 0; var go = setInterval(function(){ startCounter(); },1); //increment value every 1ms function startCounter(){ incrementBy = Math.round(count / 90); //Divide inputed number by 90 to gain optimal speed (not too fast, not too slow) if( count < 90 ) incrementBy = Math.round(count / 5); if( count < 5 ) incrementBy = Math.round(count / 2); start = start + incrementBy; if( count != 0 ) { jQuery(number).text(start); } else { jQuery(number).text(0); start = count; } //if desired number reched, stop counting if( start === count ) { clearInterval(go); } else if( start >= count ){ //or if greater than selected num  stop and return value clearInterval(go); jQuery(number).text(countstcs); } }//startCounter; });//stat.each() }//statsCounter();
Forum: Plugins
In reply to: [TF Random Numbers] One number stays at 0Does the tf control addon only allow one stat?
Forum: Plugins
In reply to: [TF Random Numbers] One number stays at 0The problem seems to be when you have more than one stat on a page
Forum: Plugins
In reply to: [TF Random Numbers] One number stays at 0Hi, I am having the same problem. Both numbers at the bottom of the page worked without the paid Addon: Tf number control. When I activate the addon to get the comma in the numbers the 1st stat counter stays at 0 and doesn’t count up. Also the ‘hide title’ feature doesnt work for the first stat too.
http://www.contentmanagementwebsite.co.uk/keep_active/
https://www.wordpress.org/plugins/tfnumbersnumbercounteranimaton/