SMF For Free Support Forum
Signup For Free Forum
July 30, 2010, 06:14:55 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: 1 [2] 3 4 5
  Print  
Author Topic: [Code] Member Legend under Users Online  (Read 13123 times)
0 Members and 1 Guest are viewing this topic.
Kimmie
SMF For Free Master
*
Offline Offline

Posts: 2010


View Profile WWW
« Reply #15 on: June 15, 2007, 04:02:00 pm »

I know I have to pick up my new glasses later today, but I don't see it either, even on the default skin.

its down at the very bottom of the forum. It shows up right under where the members online is
Logged

Kimmie
SMF For Free Master
*
Offline Offline

Posts: 2010


View Profile WWW
« Reply #16 on: June 15, 2007, 04:04:04 pm »

here is a screenshot:

Logged

Kimmie
SMF For Free Master
*
Offline Offline

Posts: 2010


View Profile WWW
« Reply #17 on: June 15, 2007, 09:52:47 pm »

I just thought of this and thought I would share it Smiley. Basically its another way of doing a member legend.

I used mooses code that puts a box under the users online area and made a member legend out of it:

screenshot of legend:


Moose's code (so you dont have to go hunt it down lol):
http://www.smfsupport.com/support/smf_for_free_codes/add_box_under_stats-t4299.0.html

my code so you can see how I did it:
Code:
<script>
function add_box_stats(){
$(function(){
//Created by Agent Moose
title = "Member Legend"
content = "[<font color=#3F33F3>Administrator</font>] [<font color=#006300>Staff</font>] [<font color=#FF6F00>Global Moderator</font>] [<font color= #993CF3>MVP</font>] [<font color=#9C0606>V.I.P.</font>]"

if(location.href.match(/index.php/)){
$("table").contains("Most Online Today:").after("<div id='upshrinkHeaderIC'><table border='0' width='100%' cellspacing='1' cellpadding='4' class='bordercolor'><tr><td class='titlebg' colspan='2'>"+title+"</td></tr><tr><td class='windowbg2' width='100%'><span class='middletext'>"+content+"</span></td></tr></table>");
};});}
add_box_stats();
</script>

I put in the code for 5 types of members to give you a start. You can just change the name of the membergroup and change the  color code to whatever you want to use. If you need to add more here is a simple explanation of how to insert another one:

add a space after the last "</font>]" and then insert this:

Code:
[<font color=???>NAME OF GROUP</font>] 

change the ? marks to the color you are wanting to use
change NAME OF GROUP to the name you have on your forum that you are wanting to add.
« Last Edit: June 16, 2007, 12:49:11 am by Kimmie » Logged

hatred
SMF For Free Full Member
*
Offline Offline

Posts: 112


View Profile
« Reply #18 on: June 23, 2007, 11:47:17 am »

This was working great, but I changed the style to light green and it won't work. I tried moving it around in footers, but that just screwed up my chat box and image shack link. Any suggestions?
Logged
Kimmie
SMF For Free Master
*
Offline Offline

Posts: 2010


View Profile WWW
« Reply #19 on: June 23, 2007, 07:26:42 pm »

This was working great, but I changed the style to light green and it won't work. I tried moving it around in footers, but that just screwed up my chat box and image shack link. Any suggestions?

it should work no matter what stylesheet you use. Headers/footers are global. Try removing the script...saving it...refreshing your browser, and then reinserting the script.
Logged

hatred
SMF For Free Full Member
*
Offline Offline

Posts: 112


View Profile
« Reply #20 on: June 24, 2007, 07:10:54 am »

Ok I will give it a try. Thank AGAIN Kimmie!
Logged
Adds
SMF For Free Full Member
*
Offline Offline

Posts: 177


Press alt + F4


View Profile WWW
« Reply #21 on: August 21, 2007, 05:20:45 pm »

love it thanks
Logged


GREAT DEALS ON CRUISES & ISLAND GETAWAYS At tru-healthtravel.com
MONF
SMF For Free Member
*
Offline Offline

Posts: 28



View Profile WWW
« Reply #22 on: September 02, 2007, 06:13:39 am »

On other forums (not SMF),
the code e.g. [adminstrator] is before th list of members online. Is there a way to do this on SMF?
Logged

simply sibyl
Global Moderator
*
Offline Offline

Posts: 13697



View Profile WWW
« Reply #23 on: September 02, 2007, 06:52:21 am »

On other forums (not SMF),
the code e.g. [adminstrator] is before th list of members online. Is there a way to do this on SMF?

Not sure I know what you mean.  You can put the membergroups in any order you wish on it.
Logged

cloudpaws
SMF For Free Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #24 on: September 02, 2007, 08:59:44 pm »

For some reason its not working for me >___<

Quote
<script>
function legend(){
//Created by Agent Moose (smcodes.smfforfree3.com)
$(function() {
var legendone = new Array()
legendone[0] = ["Staffer","#FFFFFF","<b>","</b>"]
legendone[1] = ["Italian Mafia","#FFEA25","<b>","</b>"]
legendone[2] = ["Russian Mob","#B5000C","<b>","</b>"]
legendone[3] = ["Neutral","#10A700","<b>","</b>"]
legendone[4] = ["Unsorted","#9C0606","<i>","</i>"]

c = $("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>
Logged
simply sibyl
Global Moderator
*
Offline Offline

Posts: 13697



View Profile WWW
« Reply #25 on: September 02, 2007, 10:53:11 pm »

For some reason its not working for me >___<

Quote
<script>
function legend(){
//Created by Agent Moose (smcodes.smfforfree3.com)
$(function() {
var legendone = new Array()
legendone[0] = ["Staffer","#FFFFFF","<b>","</b>"]
legendone[1] = ["Italian Mafia","#FFEA25","<b>","</b>"]
legendone[2] = ["Russian Mob","#B5000C","<b>","</b>"]
legendone[3] = ["Neutral","#10A700","<b>","</b>"]
legendone[4] = ["Unsorted","#9C0606","<i>","</i>"]

c = $("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>

I tried it at my test site.  It works.   
You put it in your Footer correct?

And be sure you have this in your header:

Code:
<script src="http://209.85.48.12/9581/134/upload/p4217340.ibf">//Jquery code</script>
Logged

cloudpaws
SMF For Free Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #26 on: September 03, 2007, 09:31:35 am »

Yeah, that's in my footer and the other thing is in my header :/
Is it maybe because I have the sidebar that it doesn't work?
Logged
simply sibyl
Global Moderator
*
Offline Offline

Posts: 13697



View Profile WWW
« Reply #27 on: September 03, 2007, 09:39:18 am »

Please leave your forum url so that we can take a  look at your header and footer.   
Logged

cloudpaws
SMF For Free Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #28 on: September 03, 2007, 11:36:33 am »

Oh geez >__< Sorry, I thought I had.
http://z3.invisionfree.com/Faces_of_New_York/index.php
Logged
simply sibyl
Global Moderator
*
Offline Offline

Posts: 13697



View Profile WWW
« Reply #29 on: September 03, 2007, 11:41:11 am »

Oh geez >__< Sorry, I thought I had.
http://z3.invisionfree.com/Faces_of_New_York/index.php

ah ha!   You are using Invision Power Board.    The code was written for SMF software and will not work with your forum. 
« Last Edit: September 03, 2007, 11:42:47 am by simply sibyl » Logged



Pages: 1 [2] 3 4 5
  Print  
 
Jump to:  



Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Hostgator Hosting
Page created in 0.397 seconds with 17 queries. (Pretty URLs adds 0.102s, 2q)