vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Have user look online 24/7 (https://vborg.vbsupport.ru/showthread.php?t=223614)

David Regimbal 09-19-2009 10:11 PM

Have user look online 24/7
 
Hi everyone,

I was wondering if I could alter an account which looks like it's on all the time. I tried to look around for a similar modification, but I didn't find anything I was looking for. Could I just edit the who's online template and add a user to stay on the who's online list? Could someone please help me. =]

gearspro 09-20-2009 12:39 AM

Not as if its any of my business, but why would you want to? :/

It would make the whole "Statistics" purpose invalid?

David Regimbal 09-20-2009 12:54 AM

I just want this for one user, a user which can just be coded in, not even a real user.

Trasion 09-20-2009 01:11 PM

You could go into the FORUMHOME template, find where it lists the users, and before it, add

Code:

<a href="LinkToUserProfile">Username</a>,
You'd need to customize the color and bold/italics/underlines though.

David Regimbal 09-20-2009 01:34 PM

I have tried that, though it won't show-up on how many users are online and it wouldn't show up in /online.php

Lynne 09-20-2009 02:08 PM

Then add it to the online list also (You'll need to grab the html from your online.php page and add it into the template). And you can just add 1 to the user totals.

The other option is to create a cron job that just keeps that user 'active'. (I guess, I've never tried anything like this.)

(I could have sworn there was a mod kinda like this - Fake Users. Why not check it out?)

David Regimbal 09-20-2009 08:03 PM

Thanks again Lynne! So far you are the one who has answered all my questions on here :)


All times are GMT. The time now is 04:57 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.02858 seconds
  • Memory Usage 1,715KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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