Author Topic: [Mod] More Statistics for your visitors  (Read 200063 times)

0 Members and 1 Guest are viewing this topic.

Offline criola

  • Pre-Newbie
  • Posts: 4
    • View Profile
thanks
« Reply #15 on: January 14, 2003, 12:43:18 AM »
Thanks !!!!   :D

Cristina

Offline Biggi

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • http://www.bibodia.de/
[Mod] More Statistics for your visitors
« Reply #16 on: January 25, 2003, 01:40:52 PM »
Hi @ all,

I just tried to implement this mod and I followed each and every step, but it does not work. Nothing is shown at all  :cry:

Could it be possible, that the mod does not work with the script-version 1.7?

Has anybody managed it with this version?

I'm at a loss at this moment  :!:  :?:

Regards,

Biggi

Offline Biggi

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • http://www.bibodia.de/
[Mod] More Statistics for your visitors
« Reply #17 on: January 25, 2003, 01:46:49 PM »
Ha  :D

forget it. Just written, then checked and changed the index.php again and it works.

Thanks to Vraxor for this excellent mod!

Biggi

Offline sorestar

  • Newbie
  • *
  • Posts: 17
    • View Profile
[Mod] More Statistics for your visitors
« Reply #18 on: January 31, 2003, 03:53:43 PM »
this is an excellent MOD but however it would be great if the stats would be able to intergrate with the forum, in which users able to use tags such as {new_post} as well as {total_users} ; etc.

anyway would this MOD able to use while the intergration of database of phpbb and 4images are mixed?

Thanks
 :roll:

Offline Vraxor

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • http://tc-revolution.net
[Mod] More Statistics for your visitors
« Reply #19 on: January 31, 2003, 09:15:30 PM »
Hi Sorestar,

I have intergrated my site with PHPBB and it works fine.

Cheers,
Vraxor

Offline matthew

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • http://www.seclusion.org
[Mod] More Statistics for your visitors
« Reply #20 on: February 24, 2003, 11:40:37 PM »
I like this mod, thanks for the hard work Vraxor!

Question though, is it me or does do the stats not get updated when an admin clicks, downloads, etc?

Meaning that the counters are updated fine when regular users click but when an admin to the site clicks they don't update.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[Mod] More Statistics for your visitors
« Reply #21 on: February 24, 2003, 11:52:11 PM »
Quote from: matthew
I like this mod, thanks for the hard work Vraxor!

Question though, is it me or does do the stats not get updated when an admin clicks, downloads, etc?

Meaning that the counters are updated fine when regular users click but when an admin to the site clicks they don't update.

this is nothing to do with the mod. That how 4images works. Since admin probably spend alot of time on the site, why whould u like count him?
it's like to buy bread for dinner from your own bakery.... 8O  :wink:
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline matthew

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • http://www.seclusion.org
[Mod] More Statistics for your visitors
« Reply #22 on: February 25, 2003, 12:20:00 AM »
Thanks V@no.

Offline KleinerDrache

  • Newbie
  • *
  • Posts: 46
    • View Profile
[Mod] More Statistics for your visitors
« Reply #23 on: March 03, 2003, 08:07:10 PM »
Hi,

kann man den Mod auch noch so erweitern das angezeigt wird wieviele Besucher heute da waren??

Offline Maweryk

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
[Mod] More Statistics for your visitors
« Reply #24 on: March 06, 2003, 02:00:45 AM »
Kann man auch die Anzahl Neuer Bilder in die Statistik mit aufnehmen???!!!
Was müsste man dafür ergänzen???
Habe das bei V@no auf seiner Seite gesehen.

Gruß

Markus

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[Mod] More Statistics for your visitors
« Reply #25 on: March 06, 2003, 02:25:28 AM »
Quote from: KleinerDrache
Hi,

kann man den Mod auch noch so erweitern das angezeigt wird wieviele Besucher heute da waren??

there is something simular:
http://4homepages.de/forum/viewtopic.php?t=4043
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline ndj5

  • Pre-Newbie
  • Posts: 6
    • View Profile
stats on individual pictures in category view
« Reply #26 on: March 13, 2003, 10:39:36 PM »
vraxor,

I suck at codeing so i'm not sure where to put {total_users} {total_votes}{total_comments}{total_hits}{total_downloads} in my code to have individual stats come up for the pictures.  I'm not concearned about stats for the catagory as a whole, just the individual pictues in the category view (where 9 or 16 display at once).  Can you help me out?

ndj5

Offline ndj5

  • Pre-Newbie
  • Posts: 6
    • View Profile
stats on individual pictures in category view
« Reply #27 on: March 13, 2003, 10:41:14 PM »
vraxor,

I suck at codeing so i'm not sure where to put {total_users} {total_votes}{total_comments}{total_hits}{total_downloads} in my code to have individual stats come up for the pictures.  I'm not concearned about stats for the catagory as a whole, just the individual pictues in the category view (where 9 or 16 display at once).  Can you help me out?

ndj5

Offline rustynet

  • Addicted member
  • ******
  • Posts: 1.031
  • {if msg}{msg}{endif msg}
    • View Profile
    • rustynet.de
[Mod] More Statistics for your visitors
« Reply #28 on: March 14, 2003, 12:03:55 PM »
is it possible to showing this statistics at any page, not inside 4images?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[Mod] More Statistics for your visitors
« Reply #29 on: March 15, 2003, 12:15:16 AM »
Quote from: boti
is it possible to showing this statistics at any page, not inside 4images?
Easiest way to do so is create new stats.php with this code:
Code: [Select]
<?php
//-----------------------------------------------------
//--- Show number of Users ----------------------------
//-----------------------------------------------------
   
$sql "SELECT COUNT(*) as users
          FROM "
.USERS_TABLE."
          WHERE user_id <> "
.GUEST;
  
$row $site_db->query_firstrow($sql);

  
$total_users "".$lang['users']."<B> ".$row['users']."</B>\n";

//-----------------------------------------------------
//--- Hits --------------------------------------------
//-----------------------------------------------------
   
$sql "SELECT SUM(image_hits) AS sum
          FROM "
.IMAGES_TABLE;
  
$row $site_db->query_firstrow($sql);

  
$sum = (isset($row['sum'])) ? $row['sum'] : 0;
  
$total_hits "".$lang['total_hits']."<B> ".$row['sum']."</B>\n";

//-----------------------------------------------------
//--- Votes -------------------------------------------
//-----------------------------------------------------
   
$sql "SELECT SUM(image_votes) AS sum
          FROM "
.IMAGES_TABLE;
  
$row $site_db->query_firstrow($sql);

  
$sum = (isset($row['sum'])) ? $row['sum'] : 0;
  
$total_votes "".$lang['total_votes']."<B> ".$row['sum']."</B>\n";

//-----------------------------------------------------
//--- Downloads ---------------------------------------
//-----------------------------------------------------
   
$sql "SELECT SUM(image_downloads) AS sum
          FROM "
.IMAGES_TABLE;
  
$row $site_db->query_firstrow($sql);

  
$sum = (isset($row['sum'])) ? $row['sum'] : 0;
  
$total_downloads "".$lang['total_downloads']."<B> ".$row['sum']."</B>\n";

//-----------------------------------------------------
//--- Comments ----------------------------------------
//-----------------------------------------------------
   
$sql "SELECT SUM(image_comments) AS sum
          FROM "
.IMAGES_TABLE;
  
$row $site_db->query_firstrow($sql);

  
$sum = (isset($row['sum'])) ? $row['sum'] : 0;
  
$total_comments "".$lang['total_comments']."<B> ".$row['sum']."</B>\n";
?>
upload it anywhere on your server, then insert this in the .php file u want it be displayed:
Code: [Select]
<?php
define
('ROOT_PATH''./4images/');
include(
ROOT_PATH.'global.php');
include(
'PATH_TO_NEW_STATS/stats.php');
?>
change PATH_TO_NEW_STATS to .... path to the new stats.php file  :?
after that, u have 5 variables that content the stats:
    $total_users
    $total_hits
    $total_votes
    $total_downloads
    $total_comments[/list:u]
    u can use this:
Code: [Select]
echo $total_users;or this:
Code: [Select]
<?=$total_users?>to print them on screen.
« Last Edit: July 13, 2010, 03:10:58 PM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)