Simple Machine Codes
April 20, 2024, 01:05:56 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  

Automatic Color for Locked Topics

Pages: [1]   Go Down
  Print  
Author Topic: Automatic Color for Locked Topics  (Read 930 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: July 16, 2007, 08:18:26 pm »

Preview
http://mooseycodes.smfforfree3.com/index.php/board,2.0.html

Footers:
Code:
<script>
function lock_topic_color(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var color = "COLOR HERE";
if(location.href.match(/board,(\d+)/i)){
var b = document.getElementsByTagName("td");
for(a=0;a<b.length;a++){
if(b[a].className == "windowbg3" && b[a].innerHTML.match("quick_lock.gif")){
var d = b[a].getElementsByTagName("A")[0]
d.innerHTML = "<font color='" + color + "'>" + d.innerHTML + "</font>";
};};};};
lock_topic_color();
</script>

If there is a Locked topic, the color of that link will automaticly turn the color you choose it to be.   All you have to do it change COLOR HERE to the color of your choice.
« Last Edit: May 02, 2008, 09:44:34 pm by Agent Moose » Report Spam   Logged

Share on Facebook Share on Twitter

kevin-1990
Jezus I am scary
Members

Offline Offline

Posts: 52



View Profile
« Reply #1 on: July 17, 2007, 08:19:25 am »

wow pretty awesome, you should really makes some previeuws so people can see
and also it shows prove that they work
Report Spam   Logged
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #2 on: July 17, 2007, 09:48:24 am »

Well, for this, I don't really see use in a preview.  The topic title says it all.  And I make sure they all work before I post them.
Report Spam   Logged

kevin-1990
Jezus I am scary
Members

Offline Offline

Posts: 52



View Profile
« Reply #3 on: July 17, 2007, 12:20:14 pm »

Well, for this, I don't really see use in a preview.  The topic title says it all.  And I make sure they all work before I post them.

well a previeuw shows that it workes and how it looks.
personly I think It handy.
Report Spam   Logged
LaundryLady
Geriatric Goddess
Global Moderator

Offline Offline

Gender: Female
Posts: 290


I'm watching, I have a sense of humor: Guess Who


View Profile
« Reply #4 on: July 17, 2007, 12:28:07 pm »

I also like previews when they are possible.  Sometimes I have a hard time understanding what a code is going to look like when it is done.  Of course that is why you have a test forum.  You do have a test forum don't you?
Report Spam   Logged

Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #5 on: July 17, 2007, 05:26:45 pm »

Yep I do, but I use it to test new codes on, and not to show previews of the codes.  I will make anotehr forum with previews of my codes.

EDIT: Well, the preview for this code isn't working, basicly the code doens't work.  It was working when I made it though.  Hmmm..

EDIT2:  I got it to work,  I just had a class name wrong.  Here ya go:
http://mooseycodes.smfforfree3.com/index.php/board,2.0.html
« Last Edit: July 17, 2007, 05:36:54 pm by Agent Moose » Report Spam   Logged

kevin-1990
Jezus I am scary
Members

Offline Offline

Posts: 52



View Profile
« Reply #6 on: July 17, 2007, 06:07:05 pm »

PWNES CODE!
Report Spam   Logged
LaundryLady
Geriatric Goddess
Global Moderator

Offline Offline

Gender: Female
Posts: 290


I'm watching, I have a sense of humor: Guess Who


View Profile
« Reply #7 on: July 17, 2007, 08:37:01 pm »

LOL, sorry Moose, I was answering Kevin
Report Spam   Logged

Frost
Members

Offline Offline

Posts: 30


View Profile
« Reply #8 on: July 21, 2007, 02:28:04 am »

****, I cant help but to brag to myself about what i didwith my forums with your stylesheets and tutorials.

Join the forum to see everything, moose.

What I did in one day :
- Added Money
- Added warning system
- Added chatbox
- Used Moose's skin
- Added images next to name
- Added portal
- Did the tut " Most User online revamp "
- Added "Go up" and "Go down" tabs
- Changed offline and online text
- Added custom messages
- Added Member legend ( which never worked )
- Changed "Hello" to "Welcome +user.Name"


case 128: stupid();
if >= tutisStupid();
else if (tut.startsWith("Noob-Friendly");
sendMessage("Delete");
} else {
sendMessage("Good job!");
sendMessage("Moose please click me");
break;
« Last Edit: July 21, 2007, 08:33:10 am by Frost » Report Spam   Logged
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #9 on: July 21, 2007, 09:41:24 am »

Wow, that is a lot of my codes you added!  And I like your little link thingy. lol
Report Spam   Logged

Frost
Members

Offline Offline

Posts: 30


View Profile
« Reply #10 on: July 21, 2007, 08:31:25 pm »

(Brags about self being a java pro)

Thx..I just got it to work.
Preview :
http://dispatcher.smfforfree3.com/index.php/board,2.0.html

Oh yeah. I got a few lines in the link wrong.. Here's the correct one :

case 128: stupid();
if >= tutisStupid;
and (tut.startsWith("Noob-Friendly");
disconnected = true;
appendtoBanned = true;
forgive = false;
} else {
disconnected = false;
appendtoBanned = false;
sendMessage("Good job!");
Frost to Moose("Moose please click me~");
break;

Explain :
If the tutorial is stupid, and the tutorial topic starts with Noob-friendly, the server will disconnect that idiot, ban him and never forgive.

Else if the tutorial is good, he/she won't disconnect or get banned. The server will then tell him/her "Good Job!". Lol.
« Last Edit: July 21, 2007, 08:33:49 pm by Frost » Report Spam   Logged
Agent Moose Jr.
Ultra Contagious
Global Moderator

Offline Offline

Gender: Male
Posts: 1,045



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

nice job
Report Spam   Logged

Newest:

Blahs
100 Club Member

Offline Offline

Posts: 184


Rockstar!


View Profile WWW
« Reply #12 on: March 22, 2008, 11:17:47 pm »

how do I do stickied ones???
Report Spam   Logged


Join my forums!!!!
Url: http://silabforums.smfforfree4.com/index.php
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