The Joomla! Forum ™



Forum rules


Global Rules
Additional Rules for this forum <------- Please read before posting



Post new topic Reply to topic  [ 146 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
PostPosted: Wed Feb 03, 2010 12:17 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Dec 10, 2009 12:45 pm
Posts: 18
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?


Top
 Profile  
 
PostPosted: Wed Feb 03, 2010 12:24 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Dec 10, 2009 12:45 pm
Posts: 18
Even better: what to change for PHP4 is already in the helper.php file:

Find the code

Code:
   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:
   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.
Attachment:
PHP4_helper.zip


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Sun Feb 14, 2010 11:42 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Feb 14, 2010 11:28 pm
Posts: 13
Thanks :D:D:D

_________________
http://www.jigolocenter.i8.com
http://www.cenkreklamajans.i8.com


Top
 Profile  
 
PostPosted: Mon Feb 15, 2010 11:58 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Feb 15, 2010 9:13 am
Posts: 20
would love to exclude bots and my IP .. this way statistics are not occurate :(

_________________
Signature forum rules: viewtopic.php?f=8&t=65


Top
 Profile  
 
PostPosted: Sat Feb 20, 2010 5:08 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Feb 04, 2010 4:34 am
Posts: 3
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.


Top
 Profile  
 
PostPosted: Sun Feb 21, 2010 12:31 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Dec 10, 2009 12:45 pm
Posts: 18
TheDudeRulez, start with reading viewtopic.php?p=2024851#p2024851, who had the same prolem, in this thread until you find the message with a solution: viewtopic.php?p=2025543#p2025543.


Top
 Profile  
 
PostPosted: Sun Feb 21, 2010 3:03 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Feb 04, 2010 4:34 am
Posts: 3
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.


Top
 Profile  
 
PostPosted: Sun Feb 21, 2010 4:37 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Dec 10, 2009 12:45 pm
Posts: 18
TheDudeRulez,
or you just replace the file mentioned that is attached to my post...


Top
 Profile  
 
PostPosted: Sun Feb 21, 2010 5:23 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Feb 04, 2010 4:34 am
Posts: 3
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.


Top
 Profile  
 
PostPosted: Mon Feb 22, 2010 2:35 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri May 15, 2009 9:13 am
Posts: 4
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


Top
 Profile  
 
PostPosted: Thu Feb 25, 2010 9:50 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Feb 25, 2010 9:49 pm
Posts: 1
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>admin@vinaora.com</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


Top
 Profile  
 
PostPosted: Tue Apr 06, 2010 6:26 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Apr 06, 2010 6:17 pm
Posts: 1
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


Top
 Profile  
 
PostPosted: Sat Apr 17, 2010 7:37 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Aug 24, 2008 2:55 pm
Posts: 4
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?


Top
 Profile  
 
PostPosted: Thu Jun 17, 2010 3:58 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Jun 17, 2010 1:58 pm
Posts: 2
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


Top
 Profile  
 
PostPosted: Fri Jun 18, 2010 9:10 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Dec 10, 2009 12:45 pm
Posts: 18
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: viewtopic.php?p=1960395#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.


Top
 Profile  
 
PostPosted: Wed Jul 21, 2010 1:35 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Jul 21, 2010 1:26 pm
Posts: 2
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


Top
 Profile  
 
PostPosted: Thu Aug 19, 2010 2:13 pm 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Fri Apr 23, 2010 1:17 pm
Posts: 100
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,


Top
 Profile  
 
PostPosted: Tue Aug 24, 2010 12:39 am 
Joomla! Intern
Joomla! Intern

Joined: Fri Dec 08, 2006 8:46 am
Posts: 94
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.


Top
 Profile  
 
PostPosted: Tue Sep 07, 2010 1:22 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Sep 07, 2010 12:51 am
Posts: 1
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...


Top
 Profile  
 
PostPosted: Sun Oct 10, 2010 12:07 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Oct 10, 2010 12:01 pm
Posts: 1
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


Top
 Profile  
 
PostPosted: Fri Oct 15, 2010 4:23 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Oct 15, 2010 4:16 pm
Posts: 3
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.


Top
 Profile  
 
PostPosted: Sat Oct 16, 2010 9:03 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Oct 09, 2009 11:27 am
Posts: 15
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:
$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


Top
 Profile  
 
PostPosted: Thu Oct 21, 2010 3:51 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jun 28, 2010 4:45 pm
Posts: 30
I just found this thread. So i copy n paste back as what i ask on others topic board - viewtopic.php?f=471&t=558391&p=2293843#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


Top
 Profile  
 
PostPosted: Sun Oct 24, 2010 6:34 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Oct 24, 2010 6:07 pm
Posts: 1
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.


Top
 Profile  
 
PostPosted: Sun Oct 24, 2010 8:18 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sun Oct 02, 2005 12:50 am
Posts: 17557
Location: Omaha, NE
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
http://www.kiwaniswest.org
http://www.huelsmann.us


Top
 Profile  
 
PostPosted: Fri Nov 26, 2010 5:23 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Nov 26, 2010 5:11 pm
Posts: 1
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


Top
 Profile  
 
PostPosted: Tue Nov 30, 2010 9:16 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Nov 30, 2010 9:13 am
Posts: 1
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


Top
 Profile  
 
 Post subject: Re: STOP COUNTING BOTS
PostPosted: Thu Dec 09, 2010 5:02 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Feb 05, 2008 7:45 pm
Posts: 11
can someone please show me how to block BOTS from showing to public and to stop them from being counted


Top
 Profile  
 
PostPosted: Fri Jan 14, 2011 2:31 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Nov 26, 2010 10:28 am
Posts: 3
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.


Top
 Profile  
 
PostPosted: Mon Jan 17, 2011 8:21 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Jan 17, 2011 8:10 am
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 146 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next



Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group