Webboard

Pełna wersja: Myprofile
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
Dodałeś prawidłowo zmienną do wyświetlania komentarzy?
Zmienne już tam były, praktycznie nic w tym szablonie nie ruszałem 
Tutaj member_profile
<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}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td colspan="2" class="thead">
<span style="float:left"><div class="thead-icon"><i style="line-height: 50px;" class="fa fa-user" aria-hidden="true"></i> Profil użytkownika - {$memprofile['username']}</div>
</span>
<span style="float:right">{$online_status}</span>
</td>
</tr>
</table>
<section class="profile-header" style="height: 300px; center center; background-color: #1a1a1a; 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 style="border: 1px solid #e6e6e6;"cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="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}
{$referrals}
{$reputation}
{$warning_level}
</table>
{$contact_details}


{$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>
<li><a href="javascript:void(0)" class="tablinks" onclick="openTab(event, 'visitors')">Lista odwiedzających</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 id="visitors" class="tabcontent">
{$profileVisitors}
</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>