Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-04-2007, 09:34 PM
Keyser S?ze's Avatar
Keyser S?ze Keyser S?ze is offline
 
Join Date: Apr 2002
Location: USA
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default online status on non-vb pages

is this possible for anyone to do?
Reply With Quote
  #2  
Old 11-07-2007, 07:29 PM
ravyn's Avatar
ravyn ravyn is offline
 
Join Date: Sep 2006
Location: Imaginary Space
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 11-07-2007, 07:45 PM
Andrew Green's Avatar
Andrew Green Andrew Green is offline
 
Join Date: Nov 2005
Location: Winnipeg, MB
Posts: 996
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 11-07-2007, 07:51 PM
ravyn's Avatar
ravyn ravyn is offline
 
Join Date: Sep 2006
Location: Imaginary Space
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 11-08-2007, 01:13 AM
Keyser S?ze's Avatar
Keyser S?ze Keyser S?ze is offline
 
Join Date: Apr 2002
Location: USA
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you setup like a walk thru thats easier?

thanks
Reply With Quote
  #6  
Old 11-09-2007, 06:49 PM
ravyn's Avatar
ravyn ravyn is offline
 
Join Date: Sep 2006
Location: Imaginary Space
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 11-09-2007, 10:26 PM
Keyser S?ze's Avatar
Keyser S?ze Keyser S?ze is offline
 
Join Date: Apr 2002
Location: USA
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 11-20-2007, 07:16 AM
Keyser S?ze's Avatar
Keyser S?ze Keyser S?ze is offline
 
Join Date: Apr 2002
Location: USA
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this just not possible or what?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:05 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.03796 seconds
  • Memory Usage 2,242KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete