MyBB Support

Inserting text into a template

Submitted by Addicted, , Thread ID: 11839

Thread Closed

RE: Inserting text into a template

This post was last modified: 25-10-2015, 07:56 PM by linkzy
#3
Not sure what it does but its similar to years of service

PHP Code:
// Add <yrs_lsx> in the postbit to show it up.
$plugins->add_hook'postbit''yrs_lsx' );

function 
yrs_lsx(&$post)
{
        
$yrslsx date'Y'TIME_NOW $post['userregdate'] );
        
$years = ( $yrslsx == 1  ) ? 'Year' 'Years';
         return 
str_replace('<yrs_lsx>'$yrslsx $years' of Service' $post['message']); 


and about that staff tag. it can be doen by checking if user is given gid.. if its == true then
find_replace_templatesets that temp
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |



Users browsing this thread: 3 Guest(s)