Webboard

Pełna wersja: Dodanie koloru nicku do podglądu profilu
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
wersja skryptu MyBB: 1.6.12
adres forum: center-game.pl
na czym polega problem (screen, opis, komunikaty): Chciałbym dodać kolor do nicku w podglądzie profilu ale za bardzo nie wiem jak do tego kodu to dodać.

Kod PHP:
<div id="userprofile-maininfo"><div class="userprofile_avatar">{$avatar}</div>
    <
div style="padding:20px;"><h2>{$formattedname}<br /></h2
nick ma miec kolor grupy?
pokaz szablon member_profile z paczki podlad peofilu
Ma mieć kolor czerwony, odpowiadający kolorowi grupy.


Kod:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
</head>
<body>
{$header}
<div><div class="thead belkatlo"><span>User Profile.</span></div>
    <div id="userprofile-maininfo"><div class="userprofile_avatar">{$avatar}</div>
    <div style="padding:20px;"><h2>{$formattedname}<br /></h2>    
    {$awaybit}
    <span>{$groupimage}</span><br />
    <span>Member since {$memregdate}</span><br />
    <div class="userprofile_online">{$online_status}
{$custom_status}</div><br />
    {$userstars}<br />
    </div></div>
<div id="userprofile-tabs">

    <ul id="userprofile-tabs-nav">
    <li><a href="#generalinfo">Informacje Na Forum</a></li>
    <li><a href="#contactinfo">Kontakt</a></li>
    <li><a href="#additionalinfo">Inne...</a></li>
    </ul>

    <div class="tab" id="generalinfo">
<div class="tab_content">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="userprofile_table">
<tr>
<td colspan="2" class="tcat"><strong>{$lang->users_forum_info}</strong></td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->joined}</strong></td>
<td class="userprofile_trow">{$memregdate}</td>
</tr>

<tr>
<td class="userprofile_trow"><strong>{$lang->date_of_birth}</strong></td>
<td class="userprofile_trow">{$membday} {$membdayage}</td>
</tr>

<tr>
<td class="userprofile_trow"><strong>{$lang->local_time}</strong></td>
<td class="userprofile_trow">{$localtime}</td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->lastvisit}</strong></td>
<td class="userprofile_trow">{$memlastvisitdate} {$memlastvisittime}</td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->total_posts}</strong></td>
<td class="userprofile_trow">{$memprofile['postnum']} ({$lang->ppd_percent_total}) <span class="smalltext">(<a href="search.php?action=finduserthreads&amp;uid={$uid}">{$lang->find_threads}</a> &mdash; <a href="search.php?action=finduser&amp;uid={$uid}">{$lang->find_posts}</a>)</span></td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->timeonline}</strong></td>
<td class="userprofile_trow">{$timeonline}</td>
</tr>
</table>
<div class="right" style="width: 24%;">
<div class="userprofile_statsbutton userprofile_reputation">{$reputation}</div><br />
<div class="userprofile_statsbutton userprofile_referrals">{$referrals}<img src="{$mybb->settings['bburl']}/images/infinity/users.png"></div><br />
{$warning_level}<!-- ProfileComments -->{$pf_statistics}<!-- /ProfileComments -->
</div>
</div>    
</div>
    
    <div class="tab" id="contactinfo">
<div class="tab_content">

    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="userprofile_table">
<tr>
<td colspan="2" class="tcat"><strong>{$lang->users_contact_details}</strong></td>
</tr>
<tr>
<td class="userprofile_trow" width="40%"><strong>{$lang->homepage}</strong></td>
<td class="userprofile_trow">{$website}</td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->pm}</strong></td>
<td class="userprofile_trow"><a href="private.php?action=send&amp;uid={$memprofile['uid']}">{$lang->send_pm}</a></td>
</tr>
{$sendemail}
<tr>
<td class="userprofile_trow"><strong>{$lang->icq_number}</strong></td>
<td class="userprofile_trow">{$memprofile['icq']}</td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->aim_screenname}</strong></td>
<td class="userprofile_trow"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=aim&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['aim']}</a></td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->yahoo_id}</strong></td>
<td class="userprofile_trow"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=yahoo&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['yahoo']}</a></td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->msn}</strong></td>
<td class="userprofile_trow"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=msn&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['msn']}</a></td>
</tr>
</table>


    </div></div>
    
    <div class="tab" id="more">
<div class="tab_content">
    {$profilefields}
{$signature}{$memprofile['ougc_awards']}<div style="position: relative;
top: 10px;
left: 10px;">{$buddy_options}</div>{$adminoptions}
<br />{$buddylist}{$modoptions}<!-- ProfileComments -->{$comments_index}<!-- /ProfileComments -->
    </div></div>

</div>
<script type="text/javascript">
var tabber1 = new Yetii({
id: 'userprofile-tabs'
});
</script>
</div><br class="clearboth">
{$footer}
</body>
</html>
Kod:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
</head>
<body>
{$header}
<div><div class="thead belkatlo"><span>User Profile.</span></div>
    <div id="userprofile-maininfo"><div class="userprofile_avatar">{$avatar}</div>
    <div style="padding:20px;font-weight: bold;font-size: large;">{$formattedname}<br />
    {$awaybit}
    <span>{$groupimage}</span><br />
    <span>Member since {$memregdate}</span><br />
    <div class="userprofile_online">{$online_status}
{$custom_status}</div><br />
    {$userstars}<br />
    </div></div>
<div id="userprofile-tabs">

    <ul id="userprofile-tabs-nav">
    <li><a href="#generalinfo">Informacje Na Forum</a></li>
    <li><a href="#contactinfo">Kontakt</a></li>
    <li><a href="#additionalinfo">Inne...</a></li>
    </ul>

    <div class="tab" id="generalinfo">
<div class="tab_content">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="userprofile_table">
<tr>
<td colspan="2" class="tcat"><strong>{$lang->users_forum_info}</strong></td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->joined}</strong></td>
<td class="userprofile_trow">{$memregdate}</td>
</tr>

<tr>
<td class="userprofile_trow"><strong>{$lang->date_of_birth}</strong></td>
<td class="userprofile_trow">{$membday} {$membdayage}</td>
</tr>

<tr>
<td class="userprofile_trow"><strong>{$lang->local_time}</strong></td>
<td class="userprofile_trow">{$localtime}</td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->lastvisit}</strong></td>
<td class="userprofile_trow">{$memlastvisitdate} {$memlastvisittime}</td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->total_posts}</strong></td>
<td class="userprofile_trow">{$memprofile['postnum']} ({$lang->ppd_percent_total}) <span class="smalltext">(<a href="search.php?action=finduserthreads&amp;uid={$uid}">{$lang->find_threads}</a> &mdash; <a href="search.php?action=finduser&amp;uid={$uid}">{$lang->find_posts}</a>)</span></td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->timeonline}</strong></td>
<td class="userprofile_trow">{$timeonline}</td>
</tr>
</table>
<div class="right" style="width: 24%;">
<div class="userprofile_statsbutton userprofile_reputation">{$reputation}</div><br />
<div class="userprofile_statsbutton userprofile_referrals">{$referrals}<img src="{$mybb->settings['bburl']}/images/infinity/users.png"></div><br />
{$warning_level}<!-- ProfileComments -->{$pf_statistics}<!-- /ProfileComments -->
</div>
</div>    
</div>
    
    <div class="tab" id="contactinfo">
<div class="tab_content">

    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="userprofile_table">
<tr>
<td colspan="2" class="tcat"><strong>{$lang->users_contact_details}</strong></td>
</tr>
<tr>
<td class="userprofile_trow" width="40%"><strong>{$lang->homepage}</strong></td>
<td class="userprofile_trow">{$website}</td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->pm}</strong></td>
<td class="userprofile_trow"><a href="private.php?action=send&amp;uid={$memprofile['uid']}">{$lang->send_pm}</a></td>
</tr>
{$sendemail}
<tr>
<td class="userprofile_trow"><strong>{$lang->icq_number}</strong></td>
<td class="userprofile_trow">{$memprofile['icq']}</td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->aim_screenname}</strong></td>
<td class="userprofile_trow"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=aim&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['aim']}</a></td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->yahoo_id}</strong></td>
<td class="userprofile_trow"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=yahoo&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['yahoo']}</a></td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->msn}</strong></td>
<td class="userprofile_trow"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=msn&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['msn']}</a></td>
</tr>
</table>


    </div></div>
    
    <div class="tab" id="more">
<div class="tab_content">
    {$profilefields}
{$signature}{$memprofile['ougc_awards']}<div style="position: relative;
top: 10px;
left: 10px;">{$buddy_options}</div>{$adminoptions}
<br />{$buddylist}{$modoptions}<!-- ProfileComments -->{$comments_index}<!-- /ProfileComments -->
    </div></div>

</div>
<script type="text/javascript">
var tabber1 = new Yetii({
id: 'userprofile-tabs'
});
</script>
</div><br class="clearboth">
{$footer}
</body>
</html>
zamien na to

Kod:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
</head>
<body>
{$header}
<div><div class="thead belkatlo"><span>User Profile.</span></div>
    <div id="userprofile-maininfo"><div class="userprofile_avatar">{$avatar}</div>
    <div style="padding:20px;"><div style="font-weight: bold;font-size: x-large;">{$formattedname}</div><br />
    {$awaybit}
    <span>{$groupimage}</span><br />
    <span>Member since {$memregdate}</span><br />
    <div class="userprofile_online">{$online_status}
{$custom_status}</div><br />
    {$userstars}<br />
    </div></div>
<div id="userprofile-tabs">

    <ul id="userprofile-tabs-nav">
    <li><a href="#generalinfo">Informacje Na Forum</a></li>
    <li><a href="#contactinfo">Kontakt</a></li>
    <li><a href="#additionalinfo">Inne...</a></li>
    </ul>

    <div class="tab" id="generalinfo">
<div class="tab_content">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="userprofile_table">
<tr>
<td colspan="2" class="tcat"><strong>{$lang->users_forum_info}</strong></td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->joined}</strong></td>
<td class="userprofile_trow">{$memregdate}</td>
</tr>

<tr>
<td class="userprofile_trow"><strong>{$lang->date_of_birth}</strong></td>
<td class="userprofile_trow">{$membday} {$membdayage}</td>
</tr>

<tr>
<td class="userprofile_trow"><strong>{$lang->local_time}</strong></td>
<td class="userprofile_trow">{$localtime}</td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->lastvisit}</strong></td>
<td class="userprofile_trow">{$memlastvisitdate} {$memlastvisittime}</td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->total_posts}</strong></td>
<td class="userprofile_trow">{$memprofile['postnum']} ({$lang->ppd_percent_total}) <span class="smalltext">(<a href="search.php?action=finduserthreads&amp;uid={$uid}">{$lang->find_threads}</a> &mdash; <a href="search.php?action=finduser&amp;uid={$uid}">{$lang->find_posts}</a>)</span></td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->timeonline}</strong></td>
<td class="userprofile_trow">{$timeonline}</td>
</tr>
</table>
<div class="right" style="width: 24%;">
<div class="userprofile_statsbutton userprofile_reputation">{$reputation}</div><br />
<div class="userprofile_statsbutton userprofile_referrals">{$referrals}<img src="{$mybb->settings['bburl']}/images/infinity/users.png"></div><br />
{$warning_level}<!-- ProfileComments -->{$pf_statistics}<!-- /ProfileComments -->
</div>
</div>    
</div>
    
    <div class="tab" id="contactinfo">
<div class="tab_content">

    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="userprofile_table">
<tr>
<td colspan="2" class="tcat"><strong>{$lang->users_contact_details}</strong></td>
</tr>
<tr>
<td class="userprofile_trow" width="40%"><strong>{$lang->homepage}</strong></td>
<td class="userprofile_trow">{$website}</td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->pm}</strong></td>
<td class="userprofile_trow"><a href="private.php?action=send&amp;uid={$memprofile['uid']}">{$lang->send_pm}</a></td>
</tr>
{$sendemail}
<tr>
<td class="userprofile_trow"><strong>{$lang->icq_number}</strong></td>
<td class="userprofile_trow">{$memprofile['icq']}</td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->aim_screenname}</strong></td>
<td class="userprofile_trow"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=aim&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['aim']}</a></td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->yahoo_id}</strong></td>
<td class="userprofile_trow"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=yahoo&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['yahoo']}</a></td>
</tr>
<tr>
<td class="userprofile_trow"><strong>{$lang->msn}</strong></td>
<td class="userprofile_trow"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=msn&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['msn']}</a></td>
</tr>
</table>


    </div></div>
    
    <div class="tab" id="more">
<div class="tab_content">
    {$profilefields}
{$signature}{$memprofile['ougc_awards']}<div style="position: relative;
top: 10px;
left: 10px;">{$buddy_options}</div>{$adminoptions}
<br />{$buddylist}{$modoptions}<!-- ProfileComments -->{$comments_index}<!-- /ProfileComments -->
    </div></div>

</div>
<script type="text/javascript">
var tabber1 = new Yetii({
id: 'userprofile-tabs'
});
</script>
</div><br class="clearboth">
{$footer}
</body>
</html>