Welcome Guest [Log In] [Register]
Viewing Single Post From: Members Online Today
Mwr247
Member Avatar
Cęsaris Salutis!
[ *  *  *  * ]
Name:
Members Online Today

Description:
One of the most requested codes for InvisionFree is finally here, in an easy, simple, and reliable form! What it does is logs who has been on your board during that day, and lists it on the index in a box below your board stats. Clicking a name will also redirect you to their profile.

The only downside to this code is it requires you to sacrifice your calendar to store the user data. If you don't use your calendar anyways, you've got nothing to lose :)

As a final note, this code is still pretty new, and due to it's nature, I can only completely test it's functionability a few times every day. Thus, there could potentially be a few lingering bugs. I'm sure I've worked most of them out, but if you find any, please don't hesitate to inform me and I'll fix it when I can.

Copyright:
Mwr247

Browser compatibility:
Internet Explorer, FireFox, Mozilla, Opera, Safari, and Netscape.

Preview/Screen shot:
RandomScriptPreviews
You'll have to create an account to see it add names and such.

Installation:
First, go to your admin control panel and find the page for "Date & Time Formats". The top option should be "Native Server Time Zone". Look at the drop down box to the right and find out what timezone number your board is set to. For example, if it says "GMT", your timezone is "0". If it says "GMT - 1", your timezone is "-1". If it says "GMT + 1", your timezone is "1", and so on. You'll need this number to set the code up properly. By default, the example is set to "-5", which is U.S. Eastern Standard Time.

Now, add the following to your board wrapper footers:
Quote:
 
<script>
// Members Online Today (By Mwr247)
// Copyright MUST stay intact please!
// http://bigboardsresources.com/

// Set Default Time Zone
var timezone = -5

</script><script name="M.O.T." src="http://209.85.62.26/12221/196/pip/mot.gif"></script>
Remember to change the number in red to the timezone your board is set to.

Now, go to the "Calendar/Birthday" in the Admin CP. Change "Show birthdays on the main calendar view?" to no, "Show forthcoming events?" to yes, and "Show forthcoming events from today to [x] days ahead" to 2 days.

Finally, edit all your member groups and make sure they can create calendar events. Otherwise it won't allow them to log anything.

And that's it, your code is now configured. Yes, it is a bit complicated with the whole timezone thing, but if you need help you can always ask here.
Offline Profile Quote Post
Members Online Today · Code Snippets