Webmaster общности: Predpriemach.com | SearchEngines.bg

    Подпис в профила

    Автор: Botzo

    И за това тук има подобен урок, но е за стара версия и не работи. Този работи със сигурност и показва подписа в профила на малко по-различно място.
    Версия на МОД-а: 1.0.0
    Съвместимост на МОД-а: 2.0.21 – 2.0.22

    ##############################################################
    ##
    ## Ниво на трудност: много лесно
    ## Време за инсталиране: 3-5 минути
    ## файлове за редактиране:
    ## /includes/usercp_viewprofile.php
    ## / templates/вашият темплейт/profile_view_body.tpl
    ##
    ##############################################################
    ## Преди да прибавите тоази МОД направете си ЗАДЪЛЖИТЕЛНО
    ## Back Up на всички файлове свързани с него !!!
    ##############################################################
    #-----[ ОТВАРЯМЕ ]--------------------------------------------------
    #
    includes/usercp_viewprofile.php
    
    #
    #-----[ НАМИРАМЕ ]--------------------------------------------------
    #
    $search = '<a href="' . $temp_url . '">' . sprintf($lang['Search_user_posts'], $profiledata['username']) . '</a>';
    
    #
    #-----[ СЛЕД НЕГО ДОБВЯМЕ ]------------------------------------------
    #
    //
    //Signatur in Profil ANFANG
    //
    $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 = !empty($orig_word) ? $orig_word : array();
    $replacement_word = !empty($replacement_word) ? $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);
    
    $template->assign_block_vars('switch_user_sig_block', array());
    }
    }
    //
    //Signatur in Profil ENDE
    //
    
    #
    #-----[ НАМИРАМЕ ]-------------------------------------------------
    #
    
    'POST_PERCENT_STATS' => sprintf($lang['User_post_pct_stats'], $percentage),
    
    #
    #-----[ СЛЕД НЕГО ДОБВЯМЕ ]-------------------------------------------------
    #
    'USER_SIG' => $user_sig,
    
    #
    #-----[ НАМИРАМЕ ]------------------------------------------
    #
    
    'L_INTERESTS' => $lang['Interests'],
    
    #
    #-----[ СЛЕД НЕГО ДОБВЯМЕ ]------------------------------------------------
    #
    
    'L_SIG' => $lang['Signature'],
    
    #
    #-----[ ОТВАРЯМЕ ]---------------------------------------------
    # note: do this for every template installed
    templates/xxx/profile_view_body.tpl
    
    #
    #-----[ НАМИРАМЕ ]---------------------------------------------
    #
    //--></script><noscript>{ICQ_IMG}</noscript></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    
    #
    #-----[ СМЕНЯМЕ СЪС ]-------------------------------------
    #
    //--></script><noscript>{ICQ_IMG}</noscript></td>
    </tr>
    </table>
    </td>
    </tr>
    <!-- BEGIN switch_user_sig_block -->
    <tr>
    <td colspan="2">
    <table width="100%">
    <tr>
    <td width="100%" class="catLeft" colspan="2" height="28" align="center"><span class="gen"><strong> {L_SIG} </strong></span></td>
    <tr>
    <td align = "center" class="row1"><span class="postbody"> {USER_SIG} </span></td>
    </tr>
    </table>
    </td>
    </tr>
    <!-- END switch_user_sig_block -->
    </table>
    
    #
    #-----[ ЗАПАЗВАМЕ И ЗАТВАРЯМЕ ВСИЧКИ ФАЙЛОВЕ ]------------------------------------------
    #
    #

    Успех!