vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Who was online today [available in english & german] (https://vborg.vbsupport.ru/showthread.php?t=34014)

SmEdD 05-30-2003 04:14 AM

Alright I installed it. It worked mint. Now it's a new day and nothing shows up and it's 0 visitors yet there have been like 20 visits. Oh and the record is still there. And the .php file dosn't show anything also.

SmEdD 05-31-2003 02:27 AM

To reduce this to one query use this modifacition.

Find:
PHP Code:

// today online hack begin 

Add after:
PHP Code:

    $tempupdate=$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'"); 

Find:
PHP Code:

$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'"); 

Replace with: (Do at both locations)
PHP Code:

  $tempupdate


AlexanderT 05-31-2003 03:13 AM

I dont think you will always save 1 query with that. Notice that both
PHP Code:

$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'"); 

are within conditional IFs which are not always true. Your modification, however, always runs that one query.

I could be wrong of course :)

SmEdD 05-31-2003 04:29 PM

Ya thoes ifs are pretty much aways gonna run. If they didn't the online today hack wouldn't.

SmEdD 05-31-2003 04:35 PM

Oh and neither have a else tag wich means they arn't a option

AlexanderT 06-01-2003 12:16 AM

SmEdD:

This doesn't make any sense. Just because there is no ELSE does not imply that the IF clause is always executed.

And fact is, it is not always executed. Only when the Who-Was-Online-List changes, the query is executed. Otherwise it is read from cache.

Your modification, however, always runs the query - even when it is not necessary.

Linus 06-02-2003 01:09 PM

I forgot how to change the colours of the users online (eg. admin get diff. colour) can anyone remind me how ? Thanks

Hostc 06-11-2003 02:35 AM

I don't know if this has been posted before but when I click on the Number of Active Users Today the onlinetoday.php page just comes up as a blank page?
useing the Version with usernames on extra site (onlinetoday.php)

I've double checked the code and haven't found anything wrong that I did during the installaion.

S.Shady 06-11-2003 05:06 AM

Works fine for me
you upload the php file to your forums dir if you used the file ?

Xube 06-12-2003 03:55 AM

Will this work for vBulletin 2.3.0? Is there an update that's compatible with 2.3.0?


All times are GMT. The time now is 09:32 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.01322 seconds
  • Memory Usage 1,736KB
  • 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
  • (5)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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