MyBB Tutorials

Show warning level only to admins/hide from users

Submitted by linkzy, , Thread ID: 405

Thread Closed
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

#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

#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

OP
#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

#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

OP
#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)