Post by dillonk47polik on May 8, 2015 8:41:12 GMT -8
Don't like the built-in warning system (0%-100% bar)?
Here is a 3 point warning system accomplished by an easy template modification.
__________What This Code Does__________
With this code, set the user's warning level as 1, 2, or 3.
Each will display as follows:
Warnings: ?
Warnings: ??
Warnings:
__________How To Embed Code__________
First make your warning system is enabled.
Go to Admin CP > Settings > Forum Settings > Forum.
Themes > Layout Templates > Mini-Profile
Place this code wherever you want the warning to be displayed in the mini-profile.
Themes > Layout Templates > User Profile > Summary
Replace this:
With this
This warning system is further customizable. You can change what text is displayed before the special character ( td">Warnings: {/if} ). You can change each warning level number ( == "1" ) to whichever number you would like to activate the effect. You can change which color you would like the warning to display as ( <font color="red"> ) to display your desired color. You can change the warning level character to any other special character ( ? ). You can also change the number of special characters to be displayed ( ?? ).
An example, changing the code to display a warning level of 4 as five ?'s in blue with 'Warning Level:' text:
td">Warning Level: {/if} + {if $[user.warning.level] == "4"}<font color="blue">??</font> = Warning Level: ??
__________How To Add Warning Levels__________
To add additional warning levels to the code, add between the final </font> & {/if} in the mini-profile template and between the final <font> and first {/if} profile template; while making sure to change the warning level number, font color, and special character to fit the added warning levels.
LAST UPDATED: May 26, 2015 __________
Here is a 3 point warning system accomplished by an easy template modification.
__________What This Code Does__________
With this code, set the user's warning level as 1, 2, or 3.
Each will display as follows:
Warnings: ?
Warnings: ??
Warnings:
__________How To Embed Code__________
First make your warning system is enabled.
Go to Admin CP > Settings > Forum Settings > Forum.
Themes > Layout Templates > Mini-Profile
Place this code wherever you want the warning to be displayed in the mini-profile.
{if $[user.warning.level]}Warnings: {/if}{if $[user.warning.level] == "1"}<font color="#fee330">?</font>{elseif $[user.warning.level] == "2"}<font color="orange">??</font>{elseif $[user.warning.level] == "3"}<font color="red"></font>{/if}
Themes > Layout Templates > User Profile > Summary
Replace this:
{if $[user.warning.bar]}
<div class="content-box center-col">
<table><tr><td class="warning-table-td">Warning Level: </td><td>$[user.warning.bar]</td></tr></table>
</div>
{/if}
<div class="content-box center-col">
<table><tr><td class="warning-table-td">Warning Level: </td><td>$[user.warning.bar]</td></tr></table>
</div>
{/if}
With this
{if $[user.warning.level]}
<div class="content-box center-col">
<table><tr><td class="warning-table-td">Warnings:
{if $[user.warning.level] == "1"}<font color="#fee330">?</font>
{elseif $[user.warning.level] == "2"}<font color="orange">??</font>
{elseif $[user.warning.level] == "3"}<font color="red"></font>{/if}
</td></tr></table>
</div>
{/if}
<div class="content-box center-col">
<table><tr><td class="warning-table-td">Warnings:
{if $[user.warning.level] == "1"}<font color="#fee330">?</font>
{elseif $[user.warning.level] == "2"}<font color="orange">??</font>
{elseif $[user.warning.level] == "3"}<font color="red"></font>{/if}
</td></tr></table>
</div>
{/if}
This warning system is further customizable. You can change what text is displayed before the special character ( td">Warnings: {/if} ). You can change each warning level number ( == "1" ) to whichever number you would like to activate the effect. You can change which color you would like the warning to display as ( <font color="red"> ) to display your desired color. You can change the warning level character to any other special character ( ? ). You can also change the number of special characters to be displayed ( ?? ).
An example, changing the code to display a warning level of 4 as five ?'s in blue with 'Warning Level:' text:
td">Warning Level: {/if} + {if $[user.warning.level] == "4"}<font color="blue">??</font> = Warning Level: ??
__________How To Add Warning Levels__________
To add additional warning levels to the code, add
{elseif $[user.warning.level] == "3"}<font color="red"></font>
LAST UPDATED: May 26, 2015 __________