Post by Ross on Apr 20, 2006 10:26:35 GMT
I know this has been a long awaited code, and I'm not surprised it's taken someone so long to get around to doing it with the amount of trouble it's given me. I just hope you appreciate it
Anyway, what this code does is adds an extra section to your info center containing a list of members who have been active in the last 24 hours. But how is this possible? Well the information is stored on a server-side database whichI am Chris is providing. In order to comply with the ProBoards TOS, I have had to put in a number of security type features which prevents invisible users from being displayed, this is mainly done through the use of cookies.
Anyway, enough about that, here's the actual code.
Main Footer
<script type="text/javascript">
<!--
/* users online today v2
coded by ross of 101support.proboards43.com
special thanks to chris of studiozero.proboards44.com for hosting it
not to be reposted anywhere
main footer */
// Edit this variable if you want to use a different image.
var icon_url = "http://s1.images.proboards.com/online.gif";
function include(action, file) {
var forum = location.href.replace(/^http:\/\/(www\.)?/, '').split(/\./);
forum = forum[0] + forum[1];
var action = '&f=' + forum + '&' + action.replace(/%/g, '%25');
var file = (file)? file : 'users_online_today.php';
var new_script = document.createElement('script');
new_script.type = 'text/javascript';
new_script.src = 'http://iycatacombs.com/ross/users_online/' + file + '?' + action;
document.getElementsByTagName('head').item(0).appendChild(new_script);
}
if(location.href.match(/\.com\/?(index.cgi)?\??(&?action=home)?(#.+?)?$/) && !document.postForm) {
include('', 'v2.js');
} else if(document.modifyForm) {
document.cookie = 'activity_logged=false;';
}
//-->
</script>
Note 1: This code will not work with other complete info center remodels like Ultimate Info Center, Info center 102 or MYOIC. At this time I have no intention of adding support for these info centers because of how fragile this code can be, it wouldn't take much for the users to not show if it takes slightly too long to load the data. However, that should not stop other coders from using this code to send/save/retrieve the users online data and then writting it into their own info center.
Note 2: If you are upgrading the code on your forum, please remember to remove the old Header section.
Note 3: This version uses a completly different database system to the last one. Therefore, if you are updating your code, the users online in the past 24 hours will not be shown as the information is not avaliable.
Note 4: A recent update has been made to fix issues with the code not displaying on some pages and not always logging some users.
Anyway, what this code does is adds an extra section to your info center containing a list of members who have been active in the last 24 hours. But how is this possible? Well the information is stored on a server-side database which
Anyway, enough about that, here's the actual code.
Main Footer
<script type="text/javascript">
<!--
/* users online today v2
coded by ross of 101support.proboards43.com
special thanks to chris of studiozero.proboards44.com for hosting it
not to be reposted anywhere
main footer */
// Edit this variable if you want to use a different image.
var icon_url = "http://s1.images.proboards.com/online.gif";
function include(action, file) {
var forum = location.href.replace(/^http:\/\/(www\.)?/, '').split(/\./);
forum = forum[0] + forum[1];
var action = '&f=' + forum + '&' + action.replace(/%/g, '%25');
var file = (file)? file : 'users_online_today.php';
var new_script = document.createElement('script');
new_script.type = 'text/javascript';
new_script.src = 'http://iycatacombs.com/ross/users_online/' + file + '?' + action;
document.getElementsByTagName('head').item(0).appendChild(new_script);
}
if(location.href.match(/\.com\/?(index.cgi)?\??(&?action=home)?(#.+?)?$/) && !document.postForm) {
include('', 'v2.js');
} else if(document.modifyForm) {
document.cookie = 'activity_logged=false;';
}
//-->
</script>
Note 1: This code will not work with other complete info center remodels like Ultimate Info Center, Info center 102 or MYOIC. At this time I have no intention of adding support for these info centers because of how fragile this code can be, it wouldn't take much for the users to not show if it takes slightly too long to load the data. However, that should not stop other coders from using this code to send/save/retrieve the users online data and then writting it into their own info center.
Note 2: If you are upgrading the code on your forum, please remember to remove the old Header section.
Note 3: This version uses a completly different database system to the last one. Therefore, if you are updating your code, the users online in the past 24 hours will not be shown as the information is not avaliable.
Note 4: A recent update has been made to fix issues with the code not displaying on some pages and not always logging some users.
Special Thanks to Chris aka CD for Hosting the Code