Author Topic: [MOD]More than more statistics  (Read 113661 times)

0 Members and 1 Guest are viewing this topic.

Offline Hallo2007

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: [MOD]More than more statistics
« Reply #45 on: June 18, 2007, 11:18:47 PM »
Hi, hab grad alles nach Anleitung gemacht, leider kommt bei mir keine Statistik. Die Mods habe ich nicht installiert, da dort steht nicht zwingend notwendig. Was genau könnte der Fehler sein?

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD]More than more statistics
« Reply #46 on: June 18, 2007, 11:29:29 PM »
... hab grad alles nach Anleitung gemacht ...

... offensichtlich nicht, denn sonst würde es funktionieren ...
... und ohne URL um sich dein Problem mal anzusehen (bei der mageren Problembeschreibung) geht es halt nicht ... ;)
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Fragezeichen

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: [MOD]More than more statistics
« Reply #47 on: June 20, 2007, 07:28:52 PM »
i also have installed both mods bevor,but when i insert the statistic i just can see the random image on a second place, nothing more.
im using 4images 1.7.4

Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: [MOD]More than more statistics
« Reply #48 on: June 30, 2007, 05:22:27 AM »
Hello,

I had had also this error.
You must place line:

require(ROOT_PATH.'includes/stats.php');

under this line:

include(ROOT_PATH.'includes/page_header.php');

set, then it folds marvelously.

Greet Darkness  :mrgreen:

I have also for a long time tried out to I the rausgefunden had. On some sides the line sits "page_header.php" somewhat more deeply, must search.


I know I should know this... but which file must we put this code in? I have been away from 4images for more than a year and have forgotten...

Thanks--

Robert
As long as I can finish my site before I die.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD]More than more statistics
« Reply #49 on: June 30, 2007, 12:25:27 PM »
@Robert aka AntiNSA2

... you must put this code in every page (php-file) you want to show the statistics ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline michl

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [MOD]More than more statistics
« Reply #50 on: July 27, 2007, 08:57:50 AM »
Hi,

I'm new to this, but i had the same problem with Users and Categories. I had to add

include(ROOT_PATH.'includes/page_header.php');

in

includes/stats.php

Now it works great!

Michl

Offline d1eter

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: [MOD]More than more statistics
« Reply #51 on: September 12, 2008, 06:33:58 AM »
sadly..,
I can't get it to work in 1.7.6 version...

doesnt' show anything at all.

 :cry:

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD]More than more statistics
« Reply #52 on: September 12, 2008, 11:59:28 AM »
sadly..,

... yes ... no link, no url, no error messages, no infos at all ...
... so there is no way for help ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline ashfaq

  • Full Member
  • ***
  • Posts: 128
    • View Profile
Re: [MOD]More than more statistics
« Reply #53 on: January 10, 2009, 05:30:45 PM »
Will anyone plz translate it to english as i have use google translator but some codes text is in other language so if you plz help..

Offline ashfaq

  • Full Member
  • ***
  • Posts: 128
    • View Profile
Re: [MOD]More than more statistics
« Reply #54 on: January 21, 2009, 03:21:11 PM »
Will anyone plz share english version of this mod ?

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD]More than more statistics
« Reply #55 on: January 21, 2009, 03:43:25 PM »
@ ashfaq

... for mod translation use this : Google-Translation ...
... and for code-translation in step 2 use this : ...
Code: [Select]
//------------------------------------------------ -----
//--- Statistics --------------------------------------
//------------------------------------------------ -----
$lang ['total_images'] = "Images:";
$lang ['total_categories'] = "Category:";
$lang ['users'] = "Members:";
$lang ['total_hits'] = "Hits:";
$lang ['total_votes'] = "Votes:";
$lang ['total_downloads'] = "Downloads:";
$lang ['total_comments'] = "Comments:";

$lang ['today_new_users'] ="Today:";
$lang ['yesterday_new_users'] = "Yesterday:";
$lang ['this_week_new_users'] = "This Week";
$lang ['last_week_new_users'] = "Last Week:";
$lang ['this_month_new_users'] = "This Month:";
$lang ['last_month_new_users'] = "Last Month:";
$lang ['since_begin_new_users'] = "Since Beginning:";

PS. ... google translation is a very fine tool ... ;)
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline ashfaq

  • Full Member
  • ***
  • Posts: 128
    • View Profile
Re: [MOD]More than more statistics
« Reply #56 on: February 03, 2009, 08:44:44 AM »
Na this mod is not working for me but only show ... then random image and again ... but nothing else, i dont know when i did everything right then why its not showing statistics ? i did the following steps...

1: First i make a new page by given code and name it : stats.php
2: For second step i add given code in lang/english/main.php at page end before ?>
3: At third step i add css code in my template style.css at page end
4: For Forth step i make a new file named stats_box.html  and put this file in my templates folder
5: Put this given code at my template home.html

So you see everything is ok then why its not showing stats ?

Plz notice that i didnt installed these codes that author mentioned.
Quote
- V @ no's Votes saved in DB
- effemmess´s Extension for Votes saved in DB - Extension for effemmess's Votes saved in DB
- effemmess´s Old votes 2 DB - Old effemmess's votes 2 DB

Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: [MOD]More than more statistics
« Reply #57 on: March 01, 2009, 10:34:55 AM »
I can only find one of the two mods here on the forum... is this mod still alive? where can I find the mods that need to be installed ? I tried the search already.....
As long as I can finish my site before I die.

Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: [MOD]More than more statistics
« Reply #58 on: March 06, 2009, 03:29:58 AM »
Mindestvoraussetzungen:
- 4images 1.7  Wink
erweiterte Voraussetzungen (nicht zwingend erforderlich aber sehr hilfreich!):

- v@no´s Votes saved in DB
This is here:
http://www.4homepages.de/forum/index.php?topic=6123.0


- effemmess´s Extension for Votes saved in DB
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Where is this mod????
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- effemmess´s Old votes 2 DB
this is here:
http://www.4homepages.de/forum/index.php?topic=6405.new#new



Thanks-
As long as I can finish my site before I die.

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Changelog:
  • Added better Code for Statistik-View (Step 5)
  • Bessere Anzeige der Statistiken hinzugefügt (Step 5)

:flag-de:
Hallo,
diese Mod basiert auf einen fertigen Code aus einem Arabischen Thread. Ich habe diesen nur etwas erweitert und an die Version 1.7.7 angepasst.

:flag-en:(Google Translate)
Hello,
This mod is based on a warrant from a code Arabian thread. I did this just to the expanded and adapted version 1.7.7.

Step 1

Open / Öffne: index.php
Search / Suche:
else {
  
$template "";
}
include(
ROOT_PATH.'includes/page_header.php');

Add after / füge darunter:
include(ROOT_PATH.'includes/stats.php'); 

Step 2

Open / Öffne: lang/YOUR-LANGUAGE/main.php
Add the End of File -above- / Füge am Ende der Datei -vor-
?>
This / Das ein
:flag-de:
//----------------------------------------------------- 
//--- Statistics -------------------------------------- 
//----------------------------------------------------- 
$lang['total_images']          = "Bilder:"
$lang['total_categories']      = "Kategorien:"
$lang['users']                 = "Mitglieder:"
$lang['total_hits']            = "Hits:"
$lang['total_downloads']       = "Downloads:"
$lang['total_comments']        = "Kommentare:";

$lang['today_new_users']       = "heute:";
$lang['yesterday_new_users']   = "gestern:";
$lang['this_week_new_users']   = "diese Woche:";
$lang['last_week_new_users']   = "letzte Woche:";
$lang['this_month_new_users']  = "diesen Monat:";
$lang['last_month_new_users']  = "letzten Monat:";
$lang['since_begin_new_users'] = "seit Anfang:";
                                                                  
$lang['today_new_votes']       = $lang['today_new_users'];      
$lang['yesterday_new_votes']   = $lang['yesterday_new_users'];  
$lang['this_week_new_votes']   = $lang['this_week_new_users']; 
$lang['last_week_new_votes']   = $lang['last_week_new_users']; 
$lang['this_month_new_votes']  = $lang['this_month_new_users'];
$lang['last_month_new_votes']  = $lang['last_month_new_users'];
$lang['since_begin_new_votes'] = $lang['since_begin_new_users'];

:flag-en:
//----------------------------------------------------- 
//--- Statistics -------------------------------------- 
//----------------------------------------------------- 
$lang['total_images']          = "Pictures:"
$lang['total_categories']      = "Categories:"
$lang['users']                 = "Members:"
$lang['total_hits']            = "Hits:"
$lang['total_downloads']       = "Downloads:"
$lang['total_comments']        = "Comments:";

$lang['today_new_users']       = "Today:";
$lang['yesterday_new_users']   = "Yesterday:";
$lang['this_week_new_users']   = "This Week:";
$lang['last_week_new_users']   = "Last Week:";
$lang['this_month_new_users']  = "This Month:";
$lang['last_month_new_users']  = "Last Month:";
$lang['since_begin_new_users'] = "Since Begin:";
                                                                  
$lang['today_new_votes']       = $lang['today_new_users'];      
$lang['yesterday_new_votes']   = $lang['yesterday_new_users'];  
$lang['this_week_new_votes']   = $lang['this_week_new_users']; 
$lang['last_week_new_votes']   = $lang['last_week_new_users']; 
$lang['this_month_new_votes']  = $lang['this_month_new_users'];
$lang['last_month_new_votes']  = $lang['last_month_new_users'];
$lang['since_begin_new_votes'] = $lang['since_begin_new_users'];


Step 3

Open / Öffne: templates/YOUR-TEMPLATE/home.html
Search / Suche
{endif random_image}
Add after / Füge danach ein
{stats}

Step 4
Download now the files from the ZIP file in your directory 4images / Lade nun die Dateien aus der ZIP-Datei in deinem 4images Verzeichnis

- include/stats.php
- templates/YOUR-TEMPLATE/stats_box.html

Step 5
Open / Öffne: templates/your-dein-template/stats_box.html
Ersetze mit / Replace with
Code: [Select]
<table width="150" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="20" colspan="2" class="head2"> <img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />Statistik</td>
                    </tr>
                    <tr>
                      <td colspan="2" class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td align="left" class="row1">{lang_total_images}</td>
                      <td align="right" class="row1"><B>{total_images}</B></td>
                    </tr>
                    <tr>
                      <td align="left" class="row2">{lang_total_categories}</td>
                      <td align="right" class="row2"><B>{total_categories}</B></td>
                    </tr>
                    <tr>
                      <td align="left" class="row1">{lang_total_users}</td>
                      <td align="right" class="row1"><B>{total_users}</B></td>
                    </tr>
                    <tr>
                      <td align="left" class="row2">{lang_total_hits}</td>
                      <td align="right" class="row2"><B>{total_hits}</B></td>
                    </tr>
                    <tr>
                      <td align="left" class="row1">{lang_total_downloads}</td>
                      <td align="right" class="row1"><B>{total_downloads}</B></td>
                    </tr>
                    <tr>
                      <td align="left" class="row2">{lang_total_comments}</td>
                      <td align="right" class="row2"><B>{total_comments}</B></td>
                    </tr>
                    <tr>
                      <td colspan="2" class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td height="20" colspan="2" class="head2"><img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />Neue User</td>
                    </tr>
                    <tr>
                      <td align="left" class="row1">{lang_today_new_users}</td>
                      <td align="right" class="row1"><B>{today_new_users}</B></td>
                    </tr>
                    <tr>
                      <td align="left" class="row2">{lang_yesterday_new_users}</td>
                      <td align="right" class="row2"><B>{yesterday_new_users}</B></td>
                    </tr>
                    <tr>
                      <td align="left" class="row1">{lang_this_week_new_users}</td>
                      <td align="right" class="row1"><B>{this_week_new_users}</B></td>
                    </tr>
                    <tr>
                      <td align="left" class="row2">{lang_last_week_new_users}</td>
                      <td align="right" class="row2"><B>{last_week_new_users}</B></td>
                    </tr>
                    <tr>
                      <td align="left" class="row1">{lang_this_month_new_users}</td>
                      <td align="right" class="row1"><B>{this_month_new_users}</B></td>
                    </tr>
                    <tr>
                      <td align="left" class="row2">{lang_last_month_new_users}</td>
                      <td align="right" class="row2"><B>{last_month_new_users}</B></td>
                    </tr>
                    <tr>
                      <td align="left" class="row1">{lang_since_begin_new_users}</td>
                      <td align="right" class="row1"><B>{total_users}</B></td>
                    </tr>
                  </table>

Demo: http://4images-aio.benny-boehnke.info/index.php
« Last Edit: October 15, 2009, 11:37:10 PM by Sumale.nin »