
Mit dieser änderung sehe Ich es vor jedem Namen, egal ob in der Gruppe oder nicht (vielleicht hilft das ja):
Code: Alles auswählen
<!-- IF not postrow.S_GROUP_10 --> u_isap<!-- ENDIF -->
Code: Alles auswählen
<!-- IF not postrow.S_GROUP_10 --> u_isap<!-- ENDIF -->
<!-- IF [color=#0040FF]not[/color] postrow.S_GROUP_10 -->
Code: Alles auswählen
<!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF -->
Code: Alles auswählen
<!-- IF postrow.S_GROUP_12 --><img src="{T_THEME_PATH}/images/grafik.gif" width="20" height="16" alt="" /> <!-- ENDIF -->
Code: Alles auswählen
<!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF -->
Code: Alles auswählen
<!-- IF postrow.S_GROUP_12 --> <img src="{T_THEME_PATH}/images/grafik.gif" width="20" height="16" alt="" /><!-- ENDIF -->
Also die Gruppenvariable wird ordnungsgemäß bereit gestellt in Deiner Codeumsetzung.klok hat geschrieben:Echt ärgerlich wenn es eigentlich funktionieren sollte, aber aus irgendeinem Grund es dies nicht tut.
">
in der viewtopic_body.htmlCode: Alles auswählen
<!-- IF not postrow.S_IGNORE_POST -->
<dl class="postprofile" id="profile{postrow.POST_ID}">
<dt>
<div class="vt_u_name-rank"><div class="vt_u_name<!-- IF not postrow.S_GROUP_10 --> u_isap<!-- ENDIF -->"><!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF --></div>
<!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd class="vt_u_rank">{postrow.RANK_TITLE}<!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF -->
<!-- IF postrow.POSTER_AVATAR -->
<!-- IF postrow.U_POST_AUTHOR and postrow.RANK_TITLE --><div class="vt_u_avi"><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a></div><!-- ELSEIF postrow.U_POST_AUTHOR --><div class="vt_u_avi_norank"><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a></div><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF --><br />
<!-- ENDIF -->
</dt>
Code: Alles auswählen
<div class="vt_u_name-rank">
<div class="vt_u_name u_isap">
<a href="./memberlist.php?mode=viewprofile&u=55">UserOne</a>
</div>
<div class="vt_u_avi_norank">
<a href="./memberlist.php?mode=viewprofile&u=55">
</div>
<br>
</div>
Code: Alles auswählen
.u_isap { background: url('http://www.imvu.com/common/img/icons/ap_18x14.png') no-repeat top left; padding-left: 20px; }
Die functions_user.php ist in meinem Falle das Original der Version 3.0.11.Parse error: syntax error, unexpected T_VARIABLE, expecting '{' in /kunden/368453_28279/webseiten/pacr/viewtopic.php on line 1621
Code: Alles auswählen
if ( !function_exists('group_memberships') )
{
include($phpbb_root_path . 'includes/functions_user.'.$phpEx);
}
// zu überprüfende Gruppen ID ( Beispiel Gruppen ID 5 )
$gruppen_id = 10;
// zu überprüfender User ( Beispiel: Der User, der diese Seite aufgerufen hat )
$benutzer_id = $poster_id;
// Nun erfolgt die eigentliche Prüfung:
$is_in_group = group_memberships($gruppen_id, $benutzer_id , true);
if ($is_in_group == true)
{
// Teile dem Template System mit, das die Variable "S_IN_GROUP" den Wert TRUE bekommt
$template->assign_var('S_IN_GROUP_AP', true);
}
Code: Alles auswählen
if ( !function_exists('group_memberships') )
{
include($phpbb_root_path . 'includes/functions_user.'.$phpEx);
}
// zu überprüfende Gruppen ID ( Beispiel Gruppen ID 5 )
$gruppen_id = 10;
// zu überprüfender User ( Beispiel: Der User, der diese Seite aufgerufen hat )
$benutzer_id = $poster_id;
// Nun erfolgt die eigentliche Prüfung:
$is_in_group = group_memberships($gruppen_id, $benutzer_id , true);
if ($is_in_group == true)
{
// Teile dem Template System mit, das die Variable "S_IN_GROUP_AP" den Wert TRUE bekommt
$postrow['S_IN_GROUP_AP'] = true;
}
Code: Alles auswählen
function group_memberships($group_id_ary = false, $user_id_ary = false, $return_bool = false)