wersja skryptu MyBB: 1.8.6
adres forum: http://forum.xmmo.eu
na czym polega problem (screen, opis, komunikaty):
Otóż w konfiguracji w ACP dodałem dodatkowe pole w profilu. Głowkowałem troche ale nie potrafie dojść do sedna sprawy, zatem piszę tutaj. Otóż, chciałbym by pole z dodatkowych pól w profilu, które jest umieszczone w informacjach pod avatarem w postach, miało ten sam styl, co te podstawowe pola.
http://screenshot.sh/ouVjL6PkhScSG
Problem odtyczy linijki z GG.
// edit: Usunąłem rozwiązanie po przeczytaniu stopki. Tłumaczenie MyBB odnosi się do forum które nie ma z tym nic wspólnego. Popraw, a uzyskasz pomoc.
(02.01.2016, 12:37)ficus napisał(a): [ -> ]// edit: Usunąłem rozwiązanie po przeczytaniu stopki. Tłumaczenie MyBB odnosi się do forum które nie ma z tym nic wspólnego. Popraw, a uzyskasz pomoc.
Rozumiem, styl pobrałem właśnie z tamtego serwisu i nie zwróciłem na to uwagi. Poprawione a co do linku, to u mnie działa dalej screen.
Zawartość pola wyświetla się za pomocą zmiennej {$post['fidX']} gdzie X jest numerem FID tegoż pola.
Ostylowujesz tą zmienną w ten sam sposób co pozostałe informacje o poście.
Wrzuć ją po prostu w te same znaczniki z tą samą klasą co inne informacje (przekopiuj i podmień tylko treść wyświetlaną)
(02.01.2016, 19:18)ficus napisał(a): [ -> ]Zawartość pola wyświetla się za pomocą zmiennej {$post['fidX']} gdzie X jest numerem FID tegoż pola.
Ostylowujesz tą zmienną w ten sam sposób co pozostałe informacje o poście.
Wrzuć ją po prostu w te same znaczniki z tą samą klasą co inne informacje (przekopiuj i podmień tylko treść wyświetlaną)
A w którym szablonie mam tego szukać?
postbit / postbit_classic, postbit_author
(02.01.2016, 19:44)ficus napisał(a): [ -> ]postbit / postbit_classic, postbit_author
Niestety nie potrafię odnaleźć tej zmiennej w tych szablonach.
Postbit
Kod:
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">
<div class="post_author">
{$post['useravatar']}
<div class="author_information">
<strong> {$post['onlinestatus']}<span class="largetext">{$post['profilelink']}</span></strong><br />
<span class="smalltext">
{$post['usertitle']}<br />
{$post['userstars']}
{$post['groupimage']}
</span>
</div>
<div class="author_statistics">
{$post['user_details']}
</div>
</div>
<div class="post_content">
<div class="post_head">
{$post['posturl']}
{$post['icon']}
<span class="post_date">{$post['postdate']}
{$post['subject_extra']}
</div>
<div class="post_body scaleimages" id="pid_{$post['pid']}">
{$post['message']}
</div>
{$post['attachments']}
{$post['signature']}
<div class="post_meta" id="post_meta_{$post['pid']}">
<span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
{$post['iplogged']}
</div>
</div>
<div class="post_controls">
<div class="postbit_buttons author_buttons float_left">
{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
</div>
<div class="postbit_buttons post_management_buttons float_right">
{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
</div>
</div>
</div>
Postbit_classic
Kod PHP:
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post classic {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">
<h3>
<div class="post_username">
<strong> {$post['onlinestatus']}<span class="largetext">{$post['profilelink']}</span></strong>
</div>
<div class="post_date2">
{$post['postdate']}
</div>
</h3>
<div class="post_author scaleimages">
{$post['useravatar']}
<div class="author_information">
<br />
<span class="smalltext">
{$post['usertitle']}<br />
{$post['userstars']}
{$post['groupimage']}
</span>
</div>
<div class="author_statistics">
{$post['user_details']}
</div>
</div>
<div class="post_content">
<div class="post_head">
{$post['subject_extra']}
<span class="post_checkandid">
{$post['posturl']}
{$post['icon']}
</span>
</div>
<div class="post_body scaleimages" id="pid_{$post['pid']}">
{$post['message']}
<div class="post_meta" id="post_meta_{$post['pid']}">
<span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
{$post['iplogged']}
</div>
</div>
{$post['attachments']}
{$post['signature']}
{$post['button_rep']}
</div></div>
<div class="post_controls">
<div class="postbit_buttons author_buttons float_left">
<a href="#top" class="przycisk_post"><img src="images/skillgame/totop.png" alt=""> Do góry</a> {$post['button_report']}
</div>
<div class="postbit_buttons post_management_buttons float_right">
{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_warn']}
</div>
</div>
postbit_author_user (samego postbit_author nie ma)
Kod PHP:
<div class="extraUserInfo">
<dl class="pairsJustified">
<li class="post_count desc lighter">
<dt><i class="fa fa-comment"></i> {$lang->postbit_posts}</dt>
<dd>
{$post['postnum']} </dd>
</li>
</dl>
</div>
<div class="extraUserInfo">
<dl class="pairsJustified">
<li class="post_count desc lighter">
<dt><i class="fa fa-check-square-o"></i> {$lang->postbit_joined}</dt>
<dd>
{$post['userregdate']}</dd>
</li>
</dl>
</div>
{$post['replink']}{$post['profilefield']}{$post['warninglevel']}<br>
Opcja 1:
Szablon: postbit_profilefield edycja będzie widoczna dla wszystkich pól dodatkowych tego typu w opisie posta.
Opcja 2:
Odznacz "widoczne w opisie posta" w konfiguracji pola. Dodaj zmienną co podałem w poście wyżej aby wyświetlić to pole i ostyluj tą zmienną.