View Full Version : Who was online today [available in english & german]
Mystics
09-20-2002, 11:12 AM
Most people (maybe all....) who have the reset problem have installed vBIndex....uninstall this and it will work fine.
Enjoy Marcus
09-21-2002, 03:40 PM
why uninstall it? why not try and find a fix for it?
Keith
09-21-2002, 09:47 PM
Hi Mystics,
Explain VBindex? I don't have VBindex.
I'm using some of the features, but not the "most users ever" because of the reset problem. Other than that annoying issue, I love the hack. Thanks for the work putting it together.
EnriqueHavoc
09-23-2002, 02:42 PM
i have the same problem of fluctuating maxusers using vbhome. not using this script, but it seems like a similar problem with recordusers.
i believe it stopped working after i added a $bburl to a link somewhere(forget where and which now) to get the rest of the whosonline links to work on my index page.
not sure how to fix it, but i ~suspect a link to $maxusers or $recordusers somewhere needs to be redirected back to the /forum directory
NTLDR
09-23-2002, 03:20 PM
Originally posted by Mystics
Most people (maybe all....) who have the reset problem have installed vBIndex....uninstall this and it will work fine.
This is no longer the case with Version 2.0 upwards, total online users today and online now work 100% correctly now.
NexDog
09-23-2002, 07:14 PM
Can someone email or PM the text file (instructions) as my browser screws all text files. :(
NexDog
09-23-2002, 09:41 PM
All fixed. :)
Tony G
09-26-2002, 08:51 AM
Originally posted by Keith
Firefly, the hack appears to work fine here. Given you have members all around the world and the resulting amount of different timezones, why does it work here?
Pretty sure he fixed the hack himself. No shared code yet though.
Keith
09-26-2002, 12:14 PM
True, or there's something else going on here. We know there are participants from all over the world on this forum, so I'm still scratching my head wondering how it is the hack works here.
NexDog
09-27-2002, 12:24 PM
Definitely have issues on my board:
http://hostnexus.com/gutted.jpg
If I set my forum timezone to Central Standard Time (my timezone is in AU):
http://hostnexus.com/gutted2.jpg
I know everyone is having different problems and I saw a couple people who were having the same problem as me. The record online at one time and record online in one day kept resting to however many were online at that moment.
I'm not sure why this changed anything, but it did
change this
$maxusers=explode(" ", gettemplate('maxloggedin',0,0));
to this
$maxloggedintemplate=$DB_site->query_first("SELECT template FROM template WHERE title='maxloggedin' AND templatesetid='-2'");
$maxusers=explode(' ',$maxloggedintemplate['template']);
now it works fine
great hack by the way. I have it set up on the who's online page
BlackTiger
10-14-2002, 10:11 PM
Great hack! Thanks!
Ageel
10-16-2002, 08:18 AM
hi there
thanx for the great hack
but I tried it and it didn't work for me :(
the hack shows the greatest active user count that have been on my site at one day, and the date
but it does not show me the users the had visited my site today and their usernames...
I have VB 2.2.6
I did all modifications as mentioned in the installation file exactly..
can anybody help me
a snapshot of my forum is attached,
the red rectangel indecates the place where user names should be,
and the green one indicates where the user count should be
and the the blue one indicates where the most active users count and the date should be (this is the only thing working)
help me
X-Fan
10-23-2002, 04:02 PM
Apologies in advance if this has already been asked, but is it possible to just get the number of registered members and unregistered guests that have visited between midnight the previous day through to midnight the current day?
FleaBag
10-28-2002, 11:08 PM
Working on 2.2.8.
Larry@IOG
11-06-2002, 11:44 PM
How do I get the table of users to show up as a link from the text: Number of Active Users Today
Larry
nice mod :)
works perfectly fine with 2.2.8 ;)
thanks
seangworld
11-23-2002, 12:42 AM
that was very easy to do, nice job and thank you.
Warlord
11-23-2002, 08:47 PM
Great Hack... seems to work on 2.2.8 too. :)
*Clicks install*
XFLBret
11-26-2002, 12:16 PM
Hello...
I have a problem with this hack. It was working ok, but when I upgraded to 2.2.8 and tried to reinstall this hack, I have the same problem...
Everything works fine, except now it always says "Most users ever online on a day was 202 on 02-01-1996" Only had the forums since this last May, and we have never cracked 80 in a day. And, as I said, this worked before I upgraded to 2.2.8.
I'm not a programmer, nor a php expert, but I have double-checked the directions and my following of them at least five times now, and cannot find the problem.
my forums are at www.pcfootball.net/forums
thanks for your help.
Mystics
11-26-2002, 03:56 PM
@XFLBret
Execute this Query to restart the counter:
UPDATE template SET template="27 1034132820" WHERE title="maxloggedin"
XFLBret
11-26-2002, 10:12 PM
Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in /usr/local/etc/httpd/htdocs/forums/admin/query.php on line 29
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/etc/httpd/htdocs/forums/admin/query.php on line 33
that's what I get when I try to run the query......
XFLBret
11-26-2002, 10:13 PM
well, i loook at the board, and it appears to be working...for now
Floris
11-30-2002, 12:26 PM
With 2.2.7 I didn't had any problem with this hack, now with 2.2.9 i can't seem to keep the number of the max and the number seems to be off.
I can't seem to find a fix in the thread either.
Visionray
12-05-2002, 11:10 AM
This hack doesn't seem to work correctly. There are problems all over the place.
For example, it is 8am where I am right now. Now, I know that there were many users who visited the site at 4am my time. Yet they are not displayed on "number of active users today". Other people who posted at 5 am ARE displayed.
Is this based of server time or what? There seem to be too many different answers. MY server is U.S. pacific time, so its only 3 hours behind my time.
Now, anyone who posted at 4 am (my time) should be displayed on who's online. (being that it would be 1am server time)
Now if I go to log on as a user who lives in England, the number of active users is 0. If its supposed to be set on Pacific time, then there should be a lot of users displayed, but they are not.
Visionray
12-05-2002, 11:13 AM
Another thing. I just installed this hack today
Date - Dec 5th, 2002
It says
"number of active users today 6
"most users ever online in a day 10 on Dec 5th!!!
How in the world is that possible? How can I have the most be ten in a day (which is today) yet it says the number of active users today was 6?
Doesn't make any sense.
Visionray
12-05-2002, 11:20 AM
Originally posted by Velocd
I'm having a weird problem with this hack. Recently I found my homepage was generating an abnormal amount of queries for the small amount of hacks consisting on it. It was creating 43 queries, and that is even after I included all the templates in the $templateused="" list.
Well I was going through the index.php code, trying to find the suspect involved and I reached this hack. I was basically commenting out all the hacks individually on my index.php till I found which one was creating the excessive queries. When I commented out the who-is-online-today hack, it reduced my queries by 20! That makes me sad though, because this is one of my favorite and most useful statistical hacks I have :(
I installed everything perfect, does anyone know why this could be happening?? PM me if you would like to see my index.php.
Regards,
Velocd
I don't know why that would happen. This hack only added one query to my page.
Visionray
12-05-2002, 06:36 PM
ok im starting to realize how this hack works. I wish there was a way to base it off the user's time, but I guess that is not possible. The unfortunate thing is, since my server is in California, users from Europe will never see who was online that day unless they are browsing my forum in the middle of the night and early morning hours their time. Eh well. Its still cool, works for me! :D
I've just installed this hack on my site and seem to be getting the same problem as quite a few others. With 2.2.9 the 'max users online at any time' figure is just a repeat of the current number of users online, with the current time and date (eg it rises and falls where it should not). Having said that I have not seen any other problems with it so good hack!
Can anyone throw any light on the problem?
Thanks,
Oliver
Attrox
12-06-2002, 11:34 PM
I havn't gotten any problems with my installation, it's worked like a charm. Great hack, Mystics, it's very well done.
Hack does not work with 2.2.9 :'( I dont know what im doing wrong, but it isn't working.
I did what they said me to do.
I see some other 1s with a problem here on 2.2.9
I can't see anything of the hack on my forums
Have got it working.
Forgot to make a template
PHPSUN
12-13-2002, 12:26 PM
Version with usernames on the main Site of the Forum https://vborg.vbsupport.ru/attachment.php?s=&postid=212495
I am using VB 2.2.9 and I installed above hack as instructed, however it gives me zero on today total members online and does not show any users in the list blow. Any clue.
Maybe you forgot to make 1 of the templates.
That's the mistake i made.
There are
forum_todayonlineuser
forum_todayonlineusers
Not many difference in the names.
ukcobra
12-15-2002, 09:30 AM
Originally posted by flup
Maybe you forgot to make 1 of the templates.
That's the mistake i made.
There are
forum_todayonlineuser
forum_todayonlineusers
Not many difference in the names.
Thought the templates are :
forumhome_todayonlineuser
forumhome_todayonlineusers
Like flup, I too have followed the details, and cannot see any evidence of this hack on 2.2.9. Note, I have no other Hacks installed.
Any help would be appreciated.
Mark
webgaul
12-23-2002, 07:51 PM
I need TimeZone fix, can someone PM me the link or send me the code or attach it ?
I want every user can see how many active users today and all users see the same figures, regardless of their TimeZone.
Thanks
NexDog
12-23-2002, 10:14 PM
There is no such fix....
BlackDeath
12-24-2002, 05:32 AM
hmm, i've installed it but nothing shows up on my page? a problem w/ the template perhaps? i'll take a look. help...
BlackDeath
12-24-2002, 05:47 AM
Originally posted by BlackDeath
hmm, i've installed it but nothing shows up on my page? a problem w/ the template perhaps? i'll take a look. help...
yeah. that was the problem. this hack works fine w/ 2.28. i dont think anyone's mentioned that.
btw, how do i get it to show at the bottom of my forum and not the top? thanks.
webgaul
12-24-2002, 04:33 PM
Originally posted by NexDog
There is no such fix....
Ok, I have an idea to solve this problem.
Can I query the db with server time ?
$todayusers=$DB_site->query("SELECT userid, username, usergroupid, lastactivity, invisible FROM user
WHERE lastactivity > " . (mktime(0,0,0,date("m"),date("d"),date("Y")) + (($bbuserinfo['timezoneoffset']-$timeoffset)*3600)) . "
ORDER BY username");
What variable to change if I want to use server time regardless of user timezone ? (text to change is in RED)
Thanks
Quest4DSS
12-30-2002, 12:52 AM
Hi everyone,
I see a lot of people saying it works and then a lot of people saying it don't. I am running vBulletin Version 2.2.8, followed the steps and all I get is errors. Now please don't take this as a complaint... it is not. I am just trying to learn.
Could you please post the exact steps to make this work, or a link to the spot where I can find it with out having to read for hours. lol
Thanks for your time!
BlackDeath
12-30-2002, 02:30 AM
Originally posted by Quest4DSS
Hi everyone,
I see a lot of people saying it works and then a lot of people saying it don't. I am running vBulletin Version 2.2.8, followed the steps and all I get is errors. Now please don't take this as a complaint... it is not. I am just trying to learn.
Could you please post the exact steps to make this work, or a link to the spot where I can find it with out having to read for hours. lol
Thanks for your time!
what errors do u get? it worked fine for me w/ no problems other than it showed up at the top instead of the bottom. but i fixed that on my own.
Taco John
12-30-2002, 10:15 PM
Is there a way to reset the most active users online? I just did a board import from a different system, and because of it, my entire forum is registered as being online in the same day...
"Most users ever online on a day was 1134 on 12-30-2002"
Anyone know how I can reset this?
NTLDR
12-30-2002, 10:17 PM
UPDATE template SET template="" WHERE title="maxloggedin";
Taco John
12-30-2002, 11:08 PM
MySQL said:
Unknown column 'templatename' in 'where clause'
NTLDR
12-30-2002, 11:14 PM
Its late ;)
I updated the query :)
Taco John
12-31-2002, 05:02 AM
Perfect!
You da man! :D
Banana
01-06-2003, 04:19 AM
Does anyone know why my mouseovers don't work anymore(!) Don't remember doing anything to the code. View Source says
<td bgcolor="#F1F1F1" colspan="6"><font face="verdana,arial,helvetica" size="1" >
<nobr>Most users ever online on a day was 286 on 9th December 2002.</nobr> | <nobr>The following members have already visited the Board today:</nobr><br>
<a href="member.php?s=&action=getinfo&userid=1345" title="Last online at 20:19 ">237bee</a>, <a href="member.php?s=&action=getinfo&userid=273" title="Last online at 18:55 ">A406 Bee</a>,
etc.
Banana
01-07-2003, 05:26 AM
interestly working again now. Thanks for all those who rushed to help.
maestrosdelweb
01-14-2003, 01:43 PM
Great hack. I translate it to spanish for my forum. If you're interested I can translate the instructions for an extra language in the hack ;-)
mistyl
01-15-2003, 09:22 PM
I have got it up and running on 2.2.9
Small problem it showing the *same* usernames 2 or 3 times. Like my name is there 3 times?
mistyl
01-15-2003, 09:40 PM
It's working now properly. I had some extra codes added in the PHP :rolleyes:
XrayHead
01-16-2003, 09:07 PM
Installed with some HTML mods of my own, thanks for the hack :-)
Skyrender
01-20-2003, 06:20 PM
Ok im trying to install on VBB 2.2.8, On the last step it says
Edit forum home template. I goto
Forum Home Page Templates
Then
I click Expand
and then i click:
forumhome
Then the instructions say:
"Search for:"
<a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$userid" title="Last online at $lastactivetime">$username</a>$invisibleuser
So I search it. it said serach not found. What do I do? Right now the forums still work right and everything but the code dosnt.
Mystics
01-20-2003, 06:30 PM
Please look again at the instructions....Create new Template 'forumhome_todayloggedinuser' with the following content
-------------------------------------------------------------
<a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$userid" title="Last online at $lastactivetime">$username</a>$invisibleuser
-------------------------------------------------------------
__________________________________________________ ______________________________________
Edit template 'forumhome'
Search for:
-------------------------------------------------------------
$loggedinusers
-------------------------------------------------------------
Add BELOW it:
-------------------------------------------------------------
$todayloggedinusers
-------------------------------------------------------------
Skyrender
01-20-2003, 06:38 PM
Then the instruction i got where messed up or somthing I checked again.....but thanks :) .
-edit-
Ive followed all the instructions I havnt missed a thing but at the start it says:
Hack-Description: This Hack adds something like the "Currently Active Users:"-Feature of vBulletin.
The difference is, instead of showing the users, who are _currently_ online, it shows
all Users, who _were_ online on a _day_ & "Most users ever online on a day".
Version: 1.0.2
Updates in 1.0.2: Fixed a little Bug with the "Most users ever online on a day"-Count
(Replace '$maxusers[2] = $todayonline;' with '$maxusers[2] = $numbertodayonline;' in index.php)
Updates in 1.0.1: Inserted the two new templates into the template precaching (first step)
Do i have to do that? I havnt used any of the old versions.
Mystics
01-20-2003, 07:40 PM
Originally posted by Skyrender
Do i have to do that?No.
Skyrender
01-20-2003, 07:45 PM
Do you know y it wouldnt be working with VBB 2.2.8?
Mystics
01-20-2003, 07:48 PM
It works perfect with vB 2.2.x....Just follow the instructions correctly ;)
Template Modifications, PHP Modifications etc..
Skyrender
01-20-2003, 07:52 PM
I did everything. But the instructions I got were messed up at the end, so maybe all the instructions were :( . But I did do everything it said.
Mystics
01-20-2003, 07:54 PM
Just re-download the instructions in this thread....empty your Browser Cache before and verify all your modifications.
Skyrender
01-20-2003, 07:58 PM
ok hopefuly it works this time. :/
Still dosnt work. Ive checked double checked and triple checked everything!
eva2000
01-23-2003, 06:58 PM
i just readded this hack but after the next 24hrs my today online stayed at 0 for hours until now ??
http://animeboards.com/indextoday.php
Banana
01-30-2003, 12:38 AM
Is there any way this hack could be modified so that the number of users "yesterday" can be displayed. It'd be good to see how many people logged on the previous day - unless I'm around at 23:59 I never know!
forumsinfo
02-03-2003, 06:08 AM
Skyrender,
I'm all mixed up. Which of the attached here files I should download if I have 2.2.8?
BigCheeze
02-08-2003, 04:01 PM
Thanks! Installed and working great!!!
mdx381
02-10-2003, 01:26 AM
Installed. Nice hack.
KeithMcL
02-12-2003, 12:19 PM
I'm seeing the same. It's shows 0 users depending on what time of the day I visit my forums. I have my forum time offset from that of my server. From reading previous posts here, I take it that's what is causing it?
mikeB
02-16-2003, 04:24 PM
My problem is this: When a user is logged in, they see a large amount more members that were logged in than someone who is ungegistered or logged out. I DISABLED invisible users yesterday and set every previously invisible user to visible, but the number of users that visited today doesn't match
any idea why?
the forum is http://www.highradiation.com/learn
right now if you're logged in Number of Active Users Today: 162
right now if you're loggged out/unreg: Number of Active Users Today: 102
thanks>!
peanut666
02-19-2003, 07:47 PM
i thought every thing was fine but nope sry i have one problem in my users on line the members stay even once they have signed out i tryed to log out it now says 4 online 2 members 2 guest
the other bits working fine so far
im using 2.2.9 i have vbindex 3.1 installed
my site is here (http://peanutsfxp.com/forum/index.php)
any help most gratefull
ok strange seems to be working now lol its very slow refreshing that information
the only thing wrong is the most ever on line one says 5 one says 9 how do i get them to say the same
TexasAtvs
02-20-2003, 02:25 AM
Okay I had everything installed and worked great on 2.2.9.
I have 2.3.0 on my forums and when I installed it, it works, but it wont list any of the user names....
It will list how many are on, but just not any usernames???
Anyone know what to do?
king98
02-23-2003, 07:26 AM
Currently Active Users: 43
Number of Active Users Today: 0
Most users ever online on a day was 153 on 23-02-2003. | The following members have already visited the Board today:
How can this be happened?
I have installed the hack in vb229
Stingray
02-23-2003, 07:28 PM
working on 2.3.0
My question, How can I get invisible users names to show for any usergroup?
Also can I take out the "Most users ever online on a day" ?
noelmd2001
03-02-2003, 02:28 PM
Originally posted by king98
Currently Active Users: 43
Number of Active Users Today: 0
Most users ever online on a day was 153 on 23-02-2003. | The following members have already visited the Board today:
How can this be happened?
I have installed the hack in vb229
i hae the same problem. i am using vb2.3.0
the problem is when i am logged out, i can see the actie users and their names....
but when i am logged in, i have the same problem:
Number of Active Users Today: 0
Most users ever online on a day was 153 on 23-02-2003. | The following members have already visited the Board today:
please help! i checked and double checked everything but still have the same problem...
thanks... my site is here (http://ustexchange.com/forums)
thank you.
Xyphen
03-02-2003, 07:33 PM
Works Perefectly fine on vB2.3.0.
I made an addon long time ago as I was Webmasta XT back then. I should've posted it here, but I am now.
Download the addon below to make your members appear in color, different colors for Each usergroup.
Sia Bani
03-06-2003, 05:42 PM
Hi. I had been getting blank pages come up and couldn't figure out what was causing them, so I had to upload the original php files.
THe blanks were gone. Since then, I've been reinstalling these hacks , day by day, to see which caused the blank pages. I just found out, (the second reinstalled hack!) that this caused the blank pages. Does anyone know why? Is there a fix?
amykhar
03-07-2003, 05:27 PM
Mystic, there are indeed some query issues with this hack. I am providing a link to a discussion about some observed problems:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=49763
For what it's worth, queries are probably NOT a problem for most users. Most people who install this will either only have one style or will install it for all styles.
Amy
club_krome
03-08-2003, 11:45 AM
is there a way unregistered visitors / not logged in members can see the the member names that were online today
Mystics
03-08-2003, 12:12 PM
@club_krome
Just allow their usergroup to "View Who's Online" or remove this part in onlinetoday.php:if (!$usergroupdef['canwhosonline']) {
show_nopermission();
}
club_krome
03-08-2003, 12:50 PM
thats not what i meant
like people can't see the member names in the display on the forum home page and it says 0 members were online today when thats obviously not true
I got this wierd thing that happened and i cant explain why it happened. Soooo I am turning to you:).
I installed this hack with no problem. It worked for about 30 minutes and then I get nothing!
No users online, not even me.
No guests.........no nothing.
Help Please!!
I even attempted to check my work twice, everything turned out fine. I just dont understand i am using 2.3.0 the new one.
maverick1236
03-14-2003, 01:23 PM
anyway to get the whos online to show up on my vbportal home page in a center box?
i get this
Parse error: parse error, unexpected $ in /home/weatherf/public_html/includes/center/php.php(21) : eval()'d code on line 1
ImportPassion
03-14-2003, 04:21 PM
Well, i changed the query a bit. I was wondering why the TZ made a diff, and I said screw it, the server is in EST, that is what I will use. Not gonna make it so it is a day from where the person is located, doesn't relly make sense to me. Anyway, here is my new query.
// first get the current date
$startdate = mktime(0,0,0,date("m"),date("d"),date("Y"));
$enddate = time();
$todayusers=$DB_site->query("SELECT userid, username, usergroupid, lastactivity, invisible FROM user
WHERE lastactivity BETWEEN $startdate AND $enddate
ORDER BY username");
AlexanderT
03-20-2003, 03:24 PM
I am trying to solve the timezone problem. How about this approach:
$enddate = time();
$localdate = $enddate-(($timeoffset-$bbuserinfo['timezoneoffset'])*3600);
$timepassed = $localdate - ($localdate - ($localdate % 86400));
$startdate = $enddate - $timepassed;
$todayusers=$DB_site->query("SELECT userid, username, usergroupid, lastactivity, invisible FROM user
WHERE lastactivity BETWEEN $startdate AND $enddate
ORDER BY username");
The idea:
1) Get the local time adjusted for the TZ == $localdate
2) Calculate the time that has passed between now locally ($localdate) and midnight locally (($localdate - ($localdate % 86400)) == $timepassed
3) Subtract the time that has passed locally since midnight from the servers time now == $startdate
4) Query user activity in the time between server time now ($enddate) and the time when it was midnight locally.
I hope that I expressed myself somewhat clearly. I am an absolute PHP beginner, so I am not sure if what I did above is correct. However, the idea per se should be right.
Would be glad for comments and possible corrections.
Alexander
AlexanderT
03-20-2003, 03:55 PM
Actually, I changed the way to calculate local midnight in the snippet below. I think now everything is correct.
$enddate = time();
$localdate = $enddate-(($timeoffset-$bbuserinfo['timezoneoffset'])*3600);
$date = getdate($localdate);
$day = $date['mday'];
$month = $date['mon'];
$year = $date['year'];
$midnight = mktime(0,0,0,$month, $day, $year);
$timepassed = $localdate - $midnight;
$startdate = $enddate - $timepassed;
$todayusers=$DB_site->query("SELECT userid, username, usergroupid, lastactivity, invisible FROM user
WHERE lastactivity BETWEEN $startdate AND $enddate
ORDER BY username");
With this code, 'Number of Active Users Today' should display the correct number of active users since local midnight of the current user logged in. :)
What is still not taken care of different TZs is the 'Most users ever online on a day' part. With the current implementation of the hack, I don't think this is possible. Why? --
Imagine that in the timezone of your user, until 23:59pm you had 100 visitors on your board. Further imagine that all these 100 visitors visited at 23:50pm (your time). Finally imagine that this is the greatest number of visitors your board has ever seen in one day. So for you, that is for your user and all other users in your timezone, 'Most users ever online on a day' is 100.
So far so good. Now imagine that at 00:10am your time 10 more users logged in. For you, 'Most users ever online on a day' should be still 100, namely from the day before. However, for another user whose timezone is e.g. -1, 'Most users ever online on a day' is now 110, since he still hasn't reached midnight (it is 23:10pm) for him. As a result, the variable holding the Most users contains 110 now. And that means also for you, who is already in the next day, 'Most users ever online on a day' is suddenly 110. You see the problem?!
Greets
Alexander
Elmoe
03-22-2003, 04:44 PM
Very strange.. i applied this hack and it didnt display the new modifications at all :confused:
Elmoe
03-22-2003, 05:27 PM
ok.. i just tried it on another forum and it worked fine. strange.
laycomp
03-23-2003, 05:51 AM
01-11-02 at 02:06 PM Mystics said this in Post #1 (https://vborg.vbsupport.ru/showthread.php?postid=212495#post212495)
Hack Name: Who was online today
Hack Version: 1.0.2
For vB Version:: 2.x
Version type: with usernames on the main Site of the Forum
I am using vb2.3
The hack does not seem to be calculating correct "MOST users ever online..." (I've attached an image capture).
In the top line that reads: "most users ever online was X..." this just keeps a total of how many online users at the moment.
In the bottom line that reads: "Most users ever online on a day was X..." this is just giving me a total for users connected that day.
Seems to me they're both doing similar jobs? first one is telling me how many online users there are, the second line is giving me a total connected users for the day, but none is giving "Most users every online"
Please can someone asssit in correcting this?
magna
03-26-2003, 08:38 AM
I have read all 338 posts and cannot find how to make "Currently active users" only visable to admins. There was reference to it by someone.
Could someone please post how to do that. (make Currently Active users" only visable to admins) Thanks
Great hack by the way.
alain4ever
03-26-2003, 09:09 AM
03-12-03 at 10:29 AM xcel said this in Post #331 (https://vborg.vbsupport.ru/showthread.php?postid=364624#post364624)
I got this wierd thing that happened and i cant explain why it happened. Soooo I am turning to you:).
I installed this hack with no problem. It worked for about 30 minutes and then I get nothing!
No users online, not even me.
No guests.........no nothing.
Help Please!!
I even attempted to check my work twice, everything turned out fine. I just dont understand i am using 2.3.0 the new one.
i have same problem....
AlexanderT
03-26-2003, 03:48 PM
Well, I definitely got it to work on my vB 2.3.0 board using the original hack with my modification (https://vborg.vbsupport.ru/showthread.php?postid=370039#post370039). You can see it in action at http://www.turcic.com/forums .
Nyloc
03-27-2003, 09:10 AM
I installed the hack... but i got it showing 3 times in a row? like 3 sets of who was online! check it out: http://www.gamersonline.co.nz/forum
^^^ sup wif that? help! how can i get rid of the other 2 sets of it from displaying.. lol
xpguy
03-28-2003, 10:15 AM
i installed it and think its great but it doesn't show the people who have been online before the hack was installed??
.:.NetStartz.:.
04-03-2003, 06:30 PM
Hey, hows it going...I was wondering if you could help me out with this small prob.
Most users ever online on a day was XXX is never the same. Should it only change if it goes higher? It started at 91 the first day then 81 now it's 61. It's changing to the most on today.
Master Computer
04-03-2003, 07:48 PM
Thanx for this great hack.
But I have a question about it:
How do I count the not registered users with the logged in users in the "Who was online today" and "Currently Active Users"?
grace819
04-08-2003, 05:36 AM
Yup! Excellent hack! :)
tinbin
04-08-2003, 09:37 AM
Prolly asked before in this huge thread, but i got a prob with this hack:
It shows "# of active users today : 0 " to about 1pm UK time.
After that it starts counting.
I've been told it resets about 7am.
Also i think it does not count every user as i'm sure there should be lots more listed.
Is this due to the server? As i've known a forum hosted on the same server (in the USA) and it worked fine there...
Mickie D
04-09-2003, 09:33 AM
hi mystics first of i have used this hack for ages and it has always worked well for me :)
i just wondered if you was gonna do the update of this hack ??
or just add it so that the active users for today shows the guests aswell :)
thanks very much for the hack, i also understand how busy you are.... but adding a code for the guests to show up aswell would be fab m8
thanks
Mickie D
Shawnn
04-10-2003, 06:47 AM
Unless you are an admin the Number of Active Users Today is: O. I hade it working with version 2.2.9 and upgraded to 2.30 and reinstalled the hack and can't get it show users unless you are logged in as an admin.
Sanjiyan
04-24-2003, 02:09 PM
03-20-03 at 05:55 PM AlexanderT said this in Post #335 (https://vborg.vbsupport.ru/showthread.php?postid=370039#post370039)
Actually, I changed the way to calculate local midnight in the snippet below. I think now everything is correct.
$enddate = time();
$localdate = $enddate-(($timeoffset-$bbuserinfo['timezoneoffset'])*3600);
$date = getdate($localdate);
$day = $date['mday'];
$month = $date['mon'];
$year = $date['year'];
$midnight = mktime(0,0,0,$month, $day, $year);
$timepassed = $localdate - $midnight;
$startdate = $enddate - $timepassed;
$todayusers=$DB_site->query("SELECT userid, username, usergroupid, lastactivity, invisible FROM user
WHERE lastactivity BETWEEN $startdate AND $enddate
ORDER BY username");
With this code, 'Number of Active Users Today' should display the correct number of active users since local midnight of the current user logged in. :)
What is still not taken care of different TZs is the 'Most users ever online on a day' part. With the current implementation of the hack, I don't think this is possible. Why? --
Imagine that in the timezone of your user, until 23:59pm you had 100 visitors on your board. Further imagine that all these 100 visitors visited at 23:50pm (your time). Finally imagine that this is the greatest number of visitors your board has ever seen in one day. So for you, that is for your user and all other users in your timezone, 'Most users ever online on a day' is 100.
So far so good. Now imagine that at 00:10am your time 10 more users logged in. For you, 'Most users ever online on a day' should be still 100, namely from the day before. However, for another user whose timezone is e.g. -1, 'Most users ever online on a day' is now 110, since he still hasn't reached midnight (it is 23:10pm) for him. As a result, the variable holding the Most users contains 110 now. And that means also for you, who is already in the next day, 'Most users ever online on a day' is suddenly 110. You see the problem?!
Greets
Alexander
Where do you put this code?
AlexanderT
04-24-2003, 02:57 PM
I attached the edited who-was-online-today.txt. You can compare it to the original who-was-online-today.txt to see where the changes apply in case you want to use the extra-window version.
Greets
Kaelon
04-24-2003, 04:51 PM
Have any of you experienced heightened load with this hack? I installed it, but I noticed a slight peak with it. Any tips?
Kaelon
Sanjiyan
04-25-2003, 07:45 AM
Yesterday at 03:57 PM AlexanderT said this in Post #351 (https://vborg.vbsupport.ru/showthread.php?postid=386462#post386462)
I attached the edited who-was-online-today.txt. You can compare it to the original who-was-online-today.txt to see where the changes apply in case you want to use the extra-window version.
Greets
I dont use the extra window version, but the version that makes the information appear on the main forum index page, ie below the Who's Online (Currently Active Users)
FFArmageddon
04-26-2003, 12:42 AM
"Still in index.php, find this:
-------------------------------------------------------------
if ((int)$maxusers[0] <= $totalonline) {
$time = time();
$maxloggedin = "$totalonline " . $time;
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
$maxusers[0] = $totalonline;
$maxusers[1] = $time;
}
-------------------------------------------------------------"
I cannot find that in index.php 0_0
Sweet Cheeks
04-26-2003, 09:52 PM
I installed this awesome hack and its a bit big for our board, is there any way to edit it or maybe just another way to maybe show who has been online in the past 5 minutes instead?
Thanks for your help, either way, I'll use the hack, I was just curious how I'd do the past 5 minutes, thank you :banana:
Radgam
05-08-2003, 12:38 PM
I seem be having a rather strange problem with this hack although it's worked fine up until today. Problem:
My board says "Number of Active Users Today: 0" all the time! I've not changed the coding, or the database, or the templates in ANY way but it's just stoped working. Could it be some sort of server screw up? I rechecked all the code for the hack just to be sure and it's unchanged.
I keep checking and other people have definetly been online but it's just not showing up. Infact, it doesn't even show me as being online!
[:: edit ::]
Just for good measure - http://www.gnrforum.com/phpinfo.php
And it now works again after not having worked all morning
:dead: i hate computers!
XFLBret
05-08-2003, 07:30 PM
is there a way to modify this hack so that it shows members who browse the board invisibly?
I am a dork and my eyes are bugged out from reading, but could somebody tell me why all my users online today are listed twice in my list?
:beard:
Floris
05-18-2003, 02:17 AM
Check your template, maybe you have it pasted twice on creation.
your probably right, will do it tomorrow
MUST GET SLEEP :) :disappointed:
Thanks for the speedy response
GC
SmEdD
05-30-2003, 04:14 AM
Alright I installed it. It worked mint. Now it's a new day and nothing shows up and it's 0 visitors yet there have been like 20 visits. Oh and the record is still there. And the .php file dosn't show anything also.
SmEdD
05-31-2003, 02:27 AM
To reduce this to one query use this modifacition.
Find:
// today online hack begin
Add after:
$tempupdate=$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
Find:
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
Replace with: (Do at both locations)
$tempupdate;
AlexanderT
05-31-2003, 03:13 AM
I dont think you will always save 1 query with that. Notice that both $DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");are within conditional IFs which are not always true. Your modification, however, always runs that one query.
I could be wrong of course :)
SmEdD
05-31-2003, 04:29 PM
Ya thoes ifs are pretty much aways gonna run. If they didn't the online today hack wouldn't.
SmEdD
05-31-2003, 04:35 PM
Oh and neither have a else tag wich means they arn't a option
AlexanderT
06-01-2003, 12:16 AM
SmEdD:
This doesn't make any sense. Just because there is no ELSE does not imply that the IF clause is always executed.
And fact is, it is not always executed. Only when the Who-Was-Online-List changes, the query is executed. Otherwise it is read from cache.
Your modification, however, always runs the query - even when it is not necessary.
Linus
06-02-2003, 01:09 PM
I forgot how to change the colours of the users online (eg. admin get diff. colour) can anyone remind me how ? Thanks
Hostc
06-11-2003, 02:35 AM
I don't know if this has been posted before but when I click on the Number of Active Users Today the onlinetoday.php page just comes up as a blank page?
useing the Version with usernames on extra site (onlinetoday.php)
I've double checked the code and haven't found anything wrong that I did during the installaion.
S.Shady
06-11-2003, 05:06 AM
Works fine for me
you upload the php file to your forums dir if you used the file ?
Will this work for vBulletin 2.3.0? Is there an update that's compatible with 2.3.0?
Crinos
06-12-2003, 04:01 AM
It works in 2.3.0 :)
lostsoul2k
06-12-2003, 10:36 AM
ARGG i get this annoying thing it shows the number of active users perfect and it also shows all Most users ever online on a day was 3 on 06-11-2003. when i first installed but for some reson it doesen't show the usernames of that user ??? do you no how to fix im also using 2.3.0 and the Emerge skin from vbskinz.com ??
Today at 06:01 AM Crinos said this in Post #371 (https://vborg.vbsupport.ru/showthread.php?postid=407882#post407882)
It works in 2.3.0 :)
I'm running vB 2.3.0 but for some reason I installed it but all I get is zeros. It's not adding any stats to the readout.
Number of Active Users Today: 0
Most users ever online on a day was 0 on 06-12-2003. | The following members have already visited the Board today:
Any hints to what may be wrong? :(
Ok, it appears to be a misunderstanding on my part of how the invisible users thing works.
From the hack docs:
Hint: If you wish that "Number of Active Users Today:" only counts Users who are not invisible,
replace $numbertodayonline with $todayonline. (Admins always see the right number!)
Wording this differently, it says that...
if we want the "Number of Active Useres Today" area to only count users that are visible, replace $numbertodayonline with $todayonline.
...So what do we do if we want the "following members have already visited the Board today" list of those that visited/were online during the given day to INCLUDE the invisible members on that list?
S.Shady
06-12-2003, 01:48 PM
dont change it if you want the invisable to be on there. its set up like that. the change is to stop invisable from being there
Today at 03:48 PM S.Shady said this in Post #375 (https://vborg.vbsupport.ru/showthread.php?postid=408054#post408054)
dont change it if you want the invisable to be on there. its set up like that. the change is to stop invisable from being there
:) No, I mean, for the list that is generated and displays of actual member names that visited the board that day.... what would I do to INCLUDE those that visited the board that day (in invisible mode) on the list that displays?
My thinking is that those visiting in invisible mode don't want to be shown & possibly IM'd during their visit, but once they've left the board it won't matter if it shows that they were there earlier.
lostsoul2k
06-12-2003, 08:22 PM
well my bulletin board it says it active users and active users been on today is : # but it doesen't show the usernames of them users ??? and there were 34 online but the usernames don't appear
jdmuniverse
06-19-2003, 12:47 AM
Mine keeps resetting for the most users part for some reason... One day it will say 290 user then the next day 240?
Any ideas?
cYbercOsmOnauT
06-30-2003, 11:10 PM
Mystics rulez!
* cYbercOsmOnauT clicks on install ;)
Sabrina
07-04-2003, 10:42 PM
super cool hack!!! thanks! :laugh:
Big Kahuna
07-07-2003, 12:22 AM
I installed this hack a year and half ago -- and it has always worked great for me.
I've seen a couple boards use this hack to where it displays all of the user online today in the table -- instead of the onlinetoday.php link.
I've tried a 100 ways to make that happen, spent an hour searching this forum and another reading every post in this thread for the answer. If the answer is here -- I'll be dipped if I can find it.
Anyone want to point me in the right direction?
Mystics
07-07-2003, 09:02 PM
@Big Kahuna
Take a look at the first posting :)So, depending on which version of the Hack you prefer, you have to download this:
Version with usernames on the main Site of the Forum (https://vborg.vbsupport.ru/attachment.php?s=&postid=212495)
or this:
Version with usernames on extra site (onlinetoday.php) (https://vborg.vbsupport.ru/attachment.php?s=&postid=212603)
Master Computer
07-07-2003, 10:01 PM
how can I display the guests between the users who were online today?
Master Computer
07-07-2003, 10:03 PM
and how can I count the guests between "Most users ever online on a day"?
kevinnguyen
07-11-2003, 04:52 AM
dunno why I can't get it work w/ v2.3.0
It always display Users Online Today: 0
How did you get it work w/ v2.3.0?
Please help!
Thanx
Salazar
07-11-2003, 10:04 AM
The German version works fine with my 2.3.0
As you can see here: http://www.hogwarts-forum.de ;)
-God-iZ-iLLa-
07-16-2003, 07:58 AM
for some reason the number stays at 0... anyone know how to fix it? or is there anything i forgot?
-God-iZ-iLLa-
07-16-2003, 07:59 AM
for some reason the number stays at 0... anyone know how to fix it? or is there anything i forgot?
-God-iZ-iLLa-
07-16-2003, 07:59 AM
for some reason the number stays at 0... anyone know how to fix it? or is there anything i forgot?
Xelation
07-19-2003, 06:35 AM
Hey Mystics, If I install this instead of the original hack..
https://vborg.vbsupport.ru/showthread.php?postid=258507#post258507
This part changes all the time, it never stays the same..
Most ever online was 89 on 07-10-2003 at 02:57 PM
It will be 200 one day and then a couple days later or even an hour later it will be back down to 40 or soemthing like that.. It always goes back down.. anyway of fixing that problem?
Kaelon
08-02-2003, 02:04 PM
Xelation - I have the same problem. My maximum seems to change sporratically.
DiscussAnything
08-02-2003, 06:39 PM
Instead of on the forum index, how do I make this show up on the vbhome index? It that an easy modification? The code you need to edit in the instructions is different in the Vbhome index
thanks
romeshomey
08-05-2003, 05:43 PM
I just have a question with why my Currently Active Users Panel went.
When I installed this one, my currently active users panel dissappeared.
Any help?
romeshomey
08-05-2003, 06:10 PM
Yea, I cant figure it out. Im not sure how to get my current users online panel back.
The Online for the Day works great but when it was added the other one dissappeared.
Check it out, I need some help :(
http://www.romesleague.com/forums/
heynurse
08-05-2003, 07:18 PM
Today at 02:10 PM romeshomey said this in Post #394 (https://vborg.vbsupport.ru/showthread.php?postid=423495#post423495)
Yea, I cant figure it out. Im not sure how to get my current users online panel back.
The Online for the Day works great but when it was added the other one dissappeared.
Check it out, I need some help :(
http://www.romesleague.com/forums/
In the instructions it says:
Edit template 'forumhome'
Search for:
-------------------------------------------------------------
$loggedinusers
-------------------------------------------------------------
Add BELOW it:
-------------------------------------------------------------
$todayloggedinusers
-------------------------------------------------------------
Are you sure that you didn't REPLACE $loggedinusers
Look to see if you still have $loggedinusers
in your forumhome template, if not add it just above $todayloggedinusers
romeshomey
08-05-2003, 07:53 PM
Today at 09:18 PM heynurse said this in Post #395 (https://vborg.vbsupport.ru/showthread.php?postid=423512#post423512)
In the instructions it says:
Edit template 'forumhome'
Are you sure that you didn't REPLACE $loggedinusers
Look to see if you still have $loggedinusers
in your forumhome template, if not add it just above $todayloggedinusers
Yea Im sure, I already checked that out.
I am about to just reverse everything and do it again. lol Pain in the ass but I really want my current uses online back and cant figure out how it got deleted.
Here is my template code. See if you notice anything missing from that part of it.
</table>
</td></tr></table><br>
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#0A293E" width="95%" align="center"><tr><td>
<table cellpadding="4" cellspacing="1" border="0" width="100%">
$loggedinusers
$todayloggedinusers
$birthdaybits
</table>
</td></tr></table>
Im thinking, do I need to seperate the 3 into seperate tables? I didnt see that in the instructions though.
romeshomey
08-05-2003, 08:00 PM
Im thinking, do I need to seperate the 3 into seperate tables? I didnt see that in the instructions though.
Nope, that idnt work either. Page continued to look the same. :( Strange lol..
romeshomey
08-06-2003, 11:29 AM
Im going to change everything back to what it was before the hack, and see what happens.. :( Im really bummed, I have no clue why the current users online panel dissappeared :(
centris
08-10-2003, 04:34 PM
I have installed this hack on every version of vbulletin since release, but today with version 2.3.2 it fails to appear on the forums page, all templates are ok (in the default set) I have no other styles installed. And the forumhome template addition is fine, but nothing shows???
Big Kahuna
08-13-2003, 03:01 PM
Whoa -- this thread is just in time as I was going to upgrade from 2.2.7 today. I'll wait this out to see what the solution to some iof the hacks is.
BTW -- works great on the version I'm running. Thanx again
romeshomey
08-14-2003, 01:34 PM
I still cant get my Current Users Online panel to work. :(
The Realist
08-17-2003, 10:26 AM
I have the same problem?
Anyone.
08-10-03 at 06:34 PM centris said this in Post #399 (https://vborg.vbsupport.ru/showthread.php?postid=424910#post424910)
I have installed this hack on every version of vbulletin since release, but today with version 2.3.2 it fails to appear on the forums page, all templates are ok (in the default set) I have no other styles installed. And the forumhome template addition is fine, but nothing shows???
leitel
08-19-2003, 04:35 AM
Does anyone have this hack (hacked) working with 3.0 beta 5?
Megadeuce
08-22-2003, 06:05 PM
I think is is confusing for it to say:
Most users ever online on a day was 11 on 08-22-2003
Instead, shouldn't it say
Most visitors ever online on a day was 11 on 08-22-2003
Mr. Brian
08-22-2003, 11:55 PM
Well, it would be greet if guest to be included as well. I don't dare to ask for much but just hope you can give it a thought.
Thanks. :classic:
05-12-02 at 11:06 AM Mystics said this in Post #183 (https://vborg.vbsupport.ru/showthread.php?postid=250228#post250228)
The Hack does not count Guests.
Trigger351
08-23-2003, 06:20 AM
OK have read right through this thread and still dont know what my problem is.
Been through the install 3 times to check if it is correct but have this:
Number of Active Users Today: 0
Most users ever online on a day was 0 on 23-08-2003. | The following members have already visited the Board today:
No data is displayed.
2 questions:
Do I have to wait 24 hours to see anything?
Does it work correctly with vBportal installed?
lasto
08-23-2003, 06:43 AM
just installed this on 2.3.0 no probs what so ever and nope m8 u dont need to wait 24 hrs
it shows straight away as soon as u done it.
The Realist
08-23-2003, 06:28 PM
Finaly found my problem DUHHHhhhhhhhhhh forgot to add a bloody template :)
Well at least it works :)
08-17-03 at 12:26 PM The Realist said this in Post #402 (https://vborg.vbsupport.ru/showthread.php?postid=426582#post426582)
I have the same problem?
Anyone.
The Realist
08-31-2003, 03:06 PM
I just found a little proble I have and can anyone say how I can fix it?
Problem is below:
Most users ever online on a day was 36 on Today. | The following members have already visited the Board today:
It always says "Most users ever online on a day was 36 on Today" but its not. The count is always wrong and should say "Most users ever online on a day was 36 on "What Ever Date""
Can this be fixed
Zeitgeist
09-02-2003, 07:38 PM
08-31-03 at 06:06 PM The Realist said this in Post #409 (https://vborg.vbsupport.ru/showthread.php?postid=430060#post430060)
I just found a little proble I have and can anyone say how I can fix it?
Problem is below:
Most users ever online on a day was 36 on Today. | The following members have already visited the Board today:
It always says "Most users ever online on a day was 36 on Today" but its not. The count is always wrong and should say "Most users ever online on a day was 36 on "What Ever Date""
Can this be fixed
I've exactly the same problem! Thought I have forgotten some code in the installation, but I hadn't. Is this really a bug of this script?
Trigger351
09-02-2003, 09:21 PM
I think it is a bug...I ended up removing that part of the script so what I have now is:
Active Members Today:
The following members have already visited the Board today:
ogden2k
09-13-2003, 05:16 PM
Is it possible to show this only to mods and admins?
X-Fan
09-22-2003, 12:05 AM
Working fine on my forums except for the timezone thing. I even adapted it to work nicely on my vbHome front page.
Is there a working fix for the timezone problem yet?
And has anyone found a way for it to include total guests that visited throughout a day as well?
X-Fan
09-22-2003, 07:23 AM
Okay, it's inexplicably stopped working now - users today is 0 even though there's currently 25 members online.
Anyone got any ideas as to why, or is this just a result of that timezone problem?
Trigger351
09-22-2003, 07:42 AM
Its the timezone problem...The only way to fix it is to get your server to change to your local time or change servers to one that is in your timezone.
Our server shifted us to an Aussie time zone and it fixed the problem. :)
www.tmaauto.com
X-Fan
09-22-2003, 07:51 AM
Its the timezone problem...The only way to fix it is to get your server to change to your local time or change servers to one that is in your timezone.
No can do. I'm based in Australia, but the server needs to be US time.
There's got to be a simpler way to fix this problem than to tweak hardware! :ermm:
Trigger351
09-22-2003, 08:12 AM
Might be time to change servers...Ours is Flexihostings and they had enough Aussie based customers that they set one of there servers up in Aussie time :)
X-Fan
09-22-2003, 08:17 AM
I don't think I'm going to go through the hassle of changing servers just to get one single hack working. I'll easily do without if that's the only option.
iceman-x
09-22-2003, 02:45 PM
Is it possible to show this for mods ore admins only.
Rabbitoh Warren
09-25-2003, 02:00 PM
Finally read through the entire thread! I've installed Mystic's original version and it's working fine for me so far here (http://www.rabbitohs.com/burrows/hutch/) after two days. I'm using vB version 2.3.2.
patriciafrankie
09-25-2003, 10:47 PM
Dumb question. Where do I find the forumhome template?
Trigger351
09-25-2003, 11:15 PM
Its in Control panel > templates > modify :)
patriciafrankie
09-25-2003, 11:34 PM
Will I need to do that with every theme I have?
Trigger351
09-26-2003, 05:05 AM
Yep if you are using multiple themes otherwise just modify the default theme:)
patriciafrankie
09-27-2003, 01:44 AM
Another question :)
I installed this hack (the first one) and it didn't show up :( I installed it for two themes, and it still won't show up.
Using v2.3.2
Thanks,
Patricia
insanctus
09-29-2003, 02:32 AM
I just installed this on my vb3 with ease.
Tad change but works awsome :)
patricia did you remember to put templates in both themes?
This is a good one.
*clicks install*
copyninja
10-07-2003, 02:56 AM
thanx works GREAT!
using vb 2.3.2
::clicks install::
TeH Z0mB1E
10-24-2003, 09:11 PM
um help i must of installed this wrong because my "most users ever online" and "most users ever online in a day" are resetting daily.
its embarrassing when my forum says most users ever online 1 so please help :)
TeH Z0mB1E
10-30-2003, 11:23 PM
sorry for the double post but can anyone please help?
kauka
11-16-2003, 05:24 PM
Might be a dumb question but how can I get it to work with 2.3.3? They changed the coding some.
Tri@de
11-24-2003, 05:48 PM
Might be a dumb question but how can I get it to work with 2.3.3? They changed the coding some.
Yes, but a little bit.
there's only a little thing in index.php
In the 2.3.3 you have
if (($maxusers[0] <= $totalonline AND $maxusers[0] > 0) OR sizeof($maxusers) == 1) {
instead of
if ((int)$maxusers[0] <= $totalonline) {
so, if you whant to modify, write
// today online hack begin
if (($maxusers[0] <= $totalonline AND $maxusers[0] > 0) OR sizeof($maxusers) == 1) {
$time = time();
$maxloggedin = "$totalonline " . $time . " " . $maxusers[2] . " " . $maxusers[3];
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
$maxusers[0] = $totalonline;
$maxusers[1] = $time;
}
$todayloggedinusers = "";
$numbertodayonline = 0;
$numbertodayonlineinvisible = 0;
$todayusers=$DB_site->query("SELECT userid, username, usergroupid, lastactivity, invisible FROM user
WHERE lastactivity > " . (mktime(0,0,0,date("m"),date("d"),date("Y")) + (($bbuserinfo['timezoneoffset']-$timeoffset)*3600)) . "
ORDER BY username");
while ($todayuser=$DB_site->fetch_array($todayusers)) {
$numbertodayonline++;
$invisibleuser = '';
$userid = $todayuser['userid'];
$lastactivetime = vbdate($timeformat, $todayuser[lastactivity]);
if ($todayuser['invisible']==1 and $bbuserinfo['usergroupid']!=6) {
$numbertodayonlineinvisible++;
continue;
}
if ($todayuser['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
}
if ($todayuser['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$todayuser[username]</i></b>";
} else if (($mod["$userid"] or $todayuser['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$todayuser[username]</b>";
} else {
$username = $todayuser['username'];
}
if (!$todayloggedinuser) {
eval("\$todayloggedinuser = \"".gettemplate('forumhome_todayloggedinuser')."\";");
} else {
eval("\$todayloggedinuser .= \", ".gettemplate('forumhome_todayloggedinuser')."\";");
}
}
$DB_site->free_result($todayusers);
if ($bbuserinfo[usergroupid] == 6) {
$todayonline = $numbertodayonline;
} else {
$todayonline = $numbertodayonline - $numbertodayonlineinvisible;
}
if ((int)$maxusers[2] <= $numbertodayonline) {
$time = time();
$maxloggedin = $maxusers[0] . " " . $maxusers[1] . " $numbertodayonline " . $time;
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
$maxusers[2] = $numbertodayonline;
$maxusers[3] = $time;
}
$todayrecordusers = $maxusers[2];
$todayrecorddate = vbdate($dateformat,$maxusers[3]);
eval("\$todayloggedinusers = \"".gettemplate('forumhome_todayloggedinusers')."\";");
//today online hack end
And it's done :)
i hope this help you ;)
Hoffi
11-26-2003, 08:26 PM
Hi,
I user vBIndex and want to show the last 5 Online Users in an Box... is it possible with this?
Nebby
11-27-2003, 12:18 AM
Works great, cheers.
tHe Rk
01-16-2004, 03:41 PM
Yes, but a little bit.
there's only a little thing in index.php
In the 2.3.3 you have
if (($maxusers[0] <= $totalonline AND $maxusers[0] > 0) OR sizeof($maxusers) == 1) {
instead of
if ((int)$maxusers[0] <= $totalonline) {
so, if you whant to modify, write
// today online hack begin
if (($maxusers[0] <= $totalonline AND $maxusers[0] > 0) OR sizeof($maxusers) == 1) {
$time = time();
$maxloggedin = "$totalonline " . $time . " " . $maxusers[2] . " " . $maxusers[3];
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
$maxusers[0] = $totalonline;
$maxusers[1] = $time;
}
And it's done :)
i hope this help you ;)
I was Having problems on the 2.3.4 and this took care of the problem! Thanks a million!
Bat21
01-28-2004, 08:42 PM
I have this hack installed on my Forum 2.2.9
I have recently moved to a dedicated server which is set to Mountain Time (US)
I have compensated for the 7 hour time difference by offsetting the Forum base time, so the default time for my site is GMT (UK)
The problem is the Who's online section doesn't start counting who has been on line untill 2 pm as opposed to starting at midnight.
Is there any way I can resolve this without altering the server time.
Thax
scabs92c
02-08-2004, 03:28 PM
Ok guys forgive me here I am a newbe at this.
I am trying to get this hack to work. I have Vboard ver 2.
I have loaded all the hacks but I still get the original page????
I think it is still showing the default page?
Do I have to deleate the default template or something??
Anyhelp would be appreciated..
Scabs
Emmy2
02-13-2004, 02:11 PM
I'm on vB2.3.4 and am having trouble with this hack. I can get it to show up, but the data is puzzling. For example, if I log out I get "0" members online today, even though there are people on the board right now! If I log in I get a number, but it seems that the tally resets at about 6am every day (I guess something to do with my server time) and all the names are cleared. However, what I would REALLY like is for it to give the names of visitors to the site in the past 24 hours, kind of a floating window of time, since I would like to see if anyone is visiting the site at, for example, 3 am in the morning. Unless I get up before 6 am and check the board their names will disappear by the time I get online. Make sense?
Long story short.....there is a feature in the Admn CP that lists visitors in the last 24 hours. It seems ideal. Is there a way to tap into that information, or duplicate it, and display it on my forum homepage?
Rand M
02-24-2004, 08:14 AM
I'm not using all of this hack, just the part that shows which members have "already visited the board today". So I dont know what affect it will have on "Number of Active Users Today:"
My forum (ver 2.2.8) is in the 'GMT' timezone but the server it is hosted on is US Eastern (-5) timezone.
After installing the hack everything worked as expected until 24hrs later when the "already visited the board today" showed 'nil' member 'names', even though members had been visiting my forum.
So I am experimenting with using 'gmmktime' instead of 'mktime' as used in the hack, which creates the Unix timestamp from the server.
I found this little snippet of information on a WWW search that provoked me to change the function.
"The timestamp returned is based upon the number of seconds from the epoch GMT, and then modified by the time zone settings on the server. Where you want time zone independence, you should use the function gmmktime"
So far so good, in that the member list now shows in "already visited the board today". This might be a solution for some others who run forums in a different timezone to the server that it is hosted on.
I've only been running with 'gmmktime' for a few hours so it is impossible to say if this will work permanently, if it still shows the 'members' 24 hours from now then it might be a solution.
The change is to the hack in index.php
Change
WHERE lastactivity > " . (mktime
To
WHERE lastactivity > " . (gmmktime
Like many others I am very new to coding in PHP so maybe an 'expert' or two might like to comment.
Bat21
02-24-2004, 08:39 AM
Nice one Rand M... you've just helped sort mine out, in index.php I found
(($bbuserinfo['timezoneoffset']+7)
and changed it to
(($bbuserinfo['timezoneoffset']-7)
cheers dude.... sorted now :D
Rand M
02-24-2004, 10:31 AM
After changing the function from 'mktime' to 'gmmktime' I checked through results for different timezones , all showed correctly from -12 to +5.5 any timezone after +5.5 showed nil members .... which isn't correct. It was if the hack was compensating for the servers timezone offset.
I then had to change a little more from the hack to get it to display the correct number of members from -12 to +12 timezones.
I have no idea how correct these changes are to the hack but they do work on my forum (at the moment) when prior to these changes I wasn't seeing any members displayed.
The other part of the hack I changed was deleting the "$timeoffset" and replacing it with a "0" :
Changed:
WHERE lastactivity > " . (mktime(0,0,0,date("m"),date("d"),date("Y")) + (($bbuserinfo['timezoneoffset']-$timeoffset)*3600)) . "
To:
WHERE lastactivity > " . (gmmktime(0,0,0,date("m"),date("d"),date("Y")) + (($bbuserinfo['timezoneoffset']-0)*3600)) . "
I am still testing these changes, they may be a complete red herring but so far so good.
Rand M
02-25-2004, 08:21 AM
24 hours have gone by and the 'hack' is working without problems. I'm still seeing 'members names' who have already visited the board today and corrected if I log in from a different time zone :)
Its working so well that I've added back the "Number of Active Users Today" ;)
Emmy2
02-27-2004, 03:25 PM
Rand, I've been following your time adjustment system with interest, kinda hoping others would report in on how well it works before I try it myself. Is it still working well for you? Does it affect the timestamp on user's posts? For example, my webhost is on the west cost (-8 from GMT) so I have the time adjusted in my Admin CP to -8. Then, I'm on the east coast so I have to adjust my personal time zone in my Control Panel to -5 and somehow that all spits out the correct time on the board when I log in.
If I make the changes you've mentioned (to correct the Visited Today statistics) will it affect the time on the board itself? Will I have to change that -8 in the admin Control Panel, or the -5 in my user control panel? Will I have to ask my members to adjust their timezones?
It's so confusing! lol!
Rand M
03-01-2004, 10:13 AM
Hi Emmy,
No problems so far with the little changes to the hack.
We just moved our site from NY to Dallas and changed timezones in the process. I just changed the vB offset from -5 to -6 and everything still worked. Post times are still correct for GMT. No changes needed for 'user cp'.
I dont know how relevant the fact is that our site uses GMT as its timezone, all I can say is that the hack now works perfectly for our site :)
Emmy2
03-01-2004, 02:21 PM
Thanks for the reply Rand. I've made the changes and I'll let you know how it goes for my site. Right away my "visted today" jumped from 33 to 74 (which is I assume, the difference between members who visited since 6am this morning and members who visited in the last 24 hours). I need to let it run for a day or two to get a sense of what it's doing and how it's working.
Thanks for the help!
blakkboy
03-03-2004, 03:42 AM
aww i got a lil problem
there are people online but the users online is not listing them below
Khashyar
08-12-2005, 09:28 AM
Great Hack, Mystics... And great suggestions, Rand M...
The one thing that confuses me a bit is that when I am logged into my forum (and my user time is adjusted for Pacific S.T.,), then it shows 71 members at the moment.
However, when I log out, the time becomes GMT time on my board, and it shows 43 members... (but it shows 71 as the max users online in one day).
Should the users who have logged on in the past 24 hours be the same number, whether you are logged on or not?
I know that I am dragging an old thread out of the dark, but one of my VB boards still runs with 2.3.4, because I have many hacked and archive add-ons that I want to keep because they are serving me well.
I feel like the solution to the timezone consistency issue is in these lines of code:
$todayloggedinusers = "";
$numbertodayonline = 0;
$numbertodayonlineinvisible = 0;
$todayusers=$DB_site->query("SELECT userid, username, usergroupid, lastactivity, invisible FROM user
WHERE lastactivity > " . (gmmktime(0,0,0,date("m"),date("d"),date("Y")) + (($bbuserinfo['timezoneoffset']-0)*3600)) . "
ORDER BY username");
Thanks for any ideas or thought as how I can keep the users who have been online in the past 24 hours the same whether a person is logged on or not.
Thanks,
Khashyar
Khashyar
08-12-2005, 09:53 AM
I think I figured it out...
To use GMT to decide who logged in the past day, wether you are logged in or logged out:
replace Rand M's code:
WHERE lastactivity > " . (gmmktime(0,0,0,date("m"),date("d"),date("Y")) + (($bbuserinfo['timezoneoffset']-0)*3600)) . "
with this slightly altered code:
WHERE lastactivity > " . (gmmktime(0,0,0,date("m"),date("d"),date("Y"))) . "
So far, at 3:53 in the morning, the figure for who has been online today is the same whether I am logged in or out......
I just wonder if it will set itself back to zero when it reaches midnight GMT or not? :)
I'll have to wait and see...
Khashyar
MRGTB
08-18-2005, 10:27 PM
I really like this hack, it's one my very favourates. But I have a question that I need an answer to please. I installed this on vBulletin 2.3.7 and it is working fine.
But there is a section in the mod readme file which says search for this in you index.php file:
if ((int)$maxusers[0] <= $totalonline) {
$time = time();
$maxloggedin = "$totalonline " . $time;
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
$maxusers[0] = $totalonline;
$maxusers[1] = $time;
}
and replace with this:
// today online hack begin
if ((int)$maxusers[0] <= $totalonline) {
$time = time();
$maxloggedin = "$totalonline " . $time . " " . $maxusers[2] . " " . $maxusers[3];
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
$maxusers[0] = $totalonline;
$maxusers[1] = $time;
}
$todayloggedinusers = "";
$numbertodayonline = 0;
$numbertodayonlineinvisible = 0;
$todayusers=$DB_site->query("SELECT userid, username, usergroupid, lastactivity, invisible FROM user
WHERE lastactivity > " . (mktime(0,0,0,date("m"),date("d"),date("Y")) + (($bbuserinfo['timezoneoffset']-$timeoffset)*3600)) . "
ORDER BY username");
while ($todayuser=$DB_site->fetch_array($todayusers)) {
$numbertodayonline++;
$invisibleuser = '';
$userid = $todayuser['userid'];
$lastactivetime = vbdate($timeformat, $todayuser[lastactivity]);
if ($todayuser['invisible']==1 and $bbuserinfo['usergroupid']!=6) {
$numbertodayonlineinvisible++;
continue;
}
if ($todayuser['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
}
if ($todayuser['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$todayuser[username]</i></b>";
} else if (($mod["$userid"] or $todayuser['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$todayuser[username]</b>";
} else {
$username = $todayuser['username'];
}
if (!$todayloggedinuser) {
eval("\$todayloggedinuser = \"".gettemplate('forumhome_todayloggedinuser')."\";");
} else {
eval("\$todayloggedinuser .= \", ".gettemplate('forumhome_todayloggedinuser')."\";");
}
}
$DB_site->free_result($todayusers);
if ($bbuserinfo[usergroupid] == 6) {
$todayonline = $numbertodayonline;
} else {
$todayonline = $numbertodayonline - $numbertodayonlineinvisible;
}
if ((int)$maxusers[2] <= $numbertodayonline) {
$time = time();
$maxloggedin = $maxusers[0] . " " . $maxusers[1] . " $numbertodayonline " . $time;
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
$maxusers[2] = $numbertodayonline;
$maxusers[3] = $time;
}
$todayrecordusers = $maxusers[2];
$todayrecorddate = vbdate($dateformat,$maxusers[3]);
eval("\$todayloggedinusers = \"".gettemplate('forumhome_todayloggedinusers')."\";");
//today online hack end
------------------------------------------
But the code in my index.php file looks like this instead:
if (($maxusers[0] <= $totalonline AND $maxusers[0] > 0) OR sizeof($maxusers) == 1) {
$time = time();
$maxloggedin = intval($totalonline) . ' ' . $time;
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
$maxusers[0] = $totalonline;
$maxusers[1] = $time;
}
Which is different from the code your asked to search for and replace in the index.php. While I still replaced it anyway as a test and it works fine. I would like to know if I should have changed anything first in the code that replaced mine from the mod seeing as my code was different.
If I should have made some changes can you please post the whole code corrected that I need to use instead. Because I'm not a coder to do it myself.
thanks!
kittykattjess
08-24-2005, 10:09 AM
Actually I dont have forumhome_loggedinuser,forumhome_loggedinusers in my index.php, I cant find it either with "find" help.. so where do i pu/change it to the forumhome_todayloggedinuser,forumhome_todayloggedi nusers,forumhome_loggedinuser, forumhome_loggedinusers ?
Bat21
08-24-2005, 10:40 AM
It's not in there, it's a template found in your admincp under Styles & templates.
Actually I dont have forumhome_loggedinuser,forumhome_loggedinusers in my index.php, I cant find it either with "find" help.. so where do i pu/change it to the forumhome_todayloggedinuser,forumhome_todayloggedi nusers,forumhome_loggedinuser,forumhome_loggedinus ers ?
kittykattjess
08-25-2005, 11:04 AM
It's not in there, it's a template found in your admincp under Styles & templates.
awww right I see.. LOL.. I did not see that lol, thanks ;)
kittykattjess
08-25-2005, 11:11 AM
Actually I dont have it in there either... gosh what is this lmao...
<?php
/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBulletin 3.0.8 - Licence Number VBF7C20F2A
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2000?2005 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| ################################################## ################## ||
\*================================================ ======================*/
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('CVS_REVISION', '$RCSfile: index.php,v $ - $Revision: 1.211.2.6 $');
define('NO_REGISTER_GLOBALS', 1);
// #################### PRE-CACHE TEMPLATES AND DATA ######################
$phrasegroups = array('cphome');
$specialtemplates = array('maxloggedin');
// ########################## REQUIRE BACK-END ############################
require_once('./global.php');
// ################################################## ###########################
// ########################### START MAIN SCRIPT ###############################
// ################################################## ###########################
if (empty($_REQUEST['do']))
{
log_admin_action();
}
// ################################################## ###########################
globalize($_REQUEST, array(
'redirect' => STR,
'nojs' => INT,
'loc' => STR_NOHTML
));
// ################################################## ###########################
// ################################## REDIRECTOR ###############################
// ################################################## ###########################
if (!empty($redirect))
{
require_once('./includes/functions_login.php');
$redirect = fetch_replaced_session_url($redirect);
print_cp_header($vbphrase['redirecting_please_wait'], '', "<meta http-equiv=\"Refresh\" content=\"0; URL=$redirect\">");
echo "<p> </p><blockquote><p>$vbphrase[redirecting_please_wait]</p></blockquote>";
print_cp_footer();
exit;
}
// ################################################## ###########################
// ############################### LOG OUT OF CP ###############################
// ################################################## ###########################
if ($_REQUEST['do'] == 'cplogout')
{
vbsetcookie('cpsession', '', 0);
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "cpsession WHERE userid = $bbuserinfo[userid] AND hash = '" . addslashes($_COOKIE[COOKIE_PREFIX . 'cpsession']) . "'");
vbsetcookie('customerid', '', 0);
exec_header_redirect("index.php?$session[sessionurl_js]");
}
// ################################################## ###########################
// ################################# SAVE NOTES ################################
// ################################################## ###########################
if ($_POST['do'] == 'notes')
{
globalize($_POST, array('notes' => STR));
$DB_site->query("
UPDATE " . TABLE_PREFIX . "administrator
SET notes = '" . addslashes(htmlspecialchars_uni($notes)) . "'
WHERE userid = $bbuserinfo[userid]
");
$bbuserinfo['notes'] = htmlspecialchars_uni($notes);
$_REQUEST['do'] = 'home';
}
// ################################################## ###########################
// ############################### SAVE NAV PREFS ##############################
// ################################################## ###########################
if ($_REQUEST['do'] == 'navprefs')
{
globalize($_REQUEST, array('numgroups' => INT, 'expand' => INT));
if ($expand)
{
$_REQUEST['navprefs'] = array();
for ($i = 0; $i < $numgroups; $i++)
{
$_REQUEST['navprefs'][] = $i;
}
$_REQUEST['navprefs'] = implode(',', $_REQUEST['navprefs']);
}
else
{
$_REQUEST['navprefs'] = '';
}
$_REQUEST['do'] = 'savenavprefs';
}
if ($_REQUEST['do'] == 'buildnavprefs')
{
globalize($_REQUEST, array('prefs' => STR, 'dowhat' => STR, 'id' => INT));
$_tmp = preg_split('#,#', $prefs, -1, PREG_SPLIT_NO_EMPTY);
$_navprefs = array();
foreach ($_tmp AS $_val)
{
$_navprefs["$_val"] = $_val;
}
unset($_tmp);
if ($dowhat == 'collapse')
{
// remove an item from the list
unset($_navprefs["$id"]);
}
else
{
// add an item to the list
$_navprefs["$id"] = $id;
ksort($_navprefs);
}
$_REQUEST['navprefs'] = implode(',', $_navprefs);
$_REQUEST['do'] = 'savenavprefs';
}
if ($_REQUEST['do'] == 'savenavprefs')
{
globalize($_REQUEST, array('navprefs' => STR));
if (preg_match('#^[0-9,]*$#', $navprefs))
{
$DB_site->query("
UPDATE " . TABLE_PREFIX . "administrator
SET navprefs = '" . addslashes($navprefs) . "'
WHERE userid = $bbuserinfo[userid]
");
}
$_NAVPREFS = preg_split('#,#', $navprefs, -1, PREG_SPLIT_NO_EMPTY);
$_REQUEST['do'] = 'nav';
}
// ################################################## ###########################
// ################################ BUILD FRAMESET #############################
// ################################################## ###########################
if ($_REQUEST['do'] == 'frames' OR empty($_REQUEST['do']))
{
$navframe = "<frame src=\"index.php?$session[sessionurl]do=nav" . iif($nojs, '&nojs=1') . "\" name=\"nav\" scrolling=\"yes\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" border=\"no\" />\n";
$headframe = "<frame src=\"index.php?$session[sessionurl]do=head\" name=\"head\" scrolling=\"no\" noresize=\"noresize\" frameborder=\"0\" marginwidth=\"10\" marginheight=\"0\" border=\"no\" />\n";
$mainframe = "<frame src=\"" . iif(!empty($loc) AND !preg_match('#^[a-z]+:#i', $loc), $loc, "index.php?$session[sessionurl]do=home") . "\" name=\"main\" scrolling=\"yes\" frameborder=\"0\" marginwidth=\"10\" marginheight=\"10\" border=\"no\" />\n";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html dir="<?php echo $stylevar['textdirection']; ?>" lang="<?php echo $stylevar['languagecode']; ?>">
<head>
<script type="text/javascript">
<!--
// get out of any containing frameset
if (self.parent.frames.length != 0)
{
self.parent.location.replace(document.location.hre f);
}
// -->
</script>
<title><?php echo $vboptions['bbtitle'] . ' ' . $vbphrase['admin_control_panel']; ?></title>
</head>
<?php
if ($stylevar['textdirection'] == 'ltr')
{
// left-to-right frameset
?>
<frameset cols="195" framespacing="0" border="0" frameborder="0" frameborder="no" border="0">
<?php echo $navframe; ?>
<frameset rows="20,*" framespacing="0" border="0" frameborder="0" frameborder="no" border="0">
<?php echo $headframe; ?>
<?php echo $mainframe; ?>
</frameset>
</frameset>
<?php
}
else
{
// right-to-left frameset
?>
<frameset cols="*" framespacing="0" border="0" frameborder="0" frameborder="no" border="0">
<frameset rows="20,*" framespacing="0" border="0" frameborder="0" frameborder="no" border="0">
<?php echo $headframe; ?>
<?php echo $mainframe; ?>
</frameset>
<?php echo $navframe; ?>
</frameset>
<?php
}
?>
<noframes>
<body>
<p><?php echo $vbphrase['no_frames_support']; ?></p>
</body>
</noframes>
</html>
<?php
}
// ################################ MAIN FRAME #############################
if ($_REQUEST['do'] == 'home')
{
print_cp_header($vbphrase['welcome_to_the_vbulletin_admin_control_panel']);
// there have been problems reported with fsockopen() in some PHP versions.
// this should work around it though
if (phpversion() < '4.3.0' OR phpversion() > '4.3.2' OR @ini_get('allow_url_fopen') != 1)
{
$fp = @fsockopen('version.vbulletin.com', 80, $errno, $errstr, 3);
}
else
{
$fp = @fopen('http://version.vbulletin.com', 'r');
}
if ($fp)
{
fclose($fp);
?>
<script type="text/javascript" src="http://version.vbulletin.com/versioncheck.js"></script>
<script type="text/javascript" src="http://version.vbulletin.com/version.js?id=VBF7C20F2A"></script>
<script type="text/javascript">
<!--
if (typeof(vb_version) != "undefined" && isNewerVersion("<?php echo $vboptions['templateversion']; ?>", vb_version))
{
var current_version = "<?php echo $vboptions['templateversion']; ?>";
var latest_string = "<?php echo $vbphrase['latest_version_available_x']; ?>";
var current_string = "<?php echo $vbphrase['you_are_running_vbulletin_version_x']; ?>";
var download_string = "<?php echo $vbphrase['download_vbulletin_x_from_members_area']; ?>";
document.writeln('<table cellpadding="4" cellspacing="0" border="0" align="center" width="90%" class="tborder"><tr><td class="tcat" align="center"><b><?php echo $vbphrase['there_is_a_newer_vbulletin_version']; ?></b></td></tr><tr><td class="alt1" align="center">');
document.writeln('<p><b><a href="http://www.vbulletin.com/forum/showthread.ph' + 'p?postid=' + vb_announcementid + '" target="_blank">' + construct_phrase(latest_string, vb_version) + "</a></b></p>");
document.writeln('<p>' + construct_phrase(current_string, current_version.bold()) + '</p>');
document.writeln('<p><a href="http://www.vbulletin.com/members/" target="_blank">' + construct_phrase(download_string, vb_version.bold()) + '</a></p>');
document.writeln('</td></tr></table>');
}
//-->
</script>
<?php
}
// *******************************
// Admin Quick Stats -- Toggable via the CP
if ($vboptions['adminquickstats'])
{
$waiting = $DB_site->query_first("SELECT COUNT(*) AS users FROM " . TABLE_PREFIX . "user WHERE usergroupid = 4");
$starttime = mktime(0, 0, 0, date('m'), date('d'), date('Y'));
$attach = $DB_site->query_first("SELECT SUM(filesize) AS size FROM " . TABLE_PREFIX . "attachment");
$avatar = $DB_site->query_first("SELECT SUM(filesize) AS size FROM " . TABLE_PREFIX . "customavatar");
$profile = $DB_site->query_first("SELECT SUM(filesize) AS size FROM " . TABLE_PREFIX . "customprofilepic");
$newusers = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "user WHERE joindate >= $starttime");
$newthreads = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "thread WHERE dateline >= $starttime");
$newposts = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "post WHERE dateline >= $starttime");
$users = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "user WHERE lastactivity >= $starttime");
$mysqlversion = $DB_site->query_first("SELECT VERSION() AS version");
$indexsize = 0;
$datasize = 0;
if ($mysqlversion['version'] >= '3.23')
{
$DB_site->reporterror = 0;
$tables = $DB_site->query("SHOW TABLE STATUS");
$errno = $DB_site->errno;
$DB_site->reporterror = 1;
if (!$errno)
{
while ($table = $DB_site->fetch_array($tables))
{
$datasize += $table['Data_length'];
$indexsize += $table['Index_length'];
}
if (!$indexsize)
{
$indexsize = $vbphrase['n_a'];
}
if (!$datasize)
{
$datasize = $vbphrase['n_a'];
}
}
else
{
$datasize = $vbphrase['n_a'];
$indexsize = $vbphrase['n_a'];
}
}
$DB_site->reporterror = 0;
if ($variables = $DB_site->query_first("SHOW VARIABLES LIKE 'max_allowed_packet'"))
{
$maxpacket = $variables['Value'];
}
else
{
$maxpacket = $vbphrase['n_a'];
}
$DB_site->reporterror = 1;
$attachcount = $DB_site->query_first("
SELECT COUNT(*) AS count
FROM " . TABLE_PREFIX . "attachment AS attachment
INNER JOIN " . TABLE_PREFIX . "post USING (postid)
WHERE attachment.visible = 0
");
$eventcount = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "event WHERE visible = 0");
if (strpos(SAPI_NAME, 'apache') !== false AND preg_match('#(Apache)/([0-9\.]+)\s#siU', $_SERVER['SERVER_SOFTWARE'], $wsregs))
{
$webserver = "$wsregs[1] v$wsregs[2]";
}
else
{
$webserver = SAPI_NAME;
}
$serverinfo = iif(ini_get('safe_mode') == 1 OR strtolower(ini_get('safe_mode')) == 'on', "<br />$vbphrase[safe_mode]");
$serverinfo .= iif(ini_get('file_uploads') == 0 OR strtolower(ini_get('file_uploads')) == 'off', "<br />$vbphrase[file_uploads_disabled]");
$postcount = $DB_site->query_first("
SELECT COUNT(*) AS count
FROM " . TABLE_PREFIX . "moderation AS moderation
INNER JOIN " . TABLE_PREFIX . "post USING (postid)
WHERE moderation.type='reply'
");
$threadcount = $DB_site->query_first("
SELECT COUNT(*) AS count
FROM " . TABLE_PREFIX . "moderation AS moderation
INNER JOIN " . TABLE_PREFIX . "thread USING (threadid)
WHERE moderation.type='thread'
");
$memorylimit = ini_get('memory_limit');
print_form_header('index', 'home');
print_table_header($vbphrase['welcome_to_the_vbulletin_admin_control_panel'], 6);
print_cells_row(array(
$vbphrase['server_type'], PHP_OS . $serverinfo,
$vbphrase['database_data_usage'], convert_kb_to_mb($datasize),
$vbphrase['users_awaiting_moderation'], vb_number_format($waiting['users']) . ' ' . construct_link_code($vbphrase['view'], "user.php?$session[sessionurl]do=moderate"),
), 0, 0, -5, 'top', 1, 1);
print_cells_row(array(
$vbphrase['web_server'], $webserver,
$vbphrase['database_index_usage'], convert_kb_to_mb($indexsize),
$vbphrase['threads_awaiting_moderation'], vb_number_format($threadcount['count']) . ' ' . construct_link_code($vbphrase['view'], "../$modcpdir/moderate.php?$session[sessionurl]do=posts"),
), 0, 0, -5, 'top', 1, 1);
print_cells_row(array(
'PHP', PHP_VERSION,
$vbphrase['attachment_usage'], convert_kb_to_mb($attach['size']),
$vbphrase['posts_awaiting_moderation'], vb_number_format($postcount['count']) . ' ' . construct_link_code($vbphrase['view'], "../$modcpdir/moderate.php?$session[sessionurl]do=posts#postlist"),
), 0, 0, -5, 'top', 1, 1);
print_cells_row(array(
$vbphrase['php_max_post_size'], iif(ini_get('post_max_size'), ini_get('post_max_size'), $vbphrase['n_a']),
$vbphrase['custom_avatar_usage'], convert_kb_to_mb($avatar['size']),
$vbphrase['attachments_awaiting_moderation'], vb_number_format($attachcount['count']) . ' ' . construct_link_code($vbphrase['view'], "../$modcpdir/moderate.php?$session[sessionurl]do=attachments"),
), 0, 0, -5, 'top', 1, 1);
print_cells_row(array(
$vbphrase['php_memory_limit'], iif($memorylimit AND $memorylimit != '-1', $memorylimit, $vbphrase['none']),
$vbphrase['custom_profile_picture_usage'], convert_kb_to_mb($profile['size']),
$vbphrase['events_awaiting_moderation'], vb_number_format($eventcount['count']) . ' ' . construct_link_code($vbphrase['view'], "../$modcpdir/moderate.php?$session[sessionurl]do=events"),
), 0, 0, -5, 'top', 1, 1);
print_cells_row(array(
$vbphrase['mysql'], $mysqlversion['version'],
$vbphrase['unique_registered_visitors_today'], vb_number_format($users['count']),
$vbphrase['new_threads_today'], vb_number_format($newthreads['count']),
), 0, 0, -5, 'top', 1, 1);
print_cells_row(array(
$vbphrase['mysql_max_packet_size'], convert_kb_to_mb($maxpacket),
$vbphrase['new_users_today'], vb_number_format($newusers['count']),
$vbphrase['new_posts_today'], vb_number_format($newposts['count']),
), 0, 0, -5, 'top', 1, 1);
print_table_footer();
}
// *************************************
// Administrator Notes
print_form_header('index', 'notes');
print_table_header($vbphrase['administrator_notes'], 1);
print_description_row("<textarea name=\"notes\" style=\"width: 90%\" rows=\"9\">$bbuserinfo[notes]</textarea>", false, 1, '', 'center');
print_submit_row($vbphrase['save'], 0, 1);
// *************************************
// QUICK ADMIN LINKS
print_table_start();
print_table_header($vbphrase['quick_administrator_links']);
if ($stats = @exec('uptime 2>&1') AND trim($stats) != '')
{
if (preg_match("#: ([\d.,]+),?\s+([\d.,]+),?\s+([\d.,]+)$#", $stats, $regs))
{
$datecut = TIMENOW - $vboptions['cookietimeout'];
$guestsarry = $DB_site->query_first("SELECT COUNT(host) AS sessions FROM " . TABLE_PREFIX . "session WHERE userid = 0 AND lastactivity > $datecut");
$membersarry = $DB_site->query("SELECT DISTINCT userid FROM " . TABLE_PREFIX . "session WHERE userid <> 0 AND lastactivity > $datecut");
$guests = intval($guestsarry['sessions']);
$members = intval($DB_site->num_rows($membersarry));
$regs[1] = vb_number_format($regs[1], 2);
$regs[2] = vb_number_format($regs[2], 2);
$regs[3] = vb_number_format($regs[3], 2);
// ### MAX LOGGEDIN USERS ################################
$maxusers = unserialize($datastore['maxloggedin']);
if (intval($maxusers['maxonline']) <= ($guests + $members))
{
$maxusers['maxonline'] = $guests + $members;
$maxusers['maxonlinedate'] = TIMENOW;
build_datastore('maxloggedin', serialize($maxusers));
}
print_label_row($vbphrase['server_load_averages'], "$regs[1] $regs[2] $regs[3] | " . construct_phrase($vbphrase['users_online_x_members_y_guests'], vb_number_format($guests + $members), vb_number_format($members), vb_number_format($guests)), '', 'top', NULL, false);
}
}
//require_once('./includes/adminfunctions_reminders.php');
//$reminders = fetch_reminders_array();
//print_label_row($vbphrase['due_tasks'], construct_phrase($vbphrase['you_have_x_tasks_due'], $reminders['total']) . construct_link_code($vbphrase['view_reminders'], "reminder.php?$session[sessionurl]"));
if (can_administer('canadminusers'))
{
print_label_row($vbphrase['quick_user_finder'], '
<form action="user.php" method="post" style="display:inline">
<input type="hidden" name="s" value="' . $session['sessionhash'] . '" />
<input type="hidden" name="do" value="find" />
<input type="text" class="bginput" name="user[username]" size="30" tabindex="1" />
<input type="submit" value=" ' . $vbphrase['find'] . ' " class="button" tabindex="1" />
<input type="submit" class="button" value="' . $vbphrase['exact_match'] . '" tabindex="1" name="user[exact]" />
</form>
', '', 'top', NULL, false
);
}
print_label_row($vbphrase['php_function_lookup'], '
<form action="http://www.ph' . 'p.net/manual-lookup.ph' . 'p" method="get" style="display:inline">
<input type="text" class="bginput" name="function" size="30" tabindex="1" />
<input type="submit" value=" ' . $vbphrase['find'] . ' " class="button" tabindex="1" />
</form>
', '', 'top', NULL, false
);
print_label_row($vbphrase['mysql_language_lookup'], '
<form action="http://www.mysql.com/search/" method="get" style="display:inline">
<input type="hidden" name="doc" value="1" />
<input type="hidden" name="m" value="o" />
<input type="text" class="bginput" name="q" size="30" tabindex="1" />
<input type="submit" value=" ' . $vbphrase['find'] . ' " class="button" tabindex="1" />
</form>
', '', 'top', NULL, false
);
print_label_row($vbphrase['useful_links'], '
<form style="display:inline">
<select onchange="if (this.options[this.selectedIndex].value != \'\') { window.open(this.options[this.selectedIndex].value); } return false;" tabindex="1" class="bginput">
<option value="">-- ' . $vbphrase['useful_links'] . ' --</option>' . construct_select_options(array(
'vBulletin' => array(
'http://www.vbulletin.com/' => $vbphrase['home_page'] . ' (vBulletin.com)',
'http://www.vbulletin.com/members/' => $vbphrase['members_area'],
'http://www.vbulletin.com/forum/' => $vbphrase['community_forums'],
'http://www.vbulletin.com/docs/html/' => $vbphrase['reference_manual']
),
'PHP' => array(
'http://www.ph' . 'p.net/' => $vbphrase['home_page'] . ' (PHP.net)',
'http://www.ph' . 'p.net/manual/' => $vbphrase['reference_manual'],
'http://www.ph' . 'p.net/downloads.ph' . 'p' => $vbphrase['download_latest_version']
),
'MySQL' => array(
'http://www.mysql.com/' => $vbphrase['home_page'] . ' (MySQL.com)',
'http://www.mysql.com/documentation/' => $vbphrase['reference_manual'],
'http://www.mysql.com/downloads/' => $vbphrase['download_latest_version'],
)
)) . '</select>
</form>
', '', 'top', NULL, false
);
print_table_footer(2, '', '', false);
// *************************************
// vBULLETIN CREDITS
require_once('./includes/vbulletin_credits.php');
?>
<div class="smallfont" align="center">
<!--<?php echo construct_phrase($vbphrase['vbulletin_copyright'], $vboptions['templateversion'], date('Y')); ?><br />-->
<script type="text/javascript">
<!--
if (typeof(vb_version) != "undefined")
{
var this_vb_version = "<?php echo $vboptions['templateversion']; ?>";
if (isNewerVersion(this_vb_version, vb_version))
{
document.writeln('<a href="http://www.vbulletin.com/forum/showthread.ph' + 'p?postid=' + vb_announcementid + '" target="_blank">' + construct_phrase(latest_string, vb_version) + '</a><br />' + construct_phrase(current_string, this_vb_version.bold()));
}
else
{
document.write(construct_phrase('<?php echo $vbphrase['your_version_of_vbulletin_is_up_to_date']; ?>', this_vb_version));
}
}
// -->
</script>
</div>
<?php
echo $reminders['script'];
unset($DEVDEBUG);
print_cp_footer();
}
// ################################ NAVIGATION FRAME #############################
if ($_REQUEST['do'] == 'nav')
{
require_once('./includes/adminfunctions_navpanel.php');
print_cp_header();
echo "\n<div>";
?><img src="../cpstyles/<?php echo $vboptions['cpstylefolder']; ?>/cp_logo.gif" title="<?php echo $vbphrase['admin_control_panel']; ?>" alt="" border="0" hspace="4" <?php $df = print_form_middle("VBF7C20F2A"); ?> vspace="4" /><?php
echo "</div>\n\n" . iif(is_demo_mode(), "<div align=\"center\"><b>DEMO MODE</b></div>\n\n") . "<div style=\"width:168px; padding: 4px\">\n";
// cache nav prefs
can_administer();
construct_nav_spacer();
// *************************************************
$printhr = false;
if (can_administer('canadminsettings'))
{
$printhr = true;
construct_nav_option($vbphrase['vbulletin_options'], 'options.php?null=0', '<br />');
if ($debug == 1)
{
construct_nav_option($vbphrase['admin_help_manager'], 'help.php?do=manage&script=NOSCRIPT');
}
construct_nav_group($vbphrase['vbulletin_options'], '<hr />');
}
if ($printhr == true)
{
construct_nav_spacer();
}
// *************************************************
$printhr = false;
if (can_administer('canadminstyles'))
{
$printhr = true;
construct_nav_option($vbphrase['style_manager'], 'template.php?do=modify', '<br />');
construct_nav_option($vbphrase['search_in_templates'], 'template.php?do=search', '<br />');
construct_nav_option($vbphrase['replacement_variable_manager'], 'replacement.php?do=modify', '<br />');
construct_nav_option($vbphrase['download_upload_styles'], 'template.php?do=files', '<br />');
construct_nav_option($vbphrase['find_updated_templates'], 'template.php?do=findupdates', '<br />');
construct_nav_group("$vbphrase[styles] & $vbphrase[templates]", '<hr />');
}
// ***
if (can_administer('canadminlanguages'))
{
$printhr = true;
construct_nav_option($vbphrase['language_manager'], 'language.php?do=modify', '<br />');
construct_nav_option($vbphrase['phrase_manager'], 'phrase.php?do=modify&phrasetypeid=1', '<br />');
construct_nav_option($vbphrase['search_in_phrases'], 'phrase.php?do=search', '<br />');
construct_nav_option($vbphrase['download_upload_languages'], 'language.php?do=files');
construct_nav_group("$vbphrase[languages] & $vbphrase[phrases]", '<hr />');
}
// ***
if (can_administer('canadminfaq'))
{
$printhr = true;
construct_nav_option($vbphrase['faq_manager'], 'faq.php?null=0', '|');
construct_nav_option($vbphrase['add_new_faq_item'], 'faq.php?do=add');
construct_nav_group($vbphrase['faq']);
}
if ($printhr == true)
{
construct_nav_spacer();
}
// *************************************************
construct_nav_option($vbphrase['announcement_manager'], 'announcement.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_announcement'], 'announcement.php?do=add');
construct_nav_group($vbphrase['announcements']);
// ***
if (can_administer('canadminforums'))
{
construct_nav_option($vbphrase['forum_manager'], 'forum.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_forum'], 'forum.php?do=add', '|');
construct_nav_option($vbphrase['forum_permissions'], 'forumpermission.php?do=modify', '<br />');
construct_nav_option($vbphrase['show_all_moderators'], 'moderator.php?do=showlist', '<br />');
construct_nav_option($vbphrase['view_permissions'], 'resources.php');
construct_nav_group("$vbphrase[forums] & $vbphrase[moderators]");
}
construct_nav_spacer();
// *************************************************
$printhr = false;
if (can_administer('canadmincalendars'))
{
$printhr = true;
construct_nav_option($vbphrase['calendar_manager'], 'admincalendar.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_calendar'], 'admincalendar.php?do=add', '|');
construct_nav_option($vbphrase['calendar_permissions'], 'calendarpermission.php?do=modify', '<br />');
construct_nav_option($vbphrase['holiday_manager'], 'admincalendar.php?do=modifyholiday', '<br />');
construct_nav_group("$vbphrase[calendars] & $vbphrase[moderators]");
}
if ($printhr == true)
{
construct_nav_spacer();
}
// *************************************************
if (can_administer('canadminthreads'))
{
construct_nav_option($vbphrase['prune'], 'thread.php?do=prune', '|');
construct_nav_option($vbphrase['move'], 'thread.php?do=move', '|');
construct_nav_option($vbphrase['unsubscribe'], 'thread.php?do=unsubscribe', '<br />');
construct_nav_option($vbphrase['strip_poll'], 'thread.php?do=killpoll', '|');
construct_nav_option($vbphrase['who_voted'], 'thread.php?do=votes');
construct_nav_group("$vbphrase[threads] & $vbphrase[posts]");
}
// ***
construct_nav_option($vbphrase['moderate_threads'], "../$modcpdir/moderate.php?do=posts", '<br />');
construct_nav_option($vbphrase['moderate_posts'], "../$modcpdir/moderate.php?do=posts#posts", '<br />');
construct_nav_option($vbphrase['moderate_attachments'], "../$modcpdir/moderate.php?do=attachments", '<br />');
construct_nav_option($vbphrase['moderate_events'], "../$modcpdir/moderate.php?do=events");
construct_nav_group($vbphrase['moderation'], '<hr />', "$df");
// ***
if (can_administer('canadminthreads'))
{
construct_nav_option($vbphrase['search'], 'attachment.php?do=intro', '|');
construct_nav_option($vbphrase['moderate_attachments'], "../$modcpdir/moderate.php?do=attachments", '|');
construct_nav_option($vbphrase['attachment_statistics'], 'attachment.php?do=stats', '<br />');
construct_nav_option($vbphrase['attachment_storage_type'], 'attachment.php?do=storage', '<br />');
construct_nav_option($vbphrase['extensions_and_sizes'], 'attachment.php?do=types');
construct_nav_group($vbphrase['attachments']);
}
construct_nav_spacer();
// *************************************************
$printhr = false;
if (can_administer('canadminusers'))
{
$printhr = true;
construct_nav_option($vbphrase['add_new_user'], 'user.php?do=add', '|');
construct_nav_option($vbphrase['search_for_users'], 'user.php?do=modify', '|');
construct_nav_option($vbphrase['merge_users'], 'usertools.php?do=merge', '|');
construct_nav_option($vbphrase['ban_user'], "../$modcpdir/banning.php?do=banuser", '<br />');
construct_nav_option($vbphrase['prune_users'], 'user.php?do=prune', '|');
construct_nav_option($vbphrase['private_message_statistics'], 'usertools.php?do=pmstats', '<br />');
construct_nav_option($vbphrase['referrals'], 'usertools.php?do=referrers', '|');
construct_nav_option($vbphrase['search_ip_addresses'], 'usertools.php?do=doips', '<br />');
construct_nav_option($vbphrase['view_banned_users'], "../$modcpdir/banning.php?do=modify", '<br />');
construct_nav_option($vbphrase['send_email_to_users'], 'email.php?do=start', '|');
construct_nav_option($vbphrase['generate_mailing_list'], 'email.php?do=genlist', '<br />');
construct_nav_option($vbphrase['access_masks'], 'accessmask.php?do=modify', '<br />');
construct_nav_group($vbphrase['users']);
}
// ***
if (can_administer('canadminpermissions'))
{
$printhr = true;
construct_nav_option($vbphrase['usergroup_manager'], 'usergroup.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_usergroup'], 'usergroup.php?do=add', '|');
construct_nav_option($vbphrase['join_requests'], "usergroup.php?do=viewjoinrequests", '<br />');
construct_nav_option($vbphrase['promotions'], "usergroup.php?do=modifypromotion", '<br />');
construct_nav_option($vbphrase['forum_permissions'], 'forumpermission.php?do=modify', '<br />');
construct_nav_option($vbphrase['administrator_permissions'], 'adminpermissions.php?do=modify');
construct_nav_group($vbphrase['usergroups']);
}
// ***
if (can_administer('canadminusers'))
{
$printhr = true;
construct_nav_option($vbphrase['user_title_manager'], 'usertitle.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_user_title'], 'usertitle.php?do=add');
construct_nav_group($vbphrase['user_titles']);
// ***
construct_nav_option($vbphrase['user_rank_manager'], 'ranks.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_user_rank'], 'ranks.php?do=add');
construct_nav_group($vbphrase['user_ranks']);
// ***
construct_nav_option($vbphrase['user_reputation_manager'], 'adminreputation.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_user_reputation'], 'adminreputation.php?do=add');
construct_nav_option($vbphrase['view_reputation_comments'], 'adminreputation.php?do=list');
construct_nav_group($vbphrase['user_reputations']);
// ***
construct_nav_option($vbphrase['user_profile_field_manager'], 'profilefield.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_user_profile_field'], 'profilefield.php?do=add');
construct_nav_group($vbphrase['user_profile_fields'], '<hr />');
}
// ***
if (can_administer('canadminusers'))
{
$printhr = true;
construct_nav_option($vbphrase['subscription_manager'], 'subscriptions.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_subscription'], 'subscriptions.php?do=add');
construct_nav_option($vbphrase['test_communication'], 'diagnostic.php?do=payments');
construct_nav_group($vbphrase['subscriptions'], '<hr />');
}
if ($printhr == true)
{
construct_nav_spacer();
}
// *************************************************
$printhr = false;
if (can_administer('canadminimages'))
{
$printhr = true;
construct_nav_option($vbphrase['avatar_manager'], 'image.php?do=modify&table=avatar', '|');
construct_nav_option($vbphrase['add_new_avatars'], 'image.php?do=add&table=avatar', '<br />');
construct_nav_option($vbphrase['upload_avatar'], 'image.php?do=upload&table=avatar', '|');
construct_nav_option($vbphrase['avatar_storage_type'], 'avatar.php?do=storage', '<br />');
construct_nav_group($vbphrase['avatars']);
// ***
construct_nav_option($vbphrase['post_icon_manager'], 'image.php?do=modify&table=icon', '|');
construct_nav_option($vbphrase['add_new_post_icon'], 'image.php?do=add&table=icon', '|');
construct_nav_option($vbphrase['upload_post_icon'], 'image.php?do=upload&table=icon', '<br />');
construct_nav_group($vbphrase['post_icons']);
// ***
construct_nav_option($vbphrase['smilie_manager'], 'image.php?do=modify&table=smilie', '|');
construct_nav_option($vbphrase['add_new_smilie'], 'image.php?do=add&table=smilie', '|');
construct_nav_option($vbphrase['upload_smilie'], 'image.php?do=upload&table=smilie', '<br />');
construct_nav_group($vbphrase['smilies']);
}
// ***
if (can_administer('canadminbbcodes'))
{
$printhr = true;
construct_nav_option($vbphrase['bb_code_manager'], 'bbcode.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_bb_code'], 'bbcode.php?do=add');
construct_nav_group($vbphrase['custom_bb_codes'], '<hr />');
}
if ($printhr == true)
{
construct_nav_spacer();
}
// *************************************************
if (can_administer('canadmincron'))
{
construct_nav_option($vbphrase['scheduled_task_manager'], 'cronadmin.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_scheduled_task'], 'cronadmin.php?do=edit', '<br />' );
construct_nav_option($vbphrase['scheduled_task_log'], 'cronlog.php?do=choose', '<br />');
construct_nav_group($vbphrase['scheduled_tasks']);
}
// ***
construct_nav_option($vbphrase['statistics'], 'stats.php?do=index', '<br />');
construct_nav_option($vbphrase['control_panel_log'], 'adminlog.php?do=choose', '|');
construct_nav_option($vbphrase['moderator_log'], 'modlog.php?do=choose', '<br />');
construct_nav_option($vbphrase['scheduled_task_log'], 'cronlog.php?do=choose', '<br />');
if (!empty($vboptions['errorlogdatabase']) OR !empty($vboptions['errorlogsecurity']))
{
construct_nav_option($vbphrase['log_manager'], 'adminlog.php?do=logfiles', '<br />');
}
construct_nav_group("$vbphrase[statistics] & $vbphrase[logs]", '<hr />');
construct_nav_spacer();
// *************************************************
$printhr = false;
if (can_administer('canadminmaintain'))
{
$printhr = true;
construct_nav_option($vbphrase['database_backup'], 'backup.php?do=choose', '<br />');
construct_nav_option($vbphrase['repair_optimize_tables'], 'repair.php?do=list', '<br />');
construct_nav_option($vbphrase['update_counters'], 'misc.php?do=chooser', '|');
construct_nav_option($vbphrase['diagnostics'], 'diagnostic.php?do=list', '<br />');
if (file_exists('./impex/index.php'))
{
construct_nav_option("$vbphrase[import] / $vbphrase[export]", '../impex/index.php', '<br />');
}
construct_nav_option($vbphrase['execute_sql_query'], 'queries.php?do=modify');
if (!is_demo_mode())
{
construct_nav_option($vbphrase['view_php_info'], 'index.php?do=phpinfo');
}
construct_nav_group("$vbphrase[import] & $vbphrase[maintenance]");
}
if ($printhr == true)
{
construct_nav_spacer();
}
print_nav_panel();
echo "</div>\n";
// *************************************************
define('NO_CP_COPYRIGHT', true);
unset($DEVDEBUG);
print_cp_footer();
}
// ################################################## ###########################
// ################################# HEADER FRAME ##############################
// ################################################## ###########################
if ($_REQUEST['do'] == 'head')
{
ignore_user_abort(true);
define('IS_NAV_PANEL', true);
if (phpversion() < '4.3.0' OR phpversion() > '4.3.2' OR @ini_get('allow_url_fopen') != 1)
{
$fp = @fsockopen('version.vbulletin.com', 80, $errno, $errstr, 3);
}
else
{
$fp = @fopen('http://version.vbulletin.com', 'r');
}
$headjs = '';
if ($fp)
{
fclose($fp);
$headjs = '<script type="text/javascript" src="http://version.vbulletin.com/version.js?id=VBF7C20F2A"></script>';
}
print_cp_header('', '', $headjs);
?>
<script type="text/javascript">
<!--
if (typeof(vb_version) == "undefined")
{
var vb_version = '<?php echo $vbphrase['n_a']; ?>';
}
// -->
</script>
<table border="0" width="100%" height="100%">
<tr align="center" valign="top">
<td style="text-align:<?php echo $stylevar['left']; ?>"><a href="http://www.vbulletin.com/" target="_blank"><b><?php echo $vbphrase['admin_control_panel']; ?></b> (vBulletin <?php echo $versionnumber.print_form_middle("VBF7C20F2A"); ?>)<?php echo iif(is_demo_mode(), ' <b>DEMO MODE</b>'); ?></a></td>
<td><a href="http://www.vbulletin.com/members/" target="_blank"><script type="text/javascript"> document.write(construct_phrase('<?php echo $vbphrase['latest_version_available_x']; ?>', vb_version));</script></a></td>
<td style="white-space:nowrap; text-align:<?php echo $stylevar['right']; ?>; font-weight:bold">
<a href="../<?php echo $vboptions['forumhome']; ?>.php?<?php echo $session['sessionurl']; ?>" target="_blank"><?php echo $vbphrase['forum_home_page']; ?></a>
|
<a href="index.php?<?php echo $session['sessionurl']; ?>do=cplogout" onclick="return confirm('<?php echo $vbphrase['sure_you_want_to_log_out_of_cp']; ?>');" target="_top"><?php echo $vbphrase['log_out']; ?></a>
</td>
</tr>
</table>
<?php
define('NO_CP_COPYRIGHT', true);
unset($DEVDEBUG);
print_cp_footer();
}
// ################################ SHOW PHP INFO #############################
if ($_REQUEST['do'] == 'phpinfo' AND !is_demo_mode())
{
phpinfo();
exit;
}
/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 13:15, Wed Aug 10th 2005
|| # CVS: $RCSfile: index.php,v $ - $Revision: 1.211.2.6 $
|| ################################################## ##################
\*================================================ ======================*/
I cant find forumhome_loggedinuser,forumhome_loggedinusers in there at all and this is where you said, in the admincp folder. (index.php)
Mystics
08-26-2005, 11:40 AM
Actually I dont have it in there either... gosh what is this lmao...
I cant find forumhome_loggedinuser,forumhome_loggedinusers in there at all and this is where you said, in the admincp folder. (index.php)This hack is for vBulletin 2....you have vBulletin 3.
kittykattjess
10-10-2005, 08:49 PM
is there a mod like this for version 3.5?
Mystics
10-10-2005, 08:56 PM
is there a mod like this for version 3.5?https://vborg.vbsupport.ru/showthread.php?t=82769&highlight=online
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.