Przedszkolak
Postów: 20
v7.02.04 Data rejestracji: 24.07.2007 16:33
|
Witam. Mam prośbę, czy mógłby ktoś przerobić tego nBoxa tak, żeby był jeszcze button z możliwością dodawania emotek i bbcode z kolorami, podobnie jak jest w normalnym shoutboxie albo wszystko ukryte pod jednym przyciskiem.
Jest to modyfikacja od kolegi ~Zmora-dono:
<?php
#------------------------------------------------------
# MOD nBox ajax by slawekneo for php-fusion 6.01.xx or 7.xx
# language version - pl
# script version - v5
# author nick: slawekneo from Polish support php-fusion
# author name: Slawomir Nonas
# http://www.php-fusion.pl
#------------------------------------------------------
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
//ustawienia
//tekst typu zabrania sie pisania glupot itp :)
//$zab = "zabrania sie pisania glupot";
$zab = "";
//szerokosc shoutboxa
//$width_sb = "155px";
$width_sb = "100%";
//start shoutbox
openside($locale['120']);
echo "<script type='text/javascript' src='".INFUSIONS."shoutbox_panel/js/mintajax.js'></script>";
echo "<script type='text/javascript'> var sbdir = '".BASEDIR."infusions/'; </script>";
echo "<script type='text/javascript'> var zab = '".$zab."'; </script>";
echo "<script type='text/javascript' src='".INFUSIONS."shoutbox_panel/js/shoutbox.js'></script>";
echo "<script type='text/javascript' src='".INFUSIONS."shoutbox_panel/js/overlib.js'></script>";
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" >
<tr>
<td>
";
if (iMEMBER || $settings['guestposts'] == "1") {
echo "<form id='shout' name='chatform' method='POST' >\n<table align='center' cellpadding='0' cellspacing='0'>\n<tr>\n<td colspan='2'>\n"; $mes = ""; //$mes = "onMouseOver=\"overlib('<center>Zanim wy¶lesz upewnij się że wpisana tre¶ć nie łamie regulaminu shoutboxa. W tym celu zapoznaj się z tre¶ci± regulaminu.</center>', CAPTION, '<center><B>UWAGA !!!</B></center>', FGCOLOR, '#CCFFFF', BGCOLOR, '#000000', TEXTCOLOR, '#000000', CAPTIONSIZE, 3, BORDER, 2, TEXTSIZE, 2, STATUS, 'Uwaga',LEFT)\" onMouseOut=\"nd();\"";
if (iGUEST) echo "Nick<br />\n<input type='text' name='sn' value='' class='textbox' maxlength='30' style='width:140px;'>\n<br />\n";
echo "<textarea name='sm' id='sm' rows='4' class='log' id='shoutedit' onFocus=\"if(this.value=='".$zab."')this.value='';\" onBlur=\"if(this.value=='')this.value='".$zab."';\" onkeyup=\"spr_dl(this.value, this.id)\">".$zab."</textarea><br>
<div><div style='position:absolute;'><span id='coun' class='small' align='center' style='padding-left:5px'>0%</span></div><div id='prctlo' style='background-color:000000; width:0%; height:14px'> </div></div>
</td></tr><tr><td colspan='2' align='center'><span id='shoutchangebutton'><input type='button' value='Wyslij' class='button' id='bezel' ".$mes." ></span> <span id='shoutbutton'><input type='button' onclick=\"LoadShout(''); ods()\" value='Odswież' class='button'></span></td></tr></table><br>";
} else echo "<tr><td><form id='shout' name='chatform' method='POST'>\n<center>".(isset($locale['125']) ? $locale['125'] : $locale['global_154'])."<br />\n<input type='button' onclick=\"LoadShout(''); ods()\" value='Odswiez posty' class='button'></center><br>\n";
echo "<script type='text/javascript'> var img_dr = '".INFUSIONS."shoutbox_panel/images/'; </script>";
echo "<script type='text/javascript' src='".INFUSIONS."shoutbox_panel/js/mootools-1.2b2.js'></script>";
echo "<script type='text/javascript' src='".INFUSIONS."shoutbox_panel/js/growl.js'></script>";
echo "<div id='sb_scroll' style='overflow: hidden; height:400px; width:".$width_sb.";'>\n<div id='lol'>";
echo "<script>LoadShout('1')</script>\n</div>\n</div>\n</form>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='".$width_sb."' height='18'><tr><td align='center' width='90px'>";
echo "<div id='load_arch'><img src='".INFUSIONS."shoutbox_panel/images/load.gif'></div>";
echo "</td><td align='center'>";
echo "<div><img src=\"".INFUSIONS."shoutbox_panel/images/up.png\" onmouseover=\"t=setInterval('sb_move_up()', 5);\" onmouseout=\"clearInterval(t);\" border=\"0\"> ";
echo "<img src=\"".INFUSIONS."shoutbox_panel/images/down.png\" onmouseover=\"t=setInterval('sb_move_down()', 5);\" onmouseout=\"clearInterval(t);\" border=\"0\"></div>";
echo "
</td>
</tr>
</table>
</td>
</tr>
</table>";
closeside();
?>
Cały nBox pod tym linkiem: http://www.przekl...05ih2puckj
Wiadomość doklejona:
Witam. Chciałem ponowić swoją prośbę. Czy mógłby ktoś z oryginalnego shoutboxa dodać do nboxa kod odpowiadający za emoty, bbcode i kolory. I jak poszerzyć okno do pisania, bo mam nboxa u góry, a nie z boku.
Kod oryginalnego shoutboxa:
<?php
/*---------------------------------------------------+
| eXtreme-Fusion Content Management System |
+----------------------------------------------------+
| Copyright (c) 2005 eXtreme Crew |
| http://www.extreme-fusion.pl |
+----------------------------------------------------+
| Engine Php-fusion by Nick Jones |
| http://www.php-fusion.co.uk/ |
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the |
| GNU General Public License. For details refer to |
| the included gpl.txt file or visit http://gnu.org |
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
$link_replacement = "<img src='".INFUSIONS."shoutbox_panel/images/link.gif' alt='link' style='border:none'>";
function mywordwrap($string, $wlenght='20', $replacement="<wbr>") {
$length = strlen($string);
$skip = 0;
$wrap = 0;
$returnvar = "";
for ($i=0; $i<=$length; $i=$i+1) {
$char = substr($string, $i, 1);
if ($char == "<") $skip=1;
elseif ($char == ">") $skip=0;
elseif ($char == " ") $wrap=0;
if ($skip==0) $wrap=$wrap+1;
$returnvar = $returnvar . $char;
if ($wrap>$wlenght) {
$returnvar = $returnvar.$replacement;
$wrap = 0;
}
}
return $returnvar;
}
if (isset($_GET['id']) && !isNum($_GET['id'])) fallback(FUSION_SELF);
if (isset($_GET['shout']) && !preg_match("#(add|edit|delete)#iu", $_GET['shout'])) fallback(FUSION_SELF);
define("SBX_EDIT_USER", $settings['sbx_edit_user']);
if(isset($_GET['shout'])) $shout = $_GET['shout'];
if(isset($_GET['id'])) $id = $_GET['id'];
openside($locale['120']);
if (iMEMBER || $settings['guestposts'] == "1" && isset($_GET['id'])) {
$result = dbquery("SELECT * FROM ".$db_prefix."shoutbox WHERE shout_id='".$id."'");
if (dbrows($result)) {
$sdata = dbarray($result);
}
if (isset($_POST['post_shout']) && isset($shout)) {
$flood = false;
if (iMEMBER) {
$shout_name = $userdata['user_id'];
} else {
$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("/^(.{355}).*$/", "$1", $shout_message);
$shout_message = str_replace("[", " [", $shout_message);
$shout_message = preg_replace("/([^\s]{355})/", "$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 (!iSUPERADMIN && 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) {
$lin = FUSION_QUERY;
if ($shout =='add') {
$result = dbquery("INSERT INTO ".$db_prefix."shoutbox (shout_name, shout_message, shout_datestamp, shout_ip) VALUES ('$shout_name', '$shout_message', '".time()."', '".USER_IP."')");
if (EPS && iMEMBER) {
$przydzial = dbarray(dbquery("SELECT point_ammount from ".DB_PREFIX."eps_points WHERE point_id='2'"));
$result = dbquery("UPDATE ".DB_PREFIX."users SET points_normal=points_normal+".($przydzial['point_ammount'])." WHERE user_id='".$userdata['user_id']."'");
}
} elseif ($shout == 'edit' AND checkrights("S") OR SBX_EDIT_USER AND iMEMBER AND $sdata['shout_name'] == $userdata['user_id']) {
$result = dbquery("UPDATE ".$db_prefix."shoutbox SET shout_message='$shout_message' WHERE shout_id='".$id."'");
}
$lin = str_replace("&shout=$shout&id=$id", '', $lin);
$lin = str_replace("shout=$shout&id=$id", '', $lin);
if($lin != '') redirect(FUSION_SELF."?".$lin);
else redirect(FUSION_SELF.$lin);
}
}
} // end: if (isset($_POST['post_shout']) && isset($shout))
if (isset($shout) AND isset($id) AND isNum($id) AND checkrights("S") OR isset($shout) AND isset($id) AND isNum($id) AND !checkrights("S") AND iMEMBER AND $sdata['shout_name'] == $userdata['user_id'] AND SBX_EDIT_USER) {
if ($shout == 'edit') {
$shout_message = str_replace("<br>", "", $sdata[shout_message]);
$shout_message = str_replace(" [", "[", $shout_message);
} else if ($shout == 'delete') {
$result = dbquery("DELETE from ".$db_prefix."shoutbox WHERE shout_id='".$id."'");
if(EPS){
$sh_user = dbarray(dbquery("SELECT shout_name FROM ".$db_prefix."shoutbox WHERE shout_id='".$id."'"));
if (isNUM($sh_user['shout_name'])) {
$przydzial = dbarray(dbquery("SELECT point_ammount from ".DB_PREFIX."eps_points WHERE point_id='2'"));
$result = dbquery("UPDATE ".DB_PREFIX."users SET points_normal=points_normal-".($przydzial['point_ammount'])." WHERE user_id='".$sh_user['shout_name']."'");
}
}
$lin = FUSION_QUERY;
$lin = str_replace("&shout=$shout&id=$id", '', $lin);
$lin = str_replace("shout=$shout&id=$id", '', $lin);
if($lin != '') redirect(FUSION_SELF."?".$lin);
else redirect(FUSION_SELF.$lin);
}
} else {
$id = 0;
$shout = 'add';
$shout_message = '';
$shout_name = '';
}
if (iMEMBER){
$c_count = dbcount("(id)", "cautions", "user_id=".$userdata['user_id']);
$caution_conf = dbarray(dbquery("SELECT * from ".$db_prefix."cautions_config"));
}
if ($c_count > $caution_conf['shoutbox']) {
echo $caution_conf['shoutbox_info']."<br><br>";
} else {
if ($shout == 'add') {
echo "<form name='chatform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY."&shout=$shout&id=$id" : "?shout=add&id=$id")."'>";
} else {
echo "<form name='chatform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "?shout=$shout&id=$id")."'>";
}
echo "
<table align='center' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='2' style='text-align:center;'>\n";
if (iGUEST) {
echo $locale['121']."<br>
<input type='text' name='shout_name' value='$shout_name' class='textbox' maxlength='30' style='width:140px;'><br>
".$locale['122']."<br>\n";
}
echo "
<textarea name='shout_message' rows='4' class='textbox' style='width:140px;'>$shout_message</textarea>
<center><a href=\"javascript:show_hide(ShowHide2)\"><img border='0' src='".INFUSIONS."shoutbox_panel/images/icon_select.gif' vspace='2' title='".$locale['129']."'></a>
<a href=\"javascript:show_hide(ShowHide7)\"><img border='0' src='".INFUSIONS."shoutbox_panel/images/icon_bbcode.gif' vspace='2' title='BBCode'></a>
<a href='".INFUSIONS."shoutbox_panel/shoutboxhelp.php'><img border='0' src='".INFUSIONS."shoutbox_panel/images/icon_help.gif' vspace='2' title='".$locale['130']."'></a>
<div id='ShowHide2'>
<fieldset>
<legend>".$locale['131']."</legend>".
displaysmileys('shout_message', 1)."
</fieldset>
<script type='text/javascript'>show_hide(ShowHide2)</script>
</div>
<div id='ShowHide7'>
<fieldset>
<legend>BBCode</legend>
<center>
<input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onClick=\"addText2('shout_message', '[b]', '[/b]');\">
<input type='button' value='i' class='button' style='font-style:italic;width:25px;' onClick=\"addText2('shout_message', '[i]', '[/i]');\">
<input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onClick=\"addText2('shout_message', '[u]', '[/u]');\">
</center><br>
<select name='bbcolor' class='textbox' style='width:90px;' onChange=\"addText2('shout_message', '[color=' + this.options[this.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;\">
<option value=''>Default</option>
<option value='maroon' style='color:maroon;'>Maroon</option>
<option value='red' style='color:red;'>Red</option>
<option value='orange' style='color:orange;'>Orange</option>
<option value='brown' style='color:brown;'>Brown</option>
<option value='yellow' style='color:yellow;'>Yellow</option>
<option value='green' style='color:green;'>Green</option>
<option value='lime' style='color:lime;'>Lime</option>
<option value='olive' style='color:olive;'>Olive</option>
<option value='cyan' style='color:cyan;'>Cyan</option>
<option value='blue' style='color:blue;'>Blue</option>
<option value='navy' style='color:navy;'>Navy Blue</option>
<option value='purple' style='color:purple;'>Purple</option>
<option value='violet' style='color:violet;'>Violet</option>
<option value='black' style='color:black;'>Black</option>
<option value='gray' style='color:gray;'>Gray</option>
<option value='silver' style='color:silver;'>Silver</option>
<option value='white' style='color:white;'>White</option>
</select>
</fieldset>
</div>
</td>
</tr>
<tr>
<td align='center'>
<input type='submit' name='post_shout' value='".$locale['123']."' class='button'>
</td>
</tr>
</table>
</form>\n";
echo "<script type='text/javascript'>show_hide(ShowHide7)</script>";
}
echo "<br>\n";
} else {
echo "<center>".$locale['125']."</center><br>\n";
} // end: if (iMEMBER || $settings['guestposts'] == "1")
$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 0,".$settings['numofshouts']
);
echo "
<script type='text/javascript' src='".INFUSIONS."shoutbox_panel/js/lighttable.js' language='Javascript'></script>
<script type=\"text/javascript\">
iens6=document.all||document.getElementById
ns4=document.layers
//specify speed of scroll (greater=faster)
var speed=5
if (iens6){
document.write('<div id=\"container\" style=\"position:relative;width:100%;height:560px;border:0px solid #444444;overflow:hidden\">')
document.write('<div id=\"content\" style=\"position:absolute;width:100%;left:0;top:0\">')
}
</script>
<ilayer name=\"nscontainer\" width=100% height=250 clip=\"0,0,277,400\">
<layer name=\"nscontent\" width=100% height=250 visibility=hidden>";
if (dbrows($result) > 0) {
$gouest_opt = dbarray(dbquery("SELECT * FROM ".$db_prefix."colors WHERE user_level=0"));
while ($data = dbarray($result)) {
echo "<fieldset><legend><span class='shoutboxname'>";
$user = "<span style='color:#".$data['user_color']."'>".$data['user_prefix'].$data['user_name']."</span>";
if ($data['user_name']) {
echo "<a href='".BASEDIR.'profile.php?lookup='.$data['user_id']."' class='side'>$user</a><br>\n";
} else {
echo "<span style='color:#".$gouest_opt['user_color']."'>".$gouest_opt['user_prefix'].$data['shout_name']."</span>\n";
}
echo "</span></legend>";
if (checkrights("S") AND $shout != "edit"){
echo "[ <a href='".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY."&shout=delete&id=".$data['shout_id'] : "?shout=delete&id=".$data['shout_id'])."'>".$locale['133']."</a> | <a href='".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY."&shout=edit&id=".$data['shout_id'] : "?shout=edit&id=".$data['shout_id'])."'>".$locale['134']."</a> ]<br><font style='font-style:italic;font-family:Tahoma;font-size:8;color:#777777;'>IP: ".$data['user_ip']."</font><br>";
} elseif (SBX_EDIT_USER AND iMEMBER AND $data['shout_name'] == $userdata['user_id'] AND $id == "" AND !checkrights("S")) {
echo "[ <a href='".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY."&shout=edit&id=".$data['shout_id'] : "?shout=edit&id=".$data['shout_id'])."'>".$locale['134']."</a> ]<br>";
} else {
echo "\n";
}
echo "
<span class='shoutboxdate' style='font-size:8;'>
".$locale['135']." ".showdate("shortdate", $data['shout_datestamp'])."
</span><br>";
$mes = str_replace(" [", "[", $data['shout_message']);
$mes = nl2br(parseubb(parsesmileys($mes)));
$shouttext = $data['shout_message'];
$shouttext = parsesmileys($shouttext);
//replace links with link image
$shouttext = preg_replace("#(^|[\r\n ]|^\])((http|https|ftp|ftps)://[\w\#$%&~/.\-;:=,?@\[\]+]*)(|[\r\n ]|^\[)#si", "\\1<a href=\"\\2\" target=\"_blank\" title=\"Kliknij\">".$link_replacement."</a> ", $shouttext);
$shouttext = preg_replace("#(^|[\r\n ]|^\])((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*)(|[\r\n ]|^\[)#si", "\\1<a href=\"http://\\2\" target=\"_blank\" title=\"Kliknij\">".$link_replacement."</a> ", $shouttext);
//parsing urls only with domain without www\ftp, http(s): or ftp(s): at the beggining
$shouttext = preg_replace("#(^|[\r\n ]|^\])([\w\#$%&~/.\-;:=,?@\[\]+]*\.(html|php3|htm|php|com|net|org|info|biz|aero|coop|museum|name|pro|gov|edu|mil|int|ac|ad|ae|ag|am|as|au|bb|be|bg|bi|bm|br|bt|bv|ca|cc|cd|ch|ck|cl|cm|cn|cr|cu|cx|cz|de|dk|do|ec|ee|es|fj|fm|fo|fr|gb|ge|gi|gl|gm|gr|gs|gt|gu|hk|hm|hr|hu|id|ir|ie|il|in|io|is|it|jo|jp|kr|ky|kz|lb|li|lk|lt|lu|ly|mc|mn|ms|mw|mx|na|nc|nl|no|nu|nz|pe|ph|pk|pl|pm|py|re|ro|ru|sa|se|sg|sh|si|sk|sm|su|tc|tf|th|tj|to|tr|tv|tw|ua|ue|ug|uk|us|uy|uz|va|vc|vg|vi|vn|vu|wf|ws|za|ai|al|an|ao|ar|az|ba|bf|bn|bo|bs|by|bz|cg|ci|co|cy|dz|eg|fi|fk|ga|gg|gh|im|je|ke|kg|kh|lc|lv|mc|mh|mo|mp|mr|mt|my|ni|np|om|pn|pt|ga|rw|sb|sc|sj|sn|sv|tp|af|aw|bd|bh|bj|bw|cf|cv|dj|dm|eh|er|et|gd|gf|gn|gq|gw|gy|ht|iq|jm|ki|km|kn|kp|kw|la|lr|ls|ma|mg|mk|ml|mm|mq|mu|mv|mz|ne|nf|ng|nr|pa|pf|pg|pr|pw|sd|sl|so|sr|st|sy|sz|td|tg|tk|tm|tt|tz|um|ye|zm|zw|agent|arts|auction|chat|church|club|family|free|game|golf|inc|kids|law|llc|llp|love|ltd|med|mp3|school|scifi|shop|soc|sport|tech|travel|video|xxx|america|com2|etc|earth|not|online|usa|z))(|[\r\n ]|^\[)#si", "\\1<a href=\"http://\\2\" target=\"_blank\" title=\"autolink\">".$link_replacement."</a> ", $shouttext);
//replace links with link image
$shouttext = nl2br(parseubb($shouttext));
$shouttext = mywordwrap($shouttext, 20, " ");
echo "\n<span class='shoutbox'>".$shouttext."</span><br>\n";
echo "</fieldset>";
echo "<br>\n";
}
} else {
echo "<div align='left'>".$locale['127']."</div>\n";
} // end: if (dbrows($result) > 0) {
echo "
</layer></ilayer><script language=\"JavaScript1.2\">
if (iens6) {
document.write('</div></div>')
}
</script>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<td align=\"right\">
<a href=\"#\" onMouseover=\"moveup()\" onMouseout=\"clearTimeout(moveupvar)\"><img src=\"".INFUSIONS."shoutbox_panel/images/up.gif\" border=\"0\"></a>
<a href=\"#\" onMouseover=\"movedown()\" onMouseout=\"clearTimeout(movedownvar)\"><img src=\"".INFUSIONS."shoutbox_panel/images/down.gif\" border=\"0\"></a>
</td>
</table>";
if (iMEMBER) {
echo "
<hr />
<center>
<img border='0' src='".THEME."images/bullet.gif'>
<a href='".INFUSIONS."shoutbox_panel/shoutbox_archive.php' class='side'>".$locale['126']."</a>
<img border='0' src='".THEME."images/bulletb.gif'>
</center>\n";
} else {
echo "<div align='left'></div>\n";
}
echo "
<script language=\"JavaScript1.2\">
if (iens6) {
var crossobj=document.getElementById? document.getElementById(\"content\") : document.all.content
var contentheight=crossobj.offsetHeight
} else if (ns4) {
var crossobj=document.nscontainer.document.nscontent
var contentheight=crossobj.clip.height
}
function movedown() {
if (iens6 && parseInt(crossobj.style.top) >= (contentheight*(-1)+100)) {
crossobj.style.top = parseInt(crossobj.style.top) - speed + \"px\"
} else if (ns4 && crossobj.top >= (contentheight * (-1) + 100)) {
crossobj.top -= speed
}
movedownvar = setTimeout(\"movedown()\",20)
}
function moveup() {
if (iens6 && parseInt(crossobj.style.top) <= 0) {
crossobj.style.top=parseInt(crossobj.style.top) + speed + \"px\"
} else if (ns4 && crossobj.top <= 0) {
crossobj.top += speed
}
moveupvar=setTimeout(\"moveup()\",20)
}
function getcontent_height() {
if (iens6) {
contentheight=crossobj.offsetHeight
} else if (ns4) {
document.nscontainer.document.nscontent.visibility=\"show\"
}
}
window.onload=getcontent_height
</script>";
closeside();
?>
Kod nBoxa:
<?php
#------------------------------------------------------
# MOD nBox ajax by slawekneo for php-fusion 6.01.xx or 7.xx
# language version - pl
# script version - v5
# author nick: slawekneo from Polish support php-fusion
# author name: Slawomir Nonas
# http://www.php-fusion.pl
#------------------------------------------------------
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
//ustawienia
//tekst typu zabrania sie pisania glupot itp :)
//$zab = "zabrania sie pisania glupot";
$zab = "";
//szerokosc shoutboxa
//$width_sb = "155px";
$width_sb = "100%";
//start shoutbox
openside($locale['120']);
echo "<script type='text/javascript' src='".INFUSIONS."shoutbox_panel/js/mintajax.js'></script>";
echo "<script type='text/javascript'> var sbdir = '".BASEDIR."infusions/'; </script>";
echo "<script type='text/javascript'> var zab = '".$zab."'; </script>";
echo "<script type='text/javascript' src='".INFUSIONS."shoutbox_panel/js/shoutbox.js'></script>";
echo "<script type='text/javascript' src='".INFUSIONS."shoutbox_panel/js/overlib.js'></script>";
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" >
<tr>
<td>
";
if (iMEMBER || $settings['guestposts'] == "1") {
echo "<form id='shout' name='chatform' method='POST' >\n<table align='center' cellpadding='0' cellspacing='0'>\n<tr>\n<td colspan='2'>\n"; $mes = ""; //$mes = "onMouseOver=\"overlib('<center>Zanim wy¶lesz upewnij się że wpisana tre¶ć nie łamie regulaminu shoutboxa. W tym celu zapoznaj się z tre¶ci± regulaminu.</center>', CAPTION, '<center><B>UWAGA !!!</B></center>', FGCOLOR, '#CCFFFF', BGCOLOR, '#000000', TEXTCOLOR, '#000000', CAPTIONSIZE, 3, BORDER, 2, TEXTSIZE, 2, STATUS, 'Uwaga',LEFT)\" onMouseOut=\"nd();\"";
if (iGUEST) echo "Nick<br />\n<input type='text' name='sn' value='' class='textbox' maxlength='30' style='width:140px;'>\n<br />\n";
echo "<textarea name='sm' id='sm' rows='4' class='log' id='shoutedit' onFocus=\"if(this.value=='".$zab."')this.value='';\" onBlur=\"if(this.value=='')this.value='".$zab."';\" onkeyup=\"spr_dl(this.value, this.id)\">".$zab."</textarea><br>
<div><div style='position:absolute;'><span id='coun' class='small' align='center' style='padding-left:5px'>0%</span></div><div id='prctlo' style='background-color:000000; width:0%; height:14px'> </div></div>
</td></tr><tr><td colspan='2' align='center'><span id='shoutchangebutton'><input type='button' value='Wyslij' class='button' id='bezel' ".$mes." ></span> <span id='shoutbutton'><input type='button' onclick=\"LoadShout(''); ods()\" value='Odswież' class='button'></span></td></tr></table><br>";
} else echo "<tr><td><form id='shout' name='chatform' method='POST'>\n<center>".(isset($locale['125']) ? $locale['125'] : $locale['global_154'])."<br />\n<input type='button' onclick=\"LoadShout(''); ods()\" value='Odswiez posty' class='button'></center><br>\n";
echo "<script type='text/javascript'> var img_dr = '".INFUSIONS."shoutbox_panel/images/'; </script>";
echo "<script type='text/javascript' src='".INFUSIONS."shoutbox_panel/js/mootools-1.2b2.js'></script>";
echo "<script type='text/javascript' src='".INFUSIONS."shoutbox_panel/js/growl.js'></script>";
echo "<div id='sb_scroll' style='overflow: hidden; height:400px; width:".$width_sb.";'>\n<div id='lol'>";
echo "<script>LoadShout('1')</script>\n</div>\n</div>\n</form>";
echo "<table border='0' cellpadding='0' cellspacing='0' width='".$width_sb."' height='18'><tr><td align='center' width='90px'>";
echo "<div id='load_arch'><img src='".INFUSIONS."shoutbox_panel/images/load.gif'></div>";
echo "</td><td align='center'>";
echo "<div><img src=\"".INFUSIONS."shoutbox_panel/images/up.png\" onmouseover=\"t=setInterval('sb_move_up()', 5);\" onmouseout=\"clearInterval(t);\" border=\"0\"> ";
echo "<img src=\"".INFUSIONS."shoutbox_panel/images/down.png\" onmouseover=\"t=setInterval('sb_move_down()', 5);\" onmouseout=\"clearInterval(t);\" border=\"0\"></div>";
echo "
</td>
</tr>
</table>
</td>
</tr>
</table>";
closeside();
?>
Serdecznie dziękuję za pomoc.
Pozdrawiam.
Edytowane przez Pieka dnia 13.01.2011 20:48:56
|