View Full Version : Add Who's Online locations from Admin CP
Admin
11-30-2001, 10:00 PM
This hack was requested on vBulletin.com.
It lets you add possible locations to Who's Online, directly from the Admin CP.
This is good if you are using external hacks, that use vBulletin's system. You probably know that users browsing these external files have Unknown Location (or Main Index for non-admin viewers) next to them.
With this hack, you can easily add a new custom location with ease!
It's also designed in a way that won't let you overwrite existing locations. ('dummy protection' as I like to call it ;))
The locations you add are not stored in their own table, because I really felt that would be waste of space and resource.
Instead, I store the locations in the template table, in one special template dedicated to this data.
It was a lot harder to do it this way, btw. :)
Please let me know if you find any bugs, or if this script doesn't work with files in child folders (this is my main concern).
This can be easily remove (just undo changes to online.php), so please don't fear to try it out!
A nice screen shot is in my next post.
Admin
12-01-2001, 07:56 AM
Top part is the Admin CP, bottom is Who's Online.
Crinos
12-01-2001, 08:14 AM
Hmmm, trying it out, but I get a 404 when I submit a change ...
since the admin_online.php is in the admin folder, should this:
<form action="online.php" name="name" method="post">
be like this:
<form action="../online.php" name="name" method="post">
or something?
Admin
12-01-2001, 08:22 AM
Sorry, that's my bad.
Download admin_online.php again and upload to your server.
I changed the file name in the last minute and forgot to update the <form> tags.
Crinos
12-01-2001, 08:31 AM
Hmmm ... still says "online.php" in the form FF :(
Hooper
12-01-2001, 11:52 AM
Thanks for seeing it Chen....
Going to install for testing....
Lesane
12-01-2001, 12:18 PM
Sounds great, going 2 install it 2
Thanks Firefly
Hooper
12-01-2001, 12:47 PM
Edit remove isn't working for me. Anyone tried to edit or remove?
Changed:
makelinkcode("edit"," online.php?s=$session[sessionhash]&action=edit&locnum=$locnum").
makelinkcode("remove",".online.php?s=$session[sessionhash]&action=remove&locnum=$locnum").
paths to reflect where the online.php exists
makelinkcode("edit","../online.php?s=$session[sessionhash]&action=edit&locnum=$locnum").
makelinkcode("remove","../online.php?s=$session[sessionhash]&action=remove&locnum=$locnum").
Problems still with edit remove as mentioned by Crinos.
Added a total of 3 links. Last was lastposts.php for the Filename and Viewing Last 10 Posts! for the Description.
......Will wait now.
Admin
12-01-2001, 01:54 PM
Ok, download admin_online.php once again and upload to your server.
Sorry again for all of this.
You see, originally the filename was just online.php, but to keep you from confusing it with the regular online.php (in the forums folder), I renamed it.
Hooper
12-01-2001, 03:48 PM
No apologies necessary. That's why we're in the beta room :D . Appreciate the work.
I am still getting 404's. The edit and remove still don't work. At least on this end.
Anyone else testing this please post what you get.
SirSteve
12-01-2001, 05:07 PM
I got this a few times:
Database error in vBulletin 2.2.1:
Invalid SQL: SELECT user.username, session.location, session.lastactivity, user.userid, user.usergroupid, user.invisible, session.host, user.showemail, user.receivepm
FROM session
LEFT JOIN user USING (userid)
WHERE session.lastactivity >
ORDER BY user.username
mysql error: You have an error in your SQL syntax near 'ORDER BY user.username
' at line 6
mysql error number: 1064
Hooper
12-01-2001, 05:15 PM
Hi SirSteve,
I'm not sure why this would create a problem as such. You may want to upload the online.php and overwrite your hacked one. then see if you get the error. If you don't, then you probably copy and pasted a boo boo. ;)
Crinos
12-01-2001, 07:10 PM
Hmmm, seems to be working fine now after I downloaded that new attachment a few moments ago ... I could add/edit/delete just fine, so far ... no bugs yet :)
Hey FF, if I wanted to include main sections within the site that are non VB-powered, should I just include the global.php and specify them in the admin_online script so that people see who are viewing these sections in who's online?
I got a quiz script in PHP and I kinda wanted to include it in who's online too, but it ain't VB-powered :)
Thanks!
Hooper
12-01-2001, 07:40 PM
Hmmm. I used a new online.php and rehacked and still have the same problem.
/community/admin/online.php?action=edit&locnum=1
The links are still pointing to /admin/online.php.
If I ../ before this It still doesn't work. The edit delete functions are still not correct for me.
See a problem...?
<html><head>
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type">
<meta http-equiv="MSThemeCompatible" content="Yes">
<link rel="stylesheet" href="../cp.css">
<title>Who's Online - Location Manager</title></head>
<body leftmargin="10" topmargin="10" marginwidth="10" marginheight="10">
<form action=".php" name="name" method="post">
<input type="hidden" name="s" value=""><input type="hidden" name="action" value="">
<br><table cellpadding='1' cellspacing='0' border='0' align='center' width='90%' class='tblborder'><tr><td>
<table cellpadding='4' cellspacing='0' border='0' width='100%'>
<tr class='tblhead'>
<td><p><b><span class='tblhead'>Filename</span></b></p></td>
<td><p><b><span class='tblhead'>Description for it</span></b></p></td>
<td><p><b><span class='tblhead'>Options</span></b></p></td>
Crinos
12-01-2001, 07:56 PM
fwiw, I was using a VB 2.0.3 online.php file (coz the 2.2.0 version was buggy back then), and that's what I modified for this hack. I didn't upgrade to 2.2.1 coz of the amount of hacks I installed on my forums, and it being a very minor release, I didn't need it (made lots of fixes to 2.2.0 via the Bug Section of vb.com) ...
And with the admin_online.php I downloaded just a couple of hours ago, it is now putting the correct filename on the form (admin_online.php instead of online.php) ... so I guess that fixed it :)
Hooper
12-01-2001, 07:59 PM
Ah,,,
Well, I have 2.2.1. I went ahead and uploaded a fresh online.php to work with since you posted that yours was working. Rehacked with the same results. Look at the above code. :stupid: :eek:
Crinos
12-01-2001, 08:01 PM
Hey Hooper, I said "fwiw" because I don't think the version of online.php was important to the hack ... but anyway...
Look at the code just below what you posted ... it should have another set of form tags, which should look like this:
<form action="admin_online.php" name="name" method="post">
Last night it was "online.php", and I think that was the only problem I had ... have you tried redownloading the attachment above?
Hooper
12-01-2001, 08:03 PM
Yes sir,
I've downloaded the new attatchment 3 times today.
I had the online.php pretty hacked up before. That's why I used a fresh one this morning after seeing it posted that you had it working.
Nope. Here is the whole code I get.
<edited>by Hooper</edited>
Crinos
12-01-2001, 08:09 PM
Hmmm, strange, well I can tell you that it does work pretty well ... I think it'll only give you a 404 if it's not pointing to the correct file in the form ...
I'm attaching the raw admin_online.php file that I am using, just to be sure ... if this is not allowed FF, feel free to delete it :)
Hooper
12-01-2001, 08:12 PM
WORKED!!!!!!!!!!!!!!!!!!!!!!!!!
Why the heck am I getting the same file all day that I downloaded early this morning? I must be getting the old file over and over or something.
Go try a download. Rename your good one on the server and install what you download. Please try that.
Thanks. Your file worked.
Crinos
12-01-2001, 08:18 PM
Kewl :) Must've been a caching problem with either the browser or maybe the attachment feature itself, I dunno ...
So far I'm not experiencing any bugs on this one, and works as advertised. Maybe it's safe to move it out of the Beta forum :)
btw, still interested in that non-VB/global.php question I had, if it's possible :D
Great hack!
Hooper
12-01-2001, 08:21 PM
Yeah!!!! It works! :D
This is going to be nice!
I agree. I am getting ready to see if I can get my "outside non vb powered schtuff" to work. I have about 8 or 9 outside of vBull that need a linking!
Yeah. About ready for full release. Thanks Chen. Nice Hack.
Hooper
12-01-2001, 08:29 PM
Am I missing something here or should the last10posts.php be a link to the file????
Crinos
12-01-2001, 08:31 PM
You could use HTML to do a link tag on that location in the description:
Viewing <a href="last10posts.php">Last 10 Posts</a>
That's what I did with mine :)
Hooper
12-01-2001, 08:32 PM
Geez... I guess I just want the hack to do everything now don't I... :p
Ok.. I'll do that.
Hooper
12-01-2001, 08:36 PM
Works like a charm. This is a super improvement. Just think, If this can be (and hopefully will) added to a vBulletin release, it will make adding internal links for WOL so much easier. This is fine for me as is. Maybe we can get the outside linking to work with the non vBpowered. ;)
I had several hand coded links I installed into the online.php since Kevin showed me how to do it. This is a whole lot faster and easier.
Crinos
12-01-2001, 08:45 PM
Might wanna include some instructions on how to include it in the VB admin control panel once it's released (although I think that's the plan when FF made it).
I already did by adding it into the admin/index.php :)
Hooper
12-01-2001, 08:48 PM
Well let's here it....? :D You incorporated the new admin with the main admin? If so, spill the beans on the how.... :)
Crinos
12-01-2001, 09:00 PM
Well, since it wasn't really a part of any general category in the admin panel, I just put it below the vBulletin Options (which I have renamed "General Options" in my own VB)
Anyway, in admin/index.php, find:
makenavselect("Options","<hr>");
And right above it, add:
makenavoption("Who's Online Options","admin_online.php?t=0","<br>");
here is a screenshot of how it looks like in my admin control panel:
http://canislupus.opentechsupport.net/images/woloptions.jpg
Hooper
12-01-2001, 09:03 PM
Super.... Going to do it. Your admin panel looks as good as your site! ;)
Hooper
12-01-2001, 09:10 PM
Perfect!!
That is right where it should be. (left top is the link).
Crinos
12-01-2001, 09:17 PM
Perfect :)
So it works on 2.2.1 now? If so, what does it take to get the script running?
Hooper
12-02-2001, 02:17 AM
[QUOTE]Originally posted by LuBi
So it works on 2.2.1 now? If so, what does it take to get the script running?
Admin
12-02-2001, 11:42 AM
I'm going to split all posts from Hooper and Crinos in a bit, I'm as well already confused. :)
https://vborg.vbsupport.ru/showthread.php?s=&threadid=32879
Tell me if the title of the thread is not appropriate. :)
Does this work ok or not?
I want to release it as soon as possible, but I want to make sure it works perfect first! :D
Freddie Bingham
12-02-2001, 02:19 PM
[QUOTE]Originally posted by Hooper
Works like a charm. This is a super improvement. Just think, If this can be (and hopefully will) added to a vBulletin release, it will make adding internal links for WOL so much easier. This is fine for me as is. Maybe we can get the outside linking to work with the non vBpowered. ;)
I had several hand coded links I installed into the online.php since Kevin showed me how to do it. This is a whole lot faster and easier.
Admin
12-02-2001, 02:30 PM
I was thinking of doing that, since eventually the ideal thing would be removing all locations from online.php and putting them into the Admin CP.
Would also make it easier to translate these locations to other languages.
Freddie Bingham
12-02-2001, 02:45 PM
Some of the locations wouldn't be so easy to move into this system. The ideal way would be to totally rethink the way the system works, which I may also end up doing.
DarkReaper
12-02-2001, 02:48 PM
How can we include the session hash?
I tried this - Editing their <a href="sedit.php?s=$session[sessionhash]&action=show">signature</a>, and it didn't parse the hash...
Admin
12-02-2001, 03:15 PM
Try this DarkReaper.
In online.php, (after installing this hack) find this:
$userinfo[where] = $text;
and right below it add this:
eval("\$userinfo[where] = \"".addslashes($userinfo[where])."\";");
Then you'll be able to use $variables in the descriptions (although only $session[sessionhash] will mean anything).
DarkReaper
12-02-2001, 03:25 PM
Worked :)
Admin
12-02-2001, 03:29 PM
Yeah but it creates a major bug.
Please undo the change I gave you, and follow step 3 in the first post again. :)
Hooper
12-02-2001, 04:20 PM
[QUOTE]Originally posted by FireFly
I'm going to split all posts from Hooper and Crinos in a bit, I'm as well already confused. :)
https://vborg.vbsupport.ru/showthread.php?s=&threadid=32879
Tell me if the title of the thread is not appropriate. :)
Does this work ok or not?
I want to release it as soon as possible, but I want to make sure it works perfect first! :D
Dark Blaze
12-02-2001, 04:55 PM
Very nice Chen, well done :)
Hooper
12-03-2001, 06:01 PM
Well,
I have all the links I need insatalled currently and have found that they all show up correctly in the WOL. I don't know if the hash statement is necessary or not with this hack but if not I really don't have any more ideas for it. It seems to be doing what it should be doing. :D
Haven't found any quirks. Might want to release this one if no one has any more suggestions.
Admin
12-04-2001, 11:59 AM
Thanks Hooper, these are great news. :D
Thank you all for testing this hack, I'll be releasing it soon. :)
Hooper
12-04-2001, 12:14 PM
Welcome. :)
Bedhead
12-04-2001, 12:59 PM
Hello all.
I thought that I would jump on the bandwagon and test this out.
Everything appears to be working fine here with 2.2.1.
Great job.
CrazyJohn
12-05-2001, 04:33 PM
Just confirming - works perfectly in 2.2.1.
CJ
Dark Blaze
12-05-2001, 06:45 PM
[QUOTE]Originally posted by CrazyJohn
Just confirming - works perfectly in 2.2.1.
CJ
KuraFire
12-10-2001, 01:44 PM
I have a suggestion: explain to use how to incorporate home-made files that reside in the directory of vbulletin.
For instance:
http://www.kurafire.com/files/thecouch/portal2.php
http://www.kurafire.com/files/thecouch/ is the directory of my board, and the portal2.php is a home-made portal page that lists 50 threads that have last had a reply in (excluding threads from a private forum). (oh, and portal.php lists 250 instead of 50).
Now, can we just list portal2.php in the input panel of this hack and it'll work already? That's all I want to know, how to make that work :)
(I read it already works, with some editing, for the vbstats hack)
Admin
12-10-2001, 02:26 PM
If portal2.php requires global.php, then yes you can simply list it using the hack. :)
KuraFire
12-10-2001, 02:45 PM
No, it doesn't use global.php. It only creates an opening to the forum's database, runs one query and creates an output of that.
How would I go and include global.php for it? I want to know that because I want to use some of the global functions in the new version of the portal2.php page (which will actually LOOK like something, unlike now).
Admin
12-10-2001, 02:52 PM
require('./global.php');
just add it to the file and it'll act just like any other vB file.
KuraFire
12-10-2001, 03:03 PM
Great, thanks :)
So what exactly does it allow me to use in my code with that?
KuraFire
12-10-2001, 03:06 PM
While I'm at it: how did you do that awesome "user is away" script ???? That's awesome! :eek:
Edit: nm, I see the hack already. :)
Admin
12-10-2001, 03:11 PM
The major advantage is using the sessions vBulletin provides.
Other than that, checking for permission becomes easier, and also templates. You can use templates with that.
KuraFire
12-10-2001, 03:30 PM
Ooh, permissions, THAT I like very much! ^_^
KuraFire
12-11-2001, 08:00 AM
[QUOTE]Originally posted by FireFly
require('./global.php');
just add it to the file and it'll act just like any other vB file.
Admin
12-11-2001, 08:07 AM
What are the exact warnings?
KuraFire
12-11-2001, 08:15 AM
Warning: Undefined index: HTTP_POST_VARS in ./global.php on line 85
Warning: Undefined index: action in ./global.php on line 85
Warning: Undefined index: action in ./global.php on line 88
Also, how would I go and make my portal2.php adjusted so that it will include the Header and Footer of my default style?? Would that take up a LOT of work?
KuraFire
12-15-2001, 09:22 PM
Any word yet on how I can fix this??
Hooper
12-15-2001, 10:17 PM
[QUOTE]Originally posted by KuraFire
Any word yet on how I can fix this??
The Realist
12-16-2001, 12:25 AM
I have installed it at my end and Im getting the 404 error. I can add a who's online location just fine and also deleted it, this all works 100%.
If I click on the file underfilename it goes to the 404 error page:
http://www.skytronic-forums.com/testbest?
Uploaded the admin_online.php from the top post and the one a few posts down and none work.
Am I doing something wrong or is there something Im missing?
Running: 2.2.1
Thanks.
;)
Hooper
12-16-2001, 12:30 AM
[QUOTE]Originally posted by The Realist
I have installed it at my end and Im getting the 404 error. I can add a who's online location just fine and also deleted it, this all works 100%.
If I click on the file underfilename it goes to the 404 error page:
http://www.skytronic-forums.com/testbest?
Uploaded the admin_online.php from the top post and the one a few posts down and none work.
Am I doing something wrong or is there something Im missing?
Running: 2.2.1
Thanks.
;)
The Realist
12-16-2001, 12:38 AM
Nothing is showing whats so ever within the box. Tell me......... what does this enable you to do?
Hooper
12-16-2001, 12:43 AM
[QUOTE]Originally posted by The Realist
Nothing is showing whats so ever within the box. Tell me......... what does this enable you to do?
The Realist
12-16-2001, 02:06 AM
Thank you :)
Very well explained and I know now were Im going wrong.
Thanks.
;)
Hooper
12-16-2001, 02:14 AM
[QUOTE]Originally posted by The Realist
Thank you :)
Very well explained and I know now were Im going wrong.
Thanks.
;)
KuraFire
12-16-2001, 02:38 PM
[QUOTE]Originally posted by Hooper
<snippets>
Just add the necessary changes.
Hooper
12-16-2001, 05:08 PM
Chen,
I haven't found any problems. Added several outside pages and everything seems to be doing super. I've even managed to pull in a news script that ends up using various files and it works super. Ready for release as far as I can see. Thank you for the super hack. :)
JJR512
12-17-2001, 02:54 AM
[QUOTE]Originally posted by FireFly
The major advantage is using the sessions vBulletin provides.
Other than that, checking for permission becomes easier, and also templates. You can use templates with that.
Hooper
12-17-2001, 02:56 AM
I couldn't get it to work that way either JJR. It works properly without including the sessionhash as far as I can see. The only thing I did different is I added the sessionhash to all of my links in the forum. So SiteNews.php has a link with the sessionhash included. In other words I didn't add the sessionhash to the link in the hack, I added the sessionhash to the link in the forums that takes you to that page.
Hope this helps... :)
KuraFire
12-17-2001, 07:23 AM
Erm, but isn't everyone's sessionhash unique etc. etc. ?
Anyway, Hooper do you have the global.php script required at the start of all of those pages (listed in your attached ready.gif above) ??
:)
Dontom
12-17-2001, 07:30 AM
Easy to install, works perfekt with external pages!
:D
Thanks a lot!
Tom
Hooper
12-17-2001, 07:57 AM
[QUOTE]Originally posted by KuraFire
Erm, but isn't everyone's sessionhash unique etc. etc. ?
Anyway, Hooper do you have the global.php script required at the start of all of those pages (listed in your attached ready.gif above) ??
:)
KuraFire
12-17-2001, 09:27 AM
*nods*
But I still don't know how to fix the three errors I get when I include global.php on a page.. :(
(see posts #59 and #61 in this thread, for the details)
Hooper
12-17-2001, 11:48 AM
[QUOTE]Originally posted by KuraFire
*nods*
But I still don't know how to fix the three errors I get when I include global.php on a page.. :(
(see posts #59 and #61 in this thread, for the details)
KuraFire
12-17-2001, 03:03 PM
My global.php (I assume this is the one in the root directory, not the ./admin/ directory) is untouched (never edited it), and my external files are in the very same directory. I keep all my external pages that extract data from my vB-database in the same directory, cos yes that's a lot easier for everything. :D
Anyway, no, I doubt it's a path error. The two lines (85 and 88) in my global.php are:
if ($HTTP_GET_VARS['HTTP_POST_VARS']['action'] ==
$HTTP_POST_VARS['action']) {
unset($HTTP_POST_VARS['action']);
}
$HTTP_POST_VARS['action'] = trim($HTTP_POST_VARS['action']);
(with the second line as 85, and the last line as 88)
Maybe I ought to try this online instead of on my own computer (set up as apache+php+mysql) - that might be it?
Hooper
12-17-2001, 03:09 PM
[QUOTE]Originally posted by KuraFire
My global.php (I assume this is the one in the root directory, not the ./admin/ directory) is untouched (never edited it), and my external files are in the very same directory. I keep all my external pages that extract data from my vB-database in the same directory, cos yes that's a lot easier for everything. :D
Anyway, no, I doubt it's a path error. The two lines (85 and 88) in my global.php are:
if ($HTTP_GET_VARS['HTTP_POST_VARS']['action'] ==
$HTTP_POST_VARS['action']) {
unset($HTTP_POST_VARS['action']);
}
$HTTP_POST_VARS['action'] = trim($HTTP_POST_VARS['action']);
(with the second line as 85, and the last line as 88)
Maybe I ought to try this online instead of on my own computer (set up as apache+php+mysql) - that might be it?
KuraFire
12-17-2001, 03:27 PM
I'll give that a shot then when I have some time for it. Thanks :)
Hooper
12-17-2001, 03:32 PM
Welcome. :D
Still beta, I wanna jump in and try this out! where do I begin.. just install? heh thanks
KuraFire
12-18-2001, 04:27 PM
I don't think this belongs in the beta forum, by now. It works like a charm and I haven't encountered any bugs, nor anyone else that installed it. :):up:
Hooper
12-18-2001, 05:03 PM
Had a chat with Chen. He mentioned moving this to the Full Version Hacks sometime soon. Glad to hear you have it working KuraFire. This hack gets two thumbs up! :)
KuraFire
12-19-2001, 07:13 AM
I find nothing beta about this hack anymore. It installs smoothly and works like a charm :)
This is another great one, FireFly. I finally got around to removing all my manual additions to online.php and installing this last night. I love it. I need to add some more programs so I can make more entries. :)
Anyone get this to work alongside the jpilot chat integration hack?
If I add chatmain.php to the who's online area, I still get "Unknown location".
JJR512
12-23-2001, 07:42 PM
It works fine for me.
My file is named main_chat.php, and it is in the forums directory.
[QUOTE]Originally posted by JJR512
It works fine for me.
My file is named main_chat.php, and it is in the forums directory.
TheCaver
12-25-2001, 07:29 PM
Works great (2.2.1) but please remember to include the session information when you post in final release, had to hunt for this...
Also for including global.php in directories above the forums level use:
chdir($DOCUMENT_ROOT . "/forums");
include("$DOCUMENT_ROOT/forums/global.php");
chdir($DOCUMENT_ROOT);
JC
KuraFire
12-25-2001, 09:09 PM
[QUOTE]Originally posted by KuraFire
I'll give that a shot then when I have some time for it. Thanks :)
How do you include the thread the user is viewing? Currently I have:
file: palmthread.php
description: <a href="palmthread.php">Viewing PalmDOC-version of thread</a>
which shows up in Who's Online as not linking to the thread but to palmthread instead (ofcourse). How can I make it look like:
djr: Viewing PalmDOC-version of thread <thread here>
- djr
anyone?
Furthermore: this very nick hack is ready for Full Release as far as I'm concerned :-)
Thanks Firefly!
- djr
Hooper
12-31-2001, 07:48 PM
Hello DJR,
I saw your post the other day. I thought maybe Chen would answer. I'm not sure why you want the link that way. I have all of mine set up as you have mentioned
description: <a href="palmthread.php">Viewing PalmDOC-version of thread</a>
This works for me. It should be showing
"Viewing PalmDOC-version of thread" and that should be a link to the palmthread.php.
Is it working this way for you?
DroppedAtBirth
12-31-2001, 07:49 PM
First I am using vbp.
I can get all mine locations working except thing like
/modules.php?op=modload&name=Gallery&file=index&do=showpic&pid=9&orderby=dateD&s=68fe503349f703f781447
I have tried to put in /modules.php and it still comes up unknown but have more than one module so I was hoping to be able to user something like /modules.php?op=modload&name=Gallery but that doesn't work either.
Any ideas?? :confused:
Hooper
12-31-2001, 07:52 PM
Ah I see. vBPortal. I'm sorry I don't have any experience with the hack. There are a couple references to links within this thread. One was mine on page 5.
Viewing <a href="http://www.yoursite/yourforums/lastposts.php">Last 10 Posts</a>
If this doesn't work for you then I cannot help much with the implementation with vBPortal.
DJR,
If you are using vBPortal I cannot help much.
Sorry.
Maybe Chen would know how to help.
Rick
Rick,
Thanks for your answers. I'm not using vbp (although planning to do so as soon as the review section gets better).
I feel the threadinfo is a really essential part of the Who's Online section. In the normal Who's Online you have:
hooper: now reading [Who's Online locations from Admin CP]*
in Chen's hack you have:
hooper: [viewing PalmDOC version of thread]*
* = hyperlink
Whereas in example 1 you have a direct hyperlink to the thread as in example 2 you have only a link to the php-script, which is not the info you want in Who's Online.
Don't misunderstand me, I love the hack and I think it's a really cool addition to vb, but in my opinion the hack will even get better with threadinfo :-)
Admin
01-01-2002, 03:04 PM
djr and DroppedAtBirth, you are both talking about something freddie had said in one of the early pages in this thread:
While your at it firefly, save me the time and make it support different actions from the same file, i.e.
articles.php?do=add
articles.php?do=delete
Unfortunately this is not possible yet with this hack. :(
You must edit online.php directly and do it per page to achieve what you're looking for.
Hooper
01-01-2002, 03:07 PM
:rolleyes:
Back from the dead. Hi Chen. :D
Chen,
Oh? Ok :-) Hmmm... are you considering updating it to reflect Freddie's wishes?
In the meantime, I will take also take a look at it to see how I can improve it to support threadinfo.
thanks though for another wonderfull hack!
- djr
TWTCommish
01-14-2002, 03:17 PM
Dang, I can't get this to work. I installed it without a hitch, but the new locations ain't showing up in the Who's Online page. Bummer...I REALLY needed this hack, too...it's a fabulous idea. Anything I can do to try and get this sucker working? :)
cyrus
01-15-2002, 12:44 PM
I dont get what you have to put in "filename" ... I put file.php ( which is in the forums directory ) but It didnt show me what I wrote for it in whos online :(
what am I doing wrong ??
thanks
TWTCommish
01-15-2002, 12:47 PM
Yeah, same problem I'm having. Dang...I REALLY wanna use this, man. :)
Admin
01-15-2002, 01:06 PM
Is file.php requiring vBulletin's global.php?
TWTCommish
01-15-2002, 01:10 PM
My two files are...glossary.php and shoutbox.php -- both using this line:
require("./global.php");
Still no go, though. :(
TWTCommish
01-22-2002, 12:31 PM
Any idea what's wrong? I'm stumped -- and I've LOVE to get this working...easily one of the most useful hacks imaginable for me. :)
trilOByte
01-28-2002, 02:56 AM
[QUOTE]Originally posted by FireFly
djr and DroppedAtBirth, you are both talking about something freddie had said in one of the early pages in this thread:
Unfortunately this is not possible yet with this hack. :(
You must edit online.php directly and do it per page to achieve what you're looking for.
TWTCommish
01-28-2002, 03:05 AM
Man, I'm going batty. I want for this hack to work so very badly. :D It'd be beyond useful to me.
[QUOTE]Originally posted by TWTCommish
Man, I'm going batty. I want for this hack to work so very badly. :D It'd be beyond useful to me.
TWTCommish
01-28-2002, 11:39 AM
Actually I had only "glossary.php" -- I'd never thought of the entire location. However, that doesn't seem to work either. :(
trilOByte
01-28-2002, 01:12 PM
what is the path to your forum and what is the path to glossary.php
you tried "/glossary.php" ?
TWTCommish
01-28-2002, 01:34 PM
That's it! The slash did it. Thanks so much. :)
trilOByte
01-28-2002, 03:08 PM
welcome :)
X-Fan
02-11-2002, 05:04 AM
Great hack! I'd also like to add a request for support for vbPortal, as well as support for locations with different actions, as that would be invaluable!
Hooper
02-11-2002, 05:17 AM
Might see if the Portal Man could take a look and see what could be added for support. Chen most likely won't write for portal. :frus:
trilOByte
02-11-2002, 09:25 AM
Wouldn't just adding support for actions, also make it compatible for portal?
looking at a portal page, the reference is "modules" with "op=modload&name="
At the moment, I have it set so that anyone looking at "modules" is displayed as "viewing a menu page".
nafae
02-21-2002, 12:26 AM
it works sexily in 2.2.2 this hack is so awesome!!
found a bug.. :D
you need to add stripslashes to the discription or you'll have a bunch of \'s in front of your quotes (') :D
nafae
03-11-2002, 07:34 PM
Is firefly still going to finish this hack, or is it now supportless :o Just want to check, although I am having no problems currently.
nafae
03-20-2002, 01:35 AM
ok, I have a question~ I was curious, how can I make it (modify this hack) so that lets say a user is at /chatmain.php? -which is a session hash I believe, how can I make this hack recognzie such a thing IE any url past the &s and strip it. SO that way, if I put "chatmain.php" as the site I'm trying to remove "Unknown Location" from, it will find chatmain.php&s=blahblahblah and remove the &s and everything past it?
Just curious, this has been bothering me for quite some time...
diettalk
03-23-2002, 11:26 PM
I'm also using vBPortal and the trouble I'm having is that I can get /download.php to work but it will not go to the actual location
/download.php?op=viewdownloaddetails&lid=2&ttitle=Diettalk.com_screensaver_1024x7 68
but it will only show /download.php
fyi.. I get the same thing with the "glossary".. it will only show glossary.php instead of the full location... so I doubt it's a "vBPortal" issue.
diettalk
03-24-2002, 12:35 AM
I figured out the issue with locations in "glossary.php" and for vBPortal's sections.php, links.php, ect.
Filename: sections.php
Description: Viewing <a href="$userinfo[location]">Articles</a>
"modules" for vBPortal are still not working though and I would like to replace "Article" with a variable for the page title ($title does not work).
heretic
04-01-2002, 11:27 PM
a problem I'm having is that I want it to go into a child directory, I'd like that to work.
right now I have www.warpstorm.com/forums/
and want it to link to the main page (www.warpstorm.com) and our Oracle (www.warpstorm.com/oracle/index.php)
is it ever possible to include child forums?
tkeil69575
04-23-2002, 08:36 AM
[QUOTE]Originally posted by diettalk
I figured out the issue with locations in "glossary.php" and for vBPortal's sections.php, links.php, ect.
diettalk
04-28-2002, 09:17 PM
If you have installed this hack.. just use...
filename: links.php
Description:
Viewing <a href="$userinfo[location]">Web Links</a>
But anything with a module, will not work at the moment.
[QUOTE]Originally posted by tkeil69575
can you elaborate on that, Im also using vbportal and would like to get the links.php and downloads.php to be found. I tried /links.php but it still is seen as an unknown location.
I also tried including the global.php in links.php but Im getting "function stripslashes cant be redefined".
mmh, maybe Im just too stupid ;)
tina
inetd
05-07-2002, 09:23 PM
Good hack!
I installed it!
VirtueTech
05-13-2002, 02:53 AM
Is there anyway to get it to recognize any sub directories of a domain?
So that no matter what sub directory under www.paintballcity.com (example: www.paintballcity.com/1/ and www.paintballcity.com/2/) it still says "Paintball City Homepage"?
Thanks.
filburt1
05-17-2002, 12:30 AM
Hey Chen, do you know when you're going to make this hack golden?
Admin
05-17-2002, 05:28 AM
"Right about now..."
* FireFly dances ;)
FleaBag
05-17-2002, 09:07 AM
I installed this hack in about 2 minutes, and I haven't had a single problem. It works for files above my forums folder too, such as the vBPortal files.
chen, you might wanna post the instructions to have a link in the admin cp to this :), been usin this for awhile, love the hack
ran into a problem. with 2.2.5
Parse error: parse error in /home/virtual/site20/fst/var/www/html/forums/admin/admin_online.php on line 85
Jeremy W.
06-04-2002, 07:50 PM
I agree, when I tried to drop it into the actual admin system with:
makenavoption("Who's Online Admin", "admin-online.php", "<br/>");
It coughed (404 error)... Why is this? *L*
Jeremy W.
06-04-2002, 08:09 PM
Ergh, aright, got that fixed, now the Who's Online doesn't work.
I get a parse error @ line 45 which is function show($userinfo) { *L*
Jeremy W.
06-04-2002, 08:16 PM
Okay... My day for problems :)
I've now fixed that, but when I added shoutbox.php as a location, it hasn't changed anything in the online.php page :(
ladyfyre
06-09-2002, 06:56 PM
any plans to update this hack to work with 2.2.6?
Or will it work as-is?
inetd
06-10-2002, 05:28 PM
ladyfyre, i have 2.2.6 and this hack well work.
DestyNova
06-13-2002, 02:05 AM
[QUOTE]Originally posted by inetd
ladyfyre, i have 2.2.6 and this hack well work.
Mike Gaidin
06-15-2002, 03:54 AM
Excellent hack FireFly!!
FleaBag
06-19-2002, 07:43 PM
Working great on 2.2.6. Also, I haven't read all this thread [just the first page] so maybe this has also been mentioned. To add admin_online.php to your CP edit admin/index.php and replace...
makenavoption("vBulletin Options","options.php?t=0","<br>");
...with...
makenavoption("vBulletin Options","options.php?t=0","<br>");
makenavoption("Add Who's Online Location","admin_online.php?","<br>");
Sorted. :)
Admin
06-20-2002, 05:10 AM
Stop following me!!
FleaBag
06-20-2002, 09:17 AM
Following you?! :o
Great Work FireFly, work like a charm on 2.2.6
I only hope that someday there will be a solution for the vbportal module file
Velocd
07-18-2002, 07:03 PM
Can't seem to get it working with 2.2.6, but if others are then I must be doing something wrong =falls over=
I've installed everything perfectly but when I add locations like shoutbox.php and main_photogallery.php, or quiz.php, etc, they still show up as unknown location. If you could take a look at my online.php that would be great, just PM for it ^^;
jbear6
07-23-2002, 12:12 AM
This hack works much better if you remember to upload the hacked online.php. Great hack Firefly
yetdog11
08-01-2002, 05:13 PM
This post's issue is no longer relevant
yetdog11
08-04-2002, 03:25 PM
I am getting an Unknown Location in WOL - it shows the link to the file and the session ID, but its titled Unknown Location, even thought I entered it in the admin_online.php file correctly.
Matthew Yette
matt@antsmarching.org
yetdog11
08-04-2002, 10:57 PM
I followed directions perfectly, and I get this in WOL when someone is on a page I added through the admin_online control panel.
Unknown Location: /setlists/test.php?
The file in question's URL is www.antsmarching.org/setlists/test.php
and the path i use in the admin_online is ../setlists/test.php
Still no dice, though. Anyone? Please?
Matthew Yette
matt@antsmarching.org
I use complete urls for the paths and don't have any problems. That might work for you, too.
yetdog11
08-05-2002, 02:50 AM
Ok - so in admin_online, I entered in the full URL into the filename box (http://www.antsmarching.org/setlists/test.php), and the link comes up as http://www.antsmarching.org/forum/http://www.antsmarching.org/setlists/test.php
The way I got it to work(basically link to the right place) was by entering "../setlists/test.php" into the filename field. But then I still get the Unknown Location error, complete with the &s=(random numbers) information.
Matthew Yette
matt@antsmarching.org
PS - thanks for replying, i hope that the information I provided can better help you understand my problem so that I might get this working soon.,
yetdog11
08-05-2002, 06:12 PM
Top - I feel so close - anyone have anything?
yetdog11
08-06-2002, 05:39 PM
Yikes - anyone? :(
Schorsch
08-10-2002, 05:12 AM
works great, thanks FireFly!!
cu
Schorsch
Schorsch
08-10-2002, 05:14 AM
[QUOTE]Originally posted by yetdog11
Ok - so in admin_online, I entered in the full URL into the filename box (http://www.antsmarching.org/setlists/test.php), and the link comes up as http://www.antsmarching.org/forum/http://www.antsmarching.org/setlists/test.php
works perfect on 2.2.6
even does files outside of main folder
Installed perfect and without one error - added to admin cp as well
Nice one Firefly - another good hack under your belt.
[QUOTE]Originally posted by Schorsch
just type the filename test.php into the location field, works fine for me.
cu
Schorsch
yetdog11
08-11-2002, 04:04 PM
The problem is, the test file is not in the vB folder. And I haven't found a way to dynamically include the session if it is needed.
stangpower
08-12-2002, 01:46 AM
Installed..works great
zachb
08-26-2002, 03:19 PM
Anyway to get it to work with child forums yet? I'd like to link to http://www.planetplastica.com/home.html, but it always adds /forums/ to everything i add. :(
FleaBag
09-03-2002, 01:32 PM
Works great on 2.2.7, thank you. :)
chad777
09-08-2002, 03:44 AM
When I goto view who's online after adding about 6 locations.
I get this error
Fatal error: Call to a member function on a non-object in /home/snarfpro/public_html/forums/online.php on line 128
Any Ideas ?
Actually I have found out exactly when it does this.
If a member is viewing a profile anyone else trying to see "who's Online" gets that error any idea what could be wrong here is
lines 126-134 of online.php
case 'getinfo':
$userid = explode('userid=', $userinfo[location]);
$user = $DB_site->query_first("SELECT username FROM user WHERE userid = ".intval($userid[1]));
if ($user[username]) {
$userinfo[where] = "Viewing Profile of <a href=\"member.php?s=$session[sessionhash]&action=getinfo&userid=$user[userid]\">$user[username]</a>";
} else {
$userinfo[where] = "Viewing Profile of a Forum Member";
}
break;
FleaBag
10-29-2002, 09:57 PM
Working with 2.2.8. Nice addition to my site. :D
Chris M
10-29-2002, 10:03 PM
Gamer - https://vborg.vbsupport.ru/showthread.php?s=&action=showpost&postid=316171
Satan
DrkFusion
10-29-2002, 10:11 PM
Of corse, please do not post that same message over again, because we all know most hacks work with 2.2.x perfectly
It really gets annoying.
Thank
-Arunan
Littlebit
10-29-2002, 10:41 PM
Anyone who can help,
If I have a file called: index.php that is not in my forums directory, what would I use for the filename ?
the file uses global.php, but how will it work correctly with files in different folders with the same name?
NTLDR
10-29-2002, 10:46 PM
Simple answer, you can't :(
Any files called index.php are given the same location on the WOL, as with all the other pages. To get around this I've created a redirect page which is index.php and the real page that is the "index" if you see what I mean.
Alternativly you could add this line into a .htaccess file:
DirectoryIndex index2.php index.php index.html index.htm
Then it will use index2.php if it exists before it tries index.php
Littlebit
10-30-2002, 01:40 AM
NTLDR, thanks for answering. :)
I don't think I fully understand what you mean. Well, I've never had to add a redirect. I'll give it try...thank you
NTLDR
10-30-2002, 12:18 PM
I'll try and explain more clearly :)
Limitation of this hack:
It will only check for the file name, eg abc.php, if you have abc.php?a=bc they will count for the same, whereas if you edit online.php you can give them different locations.
Posible Limitation of vB, as it stands you can only have one file with the same name recogised, with hacking you should be able to get it to recognise paths as well.
SpeedStreet
11-05-2002, 02:06 AM
I've read this thread cover to cover, and do not have a definintive answer as to whether or not this will work with session hashes.
I am using shoutbox, which returns a sessionhash in it's URL. I have tried all the various tips and tricks in this thread, to no avail.
Should I just give up and forget this?
Erwin
11-05-2002, 02:36 AM
What do you mean? Forget about the sessionhashes.
Put "shoutbox.php" in the field for the file name, and that's it. It will work.
yetdog11
11-14-2002, 04:23 PM
Erwin, will that also work for pages outside of the vB directory? For example, my forums are at www.antsmarching.org/forum/
However, lets say I want to add www.antsmarching.org/setlists/Viewshow.php to the mix, afer including global.php on viewshow (with the full path), what do I put in the location box in ACP to point to that file and have it work correctly?
Jesus Chio
11-15-2002, 09:19 AM
I installed it and seems to work fine, I can add filenames and descriptions but the Whos online page still shows the unknown path like:
Unknown Location: /photopost/showphoto.php?photo=140&papas&sort=1
I added these filenames:
admin/
photopost/showphoto.php
photopost/showphoto.php?photo=142&size=big&papas&sort=1
and non of them seem to make it change.
My forums are at http://www.jeeperos.com/foros
and the photopost is at http://www.jeeperos.com/photopost
When I place the mouse over the path for the files like by example on photopost/showphoto.php
it shows on the explorer bar
http://www.jeeperos.com/foros/photopost/showphoto.php
how do I make it get rid of the "foros" prefix?
thanks in advance for your time
NTLDR
11-15-2002, 09:44 AM
This hack doesn't take into account directory names, it only takes filename.php, everything else is stripped off.
BigCheeze
11-20-2002, 04:58 AM
I just installed it. It's easy, and works as advertised. Just wish I could make it so that it would read a little more details besides the filename.php.
With the modules.php in phpPortals it would be nice if it could read more of that line to tell what their doing... For example I have the weather hack installed, but if their checking the weather, or reading the FAQ, they still will only display one location.... O'well Not that big of a deal, but would be a nice upgrade.
Thanks guys!!!
Erwin
11-20-2002, 05:03 AM
A tip - ignore the directories - this hack looks for the filename - any file name in any directory.
So just put:
file.html
or
file.php
Even though it's in a different directory. The Who's Online will still work. :) It's a great hack! Still using it!
Cyberhouse
11-21-2002, 06:47 AM
Very nice hack, Installed and works great :D
Great work ;)
Sorry - I may just be dumb asking this!! If this has already been answered then please forgive me... :squareeyed:
Basically I'm trying to install this hack on the forums. We are using 2.2.9. We also have PhotoPost and PHPMyChat installed in seperate directories, which we would like to include in the WOL.
My main questions are:
What's the easiest way to make it 'see' the gallery and chat in whos online? I've added the chat, gallery main index, show photo and show gallery urls in the WOL CP with descriptions but I have not yet managed to get the
require("../forums/global.php");
to work.
I inserted it at the top of the page, after the comment, looking at a page that already 'required' global.php to guess where to put it, and got a 'fatal error'. So.. trial and error being my plan, I moved the 'require' code down immediately below the include code and now when I go to the gallerys a blank page stares back at me. :cry: I can just presume that the require command stops the computer proccessing the code after it in some way? If this is the case... where the flippin' nora do I put it??? :ermm:
Oh and whilst I'm on the case can I just rename index.php and change the .htaccess in the photopost directory to galley.php to avoid the 'confusion' between the two index.phps or will this screw everything up... If you're following this then god bless you cos I'm now confusing myself.... :ermm:
Many thanks in advance.
Oliver
eggz I'm getting that same problem as you, so I moved the require code down to the bottom of the page. Getting a weird error now on the WOL page, it keeps on listing my server ip address....
I was trying to get http://www.dss50.tv/top/toplist.php to show up in the WOL
I've had no luck so far getting this page to register properly :(
anyone have any ideas?
[QUOTE]Originally posted by Erwin
Even though it's in a different directory. The Who's Online will still work. :) It's a great hack! Still using it!
Okies, I found the post I was talking about...
https://vborg.vbsupport.ru/showthread.php?s=&postid=276405
But not working for diff subdomains.
NTLDR
12-31-2002, 08:03 PM
This hack won't do that, and I for one have never managed to hack it in so I can have more than one index.php.
hmm...
I wonder if there's a way to hack it so it stores the complete path to the file instead of just the filename, then just mod the online.php to go with full paths.
StangMan91GT
12-31-2002, 09:13 PM
I was able to get the Who's Online to track users across many of the main section pages of our site, but I had to hack the online.php myself to make it function the way I wanted. I couldn't find any pre-existing hack that would do it.
Well, that's what I'm tryin' to figure out how to do :)
So what hacks did you make to online.php? And does it work for complete URLs? Not just filenames & relative paths?
StangMan91GT
12-31-2002, 11:54 PM
The who's online code has a variable called strpos($userinfo[location]), what I did was modify the existing case structure logic to both look for additional filenames and use the above variable, under a default case statement, within a large if - elseif structure to also parse for URL paths. Then you set up additional $userinfo[activity] value tags. In another case structure in the online.php code, it uses these activity labels/tags to determine what to output on the who's online listing.
View the attached code that I am currently running and you'll see what I did. Just duplicate what I am doing, but with your own filenames or URL paths on your site. Then you just include the following SSI tag at the end of each HTML file on your site. For this to work correctly without having to change all your file extensions to .shtml, just edit your Apache config or your IIS script/ISAPI configuration to make it parse all .html files for SSI commands in addition to .shtml files.
For Apache:
<!--#include virtual="/Tracker.php"-->
For IIS you might have to use:
<!--#exec cgi="/Tracker.php"-->
This file is in the root of my site and simply contains the following:
<?
require('X:/Absolute root Path to Vb/global.php');
?>
This was just a quicky hard coded hack to make it do this. I think a much better thing to do, and something that should be in Vb any ways, is added functionality to the admin interface that would let you build a list of URL's and filenames (stored in the database) of locations anywhere on your site (even on subdomains) and a corresponding URL to use as a link. Then if you just include some tracking code, or the global.php file, on all your pages it would have this functionality out of the box. The Who's Online code would just use what it pulls from that database table to compare/parse against its variables. This would make the Who's Online much more flexible and greatly expand it's functionality.
codewebs
01-02-2003, 09:30 PM
how would i make it so anything in lets say: archive/ :would say in whos online like viewing archive?
Natch
01-07-2003, 01:52 PM
I'm loving this hack - thanks Chen!
Martin64
01-19-2003, 10:30 PM
Class hack, saves a lot of work. :)
Thanks FireFly. :D
ethics
01-26-2003, 03:16 PM
[QUOTE]Originally posted by chad777
When I goto view who's online after adding about 6 locations.
I get this error
Fatal error: Call to a member function on a non-object in /home/snarfpro/public_html/forums/online.php on line 128
Any Ideas ?
ethics
02-09-2003, 10:59 PM
Wondering if it's okay to bump something a week old? :)
Thanks in advance to anyone who takes a look at this.
Spike05
03-18-2003, 07:57 AM
I have a Problem with the Hack!
When I activate Email (in Admin CP under User....) the tables are make problem!
See the picture!
I have vbportal also installed! There is a site called modules.php before I update vbulletin and vbportal I have this take: <a href="$userinfo[location]">Module</a>
But the field is empty now?
[sorry for my bad english :confused: )
Spike05
03-21-2003, 06:34 AM
Has anyone an idea??? :(
ryancooper
03-31-2003, 12:46 PM
Is it possable to get this to work with Logician's [WEBTEMPLATES HACK:]Share your WebTemplates or WebQueries! (https://vborg.vbsupport.ru/showthread.php?s=&threadid=36578&highlight=web+templates)
Thanks! :nervous:
Nebby
04-07-2003, 03:48 AM
Now what are the chances of that happening?
it used the template ID 65535
which is what i randomly typed in for another hack i made... of cvourse, it couldn't insert anything :P stupid me
GZ_Tanis
04-09-2003, 12:40 AM
I know you hera this a lot but you can never hear it enough im sure but GREAT Hack. now I am having troubles at the moment tho.
I am running 2.3.0 I installed like you correctly I even went over it 3 times to make sure now the problem I am having is me being the admin of the forums I have the ability to see IP address. The thing is they are showing in the EMAIL slot of the Whos online page.
Everything else worked correctly I made the proper link to the UNKNOWN page i was having. But now Like i said I get the IP #'s in the email Table column, is anyone else havin this trouble? I have added a picture of the screen (i have removed the #'s of course) but you can see where they was.
Thank you for your time
Zaeolos
04-10-2003, 06:02 PM
I just installed this hack on VB 2.3.0 and it is working flawlessly.
GZ_Tanis, do you have a hack that shows you the email address in the Who's Online page? That may be what is messing you up. Correct me if I am wrong, but I do not believe that the users email is originally supposed to be there.
GZ_Tanis
04-10-2003, 09:13 PM
[QUOTE]03-18-03 at 04:51 AM Spike05 said this in Post #192 (https://vborg.vbsupport.ru/showthread.php?postid=368491#post368491)
I have a Problem with the Hack!
When I activate Email (in Admin CP under User....) the tables are make problem!
See the picture!
I have vbportal also installed! There is a site called modules.php before I update vbulletin and vbportal I have this take: <a href="$userinfo[location]">Module</a>
But the field is empty now?
[sorry for my bad english :confused: )
Zaeolos
04-10-2003, 09:17 PM
Where do you enable the email to be shown like that? I was not saying you were wrong, I would just like to recreate it.
***Update...
Nevermind, I found it. I have never enabled that email function before. But now that I did, it is still working perfectly. I will look into it some more and see why it may be doing what it is doing to you.
GZ_Tanis
04-10-2003, 10:00 PM
[QUOTE]Today at 05:11 PM Zaeolos said this in Post #199 (https://vborg.vbsupport.ru/showthread.php?postid=380353#post380353)
Where do you enable the email to be shown like that? I was not saying you were wrong, I would just like to recreate it.
***Update...
Nevermind, I found it. I have never enabled that email function before. But now that I did, it is still working perfectly. I will look into it some more and see why it may be doing what it is doing to you.
GZ_Tanis
04-16-2003, 12:50 AM
Any word about a fix for this yet? I am still having the IP addy showing up in the email slot.
CRego3D
05-06-2003, 03:21 AM
worked flawlessly for me :) .. (2.9.0)
nymyth
06-03-2003, 08:18 PM
How can you go to a child directory ie:
http://www.jaydabhi.com/forums/index.php is where it goes but what if i have something like this
http://www.jaydabhi.com/photopost this does not lie within the forums directory, how can i take it down a notch???
Peace
ps..i tried what you guys said but it really doesnt work
bharvey42
06-04-2003, 06:03 AM
I will install this if you can specifiy files in a child directory.
-Sidekick-
06-11-2003, 07:49 AM
What do I have to do to be able to add a link to this from my Admin CP?
Cause it keeps coming up page not found. I'm guessing it has something to do with my session id getting added on at the end of the url?
paratek
06-12-2003, 07:12 PM
Erwin, how do you handle the modules.php used in vbportal, or is this just not possible?
For example, how do i display the location for the download section of vbportal?
kaotic
06-14-2003, 03:00 AM
[QUOTE]06-11-03 at 09:49 AM -Sidekick- said this in Post #205 (https://vborg.vbsupport.ru/showthread.php?postid=407426#post407426)
What do I have to do to be able to add a link to this from my Admin CP?
Cause it keeps coming up page not found. I'm guessing it has something to do with my session id getting added on at the end of the url?
Nebby
06-16-2003, 02:27 PM
[QUOTE]04-09-03 at 02:40 AM GZ_Tanis said this in Post #196 (https://vborg.vbsupport.ru/showthread.php?postid=379431#post379431)
I know you hera this a lot but you can never hear it enough im sure but GREAT Hack. now I am having troubles at the moment tho.
I am running 2.3.0 I installed like you correctly I even went over it 3 times to make sure now the problem I am having is me being the admin of the forums I have the ability to see IP address. The thing is they are showing in the EMAIL slot of the Whos online page.
Everything else worked correctly I made the proper link to the UNKNOWN page i was having. But now Like i said I get the IP #'s in the email Table column, is anyone else havin this trouble? I have added a picture of the screen (i have removed the #'s of course) but you can see where they was.
Thank you for your time
Intex
06-19-2003, 08:46 PM
Great hack firefly. Works well. Now just have to try and work out from all the posts how to reference files outside the forum root directory :D.
Update: Turns out directories are irrelevant - its just the filename that determines the display of who's online. It also turns out that this was in the posts here :D.
* Intex clicks install.
Frozen Dreams
07-15-2003, 01:40 PM
* Frozen Dreams clicks install.
awesome hack - been looking for this one :D
ekool
08-09-2003, 07:40 PM
Would it be possible to integreat wildcard matching into this? For example, vbportals uses the same filename (module.php) to call other "modules" -- So, as far as i can tell there is no way to specifically list what they are doing.
The granularity stops at "Using External Module" -- on my site.
I would like to be able to say, do the following:
modules.php*Active_Topics* (which would be in the URL they are at)
This would be a nice addition.
mfacer
09-25-2003, 06:29 PM
urgh.... i have tried everything to get my other pages on the site to show up in the whos online bit.... am i right in thinking it cant be done if the pages are outside the forum folder?
my set up is
domain.com/forum/
and all other pages are simply in the root folder. I installed this hack and added "../test.php" as a filename... I also added require("forum/global.php"); to the file... but that didnt like it cos it couldnt find "admin/conf.php" or something
any ideas what to do? ie: give up?! thanks...
Oblivion Knight
09-28-2003, 03:17 PM
Still running flawlessly in 2.3.2, thanks Chen :)
sabret00the
09-29-2003, 02:45 PM
does this work for complex url's like photoposts
/gallery/showgallery.php?cat=&stype=1&si=Konan&perpage=20&sort=1&stype=2&cat=500&ppuser=&friendemail=email@yourfriend.com& (http://www.ebslive.com/gallery/showgallery.php?cat=&stype=1&si=Konan&perpage=20&sort=1&stype=2&cat=500&ppuser=&friendemail=email@yourfriend.com&)will it automatically grab the username or userid and change the link in the wol to viewing [username]'s gallery?
i just installed this hack and am confused as to what it does. I see no changes and i followed the instructions. When i click on who's online i see alto of unknown locations. Is that correct since i saw this before i installed the hack.
SVTBlackLight01
12-03-2003, 10:53 PM
[QUOTE=ronb]i just installed this hack and am confused as to what it does. I see no changes and i followed the instructions. When i click on who's online i see alto of unknown locations. Is that correct since i saw this before i installed the hack.
KuraFire
02-03-2004, 08:09 PM
[QUOTE=sabret00the]does this work for complex url's like photoposts
/gallery/showgallery.php?cat=&stype=1&si=Konan&perpage=20&sort=1&stype=2&cat=500&ppuser=&friendemail=email@yourfriend.com& (http://www.ebslive.com/gallery/showgallery.php?cat=&stype=1&si=Konan&perpage=20&sort=1&stype=2&cat=500&ppuser=&friendemail=email@yourfriend.com&)will it automatically grab the username or userid and change the link in the wol to viewing [username]'s gallery?
gspot
04-14-2004, 03:10 AM
[QUOTE=KuraFire]You can't use PHP in this hack, and it won't support dynamic URL's either. So no, it won't grab the username or id.
However, the vB3 version of this that I am currently writing, does allow you to use dynamic pages. :)
glowinggal
07-09-2004, 04:34 AM
i'm with gspot - need this for vb3 :)
58sniper
07-09-2004, 05:47 AM
[QUOTE=glowinggal]i'm with gspot - need this for vb3 :)
MRGTB
08-15-2005, 07:28 PM
This is a great hack, and the option advertised in this same thread telling you how to link it from from your admin cp is great.
Thanks, I have now managed to add my portal page to my "Who's Online" and were now.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.