Archive for howtodoit.myfastforum.org 
 



       howtodoit.myfastforum.org Forum Index -> Add-on`s for your forum
Symon

Red Yellow Card Warning System

A word of warning before you use this hack.

The best way to use a warning system is to pm the member to tell them that have occurred a warning and to also explain why.

Then by using admin notes (if you do not have this set up read HERE) you can make a note that you have warned that person.

This keeps it away from public eye and minimalism any embarrassments.
The full on warning hack like below could lead to members collecting the cards for trophy's and cause embarrassment to members that feel they have been warned incorrectly.
It can also lead to disharmony between members and staff.




Please remember to use the Editor account before making any template changes, If you have not made an editor account yet please read HERE

Second you must have all ready a template you can edit.

If you have not done this please read HOWTODOIT

First of all please upload these images to your template








1.You must have TWO profile field set up to use with this.

So for this example I have created TWO called YELLOWCARD And REDCARD



1.Go to your forum's Administration Panel ----- 2. General --- Profile Fields

Now add YELLOWCARD And click Add Custom Profile Field

You will now see this screen



Fill out the details as shown in the image then click submit. (Of course you can edit to suit your forum.)

In the Display as image

Code:
/templates/****/images/Yellow.jpg


And

Code:
/templates/****/images/Red.jpg


*** = the name of your template for example mine would be

Code:
/templates/myff_farnboroughinvincibles1/images/Yellow.jpg




Now click submit

Now Repeat STEP 1 again but this time call it REDCARD

Now goto admin panel --- 3. Styles --- Edit Templates/Logos -- the template you wish to edit (EG myff_howtodoit1)--- Submit

Now look at the top in the area marked Choose Forum template/javascript/css File to Edit use the drop down bar and find[/b]

profile_view_body.tpl

You should now see the code like this

Code:
 
    <tr>
                       <td valign="top" align="right" nowrap="nowrap"><span class="genmed">{L_INTERESTS}:</span></td>
                       <td> <b><span class="genmed">{INTERESTS}</span></b></td>
                     </tr>
    


So if you wanted it to appear after interests you would add

Code:
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">Warnings: {YELLOWCARD_IMG} = {YELLOWCARD} {REDCARD_IMG}  {REDCARD}&nbsp;</span></td>
</tr>


Just below it so it may look like this.

Code:
<tr>
                       <td valign="top" align="right" nowrap="nowrap"><span class="genmed">{L_INTERESTS}:</span></td>
                       <td> <b><span class="genmed">{INTERESTS}</span></b></td>
                     </tr>

<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">Warnings: {YELLOWCARD_IMG} = {YELLOWCARD} {REDCARD_IMG}  {REDCARD}&nbsp;</span></td>
</tr>


Which gives a look like this





And





To make the cards appear in the users posts like below




Goto viewtopic_body.tpl

Now place where you wish it to be for my example if you wish it to be after location then find

Code:
{postrow.POSTER_FROM}


And after place this code



Code:
<br /> Warnings: = {postrow.YELLOWCARD_IMG} {postrow.YELLOWCARD} {postrow.REDCARD_IMG} {postrow.REDCARD}<br /> <br /></span>


Now How to give those cards (only admins can)

Goto admin -- panel -- 4. Users -- User list

Now find the person you wish to card and edit their profile you will now see a screen like this




Now if left blank no card will appear but if you enter any text the card will appear, plus the text you have entered, for example in this guide I entered X1 so if you have a 4 warning rule you could just edit it each time from X1 to X2 or X3 and so on until they get a Red Card. Then you clear the YELLOWCARD field and place X1 in the REDCARD field Instead.

       howtodoit.myfastforum.org Forum Index -> Add-on`s for your forum
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum