Welcome, Guest. Please Login or Register.
April 29, 2025, 04:20:45 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  German User Help  |  Hilfe zu YaBB SE  |  Fehler in Profile.php « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Fehler in Profile.php  (Read 387 times)
Alex1987
Noobie
*
Posts: 47


Fehler in Profile.php
« on: December 06, 2002, 05:30:22 PM »
Reply with quote

Hi,
wenn ich auf mein Profil gehe, oder eins meiner Mitglieder ansehe kommt eine Fehlermeldung:
QuoteParse error: parse error, unexpected T_ELSE in /hdc1/home/sulfrian/htdocs/forum/Sources/Profile.php on line 884
und das ganze Profil kann man nicht ansehen, weil da die hälfe der Seite durch den Forumsindex verdecht ist und nach
Position: ************
ist nichts mehr zu sehen.

Da das Problem so wie ich das sehe mit meiner Profile.php zusammenhängt hab ich die mal in mein Forum gepostet:
über dieses Forum - Probleme - Meine Profile.php
( www.sulfrian-forum.de.vu )
Ich hoffe ihr könnt mir helfen.

Danke

Alexander

<edit> Hab nochmal meine Profile.php hochgelanden (als *.txt). Da ich festgestellt hatte, dass man sie sonst nicht lesen kann! </edit>
« Last Edit: December 06, 2002, 07:21:15 PM by Alex1987 » Logged
Cradle_Sun
Full Member
***
Posts: 111


will testing it....

ICQ - 93038398voodoosnake@hotmail.com WWW
Re:Fehler in Profile.php
« Reply #1 on: December 07, 2002, 08:08:18 AM »
Reply with quote

leider kann man noch nicht daraus schliessen - wo der Fehler liegen könnte! Ich schätze Du hast ein Mod instaliert und nicht alle veränderten Daten übertragen.
Poste bitte den Block der um die Zeile 884 steh.

 
Logged

Wer auf der Stelle tritt, kommt nicht voran!
http://dwmform.de
Alex1987
Noobie
*
Posts: 47


Re:Fehler in Profile.php
« Reply #2 on: December 07, 2002, 11:13:11 AM »
Reply with quote

Hi,
ich hab in meinem Forum, ja schon die Profile.php hochgeladen (als *.txt) aber ich poste hier nochmal den Ausschnitt von Zeile 846 bis Zeile 910:

print <<<EOT
 <table border="0" cellpadding="4" cellspacing="1" bgcolor="$color[bordercolor]" class="bordercolor" align="center">
  <tr>
    <td class="titlebg" colspan="2" bgcolor="$color[titlebg]">
    <table border="0" cellspacing="0" cellpadding="0" width="100%">
      <tr>
        <td width="220" height="30">
        <img src="$imagesdir/profile_sm.gif" alt="" border="0">&nbsp;
        <font size=2 class="text1" color="$color[titletext]"><B>$txt[35]: $user</b></font></td>
        <td align="center" width="200">
        <font size=2 class="text1" color="$color[titletext]">$modify</font></td>
        <td align="center" width="150">
        <font size=2 class="text1" color="$color[titletext]">$txt[232]</font></td>
      </tr>
    </table>
    </td>
  </tr><tr>
    <td bgcolor="$color[windowbg]" class="windowbg" width="420">
    <table border=0 cellspacing="0" cellpadding="2" width="100%">
      <tr>
        <td><font size=2><b>$txt[68]: </b></font></td>
        <td><font size=2>$memsettings[1]</font></td>
        </tr><tr>
        $userTitle
        <td><font size=2><b>$txt[86]: </b></font></td>
        <td><font size=2>$memsettings[6]</font></td>
      </tr><tr>
        <td><font size=2><b>$txt[87]: </b></font></td>
        <td><font size=2>$memberinfo</font></td>
      </tr><tr>

      EOT;
   if ($settings[7] != "Administrator")
{
print <<<EOT

EOT;
}
   else {
print <<<EOT
      <tr>
   <td width="45%"><font size=2><b>IP: </b></font></td>
<td><font size=2><a href="http://www.nic.com/cgi-bin/whois.cgi?query=$memberIP" target="_blank">$memberIP</font></td>
      </tr>
EOT;
}
print <<<EOT
EOT;
   if ($settings[7] != "Global Moderator")
   else {
    if ($modSettings['gmodban']==1) {
    print <<<EOT
    <tr>
    <td width="45%"><font size=2><b>IP: </b></font></td>
    <td><font size=2><a href="http://www.nic.com/cgi-bin/whois.cgi?query=$memberIP"   target="_blank">$memberIP</font></td>
    </tr>
{
print <<<EOT

EOT;
}

EOT;
}
}

Hoffe, dass hilft.

Danke
Logged
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:Fehler in Profile.php
« Reply #3 on: December 07, 2002, 12:00:14 PM »
Reply with quote

Quote from: Alex1987 on December 06, 2002, 05:30:22 PM...hab ich die mal in mein Forum gepostet...
Du erwartest doch nicht, dass wir uns da anmelden, nur um den Code zu sehen ?!? Mache bitte mal einen Test-Account. Solche Aktionen werden von vielen als "Wie-bekomme-ich-neue-User" Sache gesehen... :-\
Logged

chris
Guest
Re:Fehler in Profile.php
« Reply #4 on: December 07, 2002, 12:48:38 PM »
Reply with quote

*seufz*

Die Fehlermeldung lautet

QuoteParse error: parse error, unexpected T_ELSE in /hdc1/home/sulfrian/htdocs/forum/Sources/Profile.php on line 884

Mehr als Klartext reden kann PHP nunmal nicht.... da ist ein unerwartetes ELSE.... also schauen wir mal....

if ($settings[7] != "Global Moderator")
  else {

....da fehlt wohl was.... das muss irgendwie so aussehen:

if ($settings[7] != "Global Moderator")
{
// Hier fehlt vermutlich was aus irgendeinem MOD
}
  else {
« Last Edit: December 07, 2002, 12:50:17 PM by Christian Land » Logged
Alex1987
Noobie
*
Posts: 47


Re:Fehler in Profile.php
« Reply #5 on: December 07, 2002, 05:06:03 PM »
Reply with quote

Danke!!!!!!!

Alexander Sulfrian

PS: Hatte ich nicht eigentlich Gästen Leserecht gegeben???? Muss ich nochmal überprüfen. Danke
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  German User Help  |  Hilfe zu YaBB SE  |  Fehler in Profile.php « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.030 seconds with 19 queries.