Bład w podglądzie profilu.

Założony przez  skaju.

wersja skryptu MyBB: 1.6.12
adres forum: GamesPad
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu): Totalnie się zlewa tekst, znajomi z dodaj do listy ignorowanych i innymi.
Screen: http://gamespad.pl/hosting/images/bd.png

@Refresz.
H1Z1Forum.PL - Polska społeczność graczy H1Z1
Pomoże ktoś ? :)
H1Z1Forum.PL - Polska społeczność graczy H1Z1
Skopiuj zawartość szablonu member_profile z tego stylu i wgraj na nowo. Zmieniałeś coś w tym szablonie?

Może jakiś dodatek do profilu (plugin) spowodował taki wygląd profilu?
Pomoc poza forum - odpłatnie.
Wgrałem jeszce raz ten sam styl, i na nim wszysto działa, lecz na tym aktualnym nie.. Dodam też, że w tym szablonie nic nie dodawałem ;)
H1Z1Forum.PL - Polska społeczność graczy H1Z1
Porównaj oba te szablony (ze stylu oraz ten aktualny), może czymś się różnią.
Prośby na PW dotyczące wsparcia z problemami będą ignorowane. Pomoc poza forum - odpłatna; kontakt: snakemybboard@gmail.com.
Jeśli dodam ten sam styl na nowo, i go aktywuje podgląd działa normalnie. Następnie gdy włączyłem aktualny styl i dodałem działający szablon odpowiadający za podgląd profilu, dalej nie działa, a na nowym działa. Ten sam kod. W czym tkwi problem ?
H1Z1Forum.PL - Polska społeczność graczy H1Z1
Instalowałeś jakieś pluginy które dodają coś do profilu użytkownika?
Pomoc poza forum - odpłatnie.
Nie lecz zauważyłem, że nie przenosi mnie w te przyciski Posty, Tematy.
Tylko z nich wzięło odnośniki z nich i dodało na pierwszą stronę.
I teraz nie działają odnośniki Tematy / Posty tylko do linku dodaje mójlink.pl/tutaj user#TAB3
H1Z1Forum.PL - Polska społeczność graczy H1Z1
Pokaż ten szablon.
Prośby na PW dotyczące wsparcia z problemami będą ignorowane. Pomoc poza forum - odpłatna; kontakt: snakemybboard@gmail.com.
To aktualny (zepsuty):
<?php
    
    $query = $db->query("SELECT * FROM ".TABLE_PREFIX."users WHERE uid='".$memprofile['uid']."'");
    $query2 = $db->query("SELECT * FROM ".TABLE_PREFIX."userfields WHERE ufid='".$memprofile['uid']."'");
    
    $info = $db->fetch_array($query);
        $website = $info['website'];
        $group_id = $info['usergroup'];
        $repinfo = $info['reputation'];
        

        if($website == '') $website = 'Nie określono';
    
    $query3 = $db->query("SELECT * FROM ".TABLE_PREFIX."usergroups WHERE gid='$group_id'");
    $grupka = $db->fetch_array($query3);
    
    $grupa = format_name($grupka['title'], $grupka['gid']);
    
    $info2 = $db->fetch_array($query2);
        $miejscowosc = $info2['fid1'];
        $plec = $info2['fid3'];
        $osobie = $info2['fid2'];
        
        if($miejscowosc == '') $miejscowosc = 'Nie określono';
        if($plec == '') $plec = 'Nie określono';
        if($osobie == '') $osobie = '<center>Użytkownik nic o sobie nie napisał</center>';

?>

<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
</head>
<body>
{$header}

<div class="podglad">

<div class="info_podglad">
<div class="calosc_podglad">



<div class="lewa_podglad">
<div class="avatar_podglad">
<img src="{$memprofile['avatar']}" width="138" height="138" alt="" />
</div>
<ul class="tabs">
    <li><a href="#tab1">Przegląd</a></li>
    <li><a href="#tab3">Posty</a></li>
    <li style="border-bottom: none !important;"><a href="#tab4">Tematy</a></li>    
</ul>
</div>


<div class="prawa_podglad">
<div class="tab_container">
<span class="info_top">
<h1 class="nick_usera">{$memprofile['username']}</h1>
        <span class="info_o_userze">
        <ul>
<li>Rejestracja: {$memregdate}</li>
<li>{$online_status}</li>
         </ul>
</span>

</span>
    <div id="tab1" class="tab_content">

<div class="podglad_wrapper">

<div class="lewa_content">

<div class="tabela_podglad">

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="margin-bottom: 10px;">
<tr>
<td class="thead_p"><strong>
Statystyki
</strong></td>
</tr>
<tr>
<td class="trow_prof_stat1 ">
<div class="profil_lewo">Grupa:</div>
<div class="profil_lewoD">{$grupa}</div>
</td>
</tr>
<tr>
<td class="trow_prof_stat1 ">
<div class="profil_lewo">Całość postów:</div>
<div class="profil_lewoD">{$memprofile['postnum']}</div>
</td>
</tr>
<tr>
<td class="trow_prof_stat1 ">
<div class="profil_lewo">Czas online:</div>
<div class="profil_lewoD">{$timeonline}</div>
</td>
</tr>
<tr>
<td class="trow_prof_stat1 ">
<div class="profil_lewo">Tytuł:</div>
<div class="profil_lewoD">{$usertitle}</div>
</td>
</tr>
</tr>
<tr>
<td class="trow_prof_stat1 ">
<div class="profil_lewo">Wiek:</div>
<div class="profil_lewoD">{$membdayage}</div>
</td>
</tr>
<tr>
<td class="trow_prof_stat1 ">
<div class="profil_lewo">Urodziny:</div>
<div class="profil_lewoD">{$membday}</div>
</td>
</tr>
<tr>
<td class="trow_prof_stat1 ">
<div class="profil_lewo">Płeć:</div>
<div class="profil_lewoD">{$plec}</div>
</td>
</tr>
<tr>
<td class="trow_prof_stat1 ">
<div class="profil_lewo">Miejscowość:</div>
<div class="profil_lewoD">{$miejscowosc}</div>
</td>
</tr>
<tr>
<td class="trow_prof_stat1 ">
<div class="profil_lewo">Strona:</div>
<div class="profil_lewoD">{$website}</div>
</td>
</tr>
<tr>
<td class="trow_prof_stat1 ">
<div class="profil_lewo">Kontakt: </div>
<div class="profil_lewoD"><a href="private.php?action=send&amp;uid={$memprofile['uid']}">  Wyślij prywatną wiadomość.</a></div>
</td>
</tr>
</table>

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead_p"><strong>
O mnie
</strong></td>
</tr>
<tr>
<td class="trow_kat5">
{$osobie}
</td>
</tr>
</table>

{$signature}{$memprofile['ougc_awards']}

    </div>


</div>

<div class="prawa_content">
<?php
$a = "{$repinfo}";
$b = "0";

if($a > $b)
      echo "<div id='reputacja_pozytywna' class='tipTip' title='{$memprofile['username']} ma {$repinfo} pukntów reputacji'>
<div id='reputacja_liczba'>{$repinfo}</div>
<div id='reputacja_text'>Pozytywny</div>
</div>";
   elseif ($a == $b)
      echo "<div id='reputacja_neutral' class='tipTip' title='{$memprofile['username']} ma {$repinfo} pukntów reputacji'>
<div id='reputacja_liczba'>{$repinfo}</div>
<div id='reputacja_text'>Neutralny</div>
</div>";
   elseif ($a < $b)
      echo "<div id='reputacja_negatywna' class='tipTip' title='{$memprofile['username']} ma {$repinfo} pukntów reputacji'>
<div id='reputacja_liczba'>{$repinfo}</div>
<div id='reputacja_text'>Mniej niż Zero</div>
</div>";
?>

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="margin-bottom: 10px;">
<tr>
<td class="thead_p"><strong>
Znajomi
</strong></td>
</tr>
<tr>
<td class="trow_prof_stat1 ">


<?php
    $query = $db->query("SELECT * FROM ".TABLE_PREFIX."users WHERE uid='".$memprofile['uid']."'");
    
    while($array = $db->fetch_array($query))
    {  
        
        $tablica = explode(",", $array['buddylist']);
        $ile = count($tablica);
        
        if($array['buddylist'] == '') $informacja = '<center>Brak znajomych</center>';
        for($i=0; $i<$ile; $i++)
        {  
            $id = $tablica[$i];
            $query_znajomy = $db->query("SELECT * FROM ".TABLE_PREFIX."users WHERE uid='$id'");
            while($array_znajomy = $db->fetch_array($query_znajomy))
            {  
                $avatar = $array_znajomy['avatar'];
                $nick = $array_znajomy['username'];
                $id = $array_znajomy['uid'];

                          echo "<a href='member.php?action=profile&uid={$id}'><img src='{$avatar}' title='{$nick}' class='tipTip userAvatar' width='34' height='34'></a>";
            }
            
        }
        
    }
?>


{$informacja}

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



{$buddy_list}
{$buddy_options}


{$modoptions}
{$adminoptions}


</div>

</div>

</div>
<div id="tab2" class="tab_content">
<div class="tabela_podglad" style="margin-top: 95px;">
    <div>
            <h3>Friends</h3>
            
                Lista przyjaciół
            
        </div>
<br>
        
</div>
    </div>
<div id="tab3" class="tab_content">
        {$ostatnie_posty}
<center><a href="search.php?action=finduser&amp;uid={$uid}">Kliknij tutaj aby wyszukać posty napisane przez {$formattedname}</a></center>
    </div>
    <div id="tab4" class="tab_content">

        {$ostatnie_tematy}
<center><a href="search.php?action=finduserthreads&amp;uid={$uid}">Kliknij tutaj aby wyszukać tematy napisane przez {$formattedname}</a></center>
    </div>
    <div id="tab5" class="tab_content">
       Reputacja
    </div>
    <div id="tab6" class="tab_content">
       Shoutbox
    </div>
    </div>


</div>
</div>


</div>
</div>



  
{$footer}
</body>
</html>

A to ten sam tylko działający:
<?php
    
    $query = $db->query("SELECT * FROM ".TABLE_PREFIX."users WHERE uid='".$memprofile['uid']."'");
    $query2 = $db->query("SELECT * FROM ".TABLE_PREFIX."userfields WHERE ufid='".$memprofile['uid']."'");
    
    $info = $db->fetch_array($query);
        $website = $info['website'];
        $group_id = $info['usergroup'];
        $repinfo = $info['reputation'];
        

        if($website == '') $website = 'Nie określono';
    
    $query3 = $db->query("SELECT * FROM ".TABLE_PREFIX."usergroups WHERE gid='$group_id'");
    $grupka = $db->fetch_array($query3);
    
    $grupa = format_name($grupka['title'], $grupka['gid']);
    
    $info2 = $db->fetch_array($query2);
        $miejscowosc = $info2['fid1'];
        $plec = $info2['fid3'];
        $osobie = $info2['fid2'];
        
        if($miejscowosc == '') $miejscowosc = 'Nie określono';
        if($plec == '') $plec = 'Nie określono';
        if($osobie == '') $osobie = '<center>Użytkownik nic o sobie nie napisał</center>';

?>

<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
</head>
<body>
{$header}

<div class="podglad">

<div class="info_podglad">
<div class="calosc_podglad">



<div class="lewa_podglad">
<div class="avatar_podglad">
<img src="{$memprofile['avatar']}" width="138" height="138" alt="" />
</div>
<ul class="tabs">
    <li><a href="#tab1">Przegląd</a></li>
    <li><a href="#tab3">Posty</a></li>
    <li style="border-bottom: none !important;"><a href="#tab4">Tematy</a></li>    
</ul>
</div>


<div class="prawa_podglad">
<div class="tab_container">
<span class="info_top">
<h1 class="nick_usera">{$memprofile['username']}</h1>
        <span class="info_o_userze">
        <ul>
<li>Rejestracja: {$memregdate}</li>
<li>{$online_status}</li>
         </ul>
</span>

</span>
    <div id="tab1" class="tab_content">

<div class="podglad_wrapper">

<div class="lewa_content">

<div class="tabela_podglad">

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="margin-bottom: 10px;">
<tr>
<td class="thead_p"><strong>
Statystyki
</strong></td>
</tr>
<tr>
<td class="trow_prof_stat1 ">
<div class="profil_lewo">Grupa:</div>
<div class="profil_lewoD">{$grupa}</div>
</td>
</tr>
<tr>
<td class="trow_prof_stat1 ">
<div class="profil_lewo">Całość postów:</div>
<div class="profil_lewoD">{$memprofile['postnum']}</div>
</td>
</tr>
<tr>
<td class="trow_prof_stat1 ">
<div class="profil_lewo">Czas online:</div>
<div class="profil_lewoD">{$timeonline}</div>
</td>
</tr>
<tr>
<td class="trow_prof_stat1 ">
<div class="profil_lewo">Tytuł:</div>
<div class="profil_lewoD">{$usertitle}</div>
</td>
</tr>
</tr>
<tr>
<td class="trow_prof_stat1 ">
<div class="profil_lewo">Wiek:</div>
<div class="profil_lewoD">{$membdayage}</div>
</td>
</tr>
<tr>
<td class="trow_prof_stat1 ">
<div class="profil_lewo">Urodziny:</div>
<div class="profil_lewoD">{$membday}</div>
</td>
</tr>
<tr>
<td class="trow_prof_stat1 ">
<div class="profil_lewo">Płeć:</div>
<div class="profil_lewoD">{$plec}</div>
</td>
</tr>
<tr>
<td class="trow_prof_stat1 ">
<div class="profil_lewo">Miejscowość:</div>
<div class="profil_lewoD">{$miejscowosc}</div>
</td>
</tr>
<tr>
<td class="trow_prof_stat1 ">
<div class="profil_lewo">Strona:</div>
<div class="profil_lewoD">{$website}</div>
</td>
</tr>
<tr>
<td class="trow_prof_stat1 ">
<div class="profil_lewo">Kontakt: </div>
<div class="profil_lewoD"><a href="private.php?action=send&amp;uid={$memprofile['uid']}">  Wyślij prywatną wiadomość.</a></div>
</td>
</tr>
</table>

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead_p"><strong>
O mnie
</strong></td>
</tr>
<tr>
<td class="trow_kat5">
{$osobie}
</td>
</tr>
</table>

{$signature}{$memprofile['ougc_awards']}

    </div>


</div>

<div class="prawa_content">
<?php
$a = "{$repinfo}";
$b = "0";

if($a > $b)
      echo "<div id='reputacja_pozytywna' class='tipTip' title='{$memprofile['username']} ma {$repinfo} pukntów reputacji'>
<div id='reputacja_liczba'>{$repinfo}</div>
<div id='reputacja_text'>Pozytywny</div>
</div>";
   elseif ($a == $b)
      echo "<div id='reputacja_neutral' class='tipTip' title='{$memprofile['username']} ma {$repinfo} pukntów reputacji'>
<div id='reputacja_liczba'>{$repinfo}</div>
<div id='reputacja_text'>Neutralny</div>
</div>";
   elseif ($a < $b)
      echo "<div id='reputacja_negatywna' class='tipTip' title='{$memprofile['username']} ma {$repinfo} pukntów reputacji'>
<div id='reputacja_liczba'>{$repinfo}</div>
<div id='reputacja_text'>Mniej niż Zero</div>
</div>";
?>

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="margin-bottom: 10px;">
<tr>
<td class="thead_p"><strong>
Znajomi
</strong></td>
</tr>
<tr>
<td class="trow_prof_stat1 ">


<?php
    $query = $db->query("SELECT * FROM ".TABLE_PREFIX."users WHERE uid='".$memprofile['uid']."'");
    
    while($array = $db->fetch_array($query))
    {  
        
        $tablica = explode(",", $array['buddylist']);
        $ile = count($tablica);
        
        if($array['buddylist'] == '') $informacja = '<center>Brak znajomych</center>';
        for($i=0; $i<$ile; $i++)
        {  
            $id = $tablica[$i];
            $query_znajomy = $db->query("SELECT * FROM ".TABLE_PREFIX."users WHERE uid='$id'");
            while($array_znajomy = $db->fetch_array($query_znajomy))
            {  
                $avatar = $array_znajomy['avatar'];
                $nick = $array_znajomy['username'];
                $id = $array_znajomy['uid'];

                          echo "<a href='member.php?action=profile&uid={$id}'><img src='{$avatar}' title='{$nick}' class='tipTip userAvatar' width='34' height='34'></a>";
            }
            
        }
        
    }
?>


{$informacja}

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



{$buddy_list}
{$buddy_options}


{$modoptions}
{$adminoptions}


</div>

</div>

</div>
<div id="tab2" class="tab_content">
<div class="tabela_podglad" style="margin-top: 95px;">
    <div>
            <h3>Friends</h3>
            
                Lista przyjaciół
            
        </div>
<br>
        
</div>
    </div>
<div id="tab3" class="tab_content">
        {$ostatnie_posty}
<center><a href="search.php?action=finduser&amp;uid={$uid}">Kliknij tutaj aby wyszukać posty napisane przez {$formattedname}</a></center>
    </div>
    <div id="tab4" class="tab_content">

        {$ostatnie_tematy}
<center><a href="search.php?action=finduserthreads&amp;uid={$uid}">Kliknij tutaj aby wyszukać tematy napisane przez {$formattedname}</a></center>
    </div>
    <div id="tab5" class="tab_content">
       Reputacja
    </div>
    <div id="tab6" class="tab_content">
       Shoutbox
    </div>
    </div>


</div>
</div>


</div>
</div>



  
{$footer}
</body>
</html>
H1Z1Forum.PL - Polska społeczność graczy H1Z1
Oba pliki są identyczne...
Pomoc poza forum - odpłatnie.
No właśnie :)
Dlatego nie wiem w czym tkwi problem
H1Z1Forum.PL - Polska społeczność graczy H1Z1
No to problem nie leży w tym szablonie. Porównaj resztę szablonów z podglądu profilu (z tymi ze stylu, który działa).
Prośby na PW dotyczące wsparcia z problemami będą ignorowane. Pomoc poza forum - odpłatna; kontakt: snakemybboard@gmail.com.



Użytkownicy przeglądający ten wątek:

1 gości