vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   NewStatistikHack 1.1.0 [German] (https://vborg.vbsupport.ru/showthread.php?t=41309)

Afterburner 07-22-2002 09:32 AM

ok guys I need your help for the english version, please check these words:

Quote:

Folgende Informationen werden in der Statistik angezeigt:

-- Stats of the Day
* Date
* New Threads
* New Posts
* Private Messages
* Max. Online-User
* Active User
* New Users

-- Server-Statistic

-- Today on board

-- Top 10 Posters
* Rank
* Username
* Posts

-- Top 10 Posters of the last 30 Days
* Rank
* Username
* Posts

-- Top 10 Posters of the last 24 hours
* Rank
* Username
* Posts

-- Top 10 viewed Threads
* Rank
* Topic
* Views

-- Top 10 replied Threads
* Rank
* Topic
* Replies

-- Statistic
* Active Members
* Active posting in %
* 0-Posters
* Registered since start
* The newest Member
* Most users ever online
* Record date
* Record time

-- Member-Statistic
* Currently Active Users
* Currently Active Members
* Currently Active Guests
* Currently Active Ghosts

-- Crew-Statistic
* Moderators
* Super-Moderators
* Administrators

-- Board-Statistic
* Categories
* Boards
* Usergroups
* Userranks
* Attachments
* Polls
* Using of the search

-- Posting-Statistic
* Posts activ
* Threads activ
* Posts posted
* Threads posted
* Sticky Threads
* Clodes Threads
* Moved Threads
* Views of all posts
* Threads without answers

-- Private Messages
* Private Messages activ
* Total send
* unread
* only read
* read and replied

-- Average-Statistic
* Posts per User
* Threads per User

-- Picture-Statistic
* Smilies
* Board-Avatars
* User-Avatars
* Styles

-- Database-Statistic
* MySQL Version
* Usage of Database

-- Top10 Referals

-- last 10 search-words

**********************************************

you can disable this funktions in the newstatistik.php file:
* Statistic for guests
* Top10 Referals
* Top10 Posters
* Top 10 Posters of the last 30 Days
* Top 10 Posters of the last 24 hours
* Top 10 viewed Threads
* Top 10 replied Threads
* Today on board
* Server-Statistic
* last 10 search-words
* disable board of your choise for implementation in the Top10 (Posts/Views)


--------------

The Administrator has disabled the feature.


--------------


[NAME OF YOUR BOARD] server is a
tell me if someone is spelled wrong


Also check for mistakes in the install instructions:

Quote:

NewStatistikHack 1.2.0e
written by Afterburner (webmaster@the-afterburner.de)
idea and similar version by (Maarc 1230123@mail.ru)


remember: - please make a backup of your database and the files.
- you use this hack of your own risk
- you are not allowed to remove the copyright of this hack
- you are not allowed to upload the hack to another site without my permission

please upload/download php files in ASCII Mode and the images in BINARY Mode

1. ********* install-newstatistik.php **********

- upload the install-newstatistik.php to your admin folder (login before) and open this file in your browser
after this delete the file.

2. ********* newstatistik.php ******************

- upload the newstatistik.php file to your board folder

Information:
This hack use the custom permissions of your board for each membergroup
I mean this in your control panel:
* Red: using custom permissions for this forum
the blue one (Blue: using custom permissions inherited from parent forum) will not insolved at the moment.
But you can permit forums from the top10 displays, you will find an marked place to modifiy this in the
newstatistik.php file.
There are also marked places for some other options where you can disable some displays, more information in the
Info.txt file


3. ********* images **************************

- upload the whole statistik folder (not only the files in it)) to your images folder.

4. ********* newreply.php **********************

above:

indexpost($postid,0);

insert this code:

// Afterburner
$curtime = time();
$date_today = getdate($curtime);
$time_today=mktime(0,0,0,$date_today[mon],$date_today[mday],$date_today[year]);
$res1 = $DB_site->query("UPDATE afterburner_stat SET newposts = newposts+1 WHERE time = '$time_today'");
// Afterburner


5. ********* global.php ************************

above:

// figure out the chosen style settings

insert this code:

// Afterburner
$curtime = time();
$date_today = getdate($curtime);
$time_today=mktime(0,0,0,$date_today[mon],$date_today[mday],$date_today[year]);
$currentstat = $DB_site->query_first("SELECT * FROM afterburner_stat WHERE time='".$time_today."'");
if(!$currentstat[time]) $res1 = $DB_site->query("INSERT INTO afterburner_stat (time) VALUES ('$time_today')");
// besuchte Mitglieder werwarda
if($bbuserinfo['userid']) {
$schonda = $DB_site->query_first("select * FROM afterburner_sessions_day WHERE userid='".$bbuserinfo['userid']."'");
if(!$schonda[userid]){
$res1 = $DB_site->query("UPDATE afterburner_stat SET memberson = memberson+1 WHERE time = '$time_today'");
}
}
// maximale gleichzeitige Besucher mit Uhrzeit
$user = $DB_site->query_first("SELECT COUNT(*) as anzahl FROM session WHERE lastactivity >= '".(time()-$cookietimeout)."'");
if($user[anzahl]>$currentstat[maxuseron]) $DB_site->query("UPDATE afterburner_stat set maxuseron='$user[anzahl]', maxuserontime='$curtime' WHERE time = '$time_today'");

$res1 = $DB_site->query("DELETE FROM afterburner_sessions_day WHERE time<'".$time_today."'");
if($bbuserinfo['userid']){
$row = $DB_site->query_first("select * FROM afterburner_sessions_day WHERE userid='".$bbuserinfo['userid']."'");
if(!$row[userid]) {
$res1 = $DB_site->query("INSERT INTO afterburner_sessions_day VALUES('".$bbuserinfo['userid']."', '".$curtime."')");
}
}

// Afterburner


6. ********* newthread.php *************

below:

$threadid=$DB_site->insert_id();

insert this code:

// Afterburner
$curtime = time();
$date_today = getdate($curtime);
$time_today=mktime(0,0,0,$date_today[mon],$date_today[mday],$date_today[year]);
$res1 = $DB_site->query("UPDATE afterburner_stat SET newthreads = newthreads+1 WHERE time = '$time_today'");
$res2 = $DB_site->query("UPDATE afterburner_stat SET newposts = newposts+1 WHERE time = '$time_today'");
// Afterburner

7. *********** private.php *************

above:

// enhanced
if ($prevmessageid) {

insert this code:

// Afterburner
$curtime = time();
$date_today = getdate($curtime);
$time_today=mktime(0,0,0,$date_today[mon],$date_today[mday],$date_today[year]);
$res1 = $DB_site->query("UPDATE afterburner_stat SET newpms = newpms+1 WHERE time = '$time_today'");
// Afterburner


8. ************ register.php ************

below:

$DB_site->query("INSERT INTO userfield $userfieldsnames VALUES ($userid$userfields)");

insert this code:

// Afterburner
$curtime = time();
$date_today = getdate($curtime);
$time_today=mktime(0,0,0,$date_today[mon],$date_today[mday],$date_today[year]);
$res1 = $DB_site->query("UPDATE afterburner_stat SET newregs = newregs+1 WHERE time = '$time_today'");
// Afterburner

9. ********** create a template *********

create a new template with this name: stat
insert the code from this file (you can find this file in the template folder of this hack):
stat.txt

10. ********** create a template *********

create a new template with this name: stats_head
insert the code from this file (you can find this file in the template folder of this hack):
stats_head.txt

11. ********** create a template *********

create a new template with this name: stats_table_threads
insert the code from this file (you can find this file in the template folder of this hack):
stats_table_threads.txt

12. ********** create a template *********

create a new template with this name: stats_table_threads1
insert the code from this file (you can find this file in the template folder of this hack):
stats_table_threads1.txt

13. ********** create a template *********

create a new template with this name: stat_daybit
insert the code from this file (you can find this file in the template folder of this hack):
stat_daybit.txt

14. ********** create a template *********

create a new template with this name: stats_head1
insert the code from this file (you can find this file in the template folder of this hack):
stats_head1.txt

15. ********** create a template *********

create a new template with this name: stats_head2
insert the code from this file (you can find this file in the template folder of this hack):
stats_head2.txt

16. ********** online.php *****************

below:

case 'index.php':
$userinfo[activity] = 'index';
break;

insert this code:

// Afterburner
case 'newstatistik.php':
$userinfo[activity] = 'newstatistik';
break;
// Afterburner

above:

case 'online':
$userinfo[where]

insert this code:

// Afterburner
case 'newstatistik':
$userinfo[where] = "<a href='newstatistik.php?s=$session[sessionhash]'>Statistic</a>";
break;
// Afterburner



That's all
Have fun
Bye
Afterburner

Afterburner 07-23-2002 07:48 AM

nobody want to help me ?

Xenon 07-23-2002 08:55 AM

i think my english is just as good as yours, so i don't see something wrong, but i'm not native english speaker

Chris M 07-23-2002 10:50 AM

-- Posting-Statistic
* Posts activ
* Threads activ

should have an "e" on the end of "active"...

Other than that minor change, everything is good - I can understand it without you changing anything:)

And If I can, everyone else can:)

Great work!

Satan

Afterburner 07-23-2002 12:42 PM

here is the english version 1.2.0e
https://vborg.vbsupport.ru/showthrea...threadid=41421

Afterburner 07-23-2002 12:47 PM

her is the new german version 1.2.0
https://vborg.vbsupport.ru/showthrea...threadid=41422

Please don't reply to the thread, use the new threads

Xenon 07-23-2002 02:44 PM

you can close the thread after betatesting is over by yourself ;)

Afterburner 07-23-2002 02:58 PM

thx, will do that


All times are GMT. The time now is 02:18 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01064 seconds
  • Memory Usage 1,778KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete