Module Vinaora Visitors Counter

This forum is for general questions about extensions for Joomla! 2.5.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
quodo
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Thu Dec 10, 2009 12:45 pm

Re: Module Vinaora Visitors Counter

Post by quodo » Wed Feb 03, 2010 12:17 pm

mskoczek,

I think you're on PHP 4 and you need PHP 5.

Just checked at my webhost: with PHP4 I get the same error for str_split(), with PHP5 I don't get the error. This function seems to be PHP5 only: http://php.net/manual/en/function.str-split.php. My webhost uses PHP4 unless I indicate I want to use PHP5 in my .htaccess file. Maybe yours does too?

quodo
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Thu Dec 10, 2009 12:45 pm

Re: Module Vinaora Visitors Counter

Post by quodo » Wed Feb 03, 2010 12:24 pm

Even better: what to change for PHP4 is already in the helper.php file:

Find the code

Code: Select all

	function &getDigits( $number, $length=0 )
	{
		$strlen = strlen($number);
		
		$arr	=	array();
		$diff	=	$length -  $strlen;
		
		// Push Leading Zeros
		while ( $diff>0 ){
			array_push( $arr,0 );
			$diff--;
		}
		
		// For PHP 4.x
		/*
		$arrNumber	=	array();
		for ($i = 0; $i < $strlen; $i++) {
			$arrNumber[] = substr($number,$i,1);
		}
		*/
		
		// For PHP 5.x: 
		$arrNumber	=	str_split( $number );
		
		$arr		=	array_merge( $arr,$arrNumber );
		
		return $arr;
	}
and replace it with

Code: Select all

	function &getDigits( $number, $length=0 )
	{
		$strlen = strlen($number);
		
		$arr	=	array();
		$diff	=	$length -  $strlen;
		
		// Push Leading Zeros
		while ( $diff>0 ){
			array_push( $arr,0 );
			$diff--;
		}
		
		// For PHP 4.x
		
		$arrNumber	=	array();
		for ($i = 0; $i < $strlen; $i++) {
			$arrNumber[] = substr($number,$i,1);
		}
		
		
		// For PHP 5.x: 
		//$arrNumber	=	str_split( $number );
		
		$arr		=	array_merge( $arr,$arrNumber );
		
		return $arr;
	}
I've attached the file for your convenience.
PHP4_helper.zip
You do not have the required permissions to view the files attached to this post.

x5erox
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Sun Feb 14, 2010 11:28 pm

Re: Module Vinaora Visitors Counter

Post by x5erox » Sun Feb 14, 2010 11:42 pm

Thanks :D:D:D

Balonar
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Mon Feb 15, 2010 9:13 am

Re: Module Vinaora Visitors Counter

Post by Balonar » Mon Feb 15, 2010 11:58 am

would love to exclude bots and my IP .. this way statistics are not occurate :(

TheDudeRulez
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Feb 04, 2010 4:34 am

Re: Module Vinaora Visitors Counter

Post by TheDudeRulez » Sat Feb 20, 2010 5:08 pm

I am having an issue with the Vinaora Visitors Counter, on install I get a error message -
Fatal error: Call to undefined function: str_split() in /home/content/j/p/m/*******/html/newjura/modules/mod_vvisit_counter/helper.php on line 84

If I uncheck the all option in Menu Assignment the error disappears but I dont get the module on any page, and even checking Select Menu Item(s) from the List I see no change.

I am new to Joomla and have succesfully installed many extensions with no problems, not that I have alot installed now, but I dont know how to remedy this error. At the moment have the module disabled.

quodo
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Thu Dec 10, 2009 12:45 pm

Re: Module Vinaora Visitors Counter

Post by quodo » Sun Feb 21, 2010 12:31 pm

TheDudeRulez, start with reading http://forum.joomla.org/viewtopic.php?p ... 1#p2024851, who had the same prolem, in this thread until you find the message with a solution: http://forum.joomla.org/viewtopic.php?p ... 3#p2025543.

TheDudeRulez
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Feb 04, 2010 4:34 am

Re: Module Vinaora Visitors Counter

Post by TheDudeRulez » Sun Feb 21, 2010 3:03 pm

Thank you Quodo, I contacted my host and the server is PHP4 and I ill have to upgrade my package to use this Vinaora, so it will have to wait.

quodo
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Thu Dec 10, 2009 12:45 pm

Re: Module Vinaora Visitors Counter

Post by quodo » Sun Feb 21, 2010 4:37 pm

TheDudeRulez,
or you just replace the file mentioned that is attached to my post...

TheDudeRulez
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Feb 04, 2010 4:34 am

Re: Module Vinaora Visitors Counter

Post by TheDudeRulez » Sun Feb 21, 2010 5:23 pm

I am a newb, would I have to do that through FTP? cause I don't have FTP access on this host package just direct management access.

stanfield
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri May 15, 2009 9:13 am

Re: Module Vinaora Visitors Counter

Post by stanfield » Mon Feb 22, 2010 2:35 pm

Hi everyone,

how is it possible to translate : "Nous avons: 1 guests, 3 members online"

I haven't found these words in the "FR-fr" folder...

Thanks a million

chain
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Feb 25, 2010 9:49 pm

Re: Module Vinaora Visitors Counter

Post by chain » Thu Feb 25, 2010 9:50 pm

Hi everyone,

I get "PHP Notice: Undefined variable:" Messages in error_log of Apache! It contains always the same variable names: yesterday_visits; lweek_visits; lmonth_visits on line 295,296 and 297 in /modules/mod_vvisit_counter/mod_vvisit_counter.php

Is this only my problem and what should I do then or is it because of missing declaration in code.

From mod_vvisit_counter.xml:
<install type="module" version="1.5" client="site">
<name>Vinaora Visitors Counter</name>
<creationDate>2009-12-05</creationDate>
<author>VINAORA</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>http://vinaora.com</authorUrl>
<copyright>Copyright (C) 2007 - 2009 VINAORA. All rights reserved.</copyright>
<license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
<version>2.0</version>
<description>DESC_VVISIT_COUNTER</description

Nicolaaaa
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Apr 06, 2010 6:17 pm

Re: Module Vinaora Visitors Counter

Post by Nicolaaaa » Tue Apr 06, 2010 6:26 pm

Hi!
I've been using this great counter for almost 6 months now, but today I have noticed a sudden increase of accesses (from 50/60 to about 900!) to my site which supposingly are due to bots.
My Google Analytics account also leads me to the same conclusion since a number of visitors about the average shows there.

I have seen that this is a frequently asked question, yet I haven't found any reply: how could I exclude bots from "artificially" increase the visitors count?
I would very much appreciate your help..
Thanks
Nicola

Kronlund
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sun Aug 24, 2008 2:55 pm
Contact:

Re: Module Vinaora Visitors Counter

Post by Kronlund » Sat Apr 17, 2010 7:37 am

After installing Visit Counter 2.0 i am getting a mayor problem when going to my website

Fatal error: Call to undefined function: getdate() in /xxx/x/xxx/xxx/xxx/modules/mod_vvisit_counter/mod_vvisit_counter.php on line 299

and line 299 is:

$time = & JFactory::getDate( );

I am using PHP 5.2.6

What to do for getting my counter to work?

whouffy
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Jun 17, 2010 1:58 pm

Re: Module Vinaora Visitors Counter

Post by whouffy » Thu Jun 17, 2010 3:58 pm

Hi,

I don't know if i send this request to the right place.

I just install the extention and it work well. How can i change the language. I want it to be in french

Can you help me!

Nath

quodo
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Thu Dec 10, 2009 12:45 pm

Re: Module Vinaora Visitors Counter

Post by quodo » Fri Jun 18, 2010 9:10 am

whouffy wrote:How can i change the language. I want it to be in french
Hi Nath,

the module only has english language files (marked by en-GB). So you will have to translate the language files yourself... Some tips:
- Do that with an editor that save text files "UTF-8 without BOM" like Notepad ++ can do.
- The language files should have the correct name for the language, e.g. british english: en-GB.com_vvisit_counter.ini, or dutch: nl-NL.com_vvisit_counter.ini.
- The language file should be placed in the correct directory with the correct language code (this example en-GB): /JOOMLAROOT/language/en-GB/ and /JOOMLAROOT/administrator/language/en-GB/

I did that for the 1.7.3 version: http://forum.joomla.org/viewtopic.php?p ... 5#p1960395.

For help on how to make translations:
- general information: http://community.joomla.org/translations.html
- some specifics: http://docs.joomla.org/How_to_create_a_language_pack
That should get you started.

Nikyy
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jul 21, 2010 1:26 pm

Re: Module Vinaora Visitors Counter

Post by Nikyy » Wed Jul 21, 2010 1:35 pm

I have a problem abaut the Vinaora Visitors Counter, can same one like to help me.

Fatal error: Call to undefined method: jdocumentrenderermodule->getdate() in /home/content/n/i/h/somepage/html/modules/mod_vvisit_counter/mod_vvisit_counter.php on line 299

achu
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 100
Joined: Fri Apr 23, 2010 1:17 pm

Re: Module Vinaora Visitors Counter

Post by achu » Thu Aug 19, 2010 2:13 pm

Dear Vinaora Visitors Counter Developer,

I'm using this module a long time and my visitors number are increasing day to day. now i need to see this module report. how can i see or make the report? is it possible ?

Regards,

lyealain
Joomla! Intern
Joomla! Intern
Posts: 94
Joined: Fri Dec 08, 2006 8:46 am

Re: Module Vinaora Visitors Counter

Post by lyealain » Tue Aug 24, 2010 12:39 am

hi i installed this module into my site and to my surprise, the counting get really wrong. It shoot up to 4000++ in 3 days in my hosting server. i do not know why it happen.
when i installed in my localhost and intranet, the counting works correctly. But in Hosting server, it does not. Please advice.

tryout127
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Sep 07, 2010 12:51 am

Re: Module Vinaora Visitors Counter

Post by tryout127 » Tue Sep 07, 2010 1:22 am

Hi,
try to translate "We have X guests X members X bots online"
It does not work.
Words "guests" "memebers" "bots" are linked to array in PHP code.
Translation in langueage file does not work.
Please help!
Otherwise this module have no full translation.
Some strange: if I have "Who is online" modul in german translation on, then your modul translation works. If I disable "Whoisonline" then everything goes back to english...

sayeh
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Oct 10, 2010 12:01 pm

Re: Module Vinaora Visitors Counter

Post by sayeh » Sun Oct 10, 2010 12:07 pm

i have a problem
i want to install vinaora_visitors_counter_2.0
upload it to my host
i go that adress but show me an error
this is my error:

Restricted access

how can i solve it???
plz help

bigk
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Oct 15, 2010 4:16 pm

Re: Module Vinaora Visitors Counter

Post by bigk » Fri Oct 15, 2010 4:23 pm

Hello!

I just upgraded to latest version of vinaora visitors counter 2.0 in Joomla, version 1.5.21. Before I was using older version. There was a problem where counter didn't show in IE 8. In all other browsers counter was loaded and shown (FF, Safari, Chrome). So I did an upgrade, but that didn't fix the problem. Site just load with blank space where counter should be. Any suggestions?

Thank you.

meashsoft
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Fri Oct 09, 2009 11:27 am

Re: Module Vinaora Visitors Counter

Post by meashsoft » Sat Oct 16, 2010 9:03 am

thegioiphatminh wrote:OK, I see.

Your language's direction is right to left, not left to right.

Open [Joomla]/modules/mod_vvisit_counter/helper.php, go to line 252, and replace by

Code: Select all

$content .= '<div style="text-align: center; dir: ltr;">';
i am having the same issue and i tried what u say but there is no line 252 in

[Joomla]/modules/mod_vvisit_counter/helper.php,
???!!!
please help

webxcrawler
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Mon Jun 28, 2010 4:45 pm

Re: Module Vinaora Visitors Counter

Post by webxcrawler » Thu Oct 21, 2010 3:51 am

I just found this thread. So i copy n paste back as what i ask on others topic board - http://forum.joomla.org/viewtopic.php?f ... 3#p2293843

webxcrawler wrote:Hye all,

Ok my situation is like this. I download all Joomla file & database from my hosting n deploy it on my localhost. My localhost using XAMPP + windows xp as details:

###### ApacheFriends XAMPP (Basispaket) version 1.7.0 ######
+ Apache 2.2.11
+ MySQL 5.1.30 (Community Server)
+ PHP 5.2.8 + PEAR (Support for PHP 4 has been discontinued)
+ PHP-Switch win32 1.0 (use "php-switch.bat" in the xampp main directory)
+ XAMPP Control Version 2.5 from http://www.nat32.com
+ XAMPP Security 1.0
+ SQLite 2.8.15
+ OpenSSL 0.9.8i
+ phpMyAdmin 3.1.1
+ ADOdb 4.990
+ Mercury Mail Transport System v4.52
+ FileZilla FTP Server 0.9.29
+ Webalizer 2.01-10
+ Zend Optimizer 3.3.0
+ eAccelerator 0.9.5.3 für PHP 5.2.8 (but not activated in the php.ini)


My php.ini setting (C:\xampp\apache\bin\php.ini) for register globals is OFF (register_globals = Off)

And my Joomla version is Joomla_1.5.20-Stable-Full_Package (that's mean 1.5 right?) . Everything is fine no problem as can running on my localhost unless if i try to login as user or admin i get this error:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\sukandaily\v1\administrator\components\com_vvisit_counter\helpers\datetime.php:27) in C:\xampp\htdocs\v1\libraries\joomla\session\session.php on line 539

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\sukandaily\v1\administrator\components\com_vvisit_counter\helpers\datetime.php:27) in C:\xampp\htdocs\v1\libraries\joomla\session\session.php on line 539


Thanxs
webxcrawler wrote:Ok. Now i can login as user & admin after i turn off Vinaora Visitors Counter plugin at Extensions > Plugin Manager > System - Vinaora Visitors Counter . My Vinaora Visitors Counter on Joomla frontpage still running & collecting visitor data. So what i'm thinking is, what's pro & con if i just turn off permanetly Vinaora Visitors Counter plugin?

Thanxs

protran
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Oct 24, 2010 6:07 pm

Re: Module Vinaora Visitors Counter

Post by protran » Sun Oct 24, 2010 6:34 pm

Hi! Vinaora Visitors Counter administrator,

I just installed Vinaora Visitors Counter (v2.0) on my new website. I have done many times test with IE and Firefox browsers togather and at different locations with different IP address to launch my website. When I launched website, the total counter hit was 3 times. On-line guest was increased 3. When I re-flashed browser. It hit two times. Online guest was increased 2 Please investigate this over estimated visitors number counter issue. Thanks.

User avatar
dhuelsmann
Joomla! Master
Joomla! Master
Posts: 19659
Joined: Sun Oct 02, 2005 12:50 am
Location: Omaha, NE
Contact:

Re: Module Vinaora Visitors Counter

Post by dhuelsmann » Sun Oct 24, 2010 8:18 pm

protran wrote:Hi! Vinaora Visitors Counter administrator,

I just installed Vinaora Visitors Counter (v2.0) on my new website. I have done many times test with IE and Firefox browsers togather and at different locations with different IP address to launch my website. When I launched website, the total counter hit was 3 times. On-line guest was increased 3. When I re-flashed browser. It hit two times. Online guest was increased 2 Please investigate this over estimated visitors number counter issue. Thanks.
It counts page hits not actual individuals.
Regards, Dave
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org

irdnsys
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Nov 26, 2010 5:11 pm

Re: Module Vinaora Visitors Counter

Post by irdnsys » Fri Nov 26, 2010 5:23 pm

Hi thegioiphatminh

Please I need your help in Right To Left Language , I tried to make changes you mentioned in your reply to DNG as counter shows the digits in revers !!

" Open [Joomla]/modules/mod_vvisit_counter/helper.php, go to line 252, and replace by
$content .= '<div style="text-align: center; dir: ltr;">';

but the helper.php for version 2.0.0 has no line number 252 & I you didn't mention the original line content !!

Thanks

calendarboom
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Nov 30, 2010 9:13 am

Re: Module Vinaora Visitors Counter

Post by calendarboom » Tue Nov 30, 2010 9:16 am

Hello

I have deleted tables in MSQL Database and now the Table seems to be empty - it´s wrong?


/What must be the value and function for table time,visits,guests, members, bots but now the visitor don´t save the number of visitors, every new day is the visitor with 0 value/.


Thx

bonline
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Tue Feb 05, 2008 7:45 pm

Re: STOP COUNTING BOTS

Post by bonline » Thu Dec 09, 2010 5:02 pm

can someone please show me how to block BOTS from showing to public and to stop them from being counted

xxsuna
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Nov 26, 2010 10:28 am

Re: Module Vinaora Visitors Counter

Post by xxsuna » Fri Jan 14, 2011 2:31 pm

Is there some alternative of visitor counter?

i mean this one definitely DON'T count visitors - it count admins, redactors etc., bots, facebook, twitter etc. clicks and another fake things + of course real visits.

It is running on my website for 3 days and every day is like 1600 visits no way that is true.

So i am asking for alternative? :pop

Kind of pity btw.

haqdl
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Jan 17, 2011 8:10 am

Re: Module Vinaora Visitors Counter

Post by haqdl » Mon Jan 17, 2011 8:21 am

xxsuna wrote:Is there some alternative of visitor counter?

It is running on my website for 3 days and every day is like 1600 visits no way that is true.
I got the same problem with v2.0. The number is growing so fast, it's not true.
I've let all setting as default (session lifetime = 15).
My site: http://www.dfashions.com.vn
Anyone can help?

Quang


Locked

Return to “Extensions for Joomla! 2.5”