![]() |
| |||||||
| IPB General Support Post your questions here, no bug reports. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #49 (permalink) |
| Member | 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. |
| | |
| | #52 (permalink) |
| Senior Forumer ![]() | 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>')
}
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>')
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. |
| | |
| | #53 (permalink) |
| Member | 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! |
| | |
| | #54 (permalink) |
| Senior Forumer ![]() | 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. ![]() |
| | |
| | #55 (permalink) |
| Member | 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>
|
| | |
| | #56 (permalink) |
| Senior Forumer ![]() | 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. |
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |