Show warning level only to admins/hide from users

by linkzy - 18-01-2015, 08:29 PM
لا إله إلا الله‎
Posts:
6,344
Joined:
Jan 2015
Likes:
315
Credits:
30
Reputation:
168
3 Years of Service
#1
OP
Posted: 18-01-2015, 08:29 PM (This post was last modified: 26-01-2015, 09:18 PM by linkzy.)
Today I'm going to show you, how you can hide the warning level from members except admins.
First of all, you'll need this plugin. - http://nulledbb.com/Thread-PHP-in-Templates-2-0

Next, go to AdminCP > Templates & Style > Templates > YOUR THEME TEMPLATES > Postbit Templates > postbit_warninglevel:

Replace this code with

PHP Code:
<br />{$lang->postbit_warning_level} <a href="{$warning_link}">{$warning_level}</a


this
Please register or login in order to unlock hidden content.

thx to kewl
Done :D Tongue


For shawing this warning level for more thn one user group then try this code.


Please register or login in order to unlock hidden content.


Enjoy
| A- Best forever .. | Legend - ;) | Addicted | Senpai | sad | Sensei | H | fdigl |
[Image: gZD4Fba.png]

Freak
Posts:
3,336
Joined:
Jan 2015
Likes:
246
Credits:
4,414
Reputation:
141
3 Years of Service
#2
Posted: 18-01-2015, 08:31 PM
Pretty easy to follow tutorial.
Won't be active here anymore.
Veteran Member
Supreme
Posts:
309
Joined:
Jan 2015
Likes:
38
Credits:
139
Reputation:
28
3 Years of Service
#3
Posted: 18-01-2015, 08:56 PM
Simple enough. Don't forget to place the content in your post in hidden tags to prevent leaching.
NulledBB Member Since 2013 | Former Staff Member | Web Designer

Need MyBB/website help? Feel free to message me!
لا إله إلا الله‎
Posts:
6,344
Joined:
Jan 2015
Likes:
315
Credits:
30
Reputation:
168
3 Years of Service
#4
OP
Posted: 18-01-2015, 09:10 PM
(18-01-2015, 08:56 PM)John Wrote: Simple enough. Don't forget to place the content in your post in hidden tags to prevent leaching.



Yeah thx for making me remember of the tags :D
| A- Best forever .. | Legend - ;) | Addicted | Senpai | sad | Sensei | H | fdigl |
[Image: gZD4Fba.png]

We are!
Posts:
1,044
Joined:
Jan 2015
Likes:
108
Credits:
1,954
Reputation:
25
3 Years of Service
#5
Posted: 26-01-2015, 09:03 PM
You can do this as well for multiple groups.

Enjoy. ;P

Please register or login in order to unlock hidden content.


Change 4,5 or 6 to the usergroup you whish to be available to see the warning. :yus:
لا إله إلا الله‎
Posts:
6,344
Joined:
Jan 2015
Likes:
315
Credits:
30
Reputation:
168
3 Years of Service
#6
OP
Posted: 26-01-2015, 09:14 PM
(26-01-2015, 09:03 PM)Kewl Wrote: You can do this as well for multiple groups.

Enjoy. ;P

Please register or login in order to unlock hidden content.


Change 4,5 or 6 to the usergroup you whish to be available to see the warning. :yus:

Thx for sharing that broh ;) ill add that in main post too :D
| A- Best forever .. | Legend - ;) | Addicted | Senpai | sad | Sensei | H | fdigl |
[Image: gZD4Fba.png]

The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)