Hallo Zusammen
Ich würde gerne das Profil meines Forum ein wenig erweitern, kann ich die Signatur des Benutzers jeweils auch im Profil anzeigen lassen? Wenn ja, wie genau gehe ich das an?
Verwende die neuste Version von PHP BB!
Danke und Gruss Phil
Signatur im Profil anzeigen
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
hier haste noch was....
damit wird die Signatur im Profil Angezeigt sofern ein User eine hat.
damit wird die Signatur im Profil Angezeigt sofern ein User eine hat.
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
$search = '<a href="' . $temp_url . '">' . $lang['Search_user_posts'] . '</a>';
#
#-----[ AFTER, ADD ]------------------------------------
#
// ### User Sig im Profil
$user_sig = '';
if ( $profiledata['user_attachsig'] && $board_config['allow_sig'] )
{
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
$user_sig = $profiledata['user_sig'];
$user_sig_bbcode_uid = $profiledata['user_sig_bbcode_uid'];
if ( $user_sig != '' )
{
if ( !$board_config['allow_html'] && $profiledata['user_allowhtml'] )
{
$user_sig = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $user_sig);
}
if ( $board_config['allow_bbcode'] && $user_sig_bbcode_uid != '' )
{
$user_sig = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $user_sig);
}
$user_sig = make_clickable($user_sig);
if (!$userdata['user_allowswearywords'])
{
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);
$user_sig = preg_replace($orig_word, $replacement_word, $user_sig);
}
if ( $profiledata['user_allowsmile'] )
{
$user_sig = smilies_pass($user_sig);
}
$user_sig = str_replace("\n", "\n<br />\n", $user_sig);
}
if ($user_sig != '')
{
$template->assign_block_vars('switch_user_sig_block', array());
}
}
// User Sig im Profil ###
#
#-----[ FIND ]------------------------------------------
#
'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ',
#
#-----[ AFTER, ADD ]------------------------------------
#
// ### User Sig im Profil
'USER_SIG' => $user_sig,
// User Sig im Profil ###
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_view_body.tpl
#
#-----[ FIND ]------------------------------------------
#
//--></script><noscript>{ICQ_IMG}</noscript></td>
</tr>
</table>
</td>
</tr>
</table>
#
#-----[ AFTER, ADD ]------------------------------------
#
<!-- BEGIN switch_user_sig_block -->
<br />
<table width="100%" class="forumline" border="0" cellspacing="1" cellpadding="2" align="center">
<tr>
<th class="thHead" height="25">{L_SIGNATURE} anzeige: {USERNAME}</th>
</tr>
<tr>
<td class="row1" align="left"><span class="postbody">{USER_SIG}</span></td>
</tr>
</table>
<!-- END switch_user_sig_block -->
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
#