Hallo, Gast! (Registrieren)

Wir wünschen allen Besuchern frohe Ostern!

Letzte Ankündigung: MyBB 1.8.37 veröffentlicht (04.11.23)


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
Link im Profilfeld und Zeilenumbruch
#61
Das Funktioniert, nur mit einem kleinen Trick.

Alle Felder wie beschrieben ausfüllen, aber im Anzeigeformat kommt dies

PHP-Code:
<if THIS_SCRIPT == 'member.php' then>
{
VALUE}
<elseif 
THIS_SCRIPT == 'showthread.php' then>
{
VALUE}
<else>
{
VALUE}
</if> 

Natürlich noch

Code:
{$GLOBALS['xtpf']['fidX']}

im member_profile Template an einer passenden Stelle einfügen. (X durch deine ID ersetzen)

Im postbit, kannst Du auch

Code:
{$GLOBALS['xtpf']['fidX']}

verwenden.


Angabe vom Link im Benutzer-CP -> Profil ändern, sollten so aussehen.

Code:
[url=http://mybboard.de]MyBB[/url]
Mit freundlichen Grüßen

MrBrechreiz
Zitieren
#62
Klappt leider auch nicht. :/ Ist da etwas kaputt oder so? Big Grin
Ich nutze im Template die Abfrage

Code:
<if $GLOBALS['mybb']->user['usergroup'] == 1 then>
usw.

weil Gäste keine Avatare sehen können sollen. Kommt sich da vielleicht etwas in die Quere?
Liebe Grüße vom Yasilein! Love
Zitieren
#63
Wie sieht denn das gesamte member_profile Template bei Dir aus ?
Mit freundlichen Grüßen

MrBrechreiz
Zitieren
#64
So:

Code:
<if $GLOBALS['mybb']->user['usergroup'] == 1 then>
<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">

<center><tr><br><br>
<td width="286px" align="right">
<div style="width: 286px; height:343px; background-image: url('bild/bild.png');"><div style="height: 250px; width: 190px;  margin-top: 46px; margin-right: 48px; margin-bottom: 47px; margin-left: 48px; position: absolute;"><img src="{$theme['imgdir']}/noavatar.png"></div></div></td>
<td width="450px" align="left"><div style="text-align: justify; width: 460px;"><center>{$formattedname}<br><br>
<center><a href="{$userfields['fid13']}">EINS</a> # <a href="{$userfields['fid14']}">ZWEI</a></center>
(<a href="search.php?action=finduserthreads&amp;uid={$uid}">{$lang->find_threads}</a> # <a href="search.php?action=finduser&amp;uid={$uid}">{$lang->find_posts}</a>)<br><br>
<center><div style="width: 250px; height: 110px; text-align: justify; overflow-y: scroll; padding-right: 7px;"><?php
echo $parser->parse_message(htmlspecialchars_decode($userfields['fid6']),array('allow_mycode'=>1));
?></div><br></center><br>
<center>{$sendemail} <a href="private.php?action=send&amp;uid={$userfields['uid']}">PN SENDEN</a><br><b>FELD, IN DEM VERLINKT WERDEN SOLL:</b><br>
<div style="width: 250px;>{$GLOBALS['xtpf']['fid26']}</div>
</center><br></div></td>
</div>
</td>
</tr>
</center>
</div></td>
</tr>
</center>


</td>
<td><img src="{$theme['imgdir']}/pixel.gif" height="1" width="8" alt=""/></td>
</tr>
</table>
{$footer}
</body>
</html>
<else>
<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">
<center><tr><br><br>
<td width="286px" align="right">
<div style="width: 286px; height:343px; background-image: url('bild/bild.png');"><div style="height: 250px; width: 190px;  margin-top: 46px; margin-right: 48px; margin-bottom: 47px; margin-left: 48px; position: absolute;">{$avatar}</div></div></td>
<td width="450px" align="left"><div style="text-align: justify; width: 460px;"><center>{$formattedname}<br><br>
<center><a href="{$userfields['fid13']}">EINS</a> # <a href="{$userfields['fid14']}">ZWEI</a></center>
(<a href="search.php?action=finduserthreads&amp;uid={$uid}">{$lang->find_threads}</a> # <a href="search.php?action=finduser&amp;uid={$uid}">{$lang->find_posts}</a>)<br><br>
<center><div style="width: 250px; height: 110px; text-align: justify; overflow-y: scroll; padding-right: 7px;"><?php
echo $parser->parse_message(htmlspecialchars_decode($userfields['fid6']),array('allow_mycode'=>1));
?></div><br></center><br>
<center>{$sendemail} <a href="private.php?action=send&amp;uid={$userfields['uid']}">PN SENDEN</a><br><b>FELD, IN DEM VERLINKT WERDEN SOLL:</b><br>
<div style="width: 250px;>{$GLOBALS['xtpf']['fid26']}</div>
</center><br></div></td>
</div>
</td>
</tr>
</center>
</div></td>
</tr>
</center>
</td>
<td><img src="{$theme['imgdir']}/pixel.gif" height="1" width="8" alt=""/></td>
</tr>
</table>
{$footer}
</body>
</html>
</if>
Liebe Grüße vom Yasilein! Love
Zitieren
#65
Zuerst einmal kommt keine Bedingung vor einem HTML Tag. Weiterhin ist Dein Template voller Fehler bestückt.

Habe dies mal in die Schnelle grpb bearbeitet.

Code:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
</head>
<body>
{$header}
<if $GLOBALS['mybb']->user['usergroup'] == 1 then>
Für Gäste gibt es hier nichts zu sehen. Bitte Registrieren oder Anmelden.
<else>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
  <tr>
    <td class="trow1"></td>
  </tr>
  <tr>
    <td width="286px" align="right">
      <div style="width: 286px; height:343px; background-image: url('bild/bild.png');">
        <div style="height: 250px; width: 190px;  margin-top: 46px; margin-right: 48px; margin-bottom: 47px; margin-left: 48px; position: absolute;"><img src="{$theme['imgdir']}/noavatar.png" alt="" /></div>
      </div>
    </td>
    <td width="450px" align="left">
      <div style="text-align: justify; width: 460px;"><center>{$formattedname}<br /><br />
        <a href="{$userfields['fid13']}">EINS</a> # <a href="{$userfields['fid14']}">ZWEI</a></center>
        (<a href="search.php?action=finduserthreads&amp;uid={$uid}">{$lang->find_threads}</a> # <a href="search.php?action=finduser&amp;uid={$uid}">{$lang->find_posts}</a>)<br /><br />
        <center><div style="width: 250px; height: 110px; text-align: justify; overflow-y: scroll; padding-right: 7px;">
        <? echo $parser->parse_message(htmlspecialchars_decode($userfields['fid6']),array('allow_mycode'=>1));?>
        </div><br /></center><br />
        <center>{$sendemail} <a href="private.php?action=send&amp;uid={$userfields['uid']}">PN SENDEN</a><br /><b />FELD, IN DEM VERLINKT WERDEN SOLL:</b><br />
        <div style="width: 250px;">{$GLOBALS['xtpf']['fid26']}</div>
        </center><br />
      </div>
    </td>
  </tr>
  <tr>
    <td><img src="{$theme['imgdir']}/pixel.gif" height="1" width="8" alt="" /></td>
  </tr>
</table>
</if>
{$footer}
</body>
</html>

Ggf. bitte nochmal anpassen, falls ich etwas zuviel verändert oder gelöscht haben sollte.

PS: Bin erst heute Abend wieder da. (Geb feiern)
Mit freundlichen Grüßen

MrBrechreiz
Zitieren
#66
Ah, jetzt klappt es! Danke, vielleicht hat sich das echt gegenseitig behindert. Smile
Viel Spass beim Feiern! Smile
Liebe Grüße vom Yasilein! Love
Zitieren
#67
Hey ihr,

ich hab das Problem mit den Zeilenumbrüchen in 1.8. Kann mir da jemand helfen? Ich werd schon ganz Wahnsinnig, weil ich tausende Umbrüche einfügen muss, dass es eigenermaßen passt. Muss ich da irgendwas in den PHP dateien ändern? Das wäre für mich noch das einzige Logische.

lg
Alex
Zitieren
#68
Einfachste Lösung:

Gib der Klasse ".post .post_author div.author_statistics" eine feste Breite. Zum Beispiel 300px.
Mit freundlichen Grüßen

MrBrechreiz
Zitieren


Möglicherweise verwandte Themen…
Thema Verfasser Antworten Ansichten Letzter Beitrag
  Profilfeld mit Link Afrobongo 7 3.437 25.10.2013, 18:59
Letzter Beitrag: navis
  Profilfelder Zeilenumbruch federleicht 0 1.110 04.09.2011, 09:13
Letzter Beitrag: federleicht
  Zeilenumbruch in Awards 2.0 einfügen alexa 4 2.075 27.08.2011, 16:59
Letzter Beitrag: alexa
  [MyCode] Bei Zeilenumbruch kein Parsen Zwoetzen 3 2.281 01.12.2008, 22:46
Letzter Beitrag: Manuel