vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [VB3 RC3] Board Spent Time (https://vborg.vbsupport.ru/showthread.php?t=60488)

aloha 01-20-2004 12:10 AM

How would you exempt the moderators and admins from this?

Gio Takahashi 01-20-2004 12:15 AM

How often is the timer supposed to update?

Kentaurus 01-20-2004 12:33 AM

Quote:

Originally Posted by eXtremeTim
Thanks man i would really love to have it like that.

.txt updated and added one screenshot. It was a small change in effect :)

Quote:

How would you exempt the moderators and admins from this?
There are two ways to do it: you can either disable logging for the moderators and adminstrators (it would require further hacking), or just don't display it. If your administrator usergroup is 6 and your moderator's is 5 you can add a template conditional:

<if condition="$post[usergroupid] != 6 AND $post[usergroupid] != 5">
Your code here for printing the board spent time, $post[timespent]
</if>

Then you would only display the time spent in the board for non-moderators and administrators.

Quote:

How often is the timer supposed to update?
It keeps updating as long as you are browsing the board. Whenever you click on a hyperlink and browse another page it updates the time spent in the forum. If you don't have any activity in the forum in the same time setting that you have for your cookie expire options in the admin control panel then it stop recording the board spent time and whenever you log in/open the forum again it starts adding to the time again.

Gio Takahashi 01-20-2004 12:50 AM

I meant the post bit. on my forums, the timer has yet to update, everyone's timer says "< 1 sec"

eXtremeTim 01-20-2004 12:52 AM

Wicked dude. Any chance you can make an online leaderboard? Kinda like memberlist but shows user name posts and time online and is sorted by greatest time online?

Kentaurus 01-20-2004 12:54 AM

Quote:

Originally Posted by Gio Takahashi
I meant the post bit. on my forums, the timer has yet to update, everyone's timer says "< 1 sec"

Did you run the query in the instructions? (phpmyadmin or admincp)

Code:

alter table user add timespent int not null;
If you forget to run that query the forum doesn't give you any error, it just shows < 1 sec all the time.

MGM 01-20-2004 02:18 AM

nice hack! I used the one for vB2, ill use this for vB3 as well ;)

[high]* MGM clicks Install
[/high]

MGM out

Boofo 01-20-2004 04:11 AM

What if i just want to put this in the memberinfo template and nowhere else. Do I still need to addd all of the code?

Anarchy 01-20-2004 04:19 AM

A leader board would be great, i would love a leader board.!

Kentaurus 01-20-2004 08:24 AM

Quote:

Originally Posted by Boofo
What if i just want to put this in the memberinfo template and nowhere else. Do I still need to addd all of the code?

If you only want it in the memberinfo template you can skip the file modifications in showthread.php


All times are GMT. The time now is 09:49 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.01249 seconds
  • Memory Usage 1,739KB
  • 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_code_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