vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   online status on non-vb pages (https://vborg.vbsupport.ru/showthread.php?t=161940)

Keyser S?ze 11-04-2007 09:34 PM

online status on non-vb pages
 
is this possible for anyone to do?

ravyn 11-07-2007 07:29 PM

it is doable, in fact I have it on my site, but I'll be darned if I can remember how to do it. if I find the info on how to do it, I'll post it for ya.

ckeck out my site

Andrew Green 11-07-2007 07:45 PM

Yes, you need to include global.php, and (this one confused me for a bit) output a template for it to take effect.

This should get you stated:
https://vborg.vbsupport.ru/showthread.php?t=62164

ravyn 11-07-2007 07:51 PM

LOL, I just went through my favorites to find that page. that's the one I used! I was actually looking for this because I needed to add more pages.

I found it a little confusing too, but only at first. once I figured out what I was doing wrong, it became easy. If you need any help, PM and I'll help you out.

Keyser S?ze 11-08-2007 01:13 AM

can you setup like a walk thru thats easier?

thanks

ravyn 11-09-2007 06:49 PM

well, it's not my walk thru, of course, but I think I can simplify it....
the main idea that Gary King was trying to show was that each page needs global.php. so as long as you place require_once('./global.php'); somewhere in your header then it will work. the great thing about calling this onto each page is that you have the added bonus of incorporating each page with the VB style by also calling in the VB header (I can explain more about that later, but for the actual issue on hand...)

once each nonVB page has the global line, go to functions_online.php in the includes folder. Usinf the find function on your text editor, find:

case 'bugs.php':
$userinfo['activity'] = 'bugs';
break;

when you find that, then paste this right above it:
case 'test.php':
$userinfo['activity'] = 'test';
break;

replace test with the name of your page. Example: I have an art page called art.php, so mine looks like:

case 'art.php':
$userinfo['activity'] = 'art';
break;

just one more step...
now find:

case 'modcplogin':
$userinfo['action'] = $vbphrase['moderator_control_panel_login'];
break;

and below, add:

case 'test':
$userinfo['action'] = 'Viewing Test Page';
break;

again, replacing test with the name of your page. another example:

case 'art':
$userinfo['action'] = 'Viewing Art Gallery';
break;

now, every time a user goes to that page, the functions_online.php will tell VB what that page is. Just save and upload it back to the server and test. let me know how it goes.

note: when I use the find function to locate the areas where I am supposed to insert new code, I only use the first line because otherwise it tends to confuse the search thingy and it will tell you that nothing was found.

Keyser S?ze 11-09-2007 10:26 PM

1 Attachment(s)
this is accually very helpful, but not what i was looking for sadly, what i wanted was, i have a contact page of ppl that will help with like say computer hardware or gaming, that type thing, and i wanted when ppl view that page for them to know is tht user currently online

like how on the orums it shows in postbit if the poster is online of not

online/offline on a non vb page

Keyser S?ze 11-20-2007 07:16 AM

is this just not possible or what?


All times are GMT. The time now is 03:11 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.00951 seconds
  • Memory Usage 1,725KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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