![]() |
It works, but everything is crammed in. How can I fix this?
|
works great but i already have a require for my image upload script.
require_once("show_image.php"); require_once("online.php"); doesn't work together. is there any work around to this? |
Quote:
|
I want the code to tell me how many people are on my entire site, not just VB.
What code would I put in my PHP files to tell VB that people are not signed on (or are) and that they are looking at those pages? That way my entire site will have this script tell me how many people are on my site in absolute total! |
Use
PHP Code:
|
Well now I've figured out what is wrong...
There are two things I want to do at once and I can at the moment only do either or. This one will show me where users are when I goto the whose online? page. <?php chdir("/home/jabcreat/public_html/community"); require_once('global.php'); ?> This will display how many users are online, but NOT others on no-VB pages. <?php chdir("/home/jabcreat/public_html/community"); require_once("online_external.php");?> The problem is, you're either on VB and CANT see how many are on.... OR You're NOT on VB but you CAN see how many people are on.... When I attempt to use both I recieve the following error... Fatal error: Cannot redeclare iif() (previously declared in /home/jabcreat/public_html/community/includes/functions.php:318) in /home/jabcreat/public_html/community/online_external.php on line 10 So how do I get over my current comprimise? |
i want it show on sidebar how can i do that?
i add Code:
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" style="width:100%"> |
I am hoping Gary King is still around *crosses fingers*
Gary, any idea why I am getting the following results? Members online: 00, 0, 0, 0, 0, 0, 0, 0, 0. Guests online: 26. I tried to play with a few of the options, but I cant figure it out :( |
Anyone else have a wild guess as to why this is occurring?
|
SKINVB
You have to require the script first then print show I hope you understand that. Baptizer.... I got the same thing...my solution...don't use online_external.php. Instead use online.php It took me a little bit but it worked... ceck it out in my footer. http://www.s3squad.com |
This hack is very good, but does anyone know how to show just the total number of registered members? I would really like this.
Thanks. |
misterfade, if you know how to connect to your MySql database this query gets the registered number of users on your site:
PHP Code:
|
Quote:
It worked on my site as well...I added the require_once bit at the very top of my HTML page (even before the <html> tag) then, wherever I wanted to display the online info I just added the print command. Basically the code on your page 'should' look like: <?php require_once('/path/to/script'); ?> <html> <head> </head> <body> .... (somewhere on your page you may now add:) <?php print $show ?> Of course you have to name your page something like index.php (the extension is what matters here) Hope that made it clear to everyone. Oh and yes, I am using online.php :) |
BTW is there any way of adding links to user profiles?
|
Members names are linked on my vb and its slightly hacked. Are you asking ahead of time or do you not see your members linked?
|
Quote:
|
is there a way to add the direct link to where the user is? because it just says on all the pages i added, that the member is viewing the startpage. no matter where they are.
|
I had to make a number of modifications to get this hack to work on my site (it's not very friendly with other scripts, changing dir, without changing back, not closing the mysql connection, etc... not good coding practices for something that's meant to work with meant other code).
However, after fixing it up, it works fine, and I've installed it :) |
I've installed the script and it works perfectly. Great job.
|
I'm able to get the online_external version working somewhat, but when it try to show usernames online, it always says (none). When i switch it to not show the user name, it shows the correct number of members online. What's wrong?
Jim |
Love it. . Installed It. . . Have One Question,
I am using online.php. The members usernames and guests all show up. . . is it a possability to link each members usernames to there profile? ThankS!1 |
Anyway of having it show total users online rather than say members and guests.. so it appears
Users online: 302 |
It worked fine, but it threw off my alignment on the whole page. I have it all centered and when I included the file it made everything left aligned.
Also, is there anyway I can change the way it formats it? I want it to say like... -Members Online: 23 -Visitors Online: 2 Basically is it possible just to pull the numbers out? Also, would it be possible to find the total number of members? |
This works as advertised.
I am hoping to replicate my forum who's online style. What would it take to get it looking like this: Quote:
|
Okay I modded the script somewhat to create the above mentioned look but
I'm stuck on the Most users online bit. heres my code thus far: Code:
<?php I was thinking of pulling the data from the original /forum/online.php file but I am uncertain of the approach to use, the code seems fairly long to me and I'm pretty sure it can be reduced :) any help would be greatly appreciated. thx |
i get MYSQL errors
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/wshh/public_html/online_external.php on line 14 Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/wshh/public_html/online_external.php on line 15 I use vbulletin 3.5.4 |
The version doesn't work with vB 3.5.x I think then. You're posting in a topic from more than 1 year old and vB 3.5.x wasn't released back then.
|
do u know any mods for 3.5.4 that can show whos online stats on a non vb page
|
Hi Gary King ..any plan to update this hack to 3.5.4 or next 3.6 ?
|
Not sure what happend to Gary since he hasnt posted on this hack
in quite some time, but fixing it to work with 3.5.4 was easy, below are my changes to online_external.php search for PHP Code:
PHP Code:
Member online: X. Guest online: X. Place the script outside your forums directory obviously ;) |
Forgot to mention you need to run through the entire script
and do a search and replace. search for all instances of $tableprefix and replace with $config['Database']['tableprefix'] |
PHP Code:
|
Quote:
Anyone know how to get this to work with 3.6? It will display the number of members and guests online but I cannot get it to list the member names. Any help would be greatly appreciated. |
is there any way to get this to work on a non .php page, like asp for instance?
If anyone can do this I'd love to speak with you. |
Great update dstjohn!! Would be great to get the usernames to work on 3.6 aswell!!
|
Is there anyway of getting the members online to display in the latest version of vBulletin? as Im looking for something a bit more than just the members online count.
|
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/c/..................../forum/online_external.php on line 19
:confused: |
This wont work in 3.7.
?? |
Not a chance, this was written for vb 3.0.
|
Can anyone help me work out how i can display this on a non vbulletin page, with vbulletin 3.7 ??
|
All times are GMT. The time now is 01:07 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|