simpleCounter don`t work

inmiod

Avatar: inmiod

2013-08-31 20:43

Hello

I have installed Cms 5.1, and try to instal simpleCounter v5.X, but get a blank site, after I upload the new files.

Are there any other plugins for this version? I have tried several times but can not get it.


Best regards from Norway
Jon
isprinsessa.com/test/ny

» Quick.Cms v5.x

Guido

Avatar: Guido

2013-09-01 00:14

Hi,

The plugin must work, I installed it once too. Maybe you use wrong texteditor, sometimes that causes errors.

Unfortunately this one counts all visits. So if you visit your own site 20 times a day, it can count 20 visits... Fortunately it will not count every visit within a certain period of time (cookie is set).

Guido

inmiod

Avatar: inmiod

2013-09-01 10:39

Hello Guido

I have tried several times without success.

Could you please send me the completed files by mail? I had been happy.

Best regards
Jon

inmiod

Avatar: inmiod

2013-09-01 10:47

Hello again Guido

I can send files to you so you can see if I made the right

Regards
Jon

inmiod

Avatar: inmiod

2013-09-01 11:00

Hello again

I tried again and got a blank page. Thinking it's something with a special file called header.php ?

Jon

inmiod

Avatar: inmiod

2013-09-01 11:14

Hello

puuhhh........ I try agaiin :-(

It is the file _header.php that I make mistakes. I replaced it with the original, so it went okay. I post the code here, so you can always see if I've done it right.

.........................................................................................................................................................................................................................................

<?php echo $oPage->throwMenu( 2, $iContent, 1 ); // content of left menu ?>
<div class="box"><?php // simple counter box ?>
<div class="type"><?php echo $lang['Visits']; ?>:</div>
<div class="content visits">
<span><?php echo $lang['Visits_today']; ?>: <strong><?php echo $aVistisCounter[1]; ?></strong></span><em><?php echo $lang['Visits_all_time']; ?>: <strong><?php echo $aVistisCounter[0]; ?></strong></em>
</div>
</div><?php
<div id="content">

Guido

Avatar: Guido

2013-09-02 21:59

Hi,

Code is added correctly. So after you added this code in file header, site does not work anymore?

Which texteditor are you using? Did you try another one? Sometimes that's the problem.

Guido

inmiod

Avatar: inmiod

2013-09-02 22:19

Hello Guido

I use notepad from pc to open and add tags. Is not that right??

Best regards from Norway

Jon
isprinsessa.com/test/ny

inmiod

Avatar: inmiod

2013-09-02 22:21

And yes....I got the blanc site.....When I upload just the one file (header.php)

Jon

Guido

Avatar: Guido

2013-09-03 00:07

Hi,

I will email you on the gmail address at your site.

Please send me your cms and I will take a look.

Guido

inmiod

Avatar: inmiod

2013-09-03 00:33

Thanks Guido

Guido

Avatar: Guido

2013-09-03 10:07

Sometimes text editor causes problems, so you can try this (free) one:
http://notepad-plus-plus.org/

If you decide to send me your cms, please remove your added pics to decrease size of the ZIP.

Guido

inmiod

Avatar: inmiod

2013-09-03 17:57

Hello Guido

I did it, but I deleted the script again, then counter counted all sides. Example: I was on 7 pages, and the counted showed 7, which is wrong for me :-)

As for the script on _header.php, I removed <? Php you see (original first)

</ div> 
</ div> <? php 
<div id="content">


</ div> 
</ div> 
<div id="content">

But thanks for help me. There is not another counter?.... a counter that counts 1 and not 2 when I pressing f5

Regards from Norway
Jon

ps: the e-mail you looked at the homesite, was the leader of the team and not me. I'll talk to her tonight and ask her to forward the mail to me.

Guido

Avatar: Guido

2013-09-03 22:14

Normally it sets a cookie so not every visit is counted.
I notice 7200 in the code > I guess it's 120 minutes (7200/60=120).

I'm using Google Analytics, so not a visible counter.

If you need help with your template, let me know (by mail).

Guido

Back to top
about us | contact