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)

Lynne 02-20-2009 07:43 PM

Your path to global.php does not look right. I posted the correct code in the first post:

PHP Code:

chdir ('/path/to/your/forums');
require_once(
'./global.php');
require_once(
DIR '/includes/functions_bigthree.php'); 


Submerge 02-24-2009 01:03 AM

Lynne;

Thank you for your help thus far. I replaced the code as best as I could understand, but it doesn't seem to recognize users on my site's homepage as being Currently Active Users (even though they are logged in and their account info is being displayed correctly on the homepage).

Here is what I have:
PHP Code:

    //vBulletin Member Recognition
    
$curdir getcwd ();
    
chdir ('/home/ps3t/public_html/forums');
    require_once(
'./global.php');
    require_once(
DIR '/includes/functions_bigthree.php');
    
chdir ($curdir); 

My site's forum is in the /forums/ directory. You can view my site in my signature if you'd like to take a quick look. Am I still incorrectly doing the path? Or does it seem to check out in your mind of how I have it set up? Since the homepage can recognize user's being logged in, I'd think I'd have the path correct, but I'm not an expert at vB programming (but I'm trying!).

TNCclubman 02-24-2009 03:06 AM

awesome, can you make a couple more tutorials...

1. How to add Todays Events to your custom vB page.

2. How to add Recently Added Albums (from just my user account) to your custom vB page.

Please?

That would be awesome, Im stuck!!

Lynne 02-24-2009 03:37 AM

Quote:

Originally Posted by Submerge (Post 1752832)
Lynne;

Thank you for your help thus far. I replaced the code as best as I could understand, but it doesn't seem to recognize users on my site's homepage as being Currently Active Users (even though they are logged in and their account info is being displayed correctly on the homepage).

Here is what I have:
PHP Code:

    //vBulletin Member Recognition
    
$curdir getcwd ();
    
chdir ('/home/ps3t/public_html/forums');
    require_once(
'./global.php');
    require_once(
DIR '/includes/functions_bigthree.php');
    
chdir ($curdir); 

My site's forum is in the /forums/ directory. You can view my site in my signature if you'd like to take a quick look. Am I still incorrectly doing the path? Or does it seem to check out in your mind of how I have it set up? Since the homepage can recognize user's being logged in, I'd think I'd have the path correct, but I'm not an expert at vB programming (but I'm trying!).

It's really hard to tell why it isn't working without seeing all the code and your template. Maybe you should post in one of the Community Discussions forums and post the code for the page there.
Quote:

Originally Posted by TNCclubman (Post 1752906)
awesome, can you make a couple more tutorials...

1. How to add Todays Events to your custom vB page.

2. How to add Recently Added Albums (from just my user account) to your custom vB page.

Please?

That would be awesome, Im stuck!!

I doubt I will be doing that since I don't need either of those things on my forum.

externalaw.com 04-17-2009 08:38 AM

Lynne,

I just want to display current online users at the top of each page, so I guess in the header,
How can I do this?

Floris 04-17-2009 09:16 AM

You can use the first post as a guide to see how it is done, and re-apply it to the other sections where you need it. It is not too hard to figure out. Good luck tweaking your site :)

khuhner 02-14-2010 03:38 PM

Lynne:

I just found this article and would like to install it. However I'm still new to vb. I have a local site running 4.0.1 and would like to have a widget on the home page of the site (not forums) that I can include Active Users. However this article says you have to create a new page. I have no programming experience in vb so any help getting this into a vb 4.0* widget would be appreciated!

Kurt

--------------- Added [DATE]1266169882[/DATE] at [TIME]1266169882[/TIME] ---------------

Quote:

Originally Posted by khuhner (Post 1982212)
I just found this article and would like to install it. However I'm still new to vb. I have a local site running 4.0.1 and would like to have a widget on the home page of the site (not forums) that I can include Active Users. However this article says you have to create a new page. I have no programming experience in vb so any help getting this into a vb 4.0* widget would be appreciated!

Well I kept searching and found your article on doin this exact thing!
https://vborg.vbsupport.ru/showthread.php?t=230428

It would be nice to see a lot more "widget" choices like this to allow end users to pick and choose which to include, rather than having to add the code manually. Hopefully vB 4.02+ will support more widgets available by default :)

Thanks so much for the mod! I marked as installed.

Kurt

Tyran1 04-04-2012 02:39 AM

Works with 3.8.7

Statistik ??


All times are GMT. The time now is 06:17 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.01207 seconds
  • Memory Usage 1,747KB
  • 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_php_printable
  • (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
  • (8)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