ne geht nicht schreibt dann nen fehler in line 176
<?php
/*
Script => ShBox 3.2.2 =>V1 © by NF-Projekt
Entwickler => WDS NachtWolf / B.Masmann
Seite/Sup. => http://www.nf-projekt.de /
http://www.wds-wolfsdragoner.de /
and http://www.ilch.de
Kontakt => Webmaster@nf-projekt.de
*/
defined ('main') or die ( 'no direct access' );
#
##
###
#### ShBox Text ####
function shbox_text($text,$name) {
$abf = db_query('SELECT * FROM `prefix_shbox_config` WHERE id="1"');
$conf = db_fetch_assoc($abf);
$abfU = 'SELECT * FROM prefix_user WHERE name = "'.$name.'"';
$ergU = db_query($abfU);
$rowU = db_fetch_assoc($ergU);
if ($conf['admintext'] == AUS)
{ //1
if ($conf['gasttext'] == AUS)
{ //2
echo '<span style="color:'.$conf['textcolor'].';">'.$text.'</span>';
}//2
else
{//3
if ($rowU['recht'] < -0)
{//4
echo '<span style="color:'.$conf['textcolor'].';">'.$text.'</span>';
}//4
else
{//5
echo '<span style="color:'.$conf['gasttextcolor'].';">'.$text.'</span>';
}//5
}//3
}//1
elseif ($conf['admintext'] == AN)
{//6
if ($conf['gasttext'] == AN)
{//7
if ($rowU['recht'] == -9)
{//8
echo '<span style="color:'.$conf['admintextcolor'].';">'.$text.'</span>';
}//8
elseif ($rowU['recht'] < -0)
{//9
echo '<span style="color:'.$conf['textcolor'].';">'.$text.'</span>';
}//9
else
{//10
echo '<span style="color:'.$conf['gasttextcolor'].';">'.$text.'</span>';
}//10
}//7
else
{//11
if ($rowU['recht'] == -9)
{//12
echo '<span style="color:'.$conf['admintextcolor'].';">'.$text.'</span>';
}//12
else
{//13
echo '<span style="color:'.$conf['textcolor'].';">'.$text.'</span>';
}//13
}//11
}//6
}
#
##
###
#### ShBox Name ####
function shbox_name($name,$datum) {
$abf = db_query('SELECT * FROM `prefix_shbox_config` WHERE id="1"');
$conf = db_fetch_assoc($abf);
$abfU = 'SELECT * FROM prefix_user WHERE name = "'.$name.'"';
$ergU = db_query($abfU);
$rowU = db_fetch_assoc($ergU);
if ($conf['admincolor'] == AUS)
{ //1
if ($conf['gastcolor'] == AUS)
{ //2
echo '<span style="color:'.$conf['namecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//2
else
{//3
if ($rowU['recht'] < -0)
{//4
echo '<span style="color:'.$conf['namecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//4
else
{//5
echo '<span style="color:'.$conf['gastnamecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//5
}//3
}//1
elseif ($conf['admincolor'] == AN)
{//6
if ($conf['gastcolor'] == AN)
{//7
if ($rowU['recht'] == -9)
{//8
echo '<span style="color:'.$conf['adminnamecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//8
elseif ($rowU['recht'] < -0)
{//9
echo '<span style="color:'.$conf['namecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//9
else
{//10
echo '<span style="color:'.$conf['gastnamecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//10
}//7
else
{//11
if ($rowU['recht'] == -9)
{//12
echo '<span style="color:'.$conf['adminnamecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//12
else
{//13
echo '<span style="color:'.$conf['namecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//13
}//11
}//6
}
#
##
###
#### ShBox Ausgabe ####
function shbox() {
$abf = db_query('SELECT * FROM `prefix_shbox_config` WHERE id="1"');
$conf = db_fetch_assoc($abf);
$hr = '<hr style="height:0px;border:solid '.$conf['hrcolor'].' 0px;border-top-width: 1px;" />';
$wert = $conf['ausgabe'];
$erg = db_query('SELECT * FROM `prefix_shbox` ORDER BY id DESC LIMIT '.$wert);
while ($row = db_fetch_assoc($erg) ) {
$class = ( $class == $conf['hgcolor2'] ? $conf['hgcolor1'] : $conf['hgcolor2'] );
$text = substr($row['txt'], 0, $conf['textmax']);
$text = BBcode($text);
$text = preg_replace('/([^\s]{'.$conf['textzeile'].'})(?=[^\s])/',"$1\n", $text);
if($conf['datumzeit'] == JA)
{
$datum = $row['date'];
$name = $row['name'];
}
else
{
$datum = '';
$name = $row['name'];
}
echo '
<table width="'.$conf['tabellewidth'].'%" height="'.$conf['tabelleheight'].'%" border="0" bgcolor="'.$conf['tabellecolor'].'" cellpadding="0" cellspacing="0">
<tr bgcolor="'.$class.'" align="center">
<td>
<b>';
$abfU = 'SELECT * FROM prefix_user WHERE name = "'.escape($row['name'],'string').'"';
$ergU = db_query($abfU);
while ($rowU = db_fetch_assoc($ergU)){
?>
<a href="index.php?user-details-<?php echo $rowU['id']; ?>" onmouseout="hideTooltip()" onmouseover="showTooltip(event,' <?php echo $row['date'] ?> ') ;return false">
<?php
}
echo $hr;
shbox_name($name,$datum);
echo '</b><br />';
shbox_text($text,$name);
echo '</center>
</td>
</tr>
</table>';
}
}
#
##
###
#### SMILIES angepasste Kopie vom Orginalen getsmilies() : Copyright by: Manuel Staechele ####
function shboxsmilies () {
$abf = db_query('SELECT * FROM `prefix_shbox_config` WHERE id="1"');
$conf = db_fetch_assoc($abf);
global $lang;
$zeilen = $conf['smilieszeile']; $i = 0;
$b = '<script language="JavaScript" type="text/javascript">function moreSmiliesshbox () { var x = window.open("about:blank", "moreSmiliesshbox", "width=250,height=200,status=no,scrollbars=yes,resizable=yes"); ';
$a = '';
$erg = db_query('SELECT emo, ent, url FROM `prefix_smilies`');
while ($row = db_fetch_object($erg) ) {
$b .= 'x.document.write ("<a href=\"javascript:opener.putt(\''.addslashes(addslashes($row->ent)).'\')\">");';
$b .= 'x.document.write ("<img style=\"border: 0px; padding: 5px;\" src=\"include/images/smiles/'.$row->url.'\" title=\"'.$row->emo.'\" ></a>");';
if ($i< $conf['smiliesspalte'])
{
if($i%$zeilen == 0 AND $i <> 0)
{
$a .= '<br /><br />';
}
$a .= '<a href="javascript:putt(\''.addslashes($row->ent).'\')" onmouseout="hideTooltip()" onmouseover="showTooltip(event,\''.$row->emo.'\');return false">';
$a .= '<img style="margin: 2px;" src="include/images/smiles/'.$row->url.'" border="0"></a>';
}
$i++;
}
$b .= ' x.document.write("<br /><br /><center><a href=\"javascript:window.close();\">'.$lang['close'].'</a></center>"); x.document.close(); }</script>';
if ($i> $conf['smiliesspalte'])
{
$a .= '<br /><br /><center><a href="javascript:moreSmiliesshbox();">'.$lang['more'].'</a></center>';
}
$a = $b.$a;
return ($a);
}
?>
das is das original das funktionirt nur wenn ich dann das mit center rein kopiere zeigt er nen fehler weil ich das mit <b>'; nich drin hab und wenn ich das rein mache schreibt er nen fehler des wegen
bei der zeigt er dan fehler in line 176
<?php
/*
Script => ShBox 3.2.2 =>V1 © by NF-Projekt
Entwickler => WDS NachtWolf / B.Masmann
Seite/Sup. => http://www.nf-projekt.de /
http://www.wds-wolfsdragoner.de /
and http://www.ilch.de
Kontakt => Webmaster@nf-projekt.de
*/
defined ('main') or die ( 'no direct access' );
#
##
###
#### ShBox Text ####
function shbox_text($text,$name) {
$abf = db_query('SELECT * FROM `prefix_shbox_config` WHERE id="1"');
$conf = db_fetch_assoc($abf);
$abfU = 'SELECT * FROM prefix_user WHERE name = "'.$name.'"';
$ergU = db_query($abfU);
$rowU = db_fetch_assoc($ergU);
if ($conf['admintext'] == AUS)
{ //1
if ($conf['gasttext'] == AUS)
{ //2
echo '<span style="color:'.$conf['textcolor'].';">'.$text.'</span>';
}//2
else
{//3
if ($rowU['recht'] < -0)
{//4
echo '<span style="color:'.$conf['textcolor'].';">'.$text.'</span>';
}//4
else
{//5
echo '<span style="color:'.$conf['gasttextcolor'].';">'.$text.'</span>';
}//5
}//3
}//1
elseif ($conf['admintext'] == AN)
{//6
if ($conf['gasttext'] == AN)
{//7
if ($rowU['recht'] == -9)
{//8
echo '<span style="color:'.$conf['admintextcolor'].';">'.$text.'</span>';
}//8
elseif ($rowU['recht'] < -0)
{//9
echo '<span style="color:'.$conf['textcolor'].';">'.$text.'</span>';
}//9
else
{//10
echo '<span style="color:'.$conf['gasttextcolor'].';">'.$text.'</span>';
}//10
}//7
else
{//11
if ($rowU['recht'] == -9)
{//12
echo '<span style="color:'.$conf['admintextcolor'].';">'.$text.'</span>';
}//12
else
{//13
echo '<span style="color:'.$conf['textcolor'].';">'.$text.'</span>';
}//13
}//11
}//6
}
#
##
###
#### ShBox Name ####
function shbox_name($name,$datum) {
$abf = db_query('SELECT * FROM `prefix_shbox_config` WHERE id="1"');
$conf = db_fetch_assoc($abf);
$abfU = 'SELECT * FROM prefix_user WHERE name = "'.$name.'"';
$ergU = db_query($abfU);
$rowU = db_fetch_assoc($ergU);
if ($conf['admincolor'] == AUS)
{ //1
if ($conf['gastcolor'] == AUS)
{ //2
echo '<span style="color:'.$conf['namecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//2
else
{//3
if ($rowU['recht'] < -0)
{//4
echo '<span style="color:'.$conf['namecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//4
else
{//5
echo '<span style="color:'.$conf['gastnamecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//5
}//3
}//1
elseif ($conf['admincolor'] == AN)
{//6
if ($conf['gastcolor'] == AN)
{//7
if ($rowU['recht'] == -9)
{//8
echo '<span style="color:'.$conf['adminnamecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//8
elseif ($rowU['recht'] < -0)
{//9
echo '<span style="color:'.$conf['namecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//9
else
{//10
echo '<span style="color:'.$conf['gastnamecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//10
}//7
else
{//11
if ($rowU['recht'] == -9)
{//12
echo '<span style="color:'.$conf['adminnamecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//12
else
{//13
echo '<span style="color:'.$conf['namecolor'].';"> '.$datum.' '.utf8_encode($name).' </span></a>';
}//13
}//11
}//6
}
#
##
###
#### ShBox Ausgabe ####
function shbox() {
$abf = db_query('SELECT * FROM `prefix_shbox_config` WHERE id="1"');
$conf = db_fetch_assoc($abf);
$hr = '<hr style="height:0px;border:solid '.$conf['hrcolor'].' 0px;border-top-width: 1px;" />';
$wert = $conf['ausgabe'];
$erg = db_query('SELECT * FROM `prefix_shbox` ORDER BY id DESC LIMIT '.$wert);
while ($row = db_fetch_assoc($erg) ) {
$class = ( $class == $conf['hgcolor2'] ? $conf['hgcolor1'] : $conf['hgcolor2'] );
$text = substr($row['txt'], 0, $conf['textmax']);
$text = BBcode($text);
$text = preg_replace('/([^\s]{'.$conf['textzeile'].'})(?=[^\s])/',"$1\n", $text);
if($conf['datumzeit'] == JA)
{
$datum = $row['date'];
$name = $row['name'];
}
else
{
$datum = '';
$name = $row['name'];
}
echo '
<table width="'.$conf['tabellewidth'].'%" height="'.$conf['tabelleheight'].'%" border="0" bgcolor="'.$conf['tabellecolor'].'" cellpadding="0" cellspacing="0">
<tr bgcolor="'.$class.'" align="center">
<td>
<b>';
$abfU = 'SELECT * FROM prefix_user WHERE name = "'.escape($row['name'],'string').'"';
$ergU = db_query($abfU);
while ($rowU = db_fetch_assoc($ergU)){
<b><center>';
?>
<a href="index.php?user-details-<?php echo $rowU['id']; ?>" onmouseout="hideTooltip()" onmouseover="showTooltip(event,' <?php echo $row['date'] ?> ') ;return false">
<?php
}
echo $hr;
shbox_name($name,$datum);
echo '</b><br />';
shbox_text($text,$name);
echo '</center>
</td>
</tr>
</table>';
}
}
#
##
###
#### SMILIES angepasste Kopie vom Orginalen getsmilies() : Copyright by: Manuel Staechele ####
function shboxsmilies () {
$abf = db_query('SELECT * FROM `prefix_shbox_config` WHERE id="1"');
$conf = db_fetch_assoc($abf);
global $lang;
$zeilen = $conf['smilieszeile']; $i = 0;
$b = '<script language="JavaScript" type="text/javascript">function moreSmiliesshbox () { var x = window.open("about:blank", "moreSmiliesshbox", "width=250,height=200,status=no,scrollbars=yes,resizable=yes"); ';
$a = '';
$erg = db_query('SELECT emo, ent, url FROM `prefix_smilies`');
while ($row = db_fetch_object($erg) ) {
$b .= 'x.document.write ("<a href=\"javascript:opener.putt(\''.addslashes(addslashes($row->ent)).'\')\">");';
$b .= 'x.document.write ("<img style=\"border: 0px; padding: 5px;\" src=\"include/images/smiles/'.$row->url.'\" title=\"'.$row->emo.'\" ></a>");';
if ($i< $conf['smiliesspalte'])
{
if($i%$zeilen == 0 AND $i <> 0)
{
$a .= '<br /><br />';
}
$a .= '<a href="javascript:putt(\''.addslashes($row->ent).'\')" onmouseout="hideTooltip()" onmouseover="showTooltip(event,\''.$row->emo.'\');return false">';
$a .= '<img style="margin: 2px;" src="include/images/smiles/'.$row->url.'" border="0"></a>';
}
$i++;
}
$b .= ' x.document.write("<br /><br /><center><a href=\"javascript:window.close();\">'.$lang['close'].'</a></center>"); x.document.close(); }</script>';
if ($i> $conf['smiliesspalte'])
{
$a .= '<br /><br /><center><a href="javascript:moreSmiliesshbox();">'.$lang['more'].'</a></center>';
}
$a = $b.$a;
return ($a);
}
?>
kann aber auch sein das ich was am design ändern muss weil hab noch ne andere box drin da is das auch obwohl es auf mittig steht
Zuletzt modifiziert von Jarhead am 08.06.2009 - 10:13:33