Welcome Guest [Log In] [Register]
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
Members online today v2
Topic Started: Aug 18 2009, 10:27 AM (670 Views)
swordbeta
Member
 *   *  
Okay, as some random dude was talking trash about my code, I decided to rewrite it and I like it :)
I might add some graphics to the control panel, but I'll keep it as it is for now.

Link: http://www.swordbeta.com/mot/

A few clicks, and you have your members online today code!

Invisionfree testboard: http://z4.invisionfree.com/Masdf/index.php
Control panel preview:
Posted Image

Remove breakline and/or add bold to the number of members online; (Change the values of the variables and put it above the actual code)
Code:
 
<script type="text/javascript">
//Put this ABOVE the actual code
var mot_breakline = 0; //1 = remove the breakline
var mot_boldnumber = 0; //1 = bold number
</script>
Edited by swordbeta, Nov 8 2009, 05:57 AM.
Offline Profile Quote Post Goto Top
 
southernmod
Member
 *  
wicked cheers
quick question do you know if you can every put it into colour and also change the GIF file (picture) sorry being picky now
slight problem with this now as it only seems to be picking up the management team and not the general members, any ideas sorry
Edited by southernmod, Aug 22 2009, 10:08 AM.
Offline Profile Quote Post Goto Top
 
swordbeta
Member
 *   *  
You can change the marker's image, there's a variable in your footers code. (img)

and I wouldn't know.
Offline Profile Quote Post Goto Top
 
welshtony
Member Avatar
www.f6oc.co.uk
 *   *  
I have just tried this and it doesnt work for me.
Any ideas why?
Offline Profile Quote Post Goto Top
 
wissaboo
Member Avatar
just testing
 *   *   *  
not working for me either
Offline Profile Quote Post Goto Top
 
swordbeta
Member
 *   *  
I can't see how hard this is to setup =/ Just follow the instructions and done.
Make sure you add the right domain (read) and copy the invisionfree code into your footers.
Offline Profile Quote Post Goto Top
 
Dolphine
Member Avatar
Member
 *   *  
Thanks! works fine for me.

Question - I have a script that colours usernames on the board index - eg last post, online users - and this is set for staff positions only. I noticed with your script - my username which appears in bold red - appears only in the regular member text colour. Is there a way to allow it to colour, based on that other script? Like my elite members have a red "+" sign so it would be nice if they could be seen with this infront of their names.

I noticed a bug - when people log out, under the members online today - it has "Log Out" as one of the people. The user ID is 0. I was wondering if this could be suppressed or removed so that it doesn't show? There are other active members but they don't seem to show up on the list. When does the script determine when someone currently active is included in online today view?
Edited by Dolphine, Oct 27 2009, 10:02 PM.
Offline Profile Quote Post Goto Top
 
uae
Member
 *  
doesn't work for me, either. I don't see any code? :unsure:
Offline Profile Quote Post Goto Top
 
Lout
Member Avatar
Member
 *   *   *   *  
Look at the picture in the first post, there is the box with the code in - just click inside of the box once you have added your board address and press Ctrl+A to select it all, then Ctrl+C to copy it, now just paste the code into the footers.
Online Profile Quote Post Goto Top
 
swordbeta
Member
 *   *  
Dolphine
Oct 27 2009, 07:41 PM
Thanks! works fine for me.

Question - I have a script that colours usernames on the board index - eg last post, online users - and this is set for staff positions only. I noticed with your script - my username which appears in bold red - appears only in the regular member text colour. Is there a way to allow it to colour, based on that other script? Like my elite members have a red "+" sign so it would be nice if they could be seen with this infront of their names.

I noticed a bug - when people log out, under the members online today - it has "Log Out" as one of the people. The user ID is 0. I was wondering if this could be suppressed or removed so that it doesn't show? There are other active members but they don't seem to show up on the list. When does the script determine when someone currently active is included in online today view?
Can you link me to your board?

As for the colors, can you show/link me the script you're currently using for the colored names?
Offline Profile Quote Post Goto Top
 
Dolphine
Member Avatar
Member
 *   *  
swordbeta
Nov 4 2009, 04:35 AM
Can you link me to your board?

As for the colors, can you show/link me the script you're currently using for the colored names?
sure! link to my board is: http://nicolealways.com/index.php? The forum sections are hidden from guest view, however you can see the names coloured in the online list in board statistics (if there are staff present) and also the same script colours the staff names on the sidebar.

script:

Code:
 
<style>
A.adminclass:link, A.adminclass:visited, A.adminclass:active { color: orange; font-weight: bold }
</style>
<script>
/*
Color Username Across Board v3
Created by iFusion

*/

function colorName( iUser, iClass, iName){
for(i=0;i<document.links.length;i++)
if(document.links[i].href.match("showuser=" + iUser + "$") != null){
if(iName != null) document.links[i].innerHTML = iName
document.links[i].className=iClass
}
}

colorName( "1" , "adminclass" , "James [WWX]" ) //James
colorName( "140" , "sexyclass" ) //Soph
</script>



A few more things I have been observing:

1. For some reason new members who join, never seem to get listed. Members who have like 5, 20 posts etc. Is there some sort of cutoff like only high posters get listed or something?

2. Even though low posters don't get listed, the other day 2 members did, but when you hovered the mouse over each of them - their user ID was 0. These were two members who never ever appeared before - ie they have never visited the board. I have lots of other 0 posters who visit daily yet they never appear.
Edited by Dolphine, Nov 6 2009, 09:39 PM.
Offline Profile Quote Post Goto Top
 
VFKF
Member
 *  
Today, mine is acting up. It's not loading on my board. If I log in to http://www.swordbeta.com/mot/ I see the # of members online today, but it's not appearing on my board. I have not added/deleted anything in my wrappers.

http://virtualfamilykingdomforums.com
Offline Profile Quote Post Goto Top
 
swordbeta
Member
 *   *  
VFKF
Nov 6 2009, 11:36 PM
Today, mine is acting up. It's not loading on my board. If I log in to http://www.swordbeta.com/mot/ I see the # of members online today, but it's not appearing on my board. I have not added/deleted anything in my wrappers.

http://virtualfamilykingdomforums.com
Sorry about this, I've added a breakline remover yesterday which wasn't working properly. This has been fixed now.

@Dolphine: I think it should work fine with my code.
Add that code AFTER my code.
And very strange, no there's no cut off limit for new members or members with 0 posts.
I assume these members are bots or have javascript disabled.

Also, I've found a little bug which prevents it from showing up, I will fix this tomorrow.
Edited by swordbeta, Nov 7 2009, 04:35 PM.
Offline Profile Quote Post Goto Top
 
VFKF
Member
 *  
I saw you were fixing to post so I waited. Was here to tell you its all good now. Thanks for the quick fix.
Offline Profile Quote Post Goto Top
 
Dolphine
Member Avatar
Member
 *   *  
swordbeta
Nov 7 2009, 04:33 PM
@Dolphine: I think it should work fine with my code.
Add that code AFTER my code.
And very strange, no there's no cut off limit for new members or members with 0 posts.
I assume these members are bots or have javascript disabled.

Also, I've found a little bug which prevents it from showing up, I will fix this tomorrow.
Thanks, the colour issue is now resolved.

Actually those members are definitely not bots - I know this because they chat in our cbox. I am just wondering why members with 0 posts never appear and also members with low posts. I have noticed that with other members who have like 18 or 25 posts - they are active on the board - posting once a day, yet their names never appear.

A few things I would like you to look at whenever you plan to update the script:

1. Where it says "xx Members Online today." - could you bold the number? It would be nice if it could standout.

2. Supressing the "Log Out" user who always has a user ID of 0.

Thanks as always - great script!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Code Snippets · Next Topic »
Add Reply