vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Allways Online (https://vborg.vbsupport.ru/showthread.php?t=49475)

Automated 02-28-2003 04:07 PM

Allways Online
 
Hi Guys,

I know this hack kinda already exists but i would like a slight mod becuase i have installed the one where the user appears to allways be online in the WOL on the home page.

What i am looking for is probably quite simple but i havent got a clue.

I need userid 5 to ALLWAYS appear online in the postbit.

Would this be possiable.

Thanks a lot.

Matthew

Xenon 02-28-2003 05:03 PM

open functions.php
find:
PHP Code:

        if ($post['lastactivity'] > $datecut and !$post['invisible'] and $post['lastvisit'] != $post['lastactivity']) {
            eval(
"\$onlinestatus = \"".gettemplate("postbit_online")."\";");
        } else {
            eval(
"\$onlinestatus = \"".gettemplate("postbit_offline")."\";");
        } 

change to:
PHP Code:

        if ($post['userid'] == or ($post['lastactivity'] > $datecut and !$post['invisible'] and $post['lastvisit'] != $post['lastactivity'])) {
            eval(
"\$onlinestatus = \"".gettemplate("postbit_online")."\";");
        } else {
            eval(
"\$onlinestatus = \"".gettemplate("postbit_offline")."\";");
        } 


Sweet Cheeks 03-01-2003 12:36 AM

Ooh I could have fun with this one he he :D

Xenon 03-01-2003 09:56 AM

*gg* ;)

Boofo 03-01-2003 11:20 AM

Quote:

Originally posted by Automated
Hi Guys,

I know this hack kinda already exists but i would like a slight mod becuase i have installed the one where the user appears to allways be online in the WOL on the home page.

Matthew

Where is that hack at? I don't remember seeing that one?

Automated 03-01-2003 11:58 AM

Thanks :p It works great! You can see it here http://www.monkeychat.com/forums/sho...s=&postid=3034 the user is Monkey (he is the chatbot)

Boofo i will go and see if i can find that thread for you.

Matthew

Automated 03-01-2003 11:59 AM

Here it is !

https://vborg.vbsupport.ru/showthrea...unique+request

Boofo 03-01-2003 12:32 PM

Quote:

Originally posted by Automated
Here it is !

https://vborg.vbsupport.ru/showthrea...unique+request

Thank you. ;)

Did you ever find the code to make it work in the online.php, too?

Automated 03-01-2003 08:21 PM

Quote:

Did you ever find the code to make it work in the online.php, too?
No :( But if you ever do please Post it here ;)

Thanks
Matthew

Boofo 03-01-2003 08:29 PM

Will do. And you, too, if you find it. ;)

dontpanic 05-25-2005 02:18 AM

OK, way old yes....but any help on doing this in vB3?


All times are GMT. The time now is 07:56 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.01034 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete