Simple Machine Codes
April 18, 2024, 12:28:26 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Gallery Affiliates Code Index Staff List Calendar Members Login Register  

Warn System

Pages: [1]   Go Down
  Print  
Author Topic: Warn System  (Read 1136 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: May 28, 2007, 08:57:43 pm »

Code:
<script>
function warning_system(){
//Created by Agent Moose
$(function() {
var warn = new Array()
warn[0] = ["USERNAME","IMAGE","COLOR OF TEXT","TEXT"]

for(j=0;j<warn.length;j++){
$("td b a").contains(warn[j][0]).after("<br><br><img src='"+warn[j][1]+"' /><font color='"+warn[j][2]+"'>"+warn[j][3]+"</font>")
};});}

warning_system();
</script>
Put in Footer

Remember:   All of my codes need to have this script in the Header  (only one copy):
 
Code:
<script language="JavaScript" type="text/javascript" src="http://209.85.48.12/9581/134/upload/p4217340.ibf">//Jquery code</script>

This code was requested alot I beleive.  So I made it...
USERNAME = The username you want to add a Warn to...
IMAGE = The image you want to use in from of the text[I prefer these ones]:
--http://www.highscape.net/smf/Themes/default/images/warnwarn.gif
--http://www.highscape.net/smf/Themes/default/images/warnpmod.gif
--http://www.highscape.net/smf/Themes/default/images/warnmute.gif
--http://www.highscape.net/smf/Themes/default/images/warnban.gif
COLOR OF TEXT = Put this the same color of the image you use to make it look better
TEXT = This is the text that will show beside the image EXAMPLES:
--Warned
--Moderated
--Muted
--Banned

If you want to add more users, just add more of these lines:
Code:
warn[x] = ["USERNAME","IMAGE","COLOR OF TEXT","TEXT"]
Change the x to the next number, If the first number was 0, the next one would be 1, after that, it would be 2 and so on.

I hope you like it!

edit by simply sibyl  "added header code reminder"
Report Spam   Logged

Share on Facebook Share on Twitter

Frost
Members

Offline Offline

Posts: 30


View Profile
« Reply #1 on: July 20, 2007, 02:37:43 am »

I like this but when i try it nothing would happen

My header and footer looks like this
http://i188.photobucket.com/albums/z114/Shinsen_Soul/help.jpg
(go to the url for the pic)

Soryr if i put it wrong im just a newbie

and.. i did press modify
Report Spam   Logged
Frost
Members

Offline Offline

Posts: 30


View Profile
« Reply #2 on: July 21, 2007, 12:58:58 am »

Ok problem solved.

http://dispatcher.smfforfree3.com/index.php/topic,33.0.html

Added custom messages and warn system  Cheesy
Report Spam   Logged
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #3 on: July 21, 2007, 01:24:44 am »

Glad to see ya got it working
Report Spam   Logged

Frost
Members

Offline Offline

Posts: 30


View Profile
« Reply #4 on: July 21, 2007, 08:23:38 pm »

oh yeah and the pictures are out of date.. i cant access them all.
Report Spam   Logged
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #5 on: July 22, 2007, 07:16:02 pm »

Well, that sucks.  I dont know what to do because I didn't make them.
Report Spam   Logged

Agent Moose Jr.
Ultra Contagious
Global Moderator

Offline Offline

Gender: Male
Posts: 1,045



View Profile WWW
« Reply #6 on: January 04, 2008, 01:27:46 pm »

nice job
Report Spam   Logged

Newest:

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy