We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
  • Pages:
  • 1
Members Online Today
Topic Started: May 4 2012, 10:17 AM (3,975 Views)
Epsilekt
Member Avatar
Member
[ *  *  *  *  *  * ]
BANDWIDTH ISSUES WITH 3OWL WHO SAID THAT THEY PROVIDED UNLIMITED BANDWIDTH FOR FREE INTERRUPTED THIS SCRIPT... IT HAS BEEN RE-HOSTED AT ATSPACE.TV... PLEASE RECOPY YOUR SCRIPT... ALL YOUR DATA HAS BEEN TRANSFERRED TO THE NEW SERVER...

I wanted to write a fresh-cut version of Members Online Today because lots of people were complaining that you could not see guests that were online... Also this version depends on PHP which loads the page faster and uses much less bandwidth... If you have any ideas to change the script or comments please say something. :)

Preview
Description: Shows guests, members online within last 24 hours in order of who was online last and is fast and easy to install...
How to install: Just add the following code to the "Above the copyright:" section of your Board Template in the Admin CP...
Code:
 
<script type="text/javascript">var c_mark_logo='';try{var mot_userid='';var mot_username='';if($.zb.logged_in){mot_userid=$.zb.stat.mid;}var a=document.getElementsByTagName('A');for(var b=0;b<a.length;b++){if(a[b].href==main_url+'profile/'+mot_userid+'/'){var c=0;var d=a[b].parentNode;while(d.tagName.toLowerCase()!='body'&&c<1){d=d.parentNode;if(d.tagName.toLowerCase()=='div'){if(d.id=='top_info'){c++;mot_username=a[b].innerHTML;}}}}}var forums_table=null;var a=document.getElementsByTagName('TABLE');for(var b=0;b<a.length;b++){if(a[b].className=='forums'){forums_table=a[b];}}if(forums_table){if(window.location.href.toString()==main_url||window.location.href.toString()==main_url+'index/'){document.write('<'+'script type="text/javascript" src="http://maxaquagangsta.atspace.tv/3owl/mot.php?main_url='+escape(main_url)+'&mot_username='+escape(mot_username)+'&mot_userid='+escape(mot_userid)+'&mot_logtime='+escape(new Date().getTime())+'"></'+'script>');}}}catch(error_message){}</script>
Edited by Epsilekt, May 14 2012, 03:30 PM.
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Looks good, I like how it logs Anonymous in that fashion, that's an upgrade from Joe's version. I personally don't like how the content is vertically aligned to the top, it looks better in the middle, I think. Don't forget the script tags, otherwise people will be asking you why it doesn't work and displays the text on their board.
Offline Profile Quote Post Goto Top
 
Joshua J
Member Avatar
Member
[ *  *  * ]
Dont work
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
It needs the script tags wrapped around it:
Code:
 
<script type="text/javascript">
var c_mark_logo='';try{var mot_userid='';var mot_username='';if($.zb.logged_in){mot_userid=$.zb.stat.mid;}var a=document.getElementsByTagName('A');for(var b=0;b<a.length;b++){if(a[b].href==main_url+'profile/'+mot_userid+'/'){var c=0;var d=a[b].parentNode;while(d.tagName.toLowerCase()!='body'&&c<1){d=d.parentNode;if(d.tagName.toLowerCase()=='div'){if(d.id=='top_info'){c++;mot_username=a[b].innerHTML;}}}}}var forums_table=null;var a=document.getElementsByTagName('TABLE');for(var b=0;b<a.length;b++){if(a[b].className=='forums'){forums_table=a[b];}}if(forums_table){document.write('<'+'script type="text/javascript" src="http://maxaquagangsta.3owl.com/mot.php?main_url='+escape(main_url)+'&mot_username='+escape(mot_username)+'&mot_userid='+escape(mot_userid)+'&mot_logtime='+escape(new Date().getTime())+'"></'+'script>');}}catch(error_message){}
</script>
Offline Profile Quote Post Goto Top
 
Helena-ZNR
Member Avatar
No PMs on this account please
[ *  *  *  *  *  *  * ]
Wow..nifty MOT code.

It's great to see you coding for ZB, Epsilekt.

I remember you as being the first to make some of the most awesome IF codes ever. Like IPB search and profile, and quick-edit (one of my personal faves).

Can you tell I'm a fan? Posted Image

Did you ever release an MOT code for IF?


Offline Profile Quote Post Goto Top
 
Joshua J
Member Avatar
Member
[ *  *  * ]
any wa yso that the memebrs online keep thier group color?
Offline Profile Quote Post Goto Top
 
Epsilekt
Member Avatar
Member
[ *  *  *  *  *  * ]
Cory
May 4 2012, 10:50 AM
Looks good, I like how it logs Anonymous in that fashion, that's an upgrade from Joe's version. I personally don't like how the content is vertically aligned to the top, it looks better in the middle, I think. Don't forget the script tags, otherwise people will be asking you why it doesn't work and displays the text on their board.
I fixed the vertical alignment you were talking about... And thanks for reminding me that I forgot to put the script tags in the original post, I've fixed that now.
Helena
May 4 2012, 03:18 PM
Did you ever release an MOT code for IF?
Yes, but it ran off of the forum's posting features and loaded slow. I will make a newer version that uses the database just like this one. It should be a quick change to this code to suit the class names and HTML tables for the additional Board Statistics area and everything else will work the same in the script... you could actually change it really easily yourself now that I think about it. But I will release an official version for InvisionFree too.
Joshua J
May 5 2012, 04:04 AM
any wa yso that the memebrs online keep thier group color?
Yes, I will add this function soon.
Edited by Epsilekt, May 5 2012, 03:07 PM.
Offline Profile Quote Post Goto Top
 
Joshua J
Member Avatar
Member
[ *  *  * ]
did u add the fuction?
Why does this table show up in recent posts?
Edited by Joshua J, May 6 2012, 12:14 PM.
Offline Profile Quote Post Goto Top
 
Epsilekt
Member Avatar
Member
[ *  *  *  *  *  * ]
Joshua J
May 6 2012, 12:13 PM
did u add the fuction?
Why does this table show up in recent posts?
Not yet... let me see a screenshot of what problem you're experiencing and I'll fix it. I think I know what is happening... you have extra or less board statistics tables so the code is inserting the member online today part in the wrong place... I can make it auto adjust but first I have to see what kind of problem you're having...
Offline Profile Quote Post Goto Top
 
Joshua J
Member Avatar
Member
[ *  *  * ]
when i see active topics u know like alstest post it shows up there & on my board stats
Offline Profile Quote Post Goto Top
 
Epsilekt
Member Avatar
Member
[ *  *  *  *  *  * ]
Joshua J
May 7 2012, 02:01 PM
when i see active topics u know like alstest post it shows up there & on my board stats
Oh, I have updated the original post to fix that issue, please copy and paste the new code in the same spot. The code will now activate only when people view the /index/ page...
Edited by Epsilekt, May 8 2012, 08:37 AM.
Offline Profile Quote Post Goto Top
 
Epsilekt
Member Avatar
Member
[ *  *  *  *  *  * ]
UPDATED! SEE BIG RED TEXT IN FIRST POST! Please suscribe to this topic if you are using the modification because you will be emailed if there are any important updates...
Edited by Epsilekt, May 18 2012, 02:23 PM.
Offline Profile Quote Post Goto Top
 
Akhil-10
Member Avatar
Imagination Is The Beginning Of Creation
[ *  * ]
members group colors are not seen, time not proper/incorrect, totally not good at all.
Offline Profile Quote Post Goto Top
 
extraordinary
Member
[ *  * ]
I appreciate this code; only issue I have is that the colour of the member is not right.
Offline Profile Quote Post Goto Top
 
Devourz
Member Avatar
Member
[ *  *  * ]
Anyway we can get this "Members online" to appear with the member group title and color like this for example http://prntscr.com/5pawct instead of this plain looking stuff http://prntscr.com/5pawiy
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · ZetaBoards Codes & Modifications · Next Topic »
Add Reply
  • Pages:
  • 1