Version 3.0 – Does not work with domain containing numbers
-
The problem with the numbers in the domain is still there.
Change the lines 183 – 187
in wp-content/plugins/mechanic-visitor-counter/wp-statsmechanic.phpfor ($i = 0; $i <= 9; $i++) { $tothitsgbr = str_replace($i, "<img src='". WP_PLUGIN_URL ."/mechanic-visitor-counter/styles/$style/$i$ext' alt='$i'>", $tothitsgbr); // IF installed on sub domain // $tothitsgbr = str_replace($i, "<img src='https://demo.balimechanicweb.net/counter/styles/$style/$i$ext' alt='$i'>", $tothitsgbr); }
to
$tothitsgbr_temp = ""; for ($i = 0; $i < strlen($tothitsgbr); $i++) { $j = substr($tothitsgbr, $i, 1); $tothitsgbr_temp .= "<img src='" . WP_PLUGIN_URL . "/mechanic-visitor-counter/styles/$style/$j$ext' alt='$j'>"; } $tothitsgbr = $tothitsgbr_temp;
Hope it helps.
Patrickhttps://www.ads-software.com/plugins/mechanic-visitor-counter/
- The topic ‘Version 3.0 – Does not work with domain containing numbers’ is closed to new replies.