View Full Version : Was Online Today
Chuckie
08-10-2004, 08:54 PM
You need the hack by Gary King @ Click Here For The Needed Hack (http://www.vbulletin.org/forum/showthread.php?t=59579&highlight=online+today) THIS IS NOT MY HACK.
This is my add-on for VBA CMPS - the hack code in the add-on is by Gary King.
If you install this add-on PLEASE go to Gary's thread and click INSTALLED.
Install instructions are in the zip file.
I will support this add-on here in this thread only....
mholtum
08-10-2004, 09:44 PM
Do we have to install his hack first? I did your install and I cant even get the module to show up. Nevermind, yes you do..
mholtum
08-10-2004, 09:53 PM
Ok I am lost. Where do I put the online.php file? In the root, forums dir or the modules dir? His instrucions failed to mention this.
Chuckie
08-11-2004, 06:50 PM
If you use the normal install txt file you don't nee the online.php file. It you use the other install txt file you need the online php in you forums root folder.
PS. Yes you need the hack at vbulletin.org to get it to work.
da prez
08-11-2004, 10:43 PM
Chuckie Rulz !!
Fiber
08-12-2004, 04:24 PM
Will stay clear of Gary's hack, for it has issues.
xlegends
09-25-2004, 10:48 AM
Good work chuckie, There was already an online.php file in my forum directory of vb3.03.
I made the 3 templates per your readme and made the module, works perfect without having to use gary's mods to his attched online.php.
Very simple module, works great...
WHen I first installed CMPS after using the simple vbindex thru several vb versions, I was irratitated by its raw format, but now I see the hack possibilities are endless. But then again thats php. Anyways Good work
xlegends
09-27-2004, 08:32 AM
Hi,
can you please help me understand why my todays vistors is displaying like. This. appears to be a doublespace and a : before the usernames appear.
I blew up the image for clarity,
cartman
10-09-2004, 08:43 AM
good work Chuckie - however I have the same prob as xlegends wit the : on it's own line at the top of the box......any ideas plz? :confused:
cartman
10-09-2004, 08:45 AM
Looks like it is missing the "total logged on users today.....blah blah" bit - going by the screenshots in other forums
cartman
10-18-2004, 10:55 PM
I also have a problem with the links to the "who was online today" members profiles - specifically from my homepage www.gpcricket.com.au/index.php
These links do not have the /forum/ subdirectory into the path - as follows;
link from "who was online today" box is; http://www.gpcricket.com.au/member.php?u=8
it should be;
http://www.gpcricket.com.au/forum/member.php?u=8
same occurs for "Active Users" box - but all other forum links work flawlessly
Any help would be appriciated
cartman
10-20-2004, 05:17 AM
never mind - i edited the "adv_portal_todayloggedinusers" template and added the "/forum/" to the path of the members link and it's worked a treat
in "adv_portal_todayloggedinuser"
Find:
href="
Change to:
href="$vboptions[bburl]/
This is my verson of "adv_portal_todayloggedinusers" I changed it a bit (made it look more like the normal who's online) and made it scroll. If you get a lot of users this takes up to much space normally...
Here it is (replace entire template):
<table border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] Users Online Today: $todayonline</b></span></td>
</tr>
<tr>
<td class="alt1"><span class="smallfont">
</td>
</tr>
<tr>
<td class="alt2" colspan="0"><span class="smallfont">
<phrase 1="$todayrecordusers" 2="$todayrecorddate">$vbphrase[most_users_ever]</phrase></span>
</td>
</tr>
<tr><td class="alt1" colspan="0" align="center" width="100%">
<!--[if IE]>
<IE:Download ID="marqueedata" STYLE="behavior:url(#default#download)" />
<marquee id="externalmarquee" direction=up scrollAmount=2 style="width:100%;height:150px" onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=2" src="update.htm">
<span class="smallfont">$todayloggedinuser</span></marquee>
<script language="JavaScript1.2">
function downloaddata(){
marqueedata.startDownload(externalmarquee.src,displaydata)
}
function displaydata(data){
externalmarquee.innerHTML=data
}
if (document.all)
window.onload=downloaddata
</script>
<![endif]-->
</td>
</tr>
</table>
<BR>
Im trying to install the hack.... i did install it and surprisingly enough, i cannot see the new module in my CMPS!!
i've checked and it is set to show in the home but i dont see any module on the homepage!
any suggestions what cud be wrong?
viks
I'm really lost with this one, you say "You need the hack by Gary King ", I have looked over at vb at the hack, do I download online.php or onlinexternal.php, do I need to follow the instructions for online.php
Please help
Cheers
Spydey
01-10-2005, 12:36 PM
This is my verson of "adv_portal_todayloggedinusers" I changed it a bit (made it look more like the normal who's online) and made it scroll. If you get a lot of users this takes up to much space normally...
Here it is (replace entire template):
-------Code removed to save space -------
I installed this template - and I like it a lot more than the whole list in the module.
I have one issue though - it is totally blank in Firefox...
I installed the scrolling latest threads hack, and it works fine in Firefox...
Any idea what I could have done wrong?
Thanks.
Am getting there :), when I look at my forums it shows Most users ever online on a day was 1 on 12 Hours Ago. | The following members have already visited the forums today: but if I look at the portal it only shows Most users ever online on a day was 1 on 12 Hours Ago.: where have I gone wrong
Thanks
Chet
Im trying to install the hack.... i did install it and surprisingly enough, i cannot see the new module in my CMPS!!
i've checked and it is set to show in the home but i dont see any module on the homepage!
any suggestions what cud be wrong?
viks
hey chuckie, how can i get this mod working.
I installed Gary's hack - uploaded the online_external.php and edited it for my forums path.
Now ur addon... i uploaded the onlinetoday.php in modules folder and made 3 templates. Checked CMPS - the module is on.. and selected but nothing shows up on CMPS.
Can ya help me out with this .. pleeeze.
thanks
Chuckie
02-09-2005, 06:08 AM
I installed Gary's hack - uploaded the online_external.php and edited it for my forums path.
This is not Gary's Hack.
For some reason the link was taking you yo the wrong hack at vb.org. I FIXED THE LINK. Should get you to the right hack you need now.
When going to the link make sure it is the hack from Gary King called Online Today.
MrWizzrd
03-10-2005, 08:24 PM
This is my verson of "adv_portal_todayloggedinusers" I changed it a bit (made it look more like the normal who's online) and made it scroll. If you get a lot of users this takes up to much space normally...
Here it is (replace entire template):
<table border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] Users Online Today: $todayonline</b></span></td>
</tr>
<tr>
<td class="alt1"><span class="smallfont">
</td>
</tr>
<tr>
<td class="alt2" colspan="0"><span class="smallfont">
<phrase 1="$todayrecordusers" 2="$todayrecorddate">$vbphrase[most_users_ever]</phrase></span>
</td>
</tr>
<tr><td class="alt1" colspan="0" align="center" width="100%">
<!--[if IE]>
<IE:Download ID="marqueedata" STYLE="behavior:url(#default#download)" />
<marquee id="externalmarquee" direction=up scrollAmount=2 style="width:100%;height:150px" onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=2" src="update.htm">
<span class="smallfont">$todayloggedinuser</span></marquee>
<script language="JavaScript1.2">
function downloaddata(){
marqueedata.startDownload(externalmarquee.src,displaydata)
}
function displaydata(data){
externalmarquee.innerHTML=data
}
if (document.all)
window.onload=downloaddata
</script>
<![endif]-->
</td>
</tr>
</table>
<BR>
Props to Roms for this. I liked his layout but the scrolling didnt fit my site. here is a non-scrolling version if anyone wants it.
Replace "adv_portal_todayloggedinusers" template content with this
<table border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] Users Online Today: $todayonline</b></span></td>
</tr>
<tr>
<td class="alt1"><span class="smallfont">
</td>
</tr>
<tr>
<td class="alt2" colspan="0"><span class="smallfont">
<phrase 1="$todayrecordusers" 2="$todayrecorddate">$vbphrase[most_users_ever]</phrase></span>
</td>
</tr>
<tr><td class="alt1" colspan="0" align="center" width="100%">
<span class="smallfont">$todayloggedinuser</span>
</td>
</tr>
</table>
<BR>
altirisadmin
03-14-2005, 03:20 PM
I have the same problem that Spydey has...I want the scrolling version becuase of the number of people that login each day. The only problem is that it doesn't work with FireFox...it's completely blank.
Any ideas?
altirisadmin
03-22-2005, 11:00 AM
bump
rforaker
07-01-2005, 03:53 AM
Here is a re-worked non-scrolling version I use, it uses smallfont and breaks up the tables so the text are in different colors depending on your site theme.
<table border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vboptions[blockbullet]» Members Today: $todayonline</b></span></td>
</tr>
<tr>
<td class="alt1" colspan="0"><span class="smallfont">
<phrase 1="$todayrecordusers" 2="$todayrecorddate"><b>Visiting Members Today:</b><br />
</td>
</tr>
<tr>
<td class="alt2" colspan="0"><span class="smallfont">
$todayloggedinuser</span><br /><br />
</td>
</tr>
</table>
<br />
Enjoy.
mtrac
07-27-2005, 11:57 PM
Trying to use this with VBA 2.0 and it's taking 100% of the page width. I'm looking for something obvious and not seeing it.
mholtum
07-27-2005, 11:59 PM
Trying to use this with VBA 2.0 and it's taking 100% of the page width. I'm looking for something obvious and not seeing it.
Use Module Shell Template Choose "No"
mtrac
07-28-2005, 05:33 AM
That did it. Thanks.
dopekhor
09-23-2005, 03:49 AM
what should i put in the Identifer Field in the Add Module Section?
dopekhor
09-23-2005, 01:31 PM
btw is the module compatible with vb 3.0.8? it doesnt show up in my cmps page.
c-com
10-02-2005, 05:25 PM
Just did some workaround to have this working with vb3.5
Not very well tested, but for me it works.
Bandolero
10-10-2005, 09:02 AM
Just did some workaround to have this working with vb3.5
Not very well tested, but for me it works.
Thanks c-com for the fix.
But I noticed a couple of problems.
1. The list of users was including yesterday users. The problem turned out to be the timezone array in the query line. $vboptions was used instead of $vbulletin->options.
2. The USEROPTIONS was reading from the current user instead of the array of users. This made the invisible flag to show for all or none.
Again thanks c-com, your post came in very handy.
I'm not trying to take any of your credit but here is the fixed php if anyone wants it.
Gary Bolton
10-20-2005, 10:38 PM
Thanks c-com for the fix.
But I noticed a couple of problems.
1. The list of users was including yesterday users. The problem turned out to be the timezone array in the query line. $vboptions was used instead of $vbulletin->options.
2. The USEROPTIONS was reading from the current user instead of the array of users. This made the invisible flag to show for all or none.
Again thanks c-com, your post came in very handy.
I'm not trying to take any of your credit but here is the fixed php if anyone wants it.
The mistakes you corrected above for the 3.5 version, do these same mistakes also apply for the 3.0 version in the first thread in the download.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.