vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Showing users online on my website homepage (https://vborg.vbsupport.ru/showthread.php?t=188127)

marcopolo 08-14-2008 04:34 PM

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.

Lynne 08-14-2008 05:06 PM

Like this? Adding Currently Active Users to your own vB page

marcopolo 08-14-2008 08:29 PM

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.:confused:

Opserty 08-14-2008 08:33 PM

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.

Lynne 08-14-2008 11:44 PM

Quote:

Originally Posted by marcopolo (Post 1598743)
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.:confused:

That is all copy/pasted from the index.php file. It's just all outlined what exactly needs to be copy/pasted.

marcopolo 08-15-2008 06:36 AM

Quote:

Originally Posted by Lynne (Post 1598842)
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.

Opserty 08-15-2008 09:01 AM

Its not possible to do this in a HTML file...

KatieG 08-15-2008 10:44 AM

try vbexternal placed in an inline frame works for me.... ;)

marcopolo 08-17-2008 07:05 AM

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?

Lynne 08-17-2008 02:11 PM

Quote:

Originally Posted by marcopolo (Post 1600538)
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).


All times are GMT. The time now is 03:26 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.01128 seconds
  • Memory Usage 1,732KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete