Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-14-2008, 04:34 PM
marcopolo marcopolo is offline
 
Join Date: Dec 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Showing users online on my website homepage

Could anyone assist me as to what code to place in my index.htm from index.php so people visiting my site can see a list of who is online.

Don't seem to be getting anywhere fast.
Reply With Quote
  #2  
Old 08-14-2008, 05:06 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like this? Adding Currently Active Users to your own vB page
Reply With Quote
  #3  
Old 08-14-2008, 08:29 PM
marcopolo marcopolo is offline
 
Join Date: Dec 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erm not sure, looks a little too complicated for me, probably not to your average coder though.

I would have thought I could have just copied some code from the forum directory file index.php that refers to logged in users and placed it in my parent folder index.html.
Reply With Quote
  #4  
Old 08-14-2008, 08:33 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unless you know PHP & MySQL then you aren't going to get anywhere. In short, no can't just copy and paste.

PHP & HTML are two different programming languages.
Reply With Quote
  #5  
Old 08-14-2008, 11:44 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by marcopolo View Post
Erm not sure, looks a little too complicated for me, probably not to your average coder though.

I would have thought I could have just copied some code from the forum directory file index.php that refers to logged in users and placed it in my parent folder index.html.
That is all copy/pasted from the index.php file. It's just all outlined what exactly needs to be copy/pasted.
Reply With Quote
  #6  
Old 08-15-2008, 06:36 AM
marcopolo marcopolo is offline
 
Join Date: Dec 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
That is all copy/pasted from the index.php file. It's just all outlined what exactly needs to be copy/pasted.
It does not read like that at all I'm afraid, it starts of by talking about adding and finishes off by copying. I appreciate the help but I do not have a php page.
Reply With Quote
  #7  
Old 08-15-2008, 09:01 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its not possible to do this in a HTML file...
Reply With Quote
  #8  
Old 08-15-2008, 10:44 AM
KatieG's Avatar
KatieG KatieG is offline
 
Join Date: Apr 2008
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try vbexternal placed in an inline frame works for me....
Reply With Quote
  #9  
Old 08-17-2008, 07:05 AM
marcopolo marcopolo is offline
 
Join Date: Dec 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried the Vbexternal, got a portion of it to work but it doesn't seem to display what I require, I want is to show the usernames who are online, not just counts.

I've now got index.php for my website which will help.

Lynne, looking at your instructions again it seems to refer to items that I have not created, such as vb pages, which are not relevant to me. So I'm thinking there must be a way to change the folder for the code to display the 'logged in users', but how would I echo that info on my website?
Reply With Quote
  #10  
Old 08-17-2008, 02:11 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by marcopolo View Post
Lynne, looking at your instructions again it seems to refer to items that I have not created, such as vb pages, which are not relevant to me. So I'm thinking there must be a way to change the folder for the code to display the 'logged in users', but how would I echo that info on my website?
I'm not sure what you mean by "change the folder for the code". The article simply outlines exactly what is present in vb's index.php page to display the Online Users. If someone wants to show the Online Users on some other non-vb page, then those are the things that must be present (the code, the included file, the template edit).
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 09:00 AM.


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.04669 seconds
  • Memory Usage 2,251KB
  • Queries Executed 11 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete