Seite 1 von 1

Signatur im Profil anzeigen

Verfasst: 05.06.2006 15:45
von Phil_CH
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

Verfasst: 05.06.2006 15:53
von punkface

Verfasst: 05.06.2006 16:08
von Phil_CH
Super! Genau das habe ich gesucht!

Danke! Habe ich wohl übersehen :oops:

Verfasst: 05.06.2006 23:58
von Elvis
hier haste noch was....

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'] : '&nbsp;',

# 
#-----[ 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 ]-------------------------- 
#