Webboard

Pełna wersja: przeniesienie welcomeblock_member wyżej
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
wersja skryptu MyBB: 1.6.4
adres forum: inrp.ct8.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu): Panel użytkownika

Cześć!

Chciałbym przenieść te rzeczy widoczne na screenie na inne miejsce, lecz nie potrafię tego zrobić. Czy mógłby ktoś mi wytłumaczyć jak to zrobić ?

[Obrazek: 84056263565081964806.png]

Tak jak tu:
[Obrazek: 41031926626932323464.png]
Podrzuć zawartość:
Panel Administratora > Style i szablony > (Twój styl) szablony > Nagłówek szablony > header
Kod:
<div id="container">
        <a name="top" id="top"></a>
        <div id="header">
            <div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>

            <hr class="hidden" />
{$welcomeblock}
{$pm_notice}
{$bannedwarning}
{$bbclosedwarning}
{$unreadreports}
{$pending_joinrequests}
        </div>

        <br class="clear" />
        <div id="content">
        <br />
Od razu mówię, że panel logowania też przeniesie Ci w to samo miejsce, jeżeli natomiast chcesz, aby panel logowania pozostał na starym miejscu to czeka Cię dłuższa edycja jeżeli natomiast chcesz go również przenieść w to miejsce to wystarczy zamiana szablonu na:
Kod PHP:
<div id="container">
        <
a name="top" id="top"></a>
        <
div id="header"><div class="float_right">{$welcomeblock}</div>
            <
div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}alt="{$mybb->settings['bbname']}title="{$mybb->settings['bbname']}/></a></div>

            <
hr class="hidden" />
{
$pm_notice}
{
$bannedwarning}
{
$bbclosedwarning}
{
$unreadreports}
{
$pending_joinrequests}
        </
div>

        <
br class="clear" />
        <
div id="content">
        <
br /> 
Btw. coś mi tu nie gra musisz mieć klasę #panel w welcomeblock więc musisz podrzuć pozostałe szablony z przedrostkiem header_ , z szablonów nagłówka..
header_welcomeblock_guest:

Kod:
<div id="panel">
<script type="text/javascript">
<!--
    lang.username = "{$lang->login_username}";
    lang.password = "{$lang->login_password}";
    lang.login = "{$lang->login}";
    lang.lost_password = " &mdash; <a href=\"{$mybb->settings['bburl']}/member.php?action=lostpw\">{$lang->lost_password}<\/a>";
    lang.register_url = " &mdash; <a href=\"{$mybb->settings['bburl']}/member.php?action=register\">{$lang->welcome_register}<\/a>";
    lang.remember_me = "{$lang->remember_me}";
// -->
</script>
<form class="login" action="member.php" method="post">
    <label class="lblusername" for="username">{$lang->username}</label>
    <input type="text" class="textbox" name="username" size="15" maxlength="{$mybb->settings['maxnamelength']}" value="" />
    <label class="lblpassword" for="password">{$lang->password}</label>
    <input type="password" class="textbox" name="password" size="15" value="" />
    <span class="loginbutton">
        <input type="submit" name="submit" value="{$lang->login}" />
    </span>
    <input type="hidden" name="action" value="do_login" />
    <input type="hidden" name="url" value="{$redirect_url}" />
</form>
<a class="register" href="{$mybb->settings['bburl']}/member.php?action=register"><span>{$lang->welcome_register}</span></a>
</div>

<div class="menu">
    <ul>
<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
        <li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>

<span style="background-color: #4169E1; color: #FFF; font-size: 11px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; margin-left: 5px; margin-top: 2px; padding: 2px;"><span style="font-weight: bold; font-size: 12px;">0 Graczy Online!</span><span></span></span>
        
    </ul>
</div>

header_welcomeblock_member:

Kod:
<div id="panel">
<div class="userinfo"><img class="avatar" src="{$mybb->user['avatar']}" alt="" /><span class="username">{$mybb->user['username']}</span>

<a class="logout" href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}"><span>{$lang->welcome_logout}</span></a>
</div>

    <div class="cplinks">
        <ul>
            <li><a href="{$mybb->settings['bburl']}/usercp.php"><img src="{$theme['imgdir']}/cplinks/usercp.png" alt="" title="" />{$lang->welcome_usercp}</a></li>
            <li>{$modcplink}</li>
            <li>{$admincplink}</li>
            <li><a href="{$mybb->settings['bburl']}/private.php"><img src="{$theme['imgdir']}/cplinks/pm.png" alt="" title="" />{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}</li>
        </ul>
    </div>
</div>
    <div class="menu">
        <ul>
            <li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
        <li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>

<span style="background-color: #4169E1; color: #FFF; font-size: 11px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; margin-left: 5px; margin-top: 2px; padding: 2px;"><span style="font-weight: bold; font-size: 12px;">0 Graczy Online!</span><span></span></span>

        </ul>
        <div class="links">

        </div>
    </div>
header:
Kod PHP:
{$welcomeblock}
{
$pm_notice}
{
$bannedwarning}
{
$bbclosedwarning}
{
$unreadreports}
{
$pending_joinrequests}
        </
div>

        <
br class="clear" />
        <
div id="content">
        <
br /> 

header_welcomeblock_guest:
Kod PHP:
<div id="container">
        <
a name="top" id="top"></a>
        <
div id="header">
            <
div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}alt="{$mybb->settings['bbname']}title="{$mybb->settings['bbname']}/></a></div>
            <
hr class="hidden" />
<
div id="panel">
<
script type="text/javascript">
<!--
    
lang.username "{$lang->login_username}";
    
lang.password "{$lang->login_password}";
    
lang.login "{$lang->login}";
    
lang.lost_password " &mdash; <a href=\"{$mybb->settings['bburl']}/member.php?action=lostpw\">{$lang->lost_password}<\/a>";
    
lang.register_url " &mdash; <a href=\"{$mybb->settings['bburl']}/member.php?action=register\">{$lang->welcome_register}<\/a>";
    
lang.remember_me "{$lang->remember_me}";
// -->
</script>
<
form class="login" action="member.php" method="post">
    <
label class="lblusername" for="username">{$lang->username}</label>
    <
input type="text" class="textbox" name="username" size="15" maxlength="{$mybb->settings['maxnamelength']}value="" />
    <
label class="lblpassword" for="password">{$lang->password}</label>
    <
input type="password" class="textbox" name="password" size="15" value="" />
    <
span class="loginbutton">
        <
input type="submit" name="submit" value="{$lang->login}/>
    </
span>
    <
input type="hidden" name="action" value="do_login" />
    <
input type="hidden" name="url" value="{$redirect_url}/>
</
form>
<
class="register" href="{$mybb->settings['bburl']}/member.php?action=register"><span>{$lang->welcome_register}</span></a>
</
div>

<
div class="menu">
    <
ul>
<
li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
        <
li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>

<
span style="background-color: #4169E1; color: #FFF; font-size: 11px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; margin-left: 5px; margin-top: 2px; padding: 2px;"><span style="font-weight: bold; font-size: 12px;">0 Graczy Online!</span><span></span></span>
        
    </
ul>
</
div

header_welcomeblock_member:
Kod PHP:
<div id="container">
        <
a name="top" id="top"></a>
        <
div id="header"><div class="float_right">
<
div class="userinfo"><img class="avatar" src="{$mybb->user['avatar']}alt="" /><span class="username">{$mybb->user['username']}</span>

<
class="logout" href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}"><span>{$lang->welcome_logout}</span></a>
</
div>

    <
div class="cplinks">
        <
ul>
            <
li><a href="{$mybb->settings['bburl']}/usercp.php"><img src="{$theme['imgdir']}/cplinks/usercp.png" alt="" title="" />{$lang->welcome_usercp}</a></li>
            <
li>{$modcplink}</li>
            <
li>{$admincplink}</li>
            <
li><a href="{$mybb->settings['bburl']}/private.php"><img src="{$theme['imgdir']}/cplinks/pm.png" alt="" title="" />{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}</li>
        </
ul>
    </
div>
</
div><div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}alt="{$mybb->settings['bbname']}title="{$mybb->settings['bbname']}/></a></div>
            <
hr class="hidden" />    <div class="menu">
        <
ul>
            <
li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
        <
li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>

<
span style="background-color: #4169E1; color: #FFF; font-size: 11px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; margin-left: 5px; margin-top: 2px; padding: 2px;"><span style="font-weight: bold; font-size: 12px;">0 Graczy Online!</span><span></span></span>

        </
ul>
        <
div class="links">

        </
div>
    </
div
Dawno tak zagmatwanego stylu nie widziałem :|