Tło pod tekstem w shoutboxie
|
spieprzaj_dziadu |
Dodany dnia 25.07.2007 00:07:03
|
Przedszkolak
Postów: 8
Data rejestracji: 20.03.2006 17:12
|
Witam,
mam pytanie:
otóż na swojej stronie mam theme "zymic". Kiedy ktoś napisze jakieś tekst w shoutboksie to pod tym tekstem jest inne tło niż w pozostałej części shoutboksa i nieładnie to wygląda. Chodzi mi konkretnie o to:
Jak widać w miejscu gdzie jest data i tekst tło jest szare a w pozostałej części białe. Jak to zlikwidować żeby w całym shoutboksie było białe tło?
Pozdrawiam |
|
|
|
Wścibski Gość |
Dodany dnia 23.11.2024 17:42:27
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
Piotrek |
Dodany dnia 25.07.2007 01:31:25
|
Bywalec
Postów: 999 Pomógł: 2 Ostrzeżeń: 2
Data rejestracji: 26.01.2006 19:59
Złamana licencja
|
podaj styles.css
Edytowane przez Piotrek dnia 25.07.2007 01:32:19
|
|
|
|
sonar |
Dodany dnia 25.07.2007 09:08:49
|
Początkujący
Postów: 269 Ostrzeżeń: 1
Data rejestracji: 03.09.2004 18:59
|
przypuszczalnie w styles.css masz cos w tym stylu:
.shoutboxname {
(...)
background-image:url(cos/cos.jpg);
(...)
}
podaj ze styles.css classe shoutboxname to cos na to poradzimy :)
www - moje portfolio
|
|
|
|
Piotrek |
Dodany dnia 25.07.2007 11:13:45
|
Bywalec
Postów: 999 Pomógł: 2 Ostrzeżeń: 2
Data rejestracji: 26.01.2006 19:59
Złamana licencja
|
otwórz styles.css i naciśnij Ctrl+F oraz wpisz frazę shoutbox, napewno znajdziesz. |
|
|
|
Pieka |
Dodany dnia 25.07.2007 11:44:55
|
Postów: 19882 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Sekcja shoutbox'a:
.shoutboxname {
font-weight : bold;
color : #005599;
[color=red][b]background-color : #f6f6f6;[/b][/color]
}
.shoutbox {
color : #777;
[color=red][b]background-color : #f6f6f6;[/b][/color]
}
.shoutboxdate {
font-size : 10px;
color : #888;
[color=red][b]background-color : #f6f6f6;[/b][/color]
}
Zaznaczone powyzej na czerwono, zmien na:
background-color : #fff;
Edytowane przez Pieka dnia 25.07.2007 11:48:18
Jestem jaki jestem
|
|
|
|
spieprzaj_dziadu |
Dodany dnia 25.07.2007 13:16:48
|
Przedszkolak
Postów: 8
Data rejestracji: 20.03.2006 17:12
|
Ok, już jest wszystko jak należy. Wielkie dzięki za pomoc! |
|
|
|
administrator |
Dodany dnia 30.07.2007 11:45:01
|
Przedszkolak
Postów: 2
Data rejestracji: 30.07.2007 11:10
ZBANOWANY: Dożywotnio
|
A jak mozna zrobic takie linie wokol tekstu jak w EP???
administrator dodał/a następującą grafikę:
Edytowane przez administrator dnia 30.07.2007 12:41:03
|
|
|
|
DJPromo |
Dodany dnia 30.07.2007 14:56:42
|
Bywalec
Postów: 630 Pomógł: 41
v7.02.07 Data rejestracji: 13.06.2006 18:51
|
to jest coś takiego :)
<fieldset><legend>[b]tutaj tekst [/b]</legend></fieldset>
Edytowane przez DJPromo dnia 30.07.2007 14:57:14
Pomogłem Kliknij Pomógł
Życie to chwila zbyt krótka aby móc .... Życie to chwila / trzeba patrzeć i podziwiać
|
|
|
|
M4cq |
Dodany dnia 30.07.2007 15:09:03
|
Przedszkolak
Postów: 7
Data rejestracji: 29.06.2007 09:27
|
Ale gdzie to wlozyc?? |
|
|
|
administrator |
Dodany dnia 30.07.2007 15:50:31
|
Przedszkolak
Postów: 2
Data rejestracji: 30.07.2007 11:10
ZBANOWANY: Dożywotnio
|
Dobre pytanie jak to wkomponowac w kod |
|
|
|
Pieka |
Dodany dnia 30.07.2007 18:59:15
|
Postów: 19882 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
administrator napisał/a:
Dobre pytanie jak to wkomponowac w kod
Kolega sobie jaja robi z tym nickiem?
Jestem jaki jestem
|
|
|
|
DJPromo |
Dodany dnia 30.07.2007 19:32:26
|
Bywalec
Postów: 630 Pomógł: 41
v7.02.07 Data rejestracji: 13.06.2006 18:51
|
Podaje tutaj kod z EP IV wystarczy ze sobie go przeczytacie i zaczniecie metoda
prób i błędów a na pewno to co podałem wstawicie ;) do zwykłego fusiona
na czerwono macie zaznaczone co trzeba dodać do kodu zwykłego fusiona
if (dbrows($result) > 0) {
$gouest_opt = dbarray(dbquery("SELECT * FROM ".$db_prefix."colors WHERE user_level=0"));
while ($data = dbarray($result)) {
echo"[color=red]<FIELDSET><LEGEND>[/color]<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>[color=red]</LEGEND>[/color]";
if (checkrights("S") AND $shout != "edit"){
echo "[ <a href='".FUSION_SELF.(FUSION_QUERY ? "?".str_replace("&","&",FUSION_QUERY)."&shout=delete&id=".$data['shout_id'] : "?shout=delete&id=".$data['shout_id'])."'>".$locale['133']."</a> | <a href='".FUSION_SELF.(FUSION_QUERY ? "?".str_replace("&","&",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 ? "?".str_replace("&","&",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'><font style='font-style:italic;font-family:Tahoma;font-size:8;color:#777777;'>".$locale['135']." ".showdate("shortdate", $data['shout_datestamp'])."</font></span><br>";
$mes = str_replace(" [", "[", $data[shout_message]);
$mes = nl2br(parseubb(parsesmileys($mes)));
echo "<span class='shoutbox'>".$mes ."</span>[color=red]</FIELDSET>[/color]";
echo "<br>\n";
}
}
Edytowane przez DJPromo dnia 30.07.2007 19:35:45
Pomogłem Kliknij Pomógł
Życie to chwila zbyt krótka aby móc .... Życie to chwila / trzeba patrzeć i podziwiać
|
|
|
|
Wypasiony |
Dodany dnia 30.07.2007 23:17:57
|
Przedszkolak
Postów: 6
Data rejestracji: 30.07.2007 23:13
ZBANOWANY: Dożywotnio
|
Djpromo nie zarzucisz mi odrazu gotowego do fusiona 11 bo ja w tyhc sprawa nie bardzo a bardzo mi zalezy na tym :(blagam
shoutbox_panel.php
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 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
+----------------------------------------------------+
| Shoutbox v6.01.4.2r - Modded by Shedrock 2006
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
if (file_exists(INFUSIONS."shoutbox_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."shoutbox_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."shoutbox_panel/locale/English.php";
}
require_once INFUSIONS."shoutbox_panel/parser.php";
echo "<script type='text/javascript' src='".INFUSIONS."shoutbox_panel/functions.js'></script>";
openside($locale['120']);
/**
* Set minimum and maximum shouts you want displayed on each level.
*/
$min=5; //minimum visible shouts in first level.
$max=5; //maximum number of shouts in second level (hidden).
if (checkrights("S") && $action == "delete" && isNum($shout_id)) {
$result = dbquery("DELETE FROM ".DB_PREFIX."shoutbox WHERE shout_id='$shout_id'");
}
if (iMEMBER || $settings['guestposts'] == "1") {
if (isset($_POST['post_shout'])) {
$flood = false;
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]{45})/", "$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) $result = dbquery("INSERT INTO ".$db_prefix."shoutbox (shout_name, shout_message, shout_datestamp, shout_ip) VALUES ('$shout_name', '$shout_message', '".time()."', '".USER_IP."')");
}
fallback(FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : ""));
}
/**
* Ban Mod start.
*/
if ($step == "ban") {
if ($act == "on") {
if ($user_id != 1) {
$result = dbquery("UPDATE ".$db_prefix."users SET user_status='1' WHERE user_id='$user_id'");
header("Location:".BASEDIR."news.php");
}
} elseif ($act == "off") {
$result = dbquery("UPDATE ".$db_prefix."users SET user_status='0' WHERE user_id='$user_id'");
header("Location:".BASEDIR."news.php");
}
}
/**
* End Ban Mod.
*/
/**
* Smiley Popup Script.
*/
echo "<script type='text/javascript' language='JavaScript'>
<!-- Begin
function smileys(URL) {
day = new Date();
id = day.getTime();
eval(\"page\" + id + \" = window.open(URL, '\" + id + \"', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=90,left = 407,top = 329');\");
}
// End Smiley Popup-->
</script>
<form name='shoutform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".str_replace("&","&",FUSION_QUERY) : "")."'>
<div align='center'>".$locale['fb_001']." <input style='margin-top:5px; margin-bottom:2px; padding-left:10px; padding-right:0px;' class='textbox' readonly type='text' name='commentlen' size='3' maxlength='3' value='200'></div>
<table align='center' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='2'>\n";
if (iGUEST) {
echo $locale['121']."<br>
<input type='text' name='shout_name' value='' class='textbox' maxlength='30' style='width:140px;'><br>".$locale['122']."<br>\n";
}
echo "<textarea onKeyDown=\"textCounter(this.form.shout_message,this.form.commentlen,200);\" onKeyUp=\"textCounter(this.form.shout_message,this.form.commentlen,200);\" id='shout_message' name='shout_message' rows='4' class='textbox' style='margin-bottom:-5px; width:140px;'>".str_replace("<br>", "", $data['shout_message'])."</textarea>
</td></tr><tr>
<td align='center'>
<input style='margin-top:10px; margin-bottom:10px;' alt='".$locale['fb_002']."' title='".$locale['fb_002']."' type='submit' name='post_shout' value='".$locale['123']."' class='button'>
<div style='margin-top:-5px; margin-bottom:-1px;' align='center' class='tbl2'>
<a style='text-decoration:none; font-weight:normal;' href=\"javascript:smileys('".INFUSIONS."shoutbox_panel/smileys.php')\">".$locale['fb_003']."</a> |
<a style='text-decoration:none; font-weight:normal;' href=\"javascript:fuzetext('shout_message','[b]','[/b]');\">".$locale['fb_004']."</a> |
<a style='text-decoration:none; font-weight:normal;' href=\"javascript:defuze(bb_colors)\">".$locale['fb_005']."</a></div><br />
<div id='bb_colors'>
<script language='javascript' type='text/javascript'>
<!--
colorPalette('v', 10, 7)
//--></script><br />
<script language='javascript' type='text/javascript'>defuze(bb_colors)</script>
</div></td>
</tr>
</table>
</form>";
} 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;
while ($data = dbarray($result)) {
/**
* Modded for user ban display names, send private message and member homepage.
*/
if (iMEMBER){if ($data['user_status'] == 1) {
echo "";
}else if (!isset($userdata['user_id']) || $data['user_id'] != $userdata['user_id']) {
echo "<span class='shoutboxname'><a href=\"javascript:fuzetext('shout_message','[b]@".$data['user_name'].":[/b]%20-%20','');\"><img src='".INFUSIONS."shoutbox_panel/images/amp.png' alt='".$locale['fb_006']."' title='".$locale['fb_006']."'></a></span> ";
}
if (iMEMBER){if ($data['user_status'] == 1) {
echo "";
}else{
if (!isset($userdata['user_id']) || $data['user_id'] != $userdata['user_id']) {
echo "<a href='".BASEDIR."messages.php?msg_send=".$data['user_id']."'><img border='0' src='".INFUSIONS."shoutbox_panel/images/pm.png' alt='".$locale['fb_007']."' title='".$locale['fb_007']."'></a> ";
}else{
echo "<img alt='' src='".THEME."images/bullet.gif'> ";
}
}
}
if (iMEMBER){if ($data['user_status'] == 1) {
echo "";
}else{
if (!isset($userdata['user_id']) || $data['user_id'] != $userdata['user_id']) {
if ($data['user_web']) {
if (!strstr($data['user_web'], "http://")) { $urlprefix = "http://"; } else { $urlprefix = ""; }
echo "<a href='".$urlprefix."".$data['user_web']."' target='_blank'><img src='".INFUSIONS."shoutbox_panel/images/w3.png' alt='".$locale['fb_013']."' title='".$locale['fb_013']."'></a> ";
}else{
echo "";
}
}
}
}
} else if ($data['user_status'] == "1") {
echo "<span style='color:#0000FF;' title='".$locale['fb_012']."'><b># </b></span>";
}else if ($data['user_status'] == "0"){
echo "<img alt='' src='".THEME."images/bullet.gif'> ";
}
if ($data['user_status'] == 1) {
if (iMEMBER){
echo "<span style='color:#0000FF;' title='".$locale['fb_012']."'><b># </b></span>";
}else if ($data['user_status'] == "0"){
echo "<img alt='' src='".THEME."images/bullet.gif'> ";
}
}
/**
* End ban display names.
*/
/**
* Modded for colored names.
*/
$shoutcount = dbcount("(shout_id)", "shoutbox", "shout_name='".$data['user_id']."'");
if ($data[user_level] == "103") {
$userx = "<font color='#F75013'><b>".$data[user_name]."</b></font>";
}else if ($data[user_level] == "102") {
$userx = "<font color='#008000'><b>".$data[user_name]."</b></font>";
}else if ($data[user_level] == "101") {
$userx = "<font color='#3333CC'><b>".$data[user_name]."</b></font>";
}if ($data['user_status'] == 1) {
$userx = "<font color='#B0B0B0' title='".$locale['fb_012']."'>".$data[user_name]."</font>";
}
/**
* End color mod.
*/
if ($data['user_name']) {
echo "<a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' class='side'>$userx</a>\n";
} else {
echo $data['shout_name']."\n";
}
echo "<br>\n<span class='shoutboxdate'>".showdate("shortdate", $data['shout_datestamp'])."</span>";
if ($userdata['user_level'] >= 103) {
echo "<br>\n[<a href='".ADMIN."shoutbox.php".$aidlink."&action=edit&shout_id=".$data['shout_id']."' class='side'>".$locale['048']."</a> - <a href='".FUSION_SELF.$aidlink."&action=delete&shout_id=".$data['shout_id']."' class='side'>".$locale['049']."</a>] ";
if ($data['user_status'] == "1") {
echo "[<a href='".FUSION_SELF.$aidlink."&step=ban&act=off&sortby=$sortby&rowstart=$rowstart&user_id=".$data['user_id']."' class='side'>".$locale['fb_009']."</a>]";
}else if ($data[user_level] == "103") {
echo"";
}else if ($data['user_status'] == "0") {
echo "[<a href='".FUSION_SELF.$aidlink."&step=ban&act=on&sortby=$sortby&rowstart=$rowstart&user_id=".$data['user_id']."' class='side'>".$locale['fb_010']."</a>]";
}
echo "<br><span style='font-size:8px;'>".$locale['fb_011']."".$data['user_ip']."</span><br>";
} else {
echo "<br>\n";
}
echo "<span class='shoutbox'>".parseshoutubb(parseubb(parsesmileys($data['shout_message'])))."</span><br>\n";
if ($i != $numrows) echo "<br>\n";
}
} else {
echo "<div align='left'>".$locale['127']."</div>\n";
}
/**
* Begin show more feature.
*/
echo "<center><img alt='' border='0' src='".THEME."images/bullet.gif'> <a href=\"javascript:defuze(show_more)\">".$locale['fb_008']."</a> <img alt='' border='0' src='".THEME."images/bulletb.gif'> </center><div id='show_more'><br>";
/**
* End show more feature.
*/
$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;
while ($data = dbarray($result)) {
/**
* Modded for user ban display names, send private message and member homepage.
*/
if (iMEMBER){if ($data['user_status'] == 1) {
echo "";
}else if (!isset($userdata['user_id']) || $data['user_id'] != $userdata['user_id']) {
echo "<span class='shoutboxname'><a href=\"javascript:fuzetext('shout_message','[b]@".$data['user_name'].":[/b]%20-%20','');\"><img src='".INFUSIONS."shoutbox_panel/images/amp.png' alt='".$locale['fb_006']."' title='".$locale['fb_006']."'></a></span> ";
}
if (iMEMBER){if ($data['user_status'] == 1) {
echo "";
}else{
if (!isset($userdata['user_id']) || $data['user_id'] != $userdata['user_id']) {
echo "<a href='".BASEDIR."messages.php?msg_send=".$data['user_id']."'><img border='0' src='".INFUSIONS."shoutbox_panel/images/pm.png' alt='".$locale['fb_007']."' title='".$locale['fb_007']."'></a> ";
}else{
echo "<img alt='' src='".THEME."images/bullet.gif'> ";
}
}
}
if (iMEMBER){if ($data['user_status'] == 1) {
echo "";
}else{
if (!isset($userdata['user_id']) || $data['user_id'] != $userdata['user_id']) {
if ($data['user_web']) {
if (!strstr($data['user_web'], "http://")) { $urlprefix = "http://"; } else { $urlprefix = ""; }
echo "<a href='".$urlprefix."".$data['user_web']."' target='_blank'><img src='".INFUSIONS."shoutbox_panel/images/w3.png' alt='".$locale['fb_013']."' title='".$locale['fb_013']."'></a> ";
}else{
echo "";
}
}
}
}
}else if ($data['user_status'] == "1") {
echo "<span style='color:#0000FF;' title='".$locale['fb_012']."'><b># </b></span>";
}else if ($data['user_status'] == "0"){
echo "<img alt='' src='".THEME."images/bullet.gif'> ";
}
if ($data['user_status'] == 1) {
if (iMEMBER){
echo "<span style='color:#0000FF;' title='".$locale['fb_012']."'><b># </b></span>";
}else if ($data['user_status'] == "0"){
echo "<img alt='' src='".THEME."images/bullet.gif'> ";
}
}
/**
* End ban display names.
*/
/**
* Modded for colored names.
*/
$shoutcount = dbcount("(shout_id)", "shoutbox", "shout_name='".$data['user_id']."'");
if ($data[user_level] == "103") {
$userx = "<font color='#F75013'><b>".$data[user_name]."</b></font>";
}else if ($data[user_level] == "102") {
$userx = "<font color='#008000'><b>".$data[user_name]."</b></font>";
}else if ($data[user_level] == "101") {
$userx = "<font color='#3333CC'><b>".$data[user_name]."</b></font>";
}if ($data['user_status'] == 1) {
$userx = "<font color='#B0B0B0' title='".$locale['fb_012']."'>".$data[user_name]."</font>";
}
/**
* End color mod.
*/
if ($data['user_name']) {
echo "<a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' class='side'>$userx</a>\n";
} else {
echo $data['shout_name']."\n";
}
echo "<br>\n<span class='shoutboxdate'>".showdate("shortdate", $data['shout_datestamp'])."</span>";
$shout_message = nl2br(parseshoutubb(parseubb(parsesmileys($data['shout_message']))));
if ($userdata['user_level'] >= 103) {
echo "<br>\n[<a href='".ADMIN."shoutbox.php".$aidlink."&action=edit&shout_id=".$data['shout_id']."' class='side'>".$locale['048']."</a> - <a href='".FUSION_SELF.$aidlink."&action=delete&shout_id=".$data['shout_id']."' class='side'>".$locale['049']."</a>] ";
if ($data['user_status'] == "1") {
echo "[<a href='".FUSION_SELF.$aidlink."&step=ban&act=off&sortby=$sortby&rowstart=$rowstart&user_id=".$data['user_id']."' class='side'>".$locale['fb_009']."</a>]";
}else if ($data[user_level] == "103") {
echo"";
}else if ($data['user_status'] == "0") {
echo "[<a href='".FUSION_SELF.$aidlink."&step=ban&act=on&sortby=$sortby&rowstart=$rowstart&user_id=".$data['user_id']."' class='side'>".$locale['fb_010']."</a>]";
}
echo "<br><span style='font-size:8px;'>".$locale['fb_011']."".$data['user_ip']."</span><br>";
} else {
echo "<br>\n";
}
echo "<span class='shoutbox'>".$shout_message."</span><br>\n";
if ($i != $numrows) echo "<br>\n";
}
if ($numrows > $settings['numofshouts']) {
}
} else {
echo "<div align='left'>".$locale['127']."</div>\n";
}
echo"<script language='javascript' type='text/javascript'>defuze(show_more)</script></div>";
if (iMEMBER) {
echo "<hr><center>\n<img alt='' border='0' src='".THEME."images/bullet.gif'> ";
echo "<a href='".INFUSIONS."shoutbox_panel/shoutbox_archive.php' class='side'>".$locale['126']."</a> ";
echo "<img alt='' border='0' src='".THEME."images/bulletb.gif'></center>\n";
} else {
echo "<div align='left'></div>\n";
}
closeside();
?>
Edytowane przez Wypasiony dnia 30.07.2007 23:19:52
|
|
|
|
M4cq |
Dodany dnia 31.07.2007 09:10:07
|
Przedszkolak
Postów: 7
Data rejestracji: 29.06.2007 09:27
|
Dzieki DJPromo. Zadziałało!
A to efekt:
A dla tych co nie wiedzą jak to zrobić to edytujecie plik shoutbox_panel.php który znajduje sie u was na serverze w katalogu infusion/shoutbox_panel/.
A reszta juz jak napisal DJPromo
Edytowane przez M4cq dnia 31.07.2007 09:26:00
|
|
|
|
Wypasiony |
Dodany dnia 31.07.2007 10:06:48
|
Przedszkolak
Postów: 6
Data rejestracji: 30.07.2007 23:13
ZBANOWANY: Dożywotnio
|
Qurde zapomnialem ze mam teog shouboxa z laboratorium moze ktos mi to tam wstaw. prszoe bardzo
Edytowane przez Wypasiony dnia 31.07.2007 10:17:37
|
|
|
|
M4cq |
Dodany dnia 31.07.2007 10:27:58
|
Przedszkolak
Postów: 7
Data rejestracji: 29.06.2007 09:27
|
ok wlozylem to. Mozesz sprobowac. Ale na wszelki wypadek zrob kopie zapasowa.
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fu...
+----------------------------------------------------+
| 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
+----------------------------------------------------+
| Shoutbox v6.01.4.2r - Modded by Shedrock 2006
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
if (file_exists(INFUSIONS."shoutbox_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."shoutbox_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."shoutbox_panel/locale/English.php";
}
require_once INFUSIONS."shoutbox_panel/parser.php";
echo "<script type='text/javascript' src='".INFUSIONS."shoutbox_panel/functions.js'></script>";
openside($locale['120']);
/**
* Set minimum and maximum shouts you want displayed on each level.
*/
$min=5; //minimum visible shouts in first level.
$max=5; //maximum number of shouts in second level (hidden).
if (checkrights("S") && $action == "delete" && isNum($shout_id)) {
$result = dbquery("DELETE FROM ".DB_PREFIX."shoutbox WHERE shout_id='$shout_id'");
}
if (iMEMBER || $settings['guestposts'] == "1") {
if (isset($_POST['post_shout'])) {
$flood = false;
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]{45})/", "$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) $result = dbquery("INSERT INTO ".$db_prefix."shoutbox (shout_name, shout_message, shout_datestamp, shout_ip) VALUES ('$shout_name', '$shout_message', '".time()."', '".USER_IP."')");
}
fallback(FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : ""));
}
/**
* Ban Mod start.
*/
if ($step == "ban") {
if ($act == "on") {
if ($user_id != 1) {
$result = dbquery("UPDATE ".$db_prefix."users SET user_status='1' WHERE user_id='$user_id'");
header("Location:".BASEDIR."news.php");
}
} elseif ($act == "off") {
$result = dbquery("UPDATE ".$db_prefix."users SET user_status='0' WHERE user_id='$user_id'");
header("Location:".BASEDIR."news.php");
}
}
/**
* End Ban Mod.
*/
/**
* Smiley Popup Script.
*/
echo "<script type='text/javascript' language='JavaScript'>
<!-- Begin
function smileys(URL) {
day = new Date();
id = day.getTime();
eval(\"page\" + id + \" = window.open(URL, '\" + id + \"', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=90,left = 407,top = 329');\");
}
// End Smiley Popup-->
</script>
<form name='shoutform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".str_replace("&","&",FUSION_QUERY) : "")."'>
<div align='center'>".$locale['fb_001']." <input style='margin-top:5px; margin-bottom:2px; padding-left:10px; padding-right:0px;' class='textbox' readonly type='text' name='commentlen' size='3' maxlength='3' value='200'></div>
<table align='center' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='2'>\n";
if (iGUEST) {
echo $locale['121']."<br>
<input type='text' name='shout_name' value='' class='textbox' maxlength='30' style='width:140px;'><br>".$locale['122']."<br>\n";
}
echo "<textarea onKeyDown=\"textCounter(this.form.shout_message,this.form.commentlen,200);\" onKeyUp=\"textCounter(this.form.shout_message,this.form.commentlen,200);\" id='shout_message' name='shout_message' rows='4' class='textbox' style='margin-bottom:-5px; width:140px;'>".str_replace("<br>", "", $data['shout_message'])."</textarea>
</td></tr><tr>
<td align='center'>
<input style='margin-top:10px; margin-bottom:10px;' alt='".$locale['fb_002']."' title='".$locale['fb_002']."' type='submit' name='post_shout' value='".$locale['123']."' class='button'>
<div style='margin-top:-5px; margin-bottom:-1px;' align='center' class='tbl2'>
<a style='text-decoration:none; font-weight:normal;' href=\"javascript:smileys('".INFUSIONS."shoutbox_panel/smileys.php')\">".$locale['fb_003']."</a> |
<a style='text-decoration:none; font-weight:normal;' href=\"javascript:fuzetext('shout_message','','');\">".$locale['fb_004']."</a> |
<a style='text-decoration:none; font-weight:normal;' href=\"javascript:defuze(bb_colors)\">".$locale['fb_005']."</a></div><br />
<div id='bb_colors'>
<script language='javascript' type='text/javascript'>
<!--
colorPalette('v', 10, 7)
//--></script><br />
<script language='javascript' type='text/javascript'>defuze(bb_colors)</script>
</div></td>
</tr>
</table>
</form>";
} 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;
while ($data = dbarray($result)) {
/**
* Modded for user ban display names, send private message and member homepage.
*/
if (iMEMBER){if ($data['user_status'] == 1) {
echo "";
}else if (!isset($userdata['user_id']) || $data['user_id'] != $userdata['user_id']) {
echo "<FIELDSET><LEGEND><span class='shoutboxname'><a href=\"javascript:fuzetext('shout_message','@".$data['user_name'].":%20-%20','');\"><img src='".INFUSIONS."shoutbox_panel/images/amp.png' alt='".$locale['fb_006']."' title='".$locale['fb_006']."'></a></span> ";
}
if (iMEMBER){if ($data['user_status'] == 1) {
echo "";
}else{
if (!isset($userdata['user_id']) || $data['user_id'] != $userdata['user_id']) {
echo "<a href='".BASEDIR."messages.php?msg_send=".$data['user_id']."'><img border='0' src='".INFUSIONS."shoutbox_panel/images/pm.png' alt='".$locale['fb_007']."' title='".$locale['fb_007']."'></a> ";
}else{
echo "<img alt='' src='".THEME."images/bullet.gif'> ";
}
}
}
if (iMEMBER){if ($data['user_status'] == 1) {
echo "";
}else{
if (!isset($userdata['user_id']) || $data['user_id'] != $userdata['user_id']) {
if ($data['user_web']) {
if (!strstr($data['user_web'], "http://")) { $urlprefix = "http://"; } else { $urlprefix = ""; }
echo "<a href='".$urlprefix."".$data['user_web']."' target='_blank'><img src='".INFUSIONS."shoutbox_panel/images/w3.png' alt='".$locale['fb_013']."' title='".$locale['fb_013']."'></a> ";
}else{
echo "";
}
}
}
}
} else if ($data['user_status'] == "1") {
echo "<span style='color:#0000FF;' title='".$locale['fb_012']."'><b># </b></span>";
}else if ($data['user_status'] == "0"){
echo "<img alt='' src='".THEME."images/bullet.gif'> ";
}
if ($data['user_status'] == 1) {
if (iMEMBER){
echo "<span style='color:#0000FF;' title='".$locale['fb_012']."'><b># </b></span>";
}else if ($data['user_status'] == "0"){
echo "<img alt='' src='".THEME."images/bullet.gif'> ";
}
}
/**
* End ban display names.
*/
/**
* Modded for colored names.
*/
$shoutcount = dbcount("(shout_id)", "shoutbox", "shout_name='".$data['user_id']."'");
if ($data[user_level] == "103") {
$userx = "<font color='#F75013'><b>".$data[user_name]."</b></font>";
}else if ($data[user_level] == "102") {
$userx = "<font color='#008000'><b>".$data[user_name]."</b></font>";
}else if ($data[user_level] == "101") {
$userx = "<font color='#3333CC'><b>".$data[user_name]."</b></font>";
}if ($data['user_status'] == 1) {
$userx = "<font color='#B0B0B0' title='".$locale['fb_012']."'>".$data[user_name]."</font>";
}
/**
* End color mod.
*/
if ($data['user_name']) {
echo "<a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' class='side'>$userx</a>\n";
} else {
echo $data['shout_name']."\n";
}
echo "<br>\n<span class='shoutboxdate'>".showdate("shortdate", $data['shout_datestamp'])."</span></LEGEND>";
if ($userdata['user_level'] >= 103) {
echo "<br>\n[<a href='".ADMIN."shoutbox.php".$aidlink."&action=edit&shout_id=".$data['shout_id']."' class='side'>".$locale['048']."</a> - <a href='".FUSION_SELF.$aidlink."&action=delete&shout_id=".$data['shout_id']."' class='side'>".$locale['049']."</a>] ";
if ($data['user_status'] == "1") {
echo "[<a href='".FUSION_SELF.$aidlink."&step=ban&act=off&sortby=$sortby&rowstart=$rowstart&user_id=".$data['user_id']."' class='side'>".$locale['fb_009']."</a>]";
}else if ($data[user_level] == "103") {
echo"";
}else if ($data['user_status'] == "0") {
echo "[<a href='".FUSION_SELF.$aidlink."&step=ban&act=on&sortby=$sortby&rowstart=$rowstart&user_id=".$data['user_id']."' class='side'>".$locale['fb_010']."</a>]";
}
echo "<br><span style='font-size:8px;'>".$locale['fb_011']."".$data['user_ip']."</span><br>";
} else {
echo "<br>\n";
}
echo "<span class='shoutbox'>".parseshoutubb(parseubb(parsesmileys($data['shout_message'])))."</span></FIELDSET><br>\n";
if ($i != $numrows) echo "<br>\n";
}
} else {
echo "<div align='left'>".$locale['127']."</div>\n";
}
/**
* Begin show more feature.
*/
echo "<center><img alt='' border='0' src='".THEME."images/bullet.gif'> <a href=\"javascript:defuze(show_more)\">".$locale['fb_008']."</a> <img alt='' border='0' src='".THEME."images/bulletb.gif'> </center><div id='show_more'><br>";
/**
* End show more feature.
*/
$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;
while ($data = dbarray($result)) {
/**
* Modded for user ban display names, send private message and member homepage.
*/
if (iMEMBER){if ($data['user_status'] == 1) {
echo "";
}else if (!isset($userdata['user_id']) || $data['user_id'] != $userdata['user_id']) {
echo "<span class='shoutboxname'><a href=\"javascript:fuzetext('shout_message','@".$data['user_name'].":%20-%20','');\"><img src='".INFUSIONS."shoutbox_panel/images/amp.png' alt='".$locale['fb_006']."' title='".$locale['fb_006']."'></a></span> ";
}
if (iMEMBER){if ($data['user_status'] == 1) {
echo "";
}else{
if (!isset($userdata['user_id']) || $data['user_id'] != $userdata['user_id']) {
echo "<a href='".BASEDIR."messages.php?msg_send=".$data['user_id']."'><img border='0' src='".INFUSIONS."shoutbox_panel/images/pm.png' alt='".$locale['fb_007']."' title='".$locale['fb_007']."'></a> ";
}else{
echo "<img alt='' src='".THEME."images/bullet.gif'> ";
}
}
}
if (iMEMBER){if ($data['user_status'] == 1) {
echo "";
}else{
if (!isset($userdata['user_id']) || $data['user_id'] != $userdata['user_id']) {
if ($data['user_web']) {
if (!strstr($data['user_web'], "http://")) { $urlprefix = "http://"; } else { $urlprefix = ""; }
echo "<a href='".$urlprefix."".$data['user_web']."' target='_blank'><img src='".INFUSIONS."shoutbox_panel/images/w3.png' alt='".$locale['fb_013']."' title='".$locale['fb_013']."'></a> ";
}else{
echo "";
}
}
}
}
}else if ($data['user_status'] == "1") {
echo "<span style='color:#0000FF;' title='".$locale['fb_012']."'><b># </b></span>";
}else if ($data['user_status'] == "0"){
echo "<img alt='' src='".THEME."images/bullet.gif'> ";
}
if ($data['user_status'] == 1) {
if (iMEMBER){
echo "<span style='color:#0000FF;' title='".$locale['fb_012']."'><b># </b></span>";
}else if ($data['user_status'] == "0"){
echo "<img alt='' src='".THEME."images/bullet.gif'> ";
}
}
/**
* End ban display names.
*/
/**
* Modded for colored names.
*/
$shoutcount = dbcount("(shout_id)", "shoutbox", "shout_name='".$data['user_id']."'");
if ($data[user_level] == "103") {
$userx = "<font color='#F75013'><b>".$data[user_name]."</b></font>";
}else if ($data[user_level] == "102") {
$userx = "<font color='#008000'><b>".$data[user_name]."</b></font>";
}else if ($data[user_level] == "101") {
$userx = "<font color='#3333CC'><b>".$data[user_name]."</b></font>";
}if ($data['user_status'] == 1) {
$userx = "<font color='#B0B0B0' title='".$locale['fb_012']."'>".$data[user_name]."</font>";
}
/**
* End color mod.
*/
if ($data['user_name']) {
echo "<a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' class='side'>$userx</a>\n";
} else {
echo $data['shout_name']."\n";
}
echo "<br>\n<span class='shoutboxdate'>".showdate("shortdate", $data['shout_datestamp'])."</span>";
$shout_message = nl2br(parseshoutubb(parseubb(parsesmileys($data['shout_message']))));
if ($userdata['user_level'] >= 103) {
echo "<br>\n[<a href='".ADMIN."shoutbox.php".$aidlink."&action=edit&shout_id=".$data['shout_id']."' class='side'>".$locale['048']."</a> - <a href='".FUSION_SELF.$aidlink."&action=delete&shout_id=".$data['shout_id']."' class='side'>".$locale['049']."</a>] ";
if ($data['user_status'] == "1") {
echo "[<a href='".FUSION_SELF.$aidlink."&step=ban&act=off&sortby=$sortby&rowstart=$rowstart&user_id=".$data['user_id']."' class='side'>".$locale['fb_009']."</a>]";
}else if ($data[user_level] == "103") {
echo"";
}else if ($data['user_status'] == "0") {
echo "[<a href='".FUSION_SELF.$aidlink."&step=ban&act=on&sortby=$sortby&rowstart=$rowstart&user_id=".$data['user_id']."' class='side'>".$locale['fb_010']."</a>]";
}
echo "<br><span style='font-size:8px;'>".$locale['fb_011']."".$data['user_ip']."</span><br>";
} else {
echo "<br>\n";
}
echo "<span class='shoutbox'>".$shout_message."</span><br>\n";
if ($i != $numrows) echo "<br>\n";
}
if ($numrows > $settings['numofshouts']) {
}
} else {
echo "<div align='left'>".$locale['127']."</div>\n";
}
echo"<script language='javascript' type='text/javascript'>defuze(show_more)</script></div>";
if (iMEMBER) {
echo "<hr><center>\n<img alt='' border='0' src='".THEME."images/bullet.gif'> ";
echo "<a href='".INFUSIONS."shoutbox_panel/shoutbox_archive.php' class='side'>".$locale['126']."</a> ";
echo "<img alt='' border='0' src='".THEME."images/bulletb.gif'></center>\n";
} else {
echo "<div align='left'></div>\n";
}
closeside();
?>
|
|
|
|
Wypasiony |
Dodany dnia 31.07.2007 11:21:51
|
Przedszkolak
Postów: 6
Data rejestracji: 30.07.2007 23:13
ZBANOWANY: Dożywotnio
|
Dziala juz wielkie dzęki pozdro |
|
|