MyBB Tutorials

Show warning level only to admins/hide from users

Submitted by linkzy, , Thread ID: 405

Thread Closed
linkzy
No pressure, no diamonds
Level:
0
Reputation:
181
Posts:
5.34K
Likes:
341
Credits:
54
18-01-2015, 07:29 PM
This post was last modified: 26-01-2015, 08:18 PM by linkzy
#1
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
Content locked
This content has been locked. Please login or register in order to unlock it.

thx to kewl
Done :D Tongue


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


Content locked
This content has been locked. Please login or register in order to unlock it.


Enjoy
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |


RE: Show warning level only to admins/hide from users

Nasyr
Forum Janitor
Administrators
Level:
54
Reputation:
284
Posts:
8.05K
Likes:
959
Credits:
80
18-01-2015, 07:31 PM
#2
Pretty easy to follow tutorial.
Please read the award requirements here before applying for them.
Rules and Regulations | Support Section | How to use Hide Tags
Don't message me to join a group, simply request to join one here.

RE: Show warning level only to admins/hide from users

John
Veteran Member
Level:
0
Reputation:
25
Posts:
245
Likes:
38
Credits:
159
18-01-2015, 07:56 PM
#3
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!

RE: Show warning level only to admins/hide from users

linkzy
No pressure, no diamonds
Level:
0
Reputation:
181
Posts:
5.34K
Likes:
341
Credits:
54
OP
18-01-2015, 08:10 PM
#4
18-01-2015, 07: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 | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |


RE: Show warning level only to admins/hide from users

Akay
We are!
Level:
0
Reputation:
28
Posts:
946
Likes:
109
Credits:
2.05K
26-01-2015, 08:03 PM
#5
You can do this as well for multiple groups.

Enjoy. ;P

Content locked
This content has been locked. Please login or register in order to unlock it.


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

RE: Show warning level only to admins/hide from users

linkzy
No pressure, no diamonds
Level:
0
Reputation:
181
Posts:
5.34K
Likes:
341
Credits:
54
OP
26-01-2015, 08:14 PM
#6
26-01-2015, 08:03 PM
Kewl Wrote:
You can do this as well for multiple groups.

Enjoy. ;P

Content locked
This content has been locked. Please login or register in order to unlock it.


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

Thx for sharing that broh Wink ill add that in main post too :D
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |



Users browsing this thread: 1 Guest(s)