MyBB.de Forum
EnhancedAccountSwitcher verbundene Accounts wieder im Profil anzeigen lassen - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Anpassungen (https://www.mybb.de/forum/forum-47.html)
+--- Forum: Plugin-Diskussionen (https://www.mybb.de/forum/forum-38.html)
+--- Thema: EnhancedAccountSwitcher verbundene Accounts wieder im Profil anzeigen lassen (/thread-28603.html)



EnhancedAccountSwitcher verbundene Accounts wieder im Profil anzeigen lassen - navis - 25.10.2013

Hallo,

ich habe dieses Plugin installiert und klappt auch alles prima. Jedoch werden seit dem ich die Profilfelder einzeln anzeigen lasse die verbundenen Accounts nicht mehr angezeigt. Ich habe schon in der Datenbank geschaut, ob es sich dabei vielleicht um ein Profilfeld handelt. Aber leider gab es da keines, außer die von mir erstellten. In dem "alten" Profiltemplate habe ich auch nichts gefunden, daher meine Frage, weiß jemand wie ich die Accounts wieder anzeigen lassen kann?


RE: EnhancedAccountSwitcher verbundene Accounts wieder im Profil anzeigen lassen - doylecc - 26.10.2013

Im Plugin findest du in Zeile 1437:

PHP-Code:
$profilefields .= '<br /> 

Die Variable $profilefields musst du dort im Plugin gegen die Variable deines letzten Profilfeldes aus dem member_profile Template tauschen, also zB zu:

PHP-Code:
$userfid4_name .= '<br /> 



RE: EnhancedAccountSwitcher verbundene Accounts wieder im Profil anzeigen lassen - doylecc - 26.10.2013

Entschuldige bitte, ich habe noch eine Sache vergessen im obigen Beitrag.
Direkt über der Änderung in der Plugindatei muss natürlich noch eingefügt werden:

PHP-Code:
global $userfid4_name

(Oder wie immer die Variable deines letzten Profilfelds benannt ist Wink )


RE: EnhancedAccountSwitcher verbundene Accounts wieder im Profil anzeigen lassen - navis - 26.10.2013

Vorher:
Code:
        if($count > 0 || $count == 0 && $memprofile['as_uid'] != '0')
        {
            $lang->load('accountswitcher');
            $profilefields .= '<br />
                    <table border="0" cellspacing="'.$theme['borderwidth'].'" cellpadding="'.$theme['tablespace'].'" class="tborder">
                        <tr>
                            <td class="thead"><strong>'.$lang->aj_profile.'</strong></td>
                        </tr>
                        <tr>
                            <td class="trow1">
                            <ul>
                            '.$as_profile_userbit.'
                            </ul>
                            </td>
                        </tr>
                    </table>';
        }
    }
}

Hinterher:
Code:
    if($count > 0 || $count == 0 && $memprofile['as_uid'] != '0')
        {
            $lang->load('accountswitcher');
      global $userfields['fid7'];
            $userfields['fid7'] .= '<br />
                    <table border="0" cellspacing="'.$theme['borderwidth'].'" cellpadding="'.$theme['tablespace'].'" class="tborder">
                        <tr>
                            <td class="thead"><strong>'.$lang->aj_profile.'</strong></td>
                        </tr>
                        <tr>
                            <td class="trow1">
                            <ul>
                            '.$as_profile_userbit.'
                            </ul>
                            </td>
                        </tr>
                    </table>';
        }
    }
}

Es folgte eine weiße Seite. Blush


RE: EnhancedAccountSwitcher verbundene Accounts wieder im Profil anzeigen lassen - doylecc - 26.10.2013

Poste mal bitte den Inhalt deines Templates member_profile.


RE: EnhancedAccountSwitcher verbundene Accounts wieder im Profil anzeigen lassen - navis - 26.10.2013

Code:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow1">
<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td width="25%" align="left" valign="middle">{$avatar}</td>
<td class="trow1" width="42%"><span class="largetext"><strong>{$formattedname}</strong></span><br />
<span class="smalltext">
({$usertitle})<br />
{$groupimage}
{$userstars}<br />
<strong>{$lang->registration_date}</strong> {$memregdate}<br />
<strong>{$lang->lastvisit}</strong> {$memlastvisitdate} {$memlastvisittime}<br />
<strong>{$lang->postbit_status}</strong> {$online_status}<br />
<strong>{$lang->timeonline}</strong> {$timeonline}<br />
{$reputation}
<strong>{$lang->total_posts}</strong> {$memprofile['postnum']} <br />
{$warning_level}<br />
<strong>{$lang->date_of_birth}</strong> {$membday} {$membdayage}<br /><br />
{$sendemail} <br /> <a href="private.php?action=send&amp;uid={$memprofile['uid']}">{$lang->send_pm}</a><br />
(<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><td class="trow1" width="33%"><span class="smalltext"><div align="center"><img src="{$userfields['fid16']}"><br /><br /><a href="{$userfields['fid8']}"><strong>Steckbrief</strong></a> | <a href="{$userfields['fid9']}"><strong>Relations</strong></a> | <a href="{$userfields['fid10']}"><strong>History</strong></a></div><br />
<strong>Name:</strong> {$userfields['fid4']}<br />
<strong>Alter:</strong> {$userfields['fid5']}<br />
<strong>Beruf:</strong> {$userfields['fid6']}<br />
<strong>Status:</strong> {$userfields['fid7']}</span>
</td>
</tr></table>
</td>
</tr>
{$awaybit}
{$signature}
</table>
<br />
{$modoptions}
{$adminoptions}
{$footer}
</body>
</html>
Oh okay denke habe den Fehler habe ja noch fid16

edit: nein bleibt trotzdem weiß.


RE: EnhancedAccountSwitcher verbundene Accounts wieder im Profil anzeigen lassen - doylecc - 26.10.2013

Danke. Smile
Dann versuche es mal im Plugin mit folgendem kompletten Code:

PHP-Code:
        if($count || $count == && $memprofile['as_uid'] != '0')
        {
            
$lang->load('accountswitcher');
            global 
$signature;
            
$signature '<br />
                    <table border="0" cellspacing="'
.$theme['borderwidth'].'" cellpadding="'.$theme['tablespace'].'" class="tborder">
                        <tr>
                            <td class="thead"><strong>'
.$lang->aj_profile.'</strong></td>
                        </tr>
                        <tr>
                            <td class="trow1">
                            <ul>
                            '
.$as_profile_userbit.'
                            </ul>
                            </td>
                        </tr>
                    </table>'
.$signature;
        }
    }




RE: EnhancedAccountSwitcher verbundene Accounts wieder im Profil anzeigen lassen - navis - 26.10.2013

Perfekt, danke Smile