Advertise Here

Author Topic: code]how to put words under your name when logged in  (Read 1122 times)

0 Members and 1 Guest are viewing this topic.

Offline raging death

  • SMF For Free Newbie
  • *
  • Posts: 5
    • View Profile

  • Total Badges: 8
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 First Post
code]how to put words under your name when logged in
« on: October 10, 2008, 11:29:19 pm »
Add this to your Headers if you don't have it already.  If you already have it, don't add it:

Code:
<script src="jquery.js"></script>
Add this to your Footers...

Code:
<script>
function legend(){
//Created by front line34 (smcodes.smfforfree3.com)
$(function() {
var legendone = new Array()
legendone[0] = ["GROUP","COLOR","START HTML","END HTML"]

c = document.getElementsByTagName("div")
for (v=0;v<c.length;v++)
for(t=0;t<legendone.length;t++){
if((c[v].className=="smalltext")&&(c[v].innerHTML.match(/Users active in past/))){
c[v].innerHTML+="["+legendone[t][2]+"<font color='"+legendone[t][1]+"'>"+legendone[t][0]+"</font>"+legendone[t][3]+"]  "
};};});}
legend()
</script>
GROUP = The Name of the group
COLOR = The color of the Group
START HTML = What HTML you want to add to it.  Since it is the Start, you would add <b> or <i> or something.
END HTML = This is the END HTML part, which, if you have a <b> in the START HTML section, you would add a </b> in the END HTML section.
Here is an example:

Code:
legendone[0] = ["Admin","red","<b>","</b>"]
If you want to add more groups, just add more of these lines

Code:
legendone[0] = ["GROUP","COLOR","START HTML","END HTML"]Make sure you add one to the 0 part, when you add another line.  If you add another line after that, you change the 0 to a 1.

I hope you like it!
« Last Edit: October 10, 2008, 11:36:52 pm by raging death »

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: code]how to put words under your name when logged in
« Reply #1 on: October 11, 2008, 12:20:19 am »
Please don't take a code that someone else created and say that you created it.
The Original Topic of this code: http://www.smfsupport.com/support/smf_for_free_codes/member_legend_under_users_online-t4692.0.html

When you claim a code as your own, it is called Ripping, basically stealing.

-Topic Locked-
Check out Revolution X's Brand new Code Index!

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
1104 Views
Last post October 31, 2007, 10:49:26 pm
by simply sibyl
55 Replies
16086 Views
Last post May 13, 2008, 07:24:27 pm
by Purple
6 Replies
3064 Views
Last post November 11, 2008, 11:43:16 am
by simply sibyl
3 Replies
2217 Views
Last post September 01, 2009, 12:32:55 am
by Jish
3 Replies
985 Views
Last post August 09, 2010, 10:58:11 am
by The Fate