Tło profilu

Konfiguracja  Założony przez  Clay.

Proszę was o pomoc ponieważ nie wiem co źle zrobiłem z tłem w profilu czy tutaj mam jakiś błąd w kodzie ? proszę was o pomoc oto plik member_profile


<?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>

<style>
.tlo_profil {
 background-image: url({$userfields['fid4']}), url(http://bankfotek.pl/image/2101780.jpeg);
}

</style>

</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="tlo_profil" style="height: 300px;background: #323232 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>
Szogi1910 napisał 07.11.2017, 21:55:
Kody podajemy w tagach [code] lub [php], poprawia to czytelność posta.
Dlaczego używasz kodu php w szablonie? Proponuje zrobic to za pomoca pluginu.
tak już te php było
To je usuń lub wgraj plugin PhpInTemplates dla MyBB.
Cytat:w pół dnia stałeś się lepszym pytonistą niż kawenanowo kiedykolwiek programisto :3 ~ Riess 13.11.2018 16:28
Cytat:ale z tą nazwą to fyeem ma racje  ~ Divir 29.07.2019 16:08
(07.11.2017, 20:49)Fyeem napisał(a): To je usuń lub wgraj plugin PhpInTemplates dla MyBB.

Nawet gdyby wgral to zdaje mi sie, ze i tak nie bedzie mial dostepu do np. zmiennej $db. No ale nie jestem 100% pewny :P
PHP and Template Conditionals to mam zainstalowane

Kod PHP usunięty
Odświeżam
Ale z czym masz właściwie problem?
Kodowanie, edycja i tworzenie styli, for, stron, poszczególnych elementów - polecane szczególnie dla osób, które nie potrafią sobie poradzić z problemami.
A w czym leży problem? Masz dodane dodatkowe pole w profilu o fid 4?

Aj wyprzedziles mnie @Divir :P
Tak mam dodane lecz to jeszcze teraz sprawdzę
Wszystko jest lecz gdy dodaje link do obrazka na który chcę ustawić to nie zmienia się i zostaje ten podstawowy co ustawony jest

Debil ze mnie hahaha zmieniłem te pole w profilu ale nie zmieniłem tego fid :D dobra temat off:D



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

1 gości