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

0 Members and 1 Guest are viewing this topic.

Offline callimero

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: [Mod] More Statistics for your visitors
« Reply #60 on: May 12, 2005, 02:45:37 PM »
hallo,
habe glaube ich alles so gemacht wie beschrieben, bekomme aber auf meiner seite fehlermeldungen www.netzpfosten.de und dann auf fotos.

was habe ich falsch gemacht ?

Offline callimero

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: [Mod] More Statistics for your visitors
« Reply #61 on: May 12, 2005, 03:09:10 PM »
hmmm......habe es jetzt nochmal gemacht. jetzt sind die fehlermeldungen weg, aber man sieht die statistiken auch nicht ?!

Offline bikoo

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [Mod] More Statistics for your visitors
« Reply #62 on: May 29, 2005, 09:07:07 AM »
thnx alooot its work wiz me 100%  :D

Offline jamstave

  • Newbie
  • *
  • Posts: 49
    • View Profile
Re: [Mod] More Statistics for your visitors
« Reply #63 on: June 10, 2005, 06:49:26 AM »
Hi..I want to add some more statistics in my statistics details, please help me to do like this.

Total Votes: 2411
Total Members: 957
Total Hits: 2065645
Total Images: 16487
Total Categories:  246
Total Downloads: 111766

my code like this

{total_votes}<br>
{total_users}<br>
{total_hits}<br>
{total_images}br>
{total_categories}<br>
{total_downloads}

My statistics show's like this

Total Votes: 281
Total Members: 97
Total Hits: 10645
887
26
Total Downloads: 1856

Please help me to add Total Images and Total Categories.

Jamstave.

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
Re: [Mod] More Statistics for your visitors
« Reply #64 on: June 10, 2005, 06:56:24 AM »
a good start would be if u showed us what is the code u use for {total_images} and {total_categories} tags
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 jamstave

  • Newbie
  • *
  • Posts: 49
    • View Profile
Re: [Mod] More Statistics for your visitors
« Reply #65 on: June 10, 2005, 07:25:29 AM »
Hi..V@no thanks for the reply and i didn't edit any php code i just put this tag({total_images},{total_categories) in the home.html
I got that tag from main.php
$lang['site_stats'] = "<b>{total_images}</b> images in <b>{total_categories}</b> categories.";

Jamstave.

Offline DreamStatic

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [Mod] More Statistics for your visitors
« Reply #66 on: June 28, 2005, 05:56:02 AM »
Okay, been trying to get this to work properly. And I am not having much luck. Does this mod work with 1.7.1? I have followed the instructions again and again. Thought maybe it was the 1.7.1 version that was causing the trouble. Thanks so much.

Offline Mixi

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [Mod] More Statistics for your visitors
« Reply #67 on: August 10, 2005, 02:46:51 AM »
Does this work with 1.71 ? or do I have to change a different file?

Offline artpics

  • Full Member
  • ***
  • Posts: 173
    • View Profile
    • my site
Re: [Mod] More Statistics for your visitors
« Reply #68 on: August 10, 2005, 03:16:37 AM »
Does this work with 1.71 ? or do I have to change a different file?

yes it does work with V1.71

Offline Mixi

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [Mod] More Statistics for your visitors
« Reply #69 on: August 10, 2005, 09:36:52 AM »
This worked perfect for what I wanted. thanks

Offline Mixi

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [Mod] More Statistics for your visitors
« Reply #70 on: August 11, 2005, 02:18:53 AM »
Everything seemed to work fine until I noticed the total image hits, it only gives me the hits for the top 5 categories not the entire site.

Heres my line if it will help.
http://www.757lab.com/Wallpapers

Offline Mixi

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [Mod] More Statistics for your visitors
« Reply #71 on: August 12, 2005, 01:53:04 AM »
Plz can somebody help, cuz its only the total hits for the 5 top images and not all of the images. Plz help

TheOracle

  • Guest
Re: [Mod] More Statistics for your visitors
« Reply #72 on: August 15, 2005, 11:33:20 PM »
Since the category votes is now developped :

http://www.4homepages.de/forum/index.php?topic=9297.0

and can be customized with this one - this is what you have to do for those who did installed it :

// Installation step :

In your stats.php file,

find :

Quote

//-----------------------------------------------------
//--- 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";
 
 $site_template->register_vars("total_votes", $total_votes);
unset($total_votes);


replace with :

Code: [Select]

//-----------------------------------------------------
//--- Image 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";
 
 $site_template->register_vars("total_votes", $total_votes);
unset($total_votes);

//-----------------------------------------------------
//--- Category Votes -------------------------------------------
//-----------------------------------------------------
$sql = "SELECT SUM(cat_votes) AS sum
         FROM ".CATEGORIES_TABLE;
 $row = $site_db->query_firstrow($sql);

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


Then, in your template, simply add : {total_cat_votes} and you'll be able to see your total cat votes results. ;)

TheOracle

  • Guest
Re: [Mod] More Statistics for your visitors
« Reply #73 on: September 03, 2005, 10:49:43 PM »
For users who installed this MOD :

http://www.4homepages.de/forum/index.php?topic=9567.0

Follow the steps below if you wish to combine it with the More Stats MOD.

In your includes/stats.php file,

find :

Quote

//-----------------------------------------------------
//--- 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";

 $site_template->register_vars("total_hits", $total_hits);
unset($total_hits);


add below :

Code: [Select]

//-----------------------------------------------------
//--- Profile Hits ------------------------------------
//-----------------------------------------------------
$sql = "SELECT SUM(profile_hits) AS sum
         FROM ".USERS_TABLE;
 $row = $site_db->query_firstrow($sql);

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

 $site_template->register_vars("profile_hits1", $profile_hits);
unset($profile_hits);


Then, in your current template,

add this tag :

Code: [Select]

{profile_hits1}


as part of the others.

It should work. ;)

Offline TomYork

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: [Mod] More Statistics for your visitors
« Reply #74 on: September 15, 2005, 06:52:43 AM »
:arrow: How can I view the number of images and categories in this stats system :?:oops: :mrgreen:
* La prueba más clara de la sabiduría es una alegría continua...*