MyBB Tutorials

Different usertitle style based on defined uid

Submitted by linkzy, , Thread ID: 52

Thread Closed
linkzy
No pressure, no diamonds
Level:
0
Reputation:
181
Posts:
5.34K
Likes:
341
Credits:
54
15-01-2015, 07:55 AM
This post was last modified: 17-01-2015, 09:19 AM by linkzy
#1
You Need Php Template conditional plugin

1- Now open postbit template or postbit_classic whatever one you actually using
Find:
Code (Text):
{$post['usertitle']}
Replace it with:
PHP:
PHP Code:
<if $post['uid'] == 2 then>
                <
span style="color: red;">{$post['usertitle']}</span>
<else />
{
$post['usertitle']}
</if><
br /> 

This will give the user with the id = 2 different usertitle style wich ofc is defined by you.


Now this will work on postbit only, if you want to change it on member profile too do this:
1- Open Member Template -> member_profile
Find:
PHP Code:
{$usertitle
Replace it with:

PHP Code:
<if $memprofile['uid'] == 2 then>
                <
span style="color: red;">paki wizard</span>
<else>
{
$usertitle}
</if><
br /> 


That's it, hope you enjoyed the tutorial.
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |



Users browsing this thread: 1 Guest(s)