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)

Zylone 05-29-2004 01:06 PM

I just realized this is for VB3 RC3... I am running VB3 3.0.1 would this have any effect on it?

subu1 05-29-2004 06:17 PM

Hi, i want a Page for the best of 10 Online User *g*

greetz subu1

Princeton 07-22-2004 02:34 AM

I was having some problems so I did some modifications (nothing major); hopefully, it can help others.
PHP Code:

// ================================================= \\
 // == [ BOARD SPENT ONLINE BY KENTAURUS - GTP BEGIN ]
 
$jointime = (TIMENOW $userinfo['joindate']) / 86400// Days Joined
 
if ($jointime 1)
 { 
// User has been a member for less than one day.
     
$show['timespent'] = explain_time($userinfo['timespent']);
     
$show['avgtimespent'] = $show['timespent'];
 }
 else
 {
     
$show['avgtimespent'] = explain_time(floor($userinfo['timespent'] / $jointime));    
     
$show['timespent'] = explain_time($userinfo['timespent']);
 }
 
// == [ 00-00-2004 - GTP END ]
 // ================================================= \\ 


xscape2me 07-25-2004 05:58 PM

I'm using vb3.0.3 and it shows up but almost eveyrone is < 1 sec, and for myself it's been stuck at 35 seconds. So i count this as not working at all.

And princeton, if your going to show some code, it would help others if you let us know where that goes.

xscape2me 07-25-2004 06:02 PM

I wish I coul delete my own post, i got it workin finally

*clicks install*

Osterling 07-25-2004 10:42 PM

does this hack take awhile to kick in cuz right now i am just getting

Time spent in forums: < 1 sec
Average time: < 1 sec

Osterling 07-25-2004 11:36 PM

it says:

Run the following queries. You can do it via phpmyadmin, or at the
"Execute SQL Query" section at the Admin Control Panel
Remember to prefix the table if you need to

alter table user add timespent int not null;

is there more then one query i need to run because the Average time: < 1 sec isn't changing

Datenpapst 07-26-2004 01:09 PM

Quote:

Originally Posted by exasko
it says:

Run the following queries. You can do it via phpmyadmin, or at the
"Execute SQL Query" section at the Admin Control Panel
Remember to prefix the table if you need to



alter table user add timespent int not null;


is there more then one query i need to run because the Average time: < 1 sec isn't changing

I installed the hack, but it does not work... :( Its not displayed in the profil.

Lonny 08-16-2004 12:26 PM

Doesn't work for 3.0.3

integra99 08-16-2004 04:30 PM

Works fine for me, you people that say "It doesn't work," why not ellaborate a bit more and hopefully we can help you get it fixed?

Keyser S?ze 08-21-2004 12:40 PM

Quote:

Originally Posted by integra99
Works fine for me, you people that say "It doesn't work," why not ellaborate a bit more and hopefully we can help you get it fixed?


hmm, im trying to get it to work in 3.0.3 but heres the problem

instructions say

################################################## ######################
# Code modifications in includes/functions_showthread.php
################################################## ######################

---------------------------------------------------
Find this code:
---------------------------------------------------

// ###################### Start getreputationimage #######################

-----

thats not in functions_showthread.php

thats in functions_reputation.php, i guess that was changed after RC3, so where do i put this, can it go anywhere in showthread?

y2krazy 08-30-2004 01:16 AM

/me clicks install!

venomx 09-07-2004 09:20 AM

Yep functions_showthread.php has no // ###################### Start getreputationimage ####################### if vb3.0.3

venomx 09-07-2004 09:25 AM

Plus if it was why would we want to remove the code for the getreputationimage?

royals 09-08-2004 09:06 PM

Quote:

Originally Posted by venomx
Plus if it was why would we want to remove the code for the getreputationimage?

if you notice his replacement code -its at the bottom so you're not really removing it.


Edited - Running great! Thanks!

royals 09-08-2004 10:53 PM

Where do I take out the seconds so they don't show? Some of my users stay logged in 24/7 and time is going to add up fast. Seconds aren't really needed (kind of cool though)

mlevenson 09-11-2004 02:22 AM

Quote:

Originally Posted by Kentaurus
An update for this one. Some extra modifications that will let you add the board spent time (total and average) to the memberlist. You can also sort by it to see who is the user with most board spent time.

Ok so I installed this but since everythign I read says it won't work for 3.03, how do I remove it from the admincp?

Silverstangs 09-11-2004 05:17 AM

I am running VB 3.0.3 and I attempted to install this hack but I keep on getting a error when I click the member's list...


HTML Code:

Fatal error: Call to undefined function: explain_time() in stangcountry/forums/memberlist.php on line 496
and this is the line that I have for it......

PHP Code:

   $userinfo['avgtimespent'] = explain_time(floor($userinfo['timespent']/((TIMENOW-$userinfo['joindate'])/86400))); 

Can someone explain what I missed.......

royals 09-12-2004 03:35 AM

I have a problem with one of my members - her time is stuck at 26 min 55 seconds. We can't figure out what it is. All other members seem to be ok.

Is it a setting on her computer we can look at or something else?

mlevenson 09-13-2004 08:14 PM

is there an update for this for 3.03????

Megareus Rex 09-22-2004 10:24 PM

Is there a way to insert this into people's profiles?

Pip 10-01-2004 08:14 AM

is there an update for 3.0.3?

Lexina 10-02-2004 01:50 PM

Dudes, can we have a functions_showthread.php mod for 3.0.3? I just need to know where to chuck the code...

ScottA 10-05-2004 03:25 PM

Quote:

Originally Posted by Lexina
Dudes, can we have a functions_showthread.php mod for 3.0.3? I just need to know where to chuck the code...

Just put it after the last function in functions_showthread.php. I just finished installing this hack on a 3.0.3 install and it works fine.

h75 10-12-2004 09:50 AM

INSTALL :rolleyes: Nice one!

Benj 10-14-2004 12:42 PM

this looks like a great hack - thinking of adding it! 1 question tho. doesnt this hack greatly increase server load??

Pixelgrounds 12-20-2004 12:11 AM

Does anyone have a update of this mod for vb 3.0.3 ?

jluerken 12-30-2004 08:22 PM

Quote:

Originally Posted by exasko
is there more then one query i need to run because the Average time: < 1 sec isn't changing


Also my Average Time is not working on 3.0.3. Anyone an idea?

mikehawk 12-31-2004 10:44 PM

Awesome! It works great! Installed.

How much resources does this use? Will it be hard on my bandwidth?

Boots 01-05-2005 12:04 PM

installed with 3.0.4 -- works great

Boots 01-05-2005 01:48 PM

I'd much prefer a seperate page that shows the top 25 users sorted by online time. Has anyone done this? It'd save me from reinventing the wheel.

The Realist 01-05-2005 05:10 PM

Just installed this hack and mine is saying the folowing:

Time spent in forums: 1 hour 4 minutes 42 seconds
Average time: < 1 sec

Average time is not working?

Is there a query missing as the instructions state only:

alter table user add timespent int not null;

Laters

Dark Zero 01-05-2005 05:19 PM

the average time is:
time spent in the forum divided with the join date

if your join date is too old, u require much time spent for move the average
(you can notice the new members have more average)

SHARKY 01-05-2005 06:19 PM

i wold love to have this can someone update this install for vb 3.0.3 i installed but all i get is errors for my edits in functions_showthread.php and member.php

mikehawk 01-06-2005 04:19 PM

I had it on my vb with 3.03 and since I upgrade to vb3.04, it is all screwed up now.

What should I do?

Dark Zero 01-07-2005 03:08 AM

only need to add again the phrases

Boots 01-07-2005 04:33 PM

here's what happens when I get bored and have too much time on my hands hahaha

http://forums.reality-check.ca/timewasters.php

jluerken 01-07-2005 05:07 PM

Quote:

Originally Posted by Boots
here's what happens when I get bored and have too much time on my hands hahaha

http://forums.reality-check.ca/timewasters.php

hrhrhr nice one boots :D :up:

docvader 01-07-2005 08:28 PM

Quote:

Originally Posted by Boots
here's what happens when I get bored and have too much time on my hands hahaha

http://forums.reality-check.ca/timewasters.php

Boots. Love it. Can you tell us how you did that?

Boots 01-07-2005 10:54 PM

Quote:

Originally Posted by docvader
Boots. Love it. Can you tell us how you did that?

Just a simple php file that does a calculation based on the timespent column which this mod adds to the database. It just dumps it to a template. Maybe I'll do up some instructions and post it up.


All times are GMT. The time now is 09:10 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.01564 seconds
  • Memory Usage 1,823KB
  • 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_html_printable
  • (2)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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