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)

Lesane 01-11-2002 06:43 PM

Great hack, i luv it :D Thanks

Martz 01-11-2002 06:57 PM

Quote:

Originally posted by genial
this is intended, because the members must not need to know how many invisible members logged in the board today. ;)
Well, the Currently Online Users figure includes invisible users when you are logged out, so it would be nice to keep it consistant. :)

genial 01-11-2002 07:11 PM

Quote:

Originally posted by Martz
Well, the Currently Online Users figure includes invisible users when you are logged out, so it would be nice to keep it consistant. :)
sorry about that, because in our board, the currently online users is modified to show invisible users for members as guests and so it is in our board consistant.

Mystics 01-11-2002 07:17 PM

Quote:

Originally posted by Martz
Well, the Currently Online Users figure includes invisible users when you are logged out, so it would be nice to keep it consistant. :)
You just have to edit the new template 'forumhome_todayloggedinusers':

Replace $todayonline with $numbertodayonline

Martz 01-11-2002 08:02 PM

Ahh great, worked it out. Thanks again. :)

Mystics 01-11-2002 08:58 PM

Quote:

Originally posted by eva2000
1. is it possible to have the list of usernames visited today in a popup linked to the Number of active users today text ? my list page would be too long with 200 - 500 currentyly active + the list of users visited today :eek:
OK, now I have finished the changes you wanted.

I have attached the Instructions and a new PHP-File in a ZIP File to this Posting. Please let me now if it's that, what you wanted.

Info: My attachment does not only contain the changes to the Original Hack....it's a complete new Hack, so it will be the best, you remove the other version of the hack.

[UPDATE]
I have forgotten something in onlinetoday.php (Moderators have not been highlighted), thanx to genial for the Fix!

I have replaced the Attachment with the new version.

[UPDATE2]
Max users and date are now showing correct.

[UPDATE3]
Fixed problem with the "Most Users"-Count
(Replace '$maxusers[2] = $todayonline;' with '$maxusers[2] = $numbertodayonline;' in index.php & onlinetoday.php)

[UPDATE4]
Fixed the Query within onlinetoday.php and index.php
(includes now the User's Timezone)

FWC 01-11-2002 09:44 PM

This is such a cool hack! :cool: I installed the new version with the screen for Who Was Online. I love it. I do have one small problem. The other admin and myself are showing up as bold and italic on that page. But, the moderator on the page isn't bold for some reason. I'll see if I can figure it out. But, any help would be appreciated. :)

I fixed it. I just added user group 7 to the or statement in the highlighting section in onlinetoday.php. :)

genial 01-11-2002 09:58 PM

Quote:

Originally posted by FWC
But, the moderator on the page isn't bold for some reason. I'll see if I can figure it out. But, any help would be appreciated. :)
sorry about mystics, he has forgotten the moderator-query in onlinetoday.php.

search for:
PHP Code:

if (!$usergroupdef['canwhosonline']) {
  
show_nopermission();


and place under:
PHP Code:

  $forummoderators=$DB_site->query('SELECT user.userid,user.username,moderator.forumid
                                  FROM moderator
                                  LEFT JOIN user
                                  ON (moderator.userid=user.userid)
                                  ORDER BY user.username'
);
  while (
$moderator=$DB_site->fetch_array($forummoderators)) {
    
$imodcache["$moderator[forumid]"][] = $moderator;
    
$mod["$moderator[userid]"] = 1;
  }
  
$DB_site->free_result($forummoderators);
  unset(
$moderator); 

but i have not tested this modification. ;)

Shenlong 01-11-2002 10:37 PM

Nice hack, I really enjoy it

Erwin 01-11-2002 10:44 PM

Great hack, works well!


All times are GMT. The time now is 12:58 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.01531 seconds
  • Memory Usage 1,749KB
  • 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_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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