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)
-   -   Total Time Online Hack v1.0 (https://vborg.vbsupport.ru/showthread.php?t=42864)

D. Hollingworth 09-04-2002 09:34 AM

Quote:

Originally posted by Minifreunde
Hello G-Force!!
First Thankx for this great Hack. But theres a Problem with it.
Everytime i try to use the "next" Link in the Navigation of the "timeonline" i get a blank page. When i use the reload-Button the site is there. After this it works for 2-3 Klicks and then i get a white page. The same if i use the backlink in the "Forum-Navigation"....:confused:
I promised i make all youre Instruction says and i don?t see any error in my installation. Ok, i get that "zero-error" and make youre fix from Post #2. It works, but the Nav-Problem is a Problem...
Please help! ;)

Heh, and I thought it was just me. Yep, same thing is happening here. At random times, you click on something and it returns a blank page- refresh, and you can see the page again:p G-Force, have you had time to look into this yet? Although this hack has provided its share of challenges, (probably the most I?ve had to deal with yet), it?s still one of the best ones I?ve seen. Any solutions to this strange anomaly would be appreciated.

Great work!

Dave H

wolfe 09-04-2002 10:52 AM

i get that with VBB 2.2.4 i think its a HTML Timeout thats not supposed to be there :(

D. Hollingworth 09-04-2002 10:59 AM

I?m running 2.2.7. It?s weird. I checked the page source, and squat! No partial headers, no nothing. It?s almost like it?s not even retrieving the page from the db. It only happens every so often, and yes? It?s most likely to happen when you try to link from anything in the display list. It?s no emergency, but it would be nice to correct the error just the same :)

Dave H

g-force2k2 09-04-2002 11:08 AM

okay D. Hollingworth i'll look further into the situation ;) just have college and then i will do my part and do alittle research :) regards... glad that you like it...

g-force2k2

D. Hollingworth 09-04-2002 11:19 AM

Thanks-o-many.

Incase it helps at all, I just tried to 'update counters' in the Admin Panel, and I got a blank page when I clicked “update.’ I guess it might not be limited to just the main forums.

Dave H

wolfe 09-04-2002 11:35 AM

ok here is my design

In functions.php

Repalce

PHP Code:

// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++
// do time online function
  
function dotimeonline($timeonline) {

    
$days floor($timeonline 86400);
      if(
$days == 0) {
      
$ftime "";
    } elseif(
$days == 1) {
      
$ftime "$days Day, ";
     } else {
      
$ftime "$days Days, ";
    }
  
    
$tothours $days 86400;
    
$newhours $timeonline $tothours;
    
$hours floor($newhours 3600);
    
$ftime.= "$hours Hours, ";

    
$totmin = (($hours 3600) + ($days 86400));
    
$newmin $timeonline $totmin;
    
$minutes floor($newmin 60);
    
$ftime.= "$minutes Minutes, ";

    
$totsec = (($hours 3600) + ($minutes 60) + ($days 86400));
    
$seconds $timeonline $totsec;
    
$ftime.= "$seconds Seconds Online";

    return 
$ftime;

}
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++ 


with


PHP Code:

// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++
// do time online function
  
function dotimeonline($timeonline) {

    if(
$days == 0) {
      
$ftime "";
    } elseif(
$days == 1) {
      
$ftime "$days Day, ";
     } else {
      
$ftime "$days Days, ";
    }

    
$totdays $days 86400;
    
$newdays $timeonline $tothours;
    
$days floor($newdays 86400);
    
$ftime.= "<b>$days</b> Days, ";  

    
$tothours $days 86400;
    
$newhours $timeonline $tothours;
    
$hours floor($newhours 3600);
    
$ftime.= "<b>$hours</b> Hrs, ";

    
$totmin = (($hours 3600) + ($days 86400));
    
$newmin $timeonline $totmin;
    
$minutes floor($newmin 60);
    
$ftime.= "<b>$minutes</b> Mins, ";

    return 
$ftime;

}
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++ 


to get it to look like this with out having a day on it :D

wolfe 09-04-2002 11:39 AM

and to put it in your postbit template

under avatar.

Find

PHP Code:

$post[avatar]<p


and replace it with


PHP Code:

<br><br>
$post[avatar]<br><br><smallfont><a href='timeonline.php?s=$session[sessionhash]&action=view_leader'><b>Time Spent On This Board:</b></a><br$post[onlinetime] </smallfont><br><br

enjoy :D

D. Hollingworth 09-04-2002 12:18 PM

Hmm... I don't have
Quote:

$post[avatar]<p>
in my functions.php. I have all sorts of $post[avatar]=""; occurances instead. Maybe cause it's 2.27. This is getting stranger. My users in the "non-moderated" group are racking up the correct time. The users in the "moderated" section can be hanging around for 30-minutes or more, yet they remain at zero, or at 1-second.

Infact, the only user that 'was' displaying 1-second has now reverted back to 0.0.0. ): Oh well, at least my non-moderated members are displaying correctly :)

Dave H

wolfe 09-04-2002 12:21 PM

no d00d the Avatr but is in your postbit template :D sorry

D. Hollingworth 09-04-2002 12:25 PM

*Snicker* :p

Gotta stop these all nighters.

Thanks man.


All times are GMT. The time now is 12:15 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.01293 seconds
  • Memory Usage 1,771KB
  • 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
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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