Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 03-17-2003, 03:04 AM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Who's online on non-vb pages request

I have found all of the threads touching on this subject but maybe I am having a brain fart or something I cannot understand them.

Well...maybe it is because my non-vb pages I want this to work on are located inside my forum directory and I cannot upload another online.php file since there is already one in there.

say I have a page that looks like this:
PHP Code:
<?php
error_reporting
(7);

$templatesused='guides';

require(
'./global.php');

if (
$bbuserinfo[userid]==0) {
    
show_nopermission();
}

$bbusername $bbuserinfo[username];

eval(
"dooutput(\"".gettemplate('guides')."\");");

?>
and it uses a template as shown above

what can I do to make $onlineusers and $username work on that page?

thanks in advance
Reply With Quote
  #2  
Old 03-17-2003, 07:27 PM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I forgot to mention that I am using v2.2.5 and I do understand that this has been done but in different capacity.

thanks in advance
Reply With Quote
  #3  
Old 03-17-2003, 07:34 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

instead of $username use $bbuserinfo[username] in the template, that will work

to use the onlineusers, just copy the part of index.php which creates it
Reply With Quote
  #4  
Old 03-17-2003, 07:34 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use tubedogg's hack and change his file name to online2.php instead of online.php

Amy
Reply With Quote
  #5  
Old 03-18-2003, 12:52 AM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Xenon,
thank you for the tip on the $username

as for the other thing.....I really meant $browsers rather than $onlineusers (I think) because I only want it to display the members that are on the page at the time.

I looked in index.php and found code starting with this:
"// Users browsing each forum"
and ended with one of these: }
but it refers to the "inforum" colum of the user table......is that going to work?

The reason I ask is that I tried adding the code I found in index.php and put $browsers in the template but nothing showed.

I am a bit lost on this.

thanks for your help
Reply With Quote
  #6  
Old 03-18-2003, 12:54 AM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 04:27 PM drives fast said this in Post #2
I forgot to mention that I am using v2.2.5 and I do understand that this has been done but in different capacity.

thanks in advance

Side note: upgrade ASAP because that old a version has a broken Hoover Dam of security holes.
Reply With Quote
  #7  
Old 03-18-2003, 01:08 AM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I changed the php files to a newer version without upgrading (hard to explain how I did it)...I have so many hacks installed....I loathe the thought of upgrading.

In case you visited the site....the style currently used is not the one I am working on....I have a style in the works that is leaps and bounds ahead of the current one.

I just can't imagine trying to upgrade now.
Reply With Quote
  #8  
Old 03-18-2003, 01:32 AM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

amykhar,
that hack is not what I am looking for....I am looking to show who is on the page at the time...not who is on the whole site
Reply With Quote
  #9  
Old 03-18-2003, 10:36 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm, you have to get the infos you want out of the session table

just count the ammount of users where th location is....
Reply With Quote
  #10  
Old 03-18-2003, 08:31 PM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you for your input Xenon....sadly I have no idea how to do that.

thank you anyway
Reply With Quote
Reply

Thread Tools
Display Modes

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 06:18 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04348 seconds
  • Memory Usage 2,248KB
  • Queries Executed 13 (?)
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)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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