Advertise Here

Author Topic: [bug] Group Post Background color  (Read 1655 times)

0 Members and 1 Guest are viewing this topic.

Offline 4markie

  • SMF For Free Full Member
  • *
  • Posts: 141
    • View Profile
    • MARS- Markie's Action Replay Site

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
[bug] Group Post Background color
« on: July 28, 2009, 12:43:26 pm »
Forum Url: http://mars.smfforfree.com
Hi guys, just want to see if a coder could fix this  :-\  It's nothing big but It would be great if it could be fixed.

Take a look at the screenshot below and look in the red box ;)

http://i272.photobucket.com/albums/jj168/Roboticopperatingbuddy/membergrouppostbgbug.jpg

Hehe I know I complain about the stupidest things but I'm very picky sometimes.

Anyhow, as you can see there is a section of the screen modified by this code that is gold when it's not supposed to be.  It's not a huge problem at all but your time would be appreciated to fix this.

Thanks

EDIT: here is the code I am using
Code: [Select]
<script>
if (location.href.match("topic,")){
var postColor = new Array()
postColor[postColor.length] = ["Administrator","#CCCC00"]
postColor[postColor.length] = ["Global","#009900"]
for(f=0;f<postColor.length;f++){
$("tbody:contains(" + postColor[f][0] + ")").each(function(){
$(this).addClass(postColor[f][0]+"Class");
});
document.write("<st"+"yle>." + postColor[f][0] + "Class{background-color: " + postColor[f][1] +";}</st"+"yle>")
};};
</script>
« Last Edit: July 29, 2009, 11:02:21 am by simply sibyl »

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: [bug] Group Post Background color
« Reply #1 on: July 29, 2009, 12:10:06 am »
Try this:
Code: [Select]
<script>
if (location.href.match("topic,")){
var postColor = new Array()
postColor[postColor.length] = ["Administrator","#CCCC00"];
postColor[postColor.length] = ["Global","#009900"];

for(f=0;f<postColor.length;f++){
$("tbody tr td[width='16%'] div.smalltext:contains(" + postColor[f][0] + ")").each(function(){
$(this).parent().parent().parent().addClass(postColor[f][0]+"Class");
});
document.write("<st" + "yle>." + postColor[f][0] + "Class{background-color: " + postColor[f][1] +";}</st" + "yle>");
};};
</script>
Check out Revolution X's Brand new Code Index!

Offline 4markie

  • SMF For Free Full Member
  • *
  • Posts: 141
    • View Profile
    • MARS- Markie's Action Replay Site

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [bug] Group Post Background color
« Reply #2 on: July 29, 2009, 01:38:29 pm »
Try this:
Code: [Select]
<script>
if (location.href.match("topic,")){
var postColor = new Array()
postColor[postColor.length] = ["Administrator","#CCCC00"];
postColor[postColor.length] = ["Global","#009900"];

for(f=0;f<postColor.length;f++){
$("tbody tr td[width='16%'] div.smalltext:contains(" + postColor[f][0] + ")").each(function(){
$(this).parent().parent().parent().addClass(postColor[f][0]+"Class");
});
document.write("<st" + "yle>." + postColor[f][0] + "Class{background-color: " + postColor[f][1] +";}</st" + "yle>");
};};
</script>

Thanks moosie I'll try it   ;D

Offline 4markie

  • SMF For Free Full Member
  • *
  • Posts: 141
    • View Profile
    • MARS- Markie's Action Replay Site

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [bug] Group Post Background color
« Reply #3 on: July 29, 2009, 01:44:16 pm »
Yay Moose!  It worked thanks so much!  :smitten:

 

Related Topics

  Subject / Started by Replies Last post
18 Replies
18691 Views
Last post August 16, 2010, 12:28:58 am
by Inferno-Legion
3 Replies
1500 Views
Last post March 05, 2008, 03:00:11 pm
by Mystic_kid2k6
5 Replies
2698 Views
Last post May 07, 2009, 06:13:32 pm
by 4markie
4 Replies
921 Views
Last post July 15, 2010, 01:58:18 pm
by Inferno-Legion
3 Replies
3081 Views
Last post December 05, 2011, 07:34:46 pm
by simply sibyl