Webboard

Pełna wersja: Problem z stylem
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
Witajcie mam problem z wejsciem w Profil uzytkownika Nie Wiem Dlaczego i W czym moze leżeć bład proszę o pomoc jak naprawić to   http://turboshot.pl/member.php?action=profile&uid=1
Wklej zawartość member_profile
Kod PHP:
<?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'];
 
 
 $info2 $db->fetch_array($query2);
 
     
        $profileBBcode 
$info2['fid14'];
 
 
     $options = array(
 
"allow_html" => $mybb->settings['sightml'],
 
"allow_mycode" => $mybb->settings['sigmycode'],
 
"allow_smilies" => $mybb->settings['sigsmilies'],
 
"allow_imgcode" => $mybb->settings['sigimgcode'],
 
"me_username" => $post['username'],
 
"filter_badwords" => 1
);
 
 
  
  
  
  $parser 
= new postParser;
 
 
  $profileBBcode 
$parser->parse_message($userfields['fid14'], $options);
 
 
  if
($profileBBcode == ''$profileBBcode '<center>Użytkownik nie uzupełnił jeszcze informacji o sobie.</center>';
 
   
   

?>



<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/report.js?ver=1804"></script>

</head>
<body>
{$header}

<div class="profile-thread">
 <span style="float:left"><div class="thead-icon"><i style="line-height: 35px;" class="fa fa-user" aria-hidden="true"></i> </div>Profil użytkownika - {$memprofile['username']}
 </span>
 <span style="float:right">{$online_status}</span>
</div>
<br /><br /><br /> <br />
<section class="profile-header" style="height: 300px;background: #323232 url({$mybb->settings['bburl']}/images/Hard-Game_Black/header-bg.png);background-size: 100%;border-width: 0 1px 1px;border-style: solid;border-color: #1a1a1a;">
 
 <div class="profile-info">
 <div class="profile-avatar" style="background-size: 100%;margin-top: -110px;margin-left: 7px;height: 150px;width: 150px;border: 2px solid #0066a2;float: left;border-radius: 50%;">{$avatar}</div>
 
 <ul class="profile-row">
 <li><h1>Ilość dodanej zawartości</h1><br />{$memprofile['postnum']}</li>
 <li><h1>{$lang->registration_date}</h1><br />{$memregdate}</li>
 <li><h1>{$lang->date_of_birth}</h1><br />{$membday} {$membdayage}</li>
 <li><h1>{$lang->timeonline}</h1><br />{$timeonline} </li>
 </ul>
 <ul class="admin-menu">
 {$modoptions}
 {$adminoptions}
 </ul>
 </div>
</section>
<div class="profile-left">
 {$reputationlevel}
<table cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder profile-tborder">
 <tr>
 <td colspan="2" class="profile-thead">
 Informacje
 
 </td>
 </tr>
 <tr>
 <td class="trow6" style="width: 30%;"><strong>{$lang->joined}</strong></td>
 <td class="trow6">{$memregdate}</td>
 </tr>
 <tr>
 <td class="trow6"><strong>{$lang->lastvisit}</strong></td>
 <td class="trow6">{$memlastvisitdate}</td>
 </tr>
 <tr>
 <td class="trow6"><strong>{$lang->total_posts}</strong></td>
 <td class="trow6">{$memprofile['postnum']} ({$lang->ppd_percent_total}){$findposts}</td>
 </tr>
 <tr>
 <td class="trow6"><strong>{$lang->total_threads}</strong></td>
 <td class="trow6">{$memprofile['threadnum']} ({$lang->tpd_percent_total}){$findthreads}</td>
 </tr>
 {$profilefields}
 {$myprofile_referredby}{$referrals}
 {$reputation}
 {$warning_level}{$myprofile_comments_stats}
 </table>
 {$contact_details}
 {$myprofile_buddylist}
 {$myprofile_visitors}
 {$buddy_options}{$ignore_options}{$report_options}
 
 
 

</div>
<div class="profile-right">
 <ul class="tab">
 <li><a href="javascript:void(0)" class="tablinks" onclick="openTab(event, 'Me')" id="defaultOpen">O mnie</a></li>
 <li><a href="javascript:void(0)" class="tablinks" onclick="openTab(event, 'Activity')">Aktywność</a></li>
 <li><a href="javascript:void(0)" class="tablinks" onclick="openTab(event, 'Comments')">Komentarze</a></li>
</ul>

<div id="Me" class="tabcontent" style="padding: 5px;">
{$profileBBcode}
</div> 
<div id="Activity" class="tabcontent">
 {$ostatnie_posty}
</div>
 
<div id="Comments" class="tabcontent">
 {$myprofile_comments}
</div>
 </div>

 <script>
function openTab(evt, tabName) {
    var i, tabcontent, tablinks;
    tabcontent = document.getElementsByClassName("tabcontent");
    for (i = 0; i < tabcontent.length; i++) {
        tabcontent[i].style.display = "none";
    }
    tablinks = document.getElementsByClassName("tablinks");
    for (i = 0; i < tablinks.length; i++) {
        tablinks[i].className = tablinks[i].className.replace(" active", "");
    }
    document.getElementById(tabName).style.display = "block";
    evt.currentTarget.className += " active";
}
document.getElementById("defaultOpen").click();

 </script>
<br class="clear">
<br />
{$footer}
</body>
</html> 
Spróbuj tak, bądź podmień zawartość na domyślną dla tego stylu:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/report.js?ver=1804"></script>

</head>
<body>
{$header}

<div class="profile-thread">
<span style="float:left"><div class="thead-icon"><i style="line-height: 35px;" class="fa fa-user" aria-hidden="true"></i> </div>Profil użytkownika - {$memprofile['username']}
</span>
<span style="float:right">{$online_status}</span>
</div>
<br /><br /><br /> <br />
<section class="profile-header" style="height: 300px;background: #323232 url({$mybb->settings['bburl']}/images/Hard-Game_Black/header-bg.png);background-size: 100%;border-width: 0 1px 1px;border-style: solid;border-color: #1a1a1a;">

<div class="profile-info">
<div class="profile-avatar" style="background-size: 100%;margin-top: -110px;margin-left: 7px;height: 150px;width: 150px;border: 2px solid #0066a2;float: left;border-radius: 50%;">{$avatar}</div>

<ul class="profile-row">
<li><h1>Ilość dodanej zawartości</h1><br />{$memprofile['postnum']}</li>
<li><h1>{$lang->registration_date}</h1><br />{$memregdate}</li>
<li><h1>{$lang->date_of_birth}</h1><br />{$membday} {$membdayage}</li>
<li><h1>{$lang->timeonline}</h1><br />{$timeonline} </li>
</ul>
<ul class="admin-menu">
{$modoptions}
{$adminoptions}
</ul>
</div>
</section>
<div class="profile-left">
{$reputationlevel}
<table cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder profile-tborder">
<tr>
<td colspan="2" class="profile-thead">
Informacje

</td>
</tr>
<tr>
<td class="trow6" style="width: 30%;"><strong>{$lang->joined}</strong></td>
<td class="trow6">{$memregdate}</td>
</tr>
<tr>
<td class="trow6"><strong>{$lang->lastvisit}</strong></td>
<td class="trow6">{$memlastvisitdate}</td>
</tr>
<tr>
<td class="trow6"><strong>{$lang->total_posts}</strong></td>
<td class="trow6">{$memprofile['postnum']} ({$lang->ppd_percent_total}){$findposts}</td>
</tr>
<tr>
<td class="trow6"><strong>{$lang->total_threads}</strong></td>
<td class="trow6">{$memprofile['threadnum']} ({$lang->tpd_percent_total}){$findthreads}</td>
</tr>
{$profilefields}
{$myprofile_referredby}{$referrals}
{$reputation}
{$warning_level}{$myprofile_comments_stats}
</table>
{$contact_details}
{$myprofile_buddylist}
{$myprofile_visitors}
{$buddy_options}{$ignore_options}{$report_options}




</div>
<div class="profile-right">
<ul class="tab">
<li><a href="javascript:void(0)" class="tablinks" onclick="openTab(event, 'Me')" id="defaultOpen">O mnie</a></li>
<li><a href="javascript:void(0)" class="tablinks" onclick="openTab(event, 'Activity')">Aktywność</a></li>
<li><a href="javascript:void(0)" class="tablinks" onclick="openTab(event, 'Comments')">Komentarze</a></li>
</ul>

<div id="Me" class="tabcontent" style="padding: 5px;">
{$profileBBcode}
</div>
<div id="Activity" class="tabcontent">
{$ostatnie_posty}
</div>

<div id="Comments" class="tabcontent">
{$myprofile_comments}
</div>
</div>

<script>
function openTab(evt, tabName) {
   var i, tabcontent, tablinks;
   tabcontent = document.getElementsByClassName("tabcontent");
   for (i = 0; i < tabcontent.length; i++) {
       tabcontent[i].style.display = "none";
   }
   tablinks = document.getElementsByClassName("tablinks");
   for (i = 0; i < tablinks.length; i++) {
       tablinks[i].className = tablinks[i].className.replace(" active", "");
   }
   document.getElementById(tabName).style.display = "block";
   evt.currentTarget.className += " active";
}
document.getElementById("defaultOpen").click();

</script>
<br class="clear">
<br />
{$footer}
</body>
</html>