Przedszkolak
Postów: 89
Data rejestracji: 10.10.2005 19:03
|
Mam taki problem zwiazany z Shedrock a mianowicie po wyslaniu posta krory nie posiada przy koncu linjki Entera strona sie rozplywa a dokladnie panel Shoutboxa. brak automatycznego lamania co z tym zrobic.
OTO KOD OKRESLALEM JUZ SZEROKOSCI ALE NIC POSTY DALEJ SIE ROZCIAGALY A POLE PISANIA SHOUTA POZOSTAWALA NORMANIE ZGODBNIE Z OKRESLENIEM SZEROKOSCI.
<?php
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
require_once INFUSIONS."shoutbox_panel/shoutcore.php";
echo "<link rel='stylesheet' href='".INFUSIONS."shoutbox_panel/style/style.css' type='text/css'>";
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
openside($locale['120']);
$min=3; //minimum visable shouts in the block
$max=6; //maximum number of shouts hidden,
////////////////////////////
// Define Tooltip colors //
//////////////////////////
$textcolor = "#000000";
if ($action == "delete") {
$result = dbquery("DELETE FROM ".DB_PREFIX."shoutbox WHERE shout_id='$shout_id'");
}
if (isset($_POST['saveshout'])) {
if ($action == "edit") {
$shout_message = str_replace("\n", " ", $_POST['shout_message']);
//$shout_message = preg_replace("/^(.{255}).*$/", "$1", $shout_message);
//$shout_message = preg_replace("/([^\s]{35})/", "$1\n", $shout_message);
$shout_message = trim(stripinput(censorwords($shout_message)));
$shout_message = str_replace("\n", "<br>", $shout_message);
$result = dbquery("UPDATE ".DB_PREFIX."shoutbox SET shout_message='$shout_message' WHERE shout_id='$shout_id'");
header("Location:".BASEDIR."news.php");
}
}
if ($action == "edit") {
$result = dbquery("SELECT * FROM ".DB_PREFIX."shoutbox WHERE shout_id='$shout_id'");
$data = dbarray($result);
echo "<form name='chatform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "")."'>";
echo "<table align='center' cellspacing='0' cellpadding='0' class='tbl'><tr><td align='center'><img border='0' src='".INFUSIONS."shoutbox_panel/images/edit.gif' alt=\"You're currently in Edit Mode\" title=\"You're currently in Edit Mode\"></td></tr>";
echo "<tr><td><textarea value='Shout' name='shout_message' rows='6' class='pattern' style='width:135;'>".str_replace("<br>", "", $data['shout_message'])."</textarea><br>";
echo "<center><A href=\"javascript:show_hide(ShowHide5)\">";
echo "<img border='0' src='".INFUSIONS."shoutbox_panel/images/icon_select.gif' vspace='2' title='Toggle Smilies' alt='Toggle Smilies'></a> ";
echo "<A href=\"javascript:show_hide(ShowHide6)\"><img border='0' src='".INFUSIONS."shoutbox_panel/images/icon_bbcode.gif' vspace='2' title='BBCode' alt='BBCode'></a> <a href='".INFUSIONS."shoutbox_panel/shoutboxhelp.php'>";
echo "<a href='".INFUSIONS."shoutbox_panel/shoutboxhelp.php' onClick=\"MyWindow=window.open('".INFUSIONS."shoutbox_panel/shoutboxhelp.php','ShoutBox','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=650,height=385'); return false;\">";
echo "<img border='0' src='".INFUSIONS."shoutbox_panel/images/icon_help.gif' vspace='2' title='Help' alt='Help'></a>";
echo "<div id='ShowHide5' style='width:135;'>";
echo "<br><br><fieldset><legend>Smileys</legend>".displaysmileys("shout_message","chatform")."</fieldset> <script>show_hide(ShowHide5)</script> </div> ";
echo "<div id='ShowHide6'><center>";
echo "<input type='button' value='b' alt='Bold' title='Bold' class='button' style='font-weight:bold;width:25px;' onClick=\"addText2('shout_message', '[b]', '[/b]');\"> ";
echo "<input type='button' value='i' alt='Italic' title='Italic' class='button' style='font-style:italic;width:25px;' onClick=\"addText2('shout_message', '[i]', '[/i]');\"> ";
echo "<input type='button' value='u' alt='Underline' title='Underline' class='button' style='text-decoration:underline;width:25px;' onClick=\"addText2('shout_message', '[u]', '[/u]');\"> ";
//echo "<input type='button' value='url' class='button' style='width:25px;' onClick=\"addText2('shout_message', '[url]', '[/url]');\"> ";
echo "<input type='button' value='url' alt='Formatted URL' title='Formatted URL' class='button' style='width:25px;' onClick=\"addText2('shout_message', '[url=', 'http://site url]Your text[/url]');\"></center><br>";
echo "<select name='bbcolor' class='pattern' style='width:90px;' onChange=\"addText2('shout_message', '[color=' + this.options[this.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;\">";
echo "<option value=''>Default</option>
<option value='black' style='background-color:black'></option>
<option value='white' style='background-color:white'></option>
<option value='skyblue' style='background-color:skyblue'></option>
<option value='royalblue' style='background-color:royalblue'></option>
<option value='blue' style='background-color:blue'></option>
<option value='darkblue' style='background-color:darkblue'></option>
<option value='orange' style='background-color:orange'></option>
<option value='yellow' style='background-color:yellow'></option>
<option value='gold' style='background-color:gold'></option>
<option value='tomato' style='background-color:tomato'></option>
<option value='coral' style='background-color:coral'></option>
<option value='orangered' style='background-color:orangered'></option>
<option value='crimson' style='background-color:crimson'></option>
<option value='red' style='background-color:red'></option>
<option value='firebrick' style='background-color:firebrick'></option>
<option value='darkred' style='background-color:darkred'></option>
<option value='green' style='background-color:green'></option>
<option value='limegreen' style='background-color:limegreen'></option>
<option value='seagreen' style='background-color:seagreen'></option>
<option value='deeppink' style='background-color:deeppink'></option>
<option value='purple' style='background-color:purple'></option>
<option value='indigo' style='background-color:indigo'></option>
<option value='burlywood' style='background-color:burlywood'></option>
<option value='sandybrown' style='background-color:sandybrown'></option>
<option value='sienna' style='background-color:sienna'></option>
<option value='chocolate' style='background-color:chocolate'></option>
<option value='teal' style='background-color:teal'></option>
<option value='silver' style='background-color:silver'></option>
<option value='gray' style='background-color:gray'></option></div>";
echo " <script>show_hide(ShowHide6)</script>";
echo "</td></tr>";
echo "<tr><td align='center'><input type='submit' name='saveshout' value='".$locale['123']."' class='button'></td></tr></form></table>\n";
} else {
if (iMEMBER || $settings['guestposts'] == "1") {
if (isset($_POST['post_shout'])) {
if (iMEMBER) {
$shout_name = $userdata['user_id'];
} elseif ($settings['guestposts'] == "1") {
$shout_name = trim(stripinput($_POST['shout_name']));
$shout_name = preg_replace("(^[0-9]*)", "", $shout_name);
if (isNum($shout_name)) $shout_name="";
}
$shout_message = str_replace("\n", " ", $_POST['shout_message']);
//$shout_message = preg_replace("/^(.{255}).*$/", "$1", $shout_message);
//$shout_message = preg_replace("/([^\s]{35})/", "$1\n", $shout_message);
$shout_message = trim(stripinput(censorwords($shout_message)));
$shout_message = str_replace("\n", "<br>", $shout_message);
if ($shout_name != "" && $shout_message != "") {
$result = dbquery("SELECT MAX(shout_datestamp) AS last_shout FROM ".$db_prefix."shoutbox WHERE shout_ip='".USER_IP."'");
if (dbrows($result) > 0) {
$data = dbarray($result);
if ((time() - $data['last_shout']) < $settings['flood_interval']) {
$flood = true;
$result = dbquery("INSERT INTO ".$db_prefix."flood_control (flood_ip, flood_timestamp) VALUES ('".USER_IP."', '".time()."')");
if (dbcount("(flood_ip)", "flood_control", "flood_ip='".USER_IP."'") > 4) {
if (iMEMBER) $result = dbquery("UPDATE ".$db_prefix."users SET user_status='1' WHERE user_id='".$userdata['user_id']."'");
}
}
}
if (!$flood) $result = dbquery("INSERT INTO ".$db_prefix."shoutbox (shout_name, shout_message, shout_datestamp, shout_ip) VALUES ('$shout_name', '$shout_message', '".time()."', '".USER_IP."')");
}
header("Location:".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : ""));
}
echo "<form name='chatform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "")."' OnSubmit=\"document.forms['chatform'].post_shout.enabled = false;\">\n";
echo "<table width='145' cellpadding='2' cellspacing='1'><tr><td>";
if (iGUEST) {
echo $locale['121']."<br>";
echo "<input type='text' name='shout_name' value='".$userdata['user_name']."' class='pattern' maxlength='32' style='width:100%;'><br>";
echo "".$locale['122']."<br>\n";
}
echo "</td></tr>";
echo "<tr><td><textarea value='Shout' name='shout_message' rows='6' class='pattern' style='width:100%;'></textarea><br>";
echo "<center><A href=\"javascript:show_hide(ShowHide2)\"><img border='0' src='".INFUSIONS."shoutbox_panel/images/icon_select.gif' vspace='2' title='Toggle Smilies' alt='Toggle Smilies'></a> ";
//if (iADMIN) {
echo "<A href=\"javascript:show_hide(ShowHide3)\"><img border='0' src='".INFUSIONS."shoutbox_panel/images/icon_bbcode.gif' vspace='2' title='BBCode' alt='BBCode'></a> ";
//}
echo "<a href='".INFUSIONS."shoutbox_panel/shoutboxhelp.php' onClick=\"MyWindow=window.open('".INFUSIONS."shoutbox_panel/shoutboxhelp.php','ShoutBox','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=650,height=385'); return false;\">";
echo "<img border='0' src='".INFUSIONS."shoutbox_panel/images/icon_help.gif' vspace='2' title='Help' alt='Help'></a> ";
echo "<a href='".INFUSIONS."shoutbox_panel/shoutbox.php' onClick=\"MyWindow=window.open('".INFUSIONS."shoutbox_panel/shoutbox.php','shoutbox','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=210,height=460'); return false;\"><img border='0' src='".INFUSIONS."shoutbox_panel/images/icon_remote.gif' vspace='2' title='Launch Remote Shoutbox' alt='Launch Remote Shoutbox'></a> ";
//echo "<input type='image' src='".INFUSIONS."shoutbox_panel/images/icon_reload.gif' alt='Reload Shoutbox' title='Reload Shoutbox' vspace='2' value='Reset' name='B2'>";
echo "<div id='ShowHide2'>";
echo "<fieldset><legend>Smileys</legend>".displaysmileys("shout_message","chatform")."</fieldset></div>";
echo "<script>show_hide(ShowHide2)</script>";
echo "<div id='ShowHide3'><center>";
echo "<input type='button' value='b' alt='Bold' title='Bold' class='button' style='font-weight:bold;width:25px;' onClick=\"addText2('shout_message', '[b]', '[/b]');\"> ";
echo "<input type='button' value='i' alt='Italic' title='Italic' class='button' style='font-style:italic;width:25px;' onClick=\"addText2('shout_message', '[i]', '[/i]');\"> ";
echo "<input type='button' value='u' alt='Underline' title='Underline' class='button' style='text-decoration:underline;width:25px;' onClick=\"addText2('shout_message', '[u]', '[/u]');\"> ";
//echo "<input type='button' value='url' alt='URL' title='URL'class='button' style='width:25px;' onClick=\"addText2('shout_message', '[url]', '[/url]');\"> ";
echo "<input type='button' value='url' alt='Formatted URL' title='Formatted URL' class='button' style='width:25px;' onClick=\"addText2('shout_message', '[url=', 'http://site url]Your text[/url]');\"></center><br>";
echo "<select name='bbcolor' class='pattern' style='width:90px;' onChange=\"addText2('shout_message', '[color=' + this.options[this.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;\">";
echo "<option value=''>Default</option>
<option value='black' style='background-color:black'></option>
<option value='white' style='background-color:white'></option>
<option value='skyblue' style='background-color:skyblue'></option>
<option value='royalblue' style='background-color:royalblue'></option>
<option value='blue' style='background-color:blue'></option>
<option value='darkblue' style='background-color:darkblue'></option>
<option value='orange' style='background-color:orange'></option>
<option value='yellow' style='background-color:yellow'></option>
<option value='gold' style='background-color:gold'></option>
<option value='tomato' style='background-color:tomato'></option>
<option value='coral' style='background-color:coral'></option>
<option value='orangered' style='background-color:orangered'></option>
<option value='crimson' style='background-color:crimson'></option>
<option value='red' style='background-color:red'></option>
<option value='firebrick' style='background-color:firebrick'></option>
<option value='darkred' style='background-color:darkred'></option>
<option value='green' style='background-color:green'></option>
<option value='limegreen' style='background-color:limegreen'></option>
<option value='seagreen' style='background-color:seagreen'></option>
<option value='deeppink' style='background-color:deeppink'></option>
<option value='purple' style='background-color:purple'></option>
<option value='indigo' style='background-color:indigo'></option>
<option value='burlywood' style='background-color:burlywood'></option>
<option value='sandybrown' style='background-color:sandybrown'></option>
<option value='sienna' style='background-color:sienna'></option>
<option value='chocolate' style='background-color:chocolate'></option>
<option value='teal' style='background-color:teal'></option>
<option value='silver' style='background-color:silver'></option>
<option value='gray' style='background-color:gray'></option></div>";
echo "<script>show_hide(ShowHide3)</script>";
echo "</td></tr>";
echo "<tr><td align='center'><input type='submit' name='post_shout' value='".$locale['123']."' class='button'>";
echo "</td></td></tr></table></form><hr>\n";
} else {
echo "<center>".$locale['125']."</center><br>\n";
}
}
$result = dbquery("SELECT count(shout_id) FROM ".DB_PREFIX."shoutbox");
$numrows = dbresult($result, 0);
$result = dbquery("SELECT * FROM ".DB_PREFIX."shoutbox LEFT JOIN ".DB_PREFIX."users ON ".DB_PREFIX."shoutbox.shout_name=".DB_PREFIX."users.user_id ORDER BY shout_datestamp DESC LIMIT $min");
if (dbrows($result) != 0) {
$i = 0;
$message = $data['shout_message'];
$message = parseurls($message);
$message = str_replace("\n", "<br>", $message);
$message = parseshoutubb($message);
while ($data = dbarray($result)) {
echo "<span class='shoutboxname' onmouseover=\"toolTipMove('on');\">";
$lastseen = time() - $data['user_lastvisit'];
if($lastseen < 60) {
$lastseen = "<nobr><img src='".INFUSIONS."shoutbox_panel/images/user_online.gif' onMouseOver=\"toolTip('<span class=\'info\'>".$data['user_name']."</span> <span class=\'info2\'>is Online</span>');\"onMouseOut=\"toolTip();\"'></NOBR>";
} else {
$lastseen = "<nobr><img src='".INFUSIONS."shoutbox_panel/images/user_offline.gif' onMouseOver=\"toolTip('<span class=\'info\'>".$data['user_name']."</span> <span class=\'info2\'>is Offline</span>');\"onMouseOut=\"toolTip();\"'></NOBR>";
}
$shoutcount = dbcount("(shout_id)", "shoutbox", "shout_name='".$data['user_id']."'");
if ($data[user_level] == "103") {
$userx = "<font color='#F75013'><b>".$data[user_name]."</b></a></font><a href='".INFUSIONS."shoutbox_panel/shoutbox_user_archive.php?shout_user=".$data['shout_name']."' onMouseOver=\"toolTip('<span class=\'info4\'>This member has <span class=\'info3\'>".getuserlevel($data['user_level'])."</span> Privileges - Click icon to view User\'s Shout History</span>');\"onMouseOut=\"toolTip();\" class='side'><img style='cursor:hand;' border='0' src='".BASEDIR."infusions/shoutbox_panel/images/sa.gif' alt='' 'title='' style='vertical-align:absMiddle;'></a> $lastseen";
}else if ($data[user_level] == "102") {
$userx = "<font color='#008000'><b>".$data[user_name]."</b></a></font><a href='".INFUSIONS."shoutbox_panel/shoutbox_user_archive.php?shout_user=".$data['shout_name']."' onMouseOver=\"toolTip('<span class=\'info4\'>This member has <span class=\'info3\'>".getuserlevel($data['user_level'])."</span> Privileges - Click icon to view User\'s Shout History</span>');\"onMouseOut=\"toolTip();\" class='side'><img style='cursor:hand;' border='0' src='".BASEDIR."infusions/shoutbox_panel/images/a.gif' alt='' 'title='' style='vertical-align:absMiddle;'></a> $lastseen";
}else if ($data[user_level] == "101") {
$userx = "<font color='#3333CC'><b>".$data[user_name]."</b></a></font><a href='".INFUSIONS."shoutbox_panel/shoutbox_user_archive.php?shout_user=".$data['shout_name']."' onMouseOver=\"toolTip('<span class=\'info4\'>This member has <span class=\'info3\'>".getuserlevel($data['user_level'])."</span> Privileges - Click icon to view User\'s Shout History</span>');\"onMouseOut=\"toolTip();\" class='side'><img style='cursor:hand;' border='0' src='".BASEDIR."infusions/shoutbox_panel/images/m.gif' alt='' 'title='' style='vertical-align:absMiddle;'></a> $lastseen";
}
if ($data['user_name']) {
$user = dbarray(dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id = '".$data['user_id']."'"));
if ($data['user_avatar'] != "") { $avatar = "<img src=\'".IMAGES."avatars/".$user['user_avatar']."\'>"; } else { $avatar = "<img src=\'".INFUSIONS."shoutbox_panel/images/noimage.gif\'>"; }
echo "<a onMouseOver=\"toolTip('<center>$avatar<br><br></center><font color=\'$textcolor\'><b>Member:</b></font><br><span class=\'info2\'><b>".$data['user_name']."</span><br><font color=\'$textcolor\'>Rank:</b></font><br><span class=\'info3\'>".getuserlevel($data['user_level'])."</span><br><font color=\'$textcolor\'><b>Date Joined:</b><br>".showdate("shortdate", $data['user_joined'])."<br><b>Last Visit:</b><br>".showdate("shortdate", $data['user_lastvisit'])." <br><b>Shoutboxposts:</b><br> $shoutcount shouts to date');\" onMouseOut=\"toolTip();\" href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>$userx</a></font><br>";
} else {
echo "".$data['shout_name']."\n";
}
if ($data['user_avatar'] != "") { $avatar = "<img src=\'".IMAGES."avatars/".$user['user_avatar']."\'>"; } else { $avatar = "<img src=\'".INFUSIONS."shoutbox_panel/images/noimage.gif\'>"; }
if (iMEMBER)
{
echo "<img border='0' src='".THEME."blank.gif' width='1' height='12'><a onMouseOver=\"toolTip('<span class=\'info4\'>Use this command to directly address a user.<br><br><b>eg: <font color=\'#FF0000\'>@John Smith</b></a></font></span>');\"onMouseOut=\"toolTip();\" onClick=\"addText2('shout_message', '[b]@".$data['user_name'].":[/b] - ', '');\" border='0'><span style=\"cursor:hand\";'><img src='".INFUSIONS."shoutbox_panel/images/at.gif'></span> <a onMouseOver=\"toolTip('<font color=\'$textcolor\'><center>$avatar<br><br>Send a Private Message to </font><b><span class=\'info\'>".$data[user_name]."</center></b></span>');\" onMouseOut=\"toolTip();\" href='".BASEDIR."messages.php?msg_send=".$data['user_id']."' class='side'><img border='0' src='".BASEDIR."infusions/shoutbox_panel/images/pm.gif' alt='' title=''></a> ";
}
if (iMEMBER)
{
if ($data['user_web']) {
if ($data['user_web']) {
if (!strstr($data['user_web'], "http://")) { $urlprefix = "http://"; } else { $urlprefix = ""; }
echo "<a onMouseOver=\"toolTip('<center>$avatar</center><br><span class=\'info3\'>This is</span> <span class=\'info2\'>".$data['user_name']."\'s</span> <span class=\'info3\'>Website address: </span> <font color=\'$textcolor\'>".trimlink($data['user_web'], 25)."</font>');\" onMouseOut=\"toolTip();\" href='".$urlprefix."".$data['user_web']."' target='_blank'><img src='".INFUSIONS."shoutbox_panel/images/web.gif' alt='' style='border:0px;'></a> <br>";
}else{
echo " <br>";
}
}
}
echo "</span>";
if ($userdata['user_level'] >= 103) {
echo "[ <a href='".FUSION_SELF."?action=delete&shout_id=".$data['shout_id']."' class='side'>".$locale['049']."</a> | <a href='".FUSION_SELF."?action=edit&shout_id=".$data['shout_id']."' class='side'>".$locale['048']."</a> ]<br><font style='font-style:italic;font-family:Tahoma;font-size:8;color:#777777;'>IP: ".$data['user_ip']."</font><br>";
} else {
echo "\n";
}
echo "<span class='shoutboxdate'><font style='font-style:italic;font-family:Tahoma;font-size:8;color:#777777;'>DATE: ".showdate("shortdate", $data['shout_datestamp'])."</font></span><br>";
$wiadomosc = nl2br(parseubb(parsesmileys($data['shout_message'])));
$shout_wiadomosc = wordwrap($wiadomosc , 500, " ", 1);
echo "<span class='shoutbox'>".$shout_wiadomosc ."</span>";
if ($i != $numrows) echo "<hr>\n";
}
if ($numrows > $settings['numofshouts']) {
}
} else {
echo "<div align='left'>".$locale['127']."</div>\n";
}
echo "<center><img src='".INFUSIONS."shoutbox_panel/images/show_more.gif'> <a href=\"javascript:toggleLayer('showmore');\" title='' alt=''><strong>Show more Shouts</strong></center></a><div id='showmore'><br>";
$result = dbquery("SELECT count(shout_id) FROM ".DB_PREFIX."shoutbox");
$numrows = dbresult($result, 0);
$result = dbquery("SELECT * FROM ".DB_PREFIX."shoutbox LEFT JOIN ".DB_PREFIX."users ON ".DB_PREFIX."shoutbox.shout_name=".DB_PREFIX."users.user_id ORDER BY shout_datestamp DESC LIMIT $min,$max");
if (dbrows($result) != 0) {
$i = 0;
$message = $data['shout_message'];
$message = parseurls($message);
$message = str_replace("\n", "<br>", $message);
$message = parseshoutubb($message);
while ($data = dbarray($result)) {
echo "<span class='shoutboxname' onmouseover=\"toolTipMove('on');\">";
$lastseen = time() - $data['user_lastvisit'];
if($lastseen < 60) {
$lastseen = "<nobr><img src='".INFUSIONS."shoutbox_panel/images/user_online.gif' onMouseOver=\"toolTip('<span class=\'info\'>".$data['user_name']."</span> <span class=\'info2\'>is Online</span>');\"onMouseOut=\"toolTip();\"'></NOBR>";
} else {
$lastseen = "<nobr><img src='".INFUSIONS."shoutbox_panel/images/user_offline.gif' onMouseOver=\"toolTip('<span class=\'info\'>".$data['user_name']."</span> <span class=\'info2\'>is Offline</span>');\"onMouseOut=\"toolTip();\"'></NOBR>";
}
$shoutcount = dbcount("(shout_id)", "shoutbox", "shout_name='".$data['user_id']."'");
if ($data[user_level] == "103") {
$userx = "<font color='#F75013'><b>".$data[user_name]."</b></a></font><a href='".INFUSIONS."shoutbox_panel/shoutbox_user_archive.php?shout_user=".$data['shout_name']."' onMouseOver=\"toolTip('<span class=\'info4\'>This member has <span class=\'info3\'>".getuserlevel($data['user_level'])."</span> Privileges - Click icon to view User\'s Shout History</span>');\"onMouseOut=\"toolTip();\" class='side'><img style='cursor:hand;' border='0' src='".BASEDIR."infusions/shoutbox_panel/images/sa.gif' alt='' 'title='' style='vertical-align:absMiddle;'></a> $lastseen";
}else if ($data[user_level] == "102") {
$userx = "<font color='#008000'><b>".$data[user_name]."</b></a></font><a href='".INFUSIONS."shoutbox_panel/shoutbox_user_archive.php?shout_user=".$data['shout_name']."' onMouseOver=\"toolTip('<span class=\'info4\'>This member has <span class=\'info3\'>".getuserlevel($data['user_level'])."</span> Privileges - Click icon to view User\'s Shout History</span>');\"onMouseOut=\"toolTip();\" class='side'><img style='cursor:hand;' border='0' src='".BASEDIR."infusions/shoutbox_panel/images/a.gif' alt='' 'title='' style='vertical-align:absMiddle;'></a> $lastseen";
}else if ($data[user_level] == "101") {
$userx = "<font color='#3333CC'><b>".$data[user_name]."</b></a></font><a href='".INFUSIONS."shoutbox_panel/shoutbox_user_archive.php?shout_user=".$data['shout_name']."' onMouseOver=\"toolTip('<span class=\'info4\'>This member has <span class=\'info3\'>".getuserlevel($data['user_level'])."</span> Privileges - Click icon to view User\'s Shout History</span>');\"onMouseOut=\"toolTip();\" class='side'><img style='cursor:hand;' border='0' src='".BASEDIR."infusions/shoutbox_panel/images/m.gif' alt='' 'title='' style='vertical-align:absMiddle;'></a> $lastseen";
}
if ($data['user_name']) {
$user = dbarray(dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id = '".$data['user_id']."'"));
if ($data['user_avatar'] != "") { $avatar = "<img src=\'".IMAGES."avatars/".$user['user_avatar']."\'>"; } else { $avatar = "<img src=\'".IMAGES."noimage.gif\'>"; }
echo "<a onMouseOver=\"toolTip('<center>$avatar<br><br></center><font color=\'$textcolor\'><b>Member:</b></font><br><span class=\'info2\'><b>".$data['user_name']."</span><br><font color=\'$textcolor\'>Rank:</b></font><br><span class=\'info3\'>".getuserlevel($data['user_level'])."</span><br><font color=\'$textcolor\'><b>Date Joined:</b><br>".showdate("shortdate", $data['user_joined'])."<br><b>Last Visit:</b><br>".showdate("shortdate", $data['user_lastvisit'])." <br><b>Shoutboxposts:</b><br> $shoutcount shouts to date');\" onMouseOut=\"toolTip();\" href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>$userx</a></font><br>";
} else {
echo "".$data['shout_name']."\n";
}
if ($data['user_avatar'] != "") { $avatar = "<img src=\'".IMAGES."avatars/".$user['user_avatar']."\'>"; } else { $avatar = "<img src=\'".IMAGES."noimage.gif\'>"; }
if (iMEMBER)
{
echo "<img border='0' src='".THEME."blank.gif' width='1' height='12'><a onMouseOver=\"toolTip('<span class=\'info4\'>Use this command to directly address a user.<br><br><b>eg: <font color=\'#FF0000\'>@John Smith</b></a></font></span>');\"onMouseOut=\"toolTip();\" onClick=\"addText2('shout_message', '[b]@".$data['user_name'].":[/b] - ', '');\" border='0'><span style=\"cursor:hand\";'><img src='".INFUSIONS."shoutbox_panel/images/at.gif'></span> <a onMouseOver=\"toolTip('<font color=\'$textcolor\'><center>$avatar<br><br>Send a Private Message to </span><b><span class=\'info\'>".$data[user_name]."</center></b></span>');\" onMouseOut=\"toolTip();\" href='".BASEDIR."messages.php?msg_send=".$data['user_id']."' class='side'><img border='0' src='".BASEDIR."infusions/shoutbox_panel/images/pm.gif' alt='' title=''></a> ";
}
if (iMEMBER)
{
if ($data['user_web']) {
if ($data['user_web']) {
if (!strstr($data['user_web'], "http://")) { $urlprefix = "http://"; } else { $urlprefix = ""; }
echo "<a onMouseOver=\"toolTip('<center>$avatar</center><br><span class=\'info3\'>This is</span> <span class=\'info2\'>".$data['user_name']."\'s</span> <span class=\'info3\'>Website address: </span> <font color=\'$textcolor\'>".trimlink($data['user_web'], 25)."</font>');\" onMouseOut=\"toolTip();\" href='".$urlprefix."".$data['user_web']."' target='_blank'><img src='".INFUSIONS."shoutbox_panel/images/web.gif' alt='' style='border:0px;'></a> <br>";
}else{
echo " <br>";
}
}
}
echo "</span>";
if ($userdata['user_level'] >= 103) {
echo "[ <a href='".FUSION_SELF."?action=delete&shout_id=".$data['shout_id']."' class='side'>".$locale['049']."</a> | <a href='".FUSION_SELF."?action=edit&shout_id=".$data['shout_id']."' class='side'>".$locale['048']."</a> ]<br><font style='font-style:italic;font-family:Tahoma;font-size:8;color:#777777;'>IP: ".$data['user_ip']."</font><br>";
} else {
echo "\n";
}
echo "<span class='shoutboxdate'><font style='font-style:italic;font-family:Tahoma;font-size:8;color:#777777;'>DATE: ".showdate("shortdate", $data['shout_datestamp'])."</font></span><br>";
$wiadomosc = nl2br(parseubb(parsesmileys($data['shout_message'])));
$shout_wiadomosc = wordwrap($wiadomosc , 500, " ", 1);
echo "<span class='shoutbox'>".$shout_wiadomosc ."</span>";
if ($i != $numrows) echo "<hr>\n";
}
if ($numrows > $settings['numofshouts']) {
}
} else {
echo "<div align='left'>".$locale['127']."</div>\n";
}
echo"</div>";
if (iMEMBER) {
echo "<hr><center>\n<img border='0' src='".THEME."images/bullet.gif'> ";
echo "<a href='".INFUSIONS."shoutbox_panel/shoutbox_archive.php' class='side'>".$locale['126']."</a> ";
echo "<img border='0' src='".THEME."images/bulletb.gif'></center>\n";
} else {
echo "<div align='left'></div>\n";
}
closeside();
?>
Edytowane przez Pieka dnia 29.04.2006 12:07:41
>>>AvE LiNuX<<<
|