vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=139)
-   -   [release] java stat (https://vborg.vbsupport.ru/showthread.php?t=85714)

Arabs Emperor 12-17-2002 10:00 PM

[release] java stat
 
this is java stat it's good and take from all forums stat

also you should put this

topposter code in phpinclude
PHP Code:

if (strpos($_SERVER['PHP_SELF'], 'index.php') != false)
{
$topposters=$DB_site->query_first("SELECT username,posts,userid FROM user ORDER BY posts desc LIMIT 1");
$toptstarter=$DB_site->query_first("SELECT COUNT(*) AS count,postuserid,postusername FROM thread GROUP BY postuserid ORDER BY count DESC LIMIT 1");

if (
strpos($_SERVER['PHP_SELF'], "index.php") != false)
{
    
$result $DB_site->query("SELECT SUM(views) AS totalviews FROM thread");
    
$totalviews $DB_site->fetch_array($result);
    
$totalviews number_format($totalviews['totalviews']);


//
Converted to work with phpinclude by Anime-loo, hack by Lesane
//
Total Thread Views
by filburt1
---------------------------------------
demo :- http://www.freewebz.com/arabse/demo_vbt.htm
backgroun:- images/back1.jpg
you can used this http://www.freewebz.com/arabse/back1.jpg
---------------------------------------
i put the code in Attach
just put it any where in forumhome

my regards

sory for my bad english *_*

filburt1 12-18-2002 04:35 PM

You basically combined the two mods? There's some optimization that can be done (the two FROM thread queries can be combined). Also the second strpos... doesn't need to be there :)

filburt1 12-18-2002 04:36 PM

Almost forgot: please post that PHP code in its own text file to avoid breaking the page layout here :)

Brad 12-18-2002 05:08 PM

Quote:

Also the second strpos... doesn't need to be there
If anyone dosent know what hes talking about, use this.

if (strpos($_SERVER['PHP_SELF'], 'index.php') != false)
{
$topposters=$DB_site->query_first("SELECT username,posts,userid FROM user ORDER BY posts desc LIMIT 1");
$toptstarter=$DB_site->query_first("SELECT COUNT(*) AS count,postuserid,postusername FROM thread GROUP BY postuserid ORDER BY count DESC LIMIT 1");
//start second mod
$result = $DB_site->query("SELECT SUM(views) AS totalviews FROM thread");
$totalviews = $DB_site->fetch_array($result);
$totalviews = number_format($totalviews['totalviews']);
}

Brad 12-18-2002 05:20 PM

Also, people that wish to release my mods as part of there please pm me about it frist, i really dont mind but i like to know. 99.9% of the time ill always say yes, but check with me frist.

Arabs Emperor 12-18-2002 05:24 PM

oh .................................................. ..!!

imported_khaledtrm 12-18-2002 11:52 PM

very nice

Arabs Emperor 12-20-2002 08:33 AM

thanks khaledtrm *_*

imported_msu 12-20-2002 09:10 PM

great work Arabs Emperor

thanx :)

Arabs Emperor 12-20-2002 11:40 PM

thanks msu


All times are GMT. The time now is 01:54 PM.

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.03323 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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