Fouten || Help!

Gestart doorBengt13 reacties40 weergaven

14 berichten · pagina 1 van 1

Bengt

Lid · Topicstarter

Berichten
803
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hallo,

Ik zit nu met 2 probleempjes die ik niet opgelost krijg. Als deze opgelost zijn gaat Spinix online.

Probleem 1:
In Firefox ziet mijn shoutbox er zo uit:
Afbeelding
In Internet Explorer ziet hij er zo uit:
Afbeelding

Hoe kan ik dit goed krijgen?

Style.css:

#content #shout { width: 799px; height: 49px; background: url(img/shout.png); margin: 0 auto; padding-top: 4px; padding-left: 10px;


Shout.php

<div class="shout" id="shout_<?=$bFetch[id] ?>" ">
        
            <table cellspacing="0" cellpadding="0" width="100%">
                <tr>
                    <td width="40" style="padding-top: 6px; padding-left: 5px;">
                    <a href="http://<?=htmlentities($bFetch[poster]); ?>.bengt.s2.one2xs.com/">
                    <?=$avatar; ?>
                    </td>
                    <td style="padding-left: 7px;">
                    [COLOR= #0000BB]<?php[/COLOR] 
                    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]kleur[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"roze"[/COLOR][COLOR= #007700])
                        {[/COLOR]
                            ?>
                            <a href="http://<?=htmlentities($bFetch[poster]); ?>.bengt.s2.one2xs.com/"><b><font color=fuchsia><?=htmlentities($bFetch[poster]); ?></font></b></a>: <?=smilies(htmlentities(stripslashes($bFetch[bericht]))); ?> <font color="#BBBBBB">~ Geplaatst op <?=smilies(htmlentities(stripslashes($bFetch[gepostop])));?></font> 
                        [COLOR= #0000BB]<?php[/COLOR] 
                        [COLOR= #007700]}[/COLOR]
                    [URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]kleur[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"blauw"[/COLOR][COLOR= #007700])
                        {[/COLOR]
                        ?>
                            <a href="http://<?=htmlentities($bFetch[poster]); ?>.bengt.s2.one2xs.com/"><b><font color=blue><?=htmlentities($bFetch[poster]); ?></font></b></a>: <?=smilies(htmlentities(stripslashes($bFetch[bericht]))); ?> <font color="#BBBBBB">~ Geplaatst op <?=smilies(htmlentities(stripslashes($bFetch[gepostop])));  ?></font>
                        [COLOR= #0000BB]<?php[/COLOR]
                        [COLOR= #007700]}[/COLOR]            
    [URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]kleur[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"rood"[/COLOR][COLOR= #007700])
                        {[/COLOR]
                        ?>
                            <a href="http://<?=htmlentities($bFetch[poster]); ?>.bengt.s2.one2xs.com/"><b><font color=red><?=htmlentities($bFetch[poster]); ?></font></b></a>: <?=smilies(htmlentities(stripslashes($bFetch[bericht]))); ?> <font color="#BBBBBB">~ Geplaatst op <?=smilies(htmlentities(stripslashes($bFetch[gepostop])));  ?></font>
                        [COLOR= #0000BB]<?php[/COLOR]
                        [COLOR= #007700]}[/COLOR]                            
                    [URL="http://www.php.net/else"]else[/URL]
                        [COLOR= #007700]{[/COLOR]
                        ?>
                            <a href="http://<?=htmlentities($bFetch[poster]); ?>.bengt.s2.one2xs.com/"><b><font color=black><?=htmlentities($bFetch[poster]); ?></font></b></a>: <?=smilies(htmlentities(stripslashes($bFetch[bericht]))); ?><font color="#BBBBBB"> ~ Geplaatst op <?=smilies(htmlentities(stripslashes($bFetch[gepostop])));  ?></font>
                        [COLOR= #0000BB]<?php[/COLOR]
                        [COLOR= #007700]}[/COLOR]                
                        ?>

                    
                    </td>
                </tr>
            </table>
            
            </div>


Beloning: 0,2

Probleem 2:

Het is de bedoeling dat mensen de gelegenheid hebben om zijn/haar kleur van zijn/haar gebruikersnaam te veranderen.
Deze zou dan te zien zijn in het forum.
Bij de headpost werkt alles perfect, de kleur verandert mee, alleen bij het reageren blijft de naamkleur zwart!

echo <br /><br />;
        $rQuery = mysql_query("SELECT * FROM forumreactie WHERE forumid = " . $topicid . " ORDER BY id ASC LIMIT " . $p . "," . $per_pagina . " ") or die(mysql_error());    
        if (mysql_num_rows($rQuery) == "0")
        {
            echo <div style="border: 1px #ccc solid; "><center>Er zijn nog geen reacties gepost</center></div>;
        }
        while ($rFetch = mysql_fetch_assoc($rQuery))
        {
            $uQuery2 = mysql_query("SELECT * FROM leden WHERE naam = " . $rFetch[poster] . "");
            $uFetch2 = mysql_fetch_assoc($uQuery2);
            $oQuery = mysql_query("SELECT ingelogd FROM leden WHERE DATE_ADD(laatstactief, INTERVAL 300 SECOND) > NOW()
 AND naam = " . mysql_real_escape_string($rFetch[poster]) . " ORDER BY naam ASC") or die(mysql_error());
             $oFetch = mysql_fetch_assoc($oQuery);
             if (mysql_num_rows($oQuery) != 1)
             {
                 $online = <img src="img/bullet_red.png" alt="Offline" border="0" />;
             }else{
                 $online = <img src="img/bullet_green.png" alt="Online" border="0" />;
             }
            if (empty($uFetch2[avatar]))
            {
                $avatar2 = "<br />";
            }else{
                $avatar2 = <center><img src="avatar/ . $uFetch2[avatar] . " width="100" height="100" /></center>;
            }
            
            
            
            if ($uFetch2[status] == 0) {
                $naamuser = <a href="http://.$uFetch2[poster]..bengt.s2.one2xs.com/">.ucfirst($uFetch[naam]).</a>;
                $status = &nbsp;&nbsp;&nbsp;&nbsp;Lid;
            }elseif ($uFetch2[status] == 1)    {
                $naamuser = <a href="http://.$uFetch2[poster]..bengt.s2.one2xs.com/"><span style="color:green;">.ucfirst($uFetch[naam]).</span></a>;
                $status = &nbsp;&nbsp;&nbsp;&nbsp;Moderator;
            }elseif ($uFetch2[kleur] == zwart)    {
                $naamuser = <a href="http://.$uFetch2[poster]..bengt.s2.one2xs.com/"><span style="color:black;">.ucfirst($uFetch[naam]).</span></a>;
                $status = &nbsp;&nbsp;&nbsp;&nbsp;Lid;
            }
            elseif ($uFetch2[kleur] == roze)    {
                $naamuser = <a href="http://.$uFetch2[poster]..bengt.s2.one2xs.com/"><span style="color:fuchsia;">.ucfirst($uFetch[naam]).</span></a>;
                $status = &nbsp;&nbsp;&nbsp;&nbsp;Lid;
            }elseif ($uFetch2[kleur] == blauw)    {
                $naamuser = <a href="http://.$uFetch2[poster]..bengt.s2.one2xs.com/"><span style="color:blue;">.ucfirst($uFetch[naam]).</span></a>;
                $status = &nbsp;&nbsp;&nbsp;&nbsp;Lid;
            }elseif ($uFetch2[status] == 2)    {
                $naamuser = <a href="http://.$uFetch2[poster]..bengt.s2.one2xs.com/"><span style="color:red;">.ucfirst($uFetch[naam]).</span></a>;
                $status = &nbsp;&nbsp;&nbsp;&nbsp;Beheerder;
            }else{
                $naamuser = <a href="http://.$uFetch2[poster]..bengt.s2.one2xs.com/">.ucfirst($uFetch[naam]).</a>;
                $status = &nbsp;&nbsp;&nbsp;&nbsp;Verbannen;
            }
            
            
            if (empty($rFetch[gewijzigddoor]))
            {
                $gewijzigd = "<br />";
            }else{
                $gewijzigd = <br /><em>Laatst aangepast door <strong> . ucfirst($rFetch[gewijzigddoor]) . </strong> op  . datenl($rFetch[gewijzigdop]) . </em>;
            }
            if (ucfirst($rFetch[poster]) == ucfirst($_SESSION[login]) || $sFetch[status] >= "1")
            {
                $wijzigen =  - <a href="forum?soort=1&wijzigen= . $rFetch[id] . "><img src="img/pencil.png" alt="Wijzigen" border="0"/></a>;
            }else{
                $wijzigen = ;
            }
            if (isset($uFetch2[onderschrift]) && !empty($uFetch2[onderschrift]))
            {
                $onderschrift = <br /><br /><div style="border-top: 1px #ccc solid; width: 680px; float: left;"> . $uFetch2[onderschrift] . </div>;
            }else{
                $onderschrift = ;
            }
            $tekst = $rFetch[tekst];
            $tekst = smilies($tekst);
            $tekst = str_replace("\",,$tekst);
            echo <div class="vak" style="overflow:hidden; repeat-y; border: 1px #ccc solid;">
                <div style="float: left; padding: 0px 0px 0px 0px; width: 120px;">
                    <center><strong> . $online . .$uFetch2[naam].</strong></center>
                     . $status . 
                     . $avatar2 . 
                    &nbsp;&nbsp;Forumposts: .$uFetch2[forumposts].
                </div>;
    echo <div style="float: left;"><strong>Gepost op:  . datenl($rFetch[datum]) .  . $wijzigen . </strong>;
    if ($sFetch[status] >= "1"){
        echo <a href="forum?delete= . $rFetch[id] . "><img src="images/editor_delete.gif" border="0"></a>;
     }
     if (isset($_SESSION[login]))
     {
     ?>
         <a onclick="javascript:tinyMCE.execInstanceCommand(bericht,mceSetContent,false,[QUOTE]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$rFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]poster[/COLOR][COLOR= #007700]];[/COLOR] ?>][COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$rFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]tekst[/COLOR][COLOR= #007700]],[/COLOR] ENT_QUOTES[COLOR= #007700]);[/COLOR] ?>[/quote]);"><img src="img/comments.png" border="0" /></a>[COLOR= #0000BB]<?php[/COLOR] [COLOR= #FF8000]//<a onclick="document.getElementById(report_<?=$rFetch[id];).style.display=block;">Report</a><br />[/COLOR]
         ?>
         [COLOR= #0000BB]<?php[/COLOR]
     [COLOR= #007700]}[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<br />[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/stripslashes"]stripslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$tekst[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #0000BB]$gewijzigd[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]<br />[/COLOR] [COLOR= #007700].[/COLOR] smilies[COLOR= #007700]([/COLOR][COLOR= #0000BB]$onderschrift[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]</div></div>[/COLOR][COLOR= #007700];[/COLOR]
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit_report[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$rFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700]]))
    {[/COLOR]
        [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
        error[COLOR= #007700]([/COLOR][COLOR= #DD0000]green[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]Dankjewel, er word zo snel mogelijk na gekeken[/COLOR][COLOR= #007700]);
    }[/COLOR]
    ?>
    <div id="report_<?=$rFetch[id];?>" style="display: none; border: 1px #CCC solid;">
    <br />
    <form action="" method="post">
    Geef aan waarom jij vind dat deze post niet kan.<br />
    <strong>Misbruik wordt bestraft!</strong><br />
    <textarea name="wn" style="width: 100%;"></textarea><br />
    <input type="submit" name="submit_report<?=$rFetch[id]; ?>" value="Reporten" />
    </div>
    <br />


Beloning: 0,4

-Bengt

EDIT:LET OP: Deze scripts mogen ABSOLUUT niet gebruikt worden.
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Probleem 1: vertical-align
De rest moet je zelf maar uitzoeken wink
0
Bengt

Lid · Topicstarter

Berichten
803
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
bedankt, als het ook daad werkelijk werkt ontvang je de vergoeding
0
Bengt

Lid · Topicstarter

Berichten
803
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bump, helaas het werkte niet
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
probleem 1: line-height: ..px; (hoogte van die afbeelding) en dan wel padding-top weghalen anders staat die in andere browsers weer te laag.

probeel 2 kan ik je niet mee helpen.
0
Bengt

Lid · Topicstarter

Berichten
803
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Helaas, dit werkt ook niet!
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Moet het niet zo zijn:

#content .shout { width: 799px; height: 49px; background: url(img/shout.png); margin: 0 auto; padding-top: 4px; padding-left: 10px;
0
Bengt

Lid · Topicstarter

Berichten
803
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Helaas, nu valt de hele background weg..
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
die . (punt) is voor als je een class gebruikt en die # is als je een id gebruikt...beide kan trouwens niet (zie ik nu pas emo)

zet eens bij op regel 9 margin:0; erbij, kijken of dat helpt?
0
Bengt

Lid · Topicstarter

Berichten
803
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ff proberen

EDIT: helaas, wieder geen effect..
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
en als je in die regel nou eens die line-heigth zet wat ik eerder zei?
0
Berichten
1.560
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Misschien even shout.php weghalen? Want anders kan iedereen hem klakkeloos kopieeren
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Tim, die shoutbox kan je overal downloaden hoor.. Is gewoon gratis en niet zelf gemaakt emo
0
Bengt

Lid · Topicstarter

Berichten
803
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb hem wel helemaal veranderd dus, bedankt voor het melden

EDIT: Niemand die me kan helpen? :|
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren