Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Strike (http://www.bvlist.com/forumdisplay.php?f=21)
-   -   Shoutbox (http://www.bvlist.com/showthread.php?t=631)

ReNeJcEk 14th July 2008 21:56

Shoutbox
 
I dont get it :S on Internet Explorer is background white... but in firefox is background black.. so then is text not visibile beacuse my text is black... and i cant find in shoutbox.php which color i must replace.. pls help..
Any other ideas?
Tnx :sos:

djlee 14th July 2008 23:30

Re: Shoutbox
 
post your shoutbox.php :)

ReNeJcEk 14th July 2008 23:38

Re: Shoutbox
 
Code:

/*****************************

Hannes' ShoutBox v1.0

*****************************/

require_once("include/bittorrent.php");
dbconn(false);

loggedinorreturn();

//deleting messages

if (isset($_GET['del']))
{
if (is_numeric($_GET['del']))
{
$query = "SELECT * FROM shoutbox WHERE id=".$_GET['del'];
$result = mysql_query($query);
}
else {echo "invalid msg id STOP TRYING TO INJECT SQL TIT HEAD";exit;
}

$row = mysql_fetch_row($result);

if ( (get_user_class() >= UC_MODERATOR) )
{
$query = "DELETE FROM shoutbox WHERE id=".$_GET['del'];
mysql_query($query);
}
}
// EDIT SHOUT ?
if (isset($_GET['edit']) && get_user_class() >= UC_MODERATOR && is_valid_id($_GET['edit']))
{       
        $sql=sql_query("SELECT id,text FROM shoutbox WHERE id=".sqlesc($_GET['edit']));
        $res=mysql_fetch_array($sql);
        ?>
       
       
       
       
       
       
       
       
       
                echo '
';
        echo '';
        echo '';
        echo '';
        echo '
';
        die;
}
// UPDATE SHOUT?
if (isset($_POST['text']) && get_user_class() >= UC_MODERATOR && is_valid_id($_POST['id']))
{
        $text = trim($_POST['text']);
        $id = (int)$_POST['id'];
        if (isset($text) && isset($id) && is_valid_id($id))
                sql_query("UPDATE shoutbox SET text = ".sqlesc($text)." WHERE id=".sqlesc($id));
}

?>

Klepetalnica







/*
if ($CURUSER["chatpost"] == 'no')
{
print("


You are banned.

");
exit;
}
else
{
*/

if($_GET["sent"]=="yes")
{
$userid=$CURUSER["id"];
$username=$CURUSER["username"];
$date=time();
$text=trim($_GET["shbox_text"]);

mysql_query("INSERT INTO shoutbox (id, userid, username, date, text) VALUES ('id'," . sqlesc($userid) . ", " . sqlesc($username) . ", $date, " . sqlesc($text) . ")") or sqlerr(__FILE__, __LINE__);
}

$res = mysql_query("SELECT * FROM shoutbox ORDER BY date DESC LIMIT 35") or sqlerr(__FILE__, __LINE__);
if (mysql_num_rows($res) == 0)
print("\n");
else
{
print("\n");

while ($arr = mysql_fetch_assoc($res))
{
$res2 = mysql_query("SELECT username,class,avatar,donor, title,enabled,warned FROM users WHERE id=$arr[userid]") or sqlerr(__FILE__, __LINE__);
$arr2 = mysql_fetch_assoc($res2);
$resowner = mysql_query("SELECT id, username, class FROM users WHERE id=$arr[userid]") or print(mysql_error());
$rowowner = mysql_fetch_array($resowner);


if ($rowowner["class"] == "96")
$usercolor= "" .htmlspecialchars($rowowner["username"]). "";
elseif ($rowowner["class"] == "80")
$usercolor= "" .htmlspecialchars($rowowner["username"]). "";
elseif ($rowowner["class"] == "64")
$usercolor= "" .htmlspecialchars($rowowner["username"]). "";
elseif ($rowowner["class"] == "48")
$usercolor= "" .htmlspecialchars($rowowner["username"]). "";
elseif ($rowowner["class"] == "32")
$usercolor= "" .htmlspecialchars($rowowner["username"]). "";
elseif ($rowowner["class"] == "16")
$usercolor= "" .htmlspecialchars($rowowner["username"]). "";
elseif ($rowowner["class"] == "0")
$usercolor= "" .htmlspecialchars($rowowner["username"]). "";

if (get_user_class() >= UC_MODERATOR) {
$del="[Izbrisi]";
$edit="[Uredi]\n";
}
$pm = "[Pm]\n";
print("\n");
}
print("
|".strftime("%H:%M",$arr["date"])."|
$del$edit$pm

$usercolor" .
($arr2["donor"] == "yes" ? "[img].[/img]" : "") .
($arr2["class"] == "96" ? "[img].[/img]" : "") .
($arr2["class"] == "80" ? "[img].[/img]" : "") .
($arr2["class"] == "64" ? "[img].[/img]" : "") .
($arr2["class"] == "48" ? "[img].[/img]" : "") .
($arr2["class"] == "32" ? "[img].[/img]" : "") .
($arr2["class"] == "16" ? "[img].[/img]" : "") .
($arr2["class"] == "0" ? "[img].[/img]" : "") .
($arr2["warned"] == "yes" ? "[img].[/img]" : "") .
" ".format_comment($arr["text"])."
");


}


?>



djlee 15th July 2008 01:15

Re: Shoutbox
 
find around line 93
Code:


change to
Code:


ive added the body tag to the style ... the #FFFFFF value of background color sets the back color to white (FFFFFF=white) and the attribute color sets the text color which ive set as black (000000=black). Hopefully that will stop the browser making its own mind up.

If that dont work post a screen pic of both an IE view and a firefox view of the shoutbox

ReNeJcEk 15th July 2008 01:36

Re: Shoutbox
 
Ive try it ..but it doesnt work :(

:sos: :suicide:

djlee 15th July 2008 02:15

Re: Shoutbox
 
hmm now u got me ... can i suggest posting the page which displays the shoutbox (usually index.php)



ReNeJcEk 15th July 2008 04:24

Re: Shoutbox
 
Code:

//-->





Sporocilo:


Osvezi
























djlee 15th July 2008 15:59

Re: Shoutbox
 
ok now u got me ... i cant see nothing wrong with any of it ... all i can suggest is try using a default shoutbox.php from the latest source package and see what happens .. or u can wait for someone that has used torrentstrike before to come along and help.. sorry dude :P

allroms 16th July 2008 22:51

Re: Shoutbox
 
@ shoutbox you have to change this part :
(background-color) @ line = ~50

Code:




All times are GMT +2. The time now is 16:56.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.