thx firefly mf ))
i have taken that to set up for a little message box in shoutbox
to all users that havenīt yet reported their up- and download speed
in profiles.
all know tracker teams fell very nerved after a while when users donīt enroll dsl speed.
an here it goes:
in outputinfo.php search:
PHP Code:
$extralink = '&popupshoutbox=yes';
}
after that fill in:
PHP Code:
$resspeed = mysql_query("SELECT speed FROM users WHERE id = '" . $CURUSER["id"] . "'") or sqlerr();
$rowread = mysql_fetch_array($resspeed);
if ($rowread['speed'] == '0~0') {
print("<center><div id='newmes' style='position: absolute;z-index:1;filter:alpha(opacity=80);-moz-opacity: 0.80;opacity: 0.80;left:35%;width: 700px;'><table class=\"tableinborder\" width=\"91%\" cellpadding\"=1\" cellspacing=\"1\" ><tr><td class=tablecat><div style='float: left;' ><b>ACHTUNG: Bitte an die Regeln halten $unread</b></div><div style='float: right;'><a href=\"javascript:closenmw('newmes');\" style='cursor:hand;' title='Fenster Schliessen'>X</a></div></td></tr><tr><td bgcolor=green >Du hast Deinen Up- & Download Speed bisher nicht eingetragen, klicke <a href='usercp.php?act=edit_details'>HIER</a> um erforderliche Daten einzutragen</td></tr><tr><td class='tableb'><center><a href=\"javascript:nmwcookie('newmes','newmes',5);closenmw('newmes');\" title=''></a> <a href=\"javascript:nmwcookie('newmes','newmes',10);closenmw('newmes');\" title=''></a><br></center></td></tr></table></div></center>");
}
at the end of the php find:
after that fill in:
PHP Code:
<script language='javascript'>
function closenmw(div){
if(document.getElementById(div).style.display = 'block')
document.getElementById(div).style.display = 'none';
}
function nmwcookie(Bezeichner,Wert,Dauer)
{
jetzt=new Date();
Auszeit=new Date(jetzt.getTime()+Dauer*6000);
document.cookie=Bezeichner+"="+Wert+";expires="+Auszeit.toGMTString()+";";
}
</script>
not all done completly, but its a beginning...
actual it is looking like this:
may be some1 has an idea how to show the "hint" as an overlay f.e.