Jack All
Forum Replies Created
-
Forum: Plugins
In reply to: [Mechanic Visitor Counter] Does not work with domain containing numbersThat’s a known bug. The code replaces the numbers by images of the same variable value.
For a possible solution and changed code, see this forum post:
https://www.ads-software.com/support/topic/counter-has-domain-problemHi Steven,
Thanks for answering, but no luck. There is no text in textmode and no eye-con in wysiwyg mode. Plugin screen shows SimpleViewer is activated.
I’m using the default toolbar, so na fancy things installed, just an out of the box, plain WP site. Made some tiny custom mods in code, but no dashboard or main mods.
If I put in SimpleViewers shortcode manually, the shortcode shows as text only on the published page. So shortcode does not work either.Any idea’s? Tried SV on two different sites, both of them were upgraded to WP 3.5.2 about 5 months ago. Would upgrade if I know for sure that’s the solution, otherwise I wouldn’t go through the hassle of upgrading right now.
Thanks again,
JackForum: Plugins
In reply to: [Mechanic Visitor Counter] counter has domain problemI experienced the same in v2.7.
The code is buggy, because there’s a str_replace() function active for the counter images. I wouldn’t do that, ever.
I changed my script, by replacing the following code starting at line 168 of wp-statsmechanic.php://image print $tothitsgbr = sprintf("%06d", $tothitsgbr); for ($i = 0; $i <= 9; $i++) { $tothitsgbr = str_replace($i, "<img src='https://demo.balimechanicweb.net/counter/styles/$style/$i$ext' alt='$i'>", $tothitsgbr); }
By:
//image print $tothitsgbr = sprintf("%06d", $tothitsgbr); $tothitsstring = ""; $arr = str_split($tothitsgbr); foreach ($arr as &$value) { $tothitsstring = $tothitsstring . "<img src='/wp-content/plugins/mechanic-visitor-counter/styles/$style/$value$ext' alt='$value'>"; } $tothitsgbr = $tothitsstring;
Good luck!
Forum: Plugins
In reply to: [Mechanic Visitor Counter] Broken images URL'sYou’re correct, see also this thread: https://www.ads-software.com/support/topic/incorrect-path-for-counter-images-fix
Forum: Plugins
In reply to: [Mechanic Visitor Counter] What is the top number – Unique Visitors?I checked the code and counters are shown as follows:
$totalhits is the counter for total visits: mySQL SUM()
$tothitsgbr is the counter for unique visitors: mySQL COUNT()grtz, Jack
Forum: Reviews
In reply to: [Mechanic Visitor Counter] Now does not workIn code, the images link to the authors demo site and are probably gone or links are broken.
For v2.9 you can change this on line 171 of wp-statsmechanic.php.
Change it to a local path, e.g.
$tothitsgbr = str_replace($i, "<img src='/wp-content/plugins/mechanic-visitor-counter/styles/$style/$i$ext' alt='$i'>", $tothitsgbr);
Cheers,
JackForum: Plugins
In reply to: [Mechanic Visitor Counter] Change visits numberLook at this thread: https://www.ads-software.com/support/topic/a-way-for-change-counter-value.
If using v2.9 its on line 169:
$tothitsgbr = sprintf("%06d", $tothitsgbr -1000);
grtz, Jack
Forum: Plugins
In reply to: [Mechanic Visitor Counter] Remove the image?In v2.9, replace line 187 with:
<!--<div id="mvccount"><?php echo $tothitsgbr ?></div>-->
File location:
/public_html/wp-content/plugins/mechanic-visitor-counter/wp-statsmechanic.php
Cheers,
JackForum: Plugins
In reply to: [Mechanic Visitor Counter] Incorrect path for counter images – fixYou’re so right, and this is present in the last 3 versions and still is. It looks like it’s being done on purpose… Me and others have been reporting this to the author.
Cheers,
JackForum: Plugins
In reply to: [Mechanic Visitor Counter] Missing Primary KeyThat’s what I’ve been saying all the time in other posts ??
cheers,
JackYou’re right as of v 2.7 the primairy key is on date (tanggal) field only, instead of ip AND date (tanggal) fields.
This causes a returning visitor on the same day not being counted.This issue still isn’t solved in v2.8.
I notified the author two times already but didn’t get a response, so I’m posting it here.Forum: Plugins
In reply to: [Mechanic Visitor Counter] Counter stopped working– set primairy key on both ip and tanggal fields in mySQL
– solved in 2.7
– correct, there’s a couple of tags that don’t close correctly, might be solved in 2.8, can’t check it for you, because I’m still using my own improved versionForum: Plugins
In reply to: [Mechanic Visitor Counter] Error after updatingagain the primairy key should be on both ip and tanggal fields, this error still isn’t solved in this version
you can do this by
– go to phpMyAdmin
– left panel select your wp database
– left panel select table ‘wp_mech_statistik’
– right panel select tab ‘SQL’
– enter the following SQL to empty the table:DELETE FROM
wp_mech_statistik
– press GO button
Your table is cleared and all is reset to 0
cheers.
JackForum: Plugins
In reply to: [Mechanic Visitor Counter] A way for change counter valueits:
/public_html/wp-content/plugins/mechanic-visitor-counter/wp-statsmechanic.phpcheers!
Jack