Forum Hosting  

Go Back   Forum Hosting > IPB Support > IPB General Support

IPB General Support Post your questions here, no bug reports.


Reply
 
LinkBack Thread Tools Display Modes
Old 09-27-2007, 07:13 PM   #46 (permalink)
Senior Forumer
 
MasterVision's Avatar
 
Join Date: Nov 2006

Posts: 1,065
Rep Power: 3 MasterVision is on a distinguished road
fTrader: (0)
fBuck$: 760.0
Bank: 4,247.1
Total fBuck$: 5,007.1

My Forumer
My Country:
Send a message via MSN to MasterVision Send a message via Yahoo to MasterVision Send a message via Skype™ to MasterVision
Default Re: Active Users Today

Well, you can just add some scripts to check the member's name in a group and give the attribute you want.
MasterVision is offline   Reply With Quote
Old 09-27-2007, 07:35 PM   #47 (permalink)
Elite Forumer
 
Wild Cat's Avatar
 
Join Date: May 2007

Location: UK
Posts: 6,508
Rep Power: 9 Wild Cat has a spectacular aura aboutWild Cat has a spectacular aura about
fTrader: (3)
fBuck$: 1,986.0
Bank: 130,000.2
Total fBuck$: 131,986.2

My Forumer
My Country:
Default Re: Active Users Today

You are so vague these days my friend....... in the past you used to explain how to do things not just say what is possible
Wild Cat is offline   Reply With Quote
Old 09-27-2007, 08:08 PM   #48 (permalink)
Senior Forumer
 
MasterVision's Avatar
 
Join Date: Nov 2006

Posts: 1,065
Rep Power: 3 MasterVision is on a distinguished road
fTrader: (0)
fBuck$: 760.0
Bank: 4,247.1
Total fBuck$: 5,007.1

My Forumer
My Country:
Send a message via MSN to MasterVision Send a message via Yahoo to MasterVision Send a message via Skype™ to MasterVision
Default Re: Active Users Today

just have no time to do it now... maybe in some other day
MasterVision is offline   Reply With Quote
Old 09-28-2007, 04:39 AM   #49 (permalink)
Member
 
123abc's Avatar
 
Join Date: Feb 2006

Posts: 7
Rep Power: 0 123abc is on a distinguished road
fTrader: (0)
fBuck$: 165.0
Bank: 0.0
Total fBuck$: 165.0

My Forumer
My Country:
Default Re: Active Users Today

thanks for the previous reply... so it is possible?!?!

they told me over at Fmods that it wasnt possible!

what extra bits of script are needed?

also, members names that have two words with a space in the middle of them only show up on the list as the first word, the second part of the username after the space is missing?!?!

Last edited by 123abc; 09-28-2007 at 04:44 AM.
123abc is offline   Reply With Quote
Old 09-28-2007, 02:16 PM   #50 (permalink)
Active Forumer
 
Dr. Fix's Avatar
 
Join Date: Aug 2007

Posts: 337
Rep Power: 2 Dr. Fix is on a distinguished road
fTrader: (9)
fBuck$: 168.9
Bank: 0.0
Total fBuck$: 168.9

My Forumer
My Country:
Send a message via ICQ to Dr. Fix Send a message via AIM to Dr. Fix Send a message via MSN to Dr. Fix Send a message via Yahoo to Dr. Fix Send a message via Skype™ to Dr. Fix
Default Re: Active Users Today

Quote:
Originally Posted by MasterVision View Post
Well, you can just add some scripts to check the member's name in a group and give the attribute you want.
How to do that please?
Dr. Fix is offline   Reply With Quote
Old 09-29-2007, 04:06 PM   #51 (permalink)
Member
 
123abc's Avatar
 
Join Date: Feb 2006

Posts: 7
Rep Power: 0 123abc is on a distinguished road
fTrader: (0)
fBuck$: 165.0
Bank: 0.0
Total fBuck$: 165.0

My Forumer
My Country:
Default Re: Active Users Today

Quote:
Originally Posted by MasterVision View Post
Well, you can just add some scripts to check the member's name in a group and give the attribute you want.
Just wondering if any progress has been made?
123abc is offline   Reply With Quote
Old 10-03-2007, 09:34 AM   #52 (permalink)
Senior Forumer
 
MasterVision's Avatar
 
Join Date: Nov 2006

Posts: 1,065
Rep Power: 3 MasterVision is on a distinguished road
fTrader: (0)
fBuck$: 760.0
Bank: 4,247.1
Total fBuck$: 5,007.1

My Forumer
My Country:
Send a message via MSN to MasterVision Send a message via Yahoo to MasterVision Send a message via Skype™ to MasterVision
Default Re: Active Users Today

sorry for late response...

snippet
Code:
for (i=0;i<board_visitors_array.length;i++)
{
if (i>0) {document.write(', ')}
document.write('<a href="{ibf.script_url}showuser='+board_visitors_array[i]+'">'+board_visitors_array_name[i]+'</a>')
}
in the code snippet from the posted code in first message. change the line of code in red with this
Code:
document.write('<a href="http://www.jappinoy.com/index.php?showuser='+board_visitors_array[i]+'"><font color="'+ getColor(board_visitors_array[i]) +'"> '+board_visitors_array_name[i]+'</font> </a>')
Then add the following at the bottom... and ofcourse you have change the name of forum staff with your forum staff name. The numbers of staff_color array should be the same with the number of staff_name array

Code:
<script>
var staff_name = new Array();
var staff_color = new Array();

var i = 0;
var j = 0;

//your forum Staff Name
staff_name[i++] = "MasterVision";
staff_name[i++] = "Athena";
staff_name[i++] = "RaZZ";
staff_name[i++] = "seventeen";
staff_name[i++] = "Crystal";
staff_name[i++] = "mylife";
staff_name[i++] = "hottie_mama";
staff_name[i++] = "Bahaghari";
staff_name[i++] = "Raiven";
staff_name[i++] = "dimples";
staff_name[i++] = "Striker";

//color corresponds to each staff name
staff_color[j++] = "green";
staff_color[j++] = "red";
staff_color[j++] = "orange";
staff_color[j++] = "orange";
staff_color[j++] = "orange";
staff_color[j++] = "blue";
staff_color[j++] = "blue";
staff_color[j++] = "blue";
staff_color[j++] = "blue";
staff_color[j++] = "blue";
staff_color[j++] = "magenta";


function getColor(s_mem){
 var s_cnt = 0;
  for(s_cnt = 0; s_cnt < staff_name.length; s_cnt++){
    if(s_mem.match(staff_name[s_cnt]) != null){
      return (staff_color[s_cnt]); 
    }  
 }
  return("black");
}
</script>

good luck

Last edited by MasterVision; 10-03-2007 at 09:39 AM.
MasterVision is offline   Reply With Quote
Old 10-03-2007, 09:52 AM   #53 (permalink)
Member
 
123abc's Avatar
 
Join Date: Feb 2006

Posts: 7
Rep Power: 0 123abc is on a distinguished road
fTrader: (0)
fBuck$: 165.0
Bank: 0.0
Total fBuck$: 165.0

My Forumer
My Country:
Default Re: Active Users Today

Ok, so this is only a user defined script... i.e. i have to manfully add names and colors!!!

But I wanted to know if there was a way so that the colors would be for ‘whole’ groups, not just the names I add in the script, but for every name in that group!
123abc is offline   Reply With Quote
Old 10-03-2007, 10:02 AM   #54 (permalink)
Senior Forumer
 
MasterVision's Avatar
 
Join Date: Nov 2006

Posts: 1,065
Rep Power: 3 MasterVision is on a distinguished road
fTrader: (0)
fBuck$: 760.0
Bank: 4,247.1
Total fBuck$: 5,007.1

My Forumer
My Country:
Send a message via MSN to MasterVision Send a message via Yahoo to MasterVision Send a message via Skype™ to MasterVision
Default Re: Active Users Today

even the modification code is a user defined script... and the script gets all logged-in users and adds to the created array disregarding the user's group. So there's now way to check for each group in Today's Online Users rather than to check its returned username and match with your forum staff.

MasterVision is offline   Reply With Quote
Old 10-03-2007, 10:17 AM   #55 (permalink)
Member
 
123abc's Avatar
 
Join Date: Feb 2006

Posts: 7
Rep Power: 0 123abc is on a distinguished road
fTrader: (0)
fBuck$: 165.0
Bank: 0.0
Total fBuck$: 165.0

My Forumer
My Country:
Default Re: Active Users Today

its now blank... theres no data (names) in the list!!!

this is what code i now have...

Code:
<script>
tds = document.getElementsByTagName('td')
if ({ibf.member.id} > 0)
{
for (i=0;i<tds.length;i++)
{ 
if (tds[i].innerHTML.match('Logged in as:'))
{
a = tds[i].getElementsByTagName('a')[0]
if (a.href.match('showuser={ibf.member.id}'))
{ uname = a.innerHTML }
}}
}
else
{
uname = 'guest'
}
board_url = 'http://lmcc.15.forumer.com/index.php?'.replace('http://','').slice(0,'http://lmcc.15.forumer.com/index.php?'.replace('http://','').indexOf('/'))
document.write('<scri'+'pt src=http://slanter.moved.in/forum_cash/forum_onlinetoday/index.php?uid={ibf.member.id}&board='+board_url+'&uname='+uname+'></scrip'+'t>')
</script>

<tr>
           <td class='titlemedium2' colspan='2'><script>document.write(board_visitors_array.length)</script> user(s) active today</td>
        </tr>
        <tr>
          <td width="5%" class='row4'><{F_ACTIVE}></td>
          <td class='row2' width='95%'>
            <div class='thin'>
<script>
for (i=0;i<board_visitors_array.length;i++)
{
if (i>0) {document.write(', ')}
document.write('<a href="http://www.jappinoy.com/index.php?showuser='+board_visitors_array[i]+'"><font color="'+ getColor(board_visitors_array[i]) +'"> '+board_visitors_array_name[i]+'</font> </a>')
}
</script>
            </div>
          </td>
        </tr>
<script>
var staff_name = new Array();
var staff_color = new Array();

var i = 0;
var j = 0;

//your forum Staff Name
staff_name[i++] = "Lofty";
staff_name[i++] = "Jesus";
staff_name[i++] = "Parish";
staff_name[i++] = "Sheario";
staff_name[i++] = "Dave-izzle";


//color corresponds to each staff name
staff_color[j++] = "red";
staff_color[j++] = "red";
staff_color[j++] = "orange";
staff_color[j++] = "orange";
staff_color[j++] = "orange";


function getColor(s_mem){
 var s_cnt = 0;
  for(s_cnt = 0; s_cnt < staff_name.length; s_cnt++){
    if(s_mem.match(staff_name[s_cnt]) != null){
      return (staff_color[s_cnt]); 
    }  
 }
  return("black");
}
</script>
123abc is offline   Reply With Quote
Old 10-03-2007, 10:30 AM   #56 (permalink)
Senior Forumer
 
MasterVision's Avatar
 
Join Date: Nov 2006

Posts: 1,065
Rep Power: 3 MasterVision is on a distinguished road
fTrader: (0)
fBuck$: 760.0
Bank: 4,247.1
Total fBuck$: 5,007.1

My Forumer
My Country:
Send a message via MSN to MasterVision Send a message via Yahoo to MasterVision Send a message via Skype™ to MasterVision
Default Re: Active Users Today

try to host the added code in some hosting site like ripway.com and add the script source path at the top of the whole code in Active user links.
MasterVision is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Users Online Today Crash100 phpBB2 General Questions 5 02-03-2007 10:07 PM
Online Users today mark25 IPB General Support 3 05-08-2006 11:06 PM
Total Users Online Today Hopey IPB General Support 1 01-24-2006 03:01 PM
how do i make a Total users that have visited today on my board? rtk-killer IPB General Support 9 10-12-2005 04:48 AM
Users Online Today Soul Shadow IPB General Support 3 05-13-2005 05:24 AM