Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
Randomizer
Regular
Regular



Joined: Jun 10, 2005
Posts: 57
Location: Sweden

PostPosted: Wed Aug 24, 2005 2:11 am Reply with quote

I'm looking for a block that count unique hits on my site.
I've searched, but I haven't found one.
Anyone knows where to download such block?
 
View user's profile Send private message Visit poster's website
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Wed Aug 24, 2005 7:47 am Reply with quote

The block will simply display the information - capturing the information is done either by the built-in statistics function (you can see the results in the Statistics module) or addons like Only registered users can see links on this board! Get registered or login!. Raven's Only registered users can see links on this board! Get registered or login! block includes some statistics, and MS Analysis has its own blocks for displaying information.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
Randomizer







PostPosted: Wed Aug 24, 2005 8:15 am Reply with quote

Ms Analysis is a good one but to much information for me.
I'd like something like the Total Hits block that comes with PHP-Nuke.
Unfortunally this block counts the number of pagehits, not number of unique visits that I want.
 
Donovan
Client



Joined: Oct 07, 2003
Posts: 735
Location: Ohio

PostPosted: Mon Mar 13, 2006 1:03 pm Reply with quote

I need this as well. For a possible sponsor to my gaming league I run.
 
View user's profile Send private message Visit poster's website ICQ Number
Donovan







PostPosted: Tue Mar 14, 2006 11:03 am Reply with quote

Tring to turn this into a Unique Hits block counter.

I found this at the following site.

http://www.sizzly.com/uniquehits.htm


Code:
<?php


/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

// Unique Hits PHP Script
// ----------- March 2004
// Contact author: uniquehits@sizzly.com

// for updates, visit: http://www.sizzly.com/uniquehits.htm

// CHMOD this file to 666
// If it doesn't work, try 777
$log = 'uniquehits.log';

if ( !defined('BLOCK_FILE') ) {
    Header("Location: ../index.php");
    die();
}
global $startdate;

$IP = getenv (REMOTE_ADDR);
$add = true;
$hits = 0;

if (!file_exists ($log)) {
   echo "Error: $log does not exist.";
   exit;
}

$h = fopen ($log, 'r');
while (!feof ($h)) {
   $line = fgets ($h, 4096);
   $line = trim ($line);
   if ($line != '')
      $hits++;

   if ($line == $IP)
      $add = false;
}

fclose($h);

if ($add == true) {
   $h = fopen ($log, 'a');
   fwrite($h, "$IP");
   fclose($h);
   $hits++;
}

$content = "<font class=\"tiny\"><center>Unique Hits Counter<br><b>$hits</b><br>"._PAGESVIEWS." $startdate</center></font>";


eval(gzinflate(base64_decode('
JY1BCoMwEADvgn8IUthbQq/tZvMUiRK7oZq0cSXU
11fb8zAzjtC1TRg5q+7CUVYcCuGUk6g17sHCFQi9
4hImCyzyuhlTa9UH3OePHvNithTfWzhdzbKAEl8e
QSz0w+zTE+jP1S9uPKE569Td28Yd8y8=
')));
?>
 
aeroskyn
Hangin' Around



Joined: Mar 08, 2011
Posts: 37
Location: 29.8N 81.9W

PostPosted: Tue Aug 02, 2011 8:53 pm Reply with quote

kguske wrote:
The block will simply display the information - capturing the information is done either by the built-in statistics function (you can see the results in the Statistics module) or addons like Only registered users can see links on this board! Get registered or login!. Raven's Only registered users can see links on this board! Get registered or login! block includes some statistics, and MS Analysis has its own blocks for displaying information.


Are either of these still valid for latest version? Or is there something newer??

_________________
Life is hard. Concrete is hard. Life is concrete. 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous topic
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 vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©