vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Adding Currently Active Users to your own vB page (https://vborg.vbsupport.ru/showthread.php?t=187388)

mokujin 10-30-2008 10:57 PM

Hi Lynne, How can I add Who is Online in THIS_SCRIPT ? Thanks

Lynne 10-30-2008 11:48 PM

Quote:

Originally Posted by mokujin (Post 1656318)
Hi Lynne, How can I add Who is Online in THIS_SCRIPT ? Thanks

I'm not sure what you mean. If you make a vB page and then add this code to the page and template, it will only be shown on this page.

mokujin 10-31-2008 05:06 PM

Quote:

Originally Posted by Lynne (Post 1656342)
I'm not sure what you mean. If you make a vB page and then add this code to the page and template, it will only be shown on this page.

I mean how to make it shows users currently viewing this Page, not who is online global.

Something like:
Currently Active Users Viewing This Thread: 1 (1 members and 0 guests)
mokujin

Thanks :)

Lynne 10-31-2008 05:30 PM

Quote:

Originally Posted by mokujin (Post 1656734)
I mean how to make it shows users currently viewing this Page, not who is online global.

Something like:
Currently Active Users Viewing This Thread: 1 (1 members and 0 guests)
mokujin

Thanks :)

You want to add a list to the bottom of your vB page that lists all the users currently viewing this particular page? I do not know. That would be the subject for another article, I imagine. (I'm guessing it would be very similar to how this is done only you copy the code from the showthread page instead of the index page.)

mokujin 10-31-2008 07:38 PM

I have it, just add this code for your custom page.
After
Quote:

WHERE session.lastactivity > $datecut
Add:
PHP Code:

AND session.location LIKE '%your_script_name.php%' 

Thank you Lynne :)

Lynne 10-31-2008 08:13 PM

Great! Thanks for sharing!

Forum Lover 11-15-2008 12:52 AM

1 Attachment(s)
Can I have something like this in my every header? I just photoshopped the attachment. :)

Lynne 11-15-2008 01:52 AM

Quote:

Originally Posted by Forum Lover (Post 1665864)
Can I have something like this in my every header? I just photoshopped the attachment. :)

I suppose you could, but this article won't do it for you. It will only make the information available to your template, not your header. I think you'd have to plugin to a hook location like global_start in order to do the query to have the numbers spit out in the header.

Forum Lover 11-15-2008 03:53 AM

Ah, sorry. I misunderstand it. Can u help me with the plugin code please? Do u want to me open a thread here?

Lynne 11-15-2008 03:57 AM

You will need to start a thread about it. I'm not certain how well I can help you since it's something I've never really looked into, but hopefully someone can help.


All times are GMT. The time now is 06:42 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.01357 seconds
  • Memory Usage 1,737KB
  • 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)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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