Więcej niż 1 ranga

Szukam  Założony przez  GajoSelele.

Pobrałem to ; https://community.mybb.com/mods.php?action=view&pid=133
Dałem na serwer FTP, później to z końcówką .php wrzuciłem do plugins i nie działa. Dalej jedna ranga. Później pobrałem Show Additional Group Images zrobiłem wszystko tak jak trzeba i też nie działa.
Przeczytaj plik readme.txt
@Ardex a możesz powiedzieć co trzeba zrobić, bo z Angielskiego najlepszy nie jestem.
Jeśli nie rozumiesz angielskiego, skorzystaj z tłumacza Google, a w ostateczności poproś kogoś z ekipy tłumaczy, żeby Ci to przetłumaczył.
@"CezPlayer" to mi wyszło z tłumacza ale nie wiem gdzie mam wpisać to {$post['additional_groups']} itp. nie wiem właśnie w którym miejscu.

Przetłumaczone :
Domyślnie tylko MyBB wyświetla obraz grup użytkowników dla podstawowej grupy użytkowników na postbit i profilu użytkownika. Wtyczka ta umożliwia MyBB, aby wyświetlić wszystkie obrazy grup użytkowników i jest testowany i kompatybilny z MyBB MyBB 1.6 i 1.8.

Pokrętło {$ post [ 'additional_groups']} Zmienna zostanie wykorzystana na "postbit" i szablony "postbit_classic. Można usunąć lub przenieść tę zmienną do gdziekolwiek chcesz. Na profilach użytkowników, zmienna dodatkowych zdjęć grup użytkowników będzie {$ memprofile [ 'additional_groups']} zmienna, znajdują się w "member_profile 'szablonu. Jeżeli nie życzą sobie dodatkowych zdjęć grupowych mają być wyświetlane na profilach użytkowników, można usunąć tę zmienną.

Należy pamiętać, że ten plugin może nie być zgodna z bardzo niestandardowych kompozycji domyślnie jeśli te motywy usunąć {$ post [ 'groupimage']} lub {$ groupimage} zmiennych z postbit lub szablonów profilu, odpowiednio. Jeśli wtyczka nie działa z tematem, trzeba będzie ręcznie dodać te zmienne do szablonów.
Zmienna zostanie wykorzystana na "postbit" i szablony "postbit_classic.

Szukaj detektywie.
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
Czyli zmienną {$post['additional_groups']} mam dodać do postbit i posbit_classic ?
(24.08.2016, 21:45)GajoSelele napisał(a): Czyli zmienną {$post['additional_groups']} mam dodać do postbit i posbit_classic ?

Zależy jaki tryb wyświetlania postów używasz, ale dodaj do obydwu. Jeżeli chcesz żeby te rangi wyświetlały się w profilu to jeszcze do szablonu member_profile dodaj {$memprofile['additional_groups']}

@"CezPlayer" dlaczego sam nie pomożesz tego przetłumaczyć?
@Ardex a to zależy w którym miejscu to dam czy nie? Moglibyście mi napisać gdzie to mam dać ? Proszę o pomoc, ponieważ w takich tematach najlepszy nie jestem, a chciałbym to dodać do mojego forum.

postbit : 
{$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><span class="largetext">{$post['profilelink']}</span></strong> <br />
            <
span class="smalltext">
                {
$post['usertitle']}<br />
                {
$post['userstars']}
                {
$post['groupimage']} {$post['additional_images']}
            </
span><span style="position: absolute; margin: -15px 0px 0px -30px;">{$post['onlinestatus']}</span>
    </
div>
    <
div class="author_statistics">
        {
$post['user_details']}{$post['reputationlevel']}
    </
div>
</
div>
<
div class="post_content">
    <
div class="post_head">
        {
$post['posturl']}
        {
$post['icon']}
        <
span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
        {
$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']}">
        {
$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
posbit_classic :

{$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']}">
<
div class="post_author scaleimages">
    <
div class="pb_user_classic"><strong><span class="largetext">{$post['profilelink']}</span></strong></div>
    {
$post['useravatar']}
    <
div class="author_information">{$post['onlinestatus']}<br />
            <
span class="smalltext">
                {
$post['usertitle']}<br />
                {
$post['userstars']}
                {
$post['groupimage']} {$post['additional_images']}
            </
span>
    </
div>
    <
div class="author_statistics">
        {
$post['user_details']}{$post['reputationlevel']}
    </
div>
</
div>
<
div class="post_content">
    <
div class="post_head">
        {
$post['posturl']}
        {
$post['icon']}
        <
span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
    {
$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']}">
        {
$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
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}
<
fieldset style="background-color: rgba(219, 219, 219, 0.22); border: medium none;">
    <
table width="100%" cellspacing="0" cellpadding="0" border="0">
        <
tr>
            <
td width="30%" align="right" valign="middle" class="profile_avatar"><center>{$avatar}{$memprofile['reputationlevel']}</center></td>
            <
td width="70%" class="profile_bg">
                <
div class="profile_details"><div style="transform: skewX(-25deg); margin-left: 50px;"><span class="largetext"><strong>{$formattedname}</strong></span><br />
                <
span class="smalltext">
                    ({
$usertitle})<br />
                    {
$groupimage} {$memprofile['additional_images']}
                    {
$userstars}<br />
                    <
br />
                    <
strong>{$lang->registration_date}</strong> {$memregdate}<br />
                    <
strong>{$lang->date_of_birth}</strong> {$membday} {$membdayage}<br />
                    <
strong>{$lang->local_time}</strong> {$localtime}<br />
                    <
strong>{$lang->postbit_status}</strong> {$online_status}
                    </
span></div></div>
            </
td>
        </
tr>
    </
table>
</
fieldset>
<
br />
{
$awaybit}{$bannedbit}
<
table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
    <
tr>
        <
td width="50%" valign="top">
            <
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
                <
tr>
                    <
td colspan="2" class="thead"><strong>{$lang->users_forum_info}</strong></td>
                </
tr>
                <
tr>
                    <
td class="trow1" style="width: 30%;"><strong>{$lang->joined}</strong></td>
                    <
td class="trow1">{$memregdate}</td>
                </
tr>
                <
tr>
                    <
td class="trow2"><strong>{$lang->lastvisit}</strong></td>
                    <
td class="trow2">{$memlastvisitdate}</td>
                </
tr>
                <
tr>
                    <
td class="trow1"><strong>{$lang->total_posts}</strong></td>
                    <
td class="trow1">{$memprofile['postnum']} ({$lang->ppd_percent_total})<br /><span class="smalltext">(<a href="search.php?action=finduser&amp;uid={$uid}">{$lang->find_posts}</a>)</span></td>
                </
tr>
                <
tr>
                    <
td class="trow2"><strong>{$lang->total_threads}</strong></td>
                    <
td class="trow2">{$memprofile['threadnum']} ({$lang->tpd_percent_total})<br /><span class="smalltext">(<a href="search.php?action=finduserthreads&amp;uid={$uid}">{$lang->find_threads}</a>)</span></td>
                </
tr>
                <
tr>
                    <
td class="trow1"><strong>{$lang->timeonline}</strong></td>
                    <
td class="trow1">{$timeonline}</td>
                </
tr>
                {
$referrals}
                {
$reputation}
                {
$warning_level}
                </
table>
            {
$contact_details}
        </
td>
        <
td>&nbsp;&nbsp;</td>
        <
td width="50%" valign="top">
            <
center><div class="rep_bg">
                <
span class="rep_count">{$memprofile['reputation']}</span>
                <
span>Reputation</span>
                </
div></center>
            <
br />
            {
$profilefields}
            {
$signature}
            {
$modoptions}
            {
$adminoptions}
            <
div style="text-align: center">{$buddy_options}{$ignore_options}{$report_options}</div>
        </
td>
    </
tr>
</
table>
{
$footer}
</
body>
</
html
Mógłbyś metodą próbuj i błędów dojść do tego gdzie to ma sie wyświetlać.
postbit

{$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><span class="largetext">{$post['profilelink']}</span></strong> <br />
            <span class="smalltext">
                {$post['usertitle']}<br />
                {$post['userstars']}
                {$post['groupimage']} {$post['additional_groups']} {$post['additional_images']}
            </span><span style="position: absolute; margin: -15px 0px 0px -30px;">{$post['onlinestatus']}</span>
    </div>
    <div class="author_statistics">
        {$post['user_details']}{$post['reputationlevel']}
    </div>
</div>
<div class="post_content">
    <div class="post_head">
        {$post['posturl']}
        {$post['icon']}
        <span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
        {$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']}">
        {$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
{$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']}">
<div class="post_author scaleimages">
    <div class="pb_user_classic"><strong><span class="largetext">{$post['profilelink']}</span></strong></div>
    {$post['useravatar']}
    <div class="author_information">{$post['onlinestatus']}<br />
            <span class="smalltext">
                {$post['usertitle']}<br />
                {$post['userstars']}
                {$post['groupimage']} {$post['additional_groups']} {$post['additional_images']}
            </span>
    </div>
    <div class="author_statistics">
        {$post['user_details']}{$post['reputationlevel']}
    </div>
</div>
<div class="post_content">
    <div class="post_head">
        {$post['posturl']}
        {$post['icon']}
        <span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
    {$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']}">
        {$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>

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}
<fieldset style="background-color: rgba(219, 219, 219, 0.22); border: medium none;">
    <table width="100%" cellspacing="0" cellpadding="0" border="0">
        <tr>
            <td width="30%" align="right" valign="middle" class="profile_avatar"><center>{$avatar}{$memprofile['reputationlevel']}</center></td>
            <td width="70%" class="profile_bg">
                <div class="profile_details"><div style="transform: skewX(-25deg); margin-left: 50px;"><span class="largetext"><strong>{$formattedname}</strong></span><br />
                <span class="smalltext">
                    ({$usertitle})<br />
                    {$groupimage} {$memprofile['additional_images']} {$memprofile['additional_groups']}
                    {$userstars}<br />
                    <br />
                    <strong>{$lang->registration_date}</strong> {$memregdate}<br />
                    <strong>{$lang->date_of_birth}</strong> {$membday} {$membdayage}<br />
                    <strong>{$lang->local_time}</strong> {$localtime}<br />
                    <strong>{$lang->postbit_status}</strong> {$online_status}
                    </span></div></div>
            </td>
        </tr>
    </table>
</fieldset>
<br />
{$awaybit}{$bannedbit}
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
    <tr>
        <td width="50%" valign="top">
            <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
                <tr>
                    <td colspan="2" class="thead"><strong>{$lang->users_forum_info}</strong></td>
                </tr>
                <tr>
                    <td class="trow1" style="width: 30%;"><strong>{$lang->joined}</strong></td>
                    <td class="trow1">{$memregdate}</td>
                </tr>
                <tr>
                    <td class="trow2"><strong>{$lang->lastvisit}</strong></td>
                    <td class="trow2">{$memlastvisitdate}</td>
                </tr>
                <tr>
                    <td class="trow1"><strong>{$lang->total_posts}</strong></td>
                    <td class="trow1">{$memprofile['postnum']} ({$lang->ppd_percent_total})<br /><span class="smalltext">(<a href="search.php?action=finduser&amp;uid={$uid}">{$lang->find_posts}</a>)</span></td>
                </tr>
                <tr>
                    <td class="trow2"><strong>{$lang->total_threads}</strong></td>
                    <td class="trow2">{$memprofile['threadnum']} ({$lang->tpd_percent_total})<br /><span class="smalltext">(<a href="search.php?action=finduserthreads&amp;uid={$uid}">{$lang->find_threads}</a>)</span></td>
                </tr>
                <tr>
                    <td class="trow1"><strong>{$lang->timeonline}</strong></td>
                    <td class="trow1">{$timeonline}</td>
                </tr>
                {$referrals}
                {$reputation}
                {$warning_level}
                </table>
            {$contact_details}
        </td>
        <td>&nbsp;&nbsp;</td>
        <td width="50%" valign="top">
            <center><div class="rep_bg">
                <span class="rep_count">{$memprofile['reputation']}</span>
                <span>Reputation</span>
                </div></center>
            <br />
            {$profilefields}
            {$signature}
            {$modoptions}
            {$adminoptions}
            <div style="text-align: center">{$buddy_options}{$ignore_options}{$report_options}</div>
        </td>
    </tr>
</table>
{$footer}
</body>
</html>


W każdym szablonie masz {$memprofile['additional_images']}, od czego to jest?
@Ardex wszystko kopiuj wklej a i tak nie działa :(
Zobacz czy nie trzeba go włączyć gdzieś w ACP -> Konfiguracja poszukaj ustawień tego pluginu
@Ardex jest taki problem, że ziomek mi źle plugin wgrał i w Pluginach się coś zrobiło, ale z tego co pamiętam to był aktywny.
http://i.imgur.com/S53LFXS.jpg



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

1 gości