Advertise Here

Author Topic: [Code] Post Text Color by Member  (Read 5609 times)

0 Members and 1 Guest are viewing this topic.

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
[Code] Post Text Color by Member
« on: April 28, 2010, 09:27:49 am »
Headers: (only add if you don't have it already)
Code: [Select]
<script type="text/javascript" src="/jquery.js"></script>
Footers:
Code: [Select]
<script type="text/javascript">
function PostTextMem(UseHerName,Colhore){
//Created by Agent Moose
$("td[width=16%] b a").each(function(){
if(this.innerHTML.toLowerCase() === UseHerName.toLowerCase()){
$(this).parent().parent().next().find("div.post").attr("style","color: " + Colhore);
};});};
PostTextMem("USERNAME","COLOR");
</script>
Original Request: http://www.smfsupport.com/support/code-requests/change-post-text-colours/

USERNAME = The username of the person change text color
COLOR = The color that the text will be.

Enjoy :)
Check out Revolution X's Brand new Code Index!

Offline Alert

  • SMF For Free Member
  • *
  • Posts: 32
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] Post Text Color by Member
« Reply #1 on: April 28, 2010, 10:24:00 am »
Woow! Great!!
Thanks for doing my request!!
I am working on my own coding forums!
We'll get Agent Moose in, wont we!

Offline Alert

  • SMF For Free Member
  • *
  • Posts: 32
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] Post Text Color by Member
« Reply #2 on: April 28, 2010, 10:33:06 am »
Also - I cant beleve it because someone actually hellped! :D

edit: SORRY - DOUBLE POSTED BY ACCIDENT!
I am working on my own coding forums!
We'll get Agent Moose in, wont we!

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Post Text Color by Member
« Reply #3 on: April 28, 2010, 12:01:08 pm »
Also - I cant beleve it because someone actually hellped! :D

If Moose thinks he can do it he will usually jump right on it (if he has the time)  ;)

Quote
edit: SORRY - DOUBLE POSTED BY ACCIDENT!

No prob  ;)

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] Post Text Color by Member
« Reply #4 on: April 28, 2010, 12:11:42 pm »
I will probably make it into all javascript later.  I also more than likely will make it so it can go by username or membergroup :)
Check out Revolution X's Brand new Code Index!

Offline Alert

  • SMF For Free Member
  • *
  • Posts: 32
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] Post Text Color by Member
« Reply #5 on: April 28, 2010, 01:25:24 pm »
What I mean, its just amazing. Most other forum communitys just egnore you. They wont even post to say they cant do it, to help the thread stay alive... They just leave it to die down then I never get what I asked. On here, someone replyed and said they could do it and they were the really quick to reply. Its just so amazing that this happened.

Thanks again!
I am working on my own coding forums!
We'll get Agent Moose in, wont we!

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Post Text Color by Member
« Reply #6 on: April 28, 2010, 01:29:08 pm »
You are welcome.   We try to catch all posts , even if it's only to let you know we'll look into it.   Yeah it does suck to never get an answer and feel like there is no support to be found.    Moose is pretty busy at times and this time you caught him when he had time to jump right on it  ;)      btw sorry for my faulty reply at first ... I  had a "duh.. didnt read it right" moment there.

Offline Alert

  • SMF For Free Member
  • *
  • Posts: 32
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] Post Text Color by Member
« Reply #7 on: April 28, 2010, 01:48:59 pm »
Also, does this work if you add another
Code: [Select]
PostTextMem("USERNAME","COLOR"); underneath?
I am working on my own coding forums!
We'll get Agent Moose in, wont we!

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Post Text Color by Member
« Reply #8 on: April 28, 2010, 02:25:11 pm »
hi Alert.. until Moose comes around to answer you could try it with either another member or a test account and see if it will work

Offline Alert

  • SMF For Free Member
  • *
  • Posts: 32
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] Post Text Color by Member
« Reply #9 on: April 28, 2010, 02:40:58 pm »
Dont think it does  :crazy2:
Unles its gone broken

Thanks sibyl  :coolsmiley:
I am working on my own coding forums!
We'll get Agent Moose in, wont we!

Offline Alert

  • SMF For Free Member
  • *
  • Posts: 32
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] Post Text Color by Member
« Reply #10 on: April 28, 2010, 03:26:20 pm »
This and a couple of my other codes have now stopped working.

I removed this to see if it was that, no luck, my other codes that wasnt working dont.

Any ideas?
I am working on my own coding forums!
We'll get Agent Moose in, wont we!

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Post Text Color by Member
« Reply #11 on: April 28, 2010, 03:28:41 pm »
Will need your forum url so we can check the codes or post your header and footer codes so we can take a look

Offline Alert

  • SMF For Free Member
  • *
  • Posts: 32
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] Post Text Color by Member
« Reply #12 on: April 28, 2010, 03:43:14 pm »
Its not really public so I'll pm you it.
I am working on my own coding forums!
We'll get Agent Moose in, wont we!

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] Post Text Color by Member
« Reply #13 on: April 28, 2010, 10:00:00 pm »
Think you can PM me your forum URL too?  I know the code works with more than one name, as seeing how I just tired it :)

Heres the code I used:
Code: [Select]
<script type="text/javascript">
function PostTextMem(UseHerName,Colhore){
//Created by Agent Moose
$("td[width=16%] b a").each(function(){
if(this.innerHTML.toLowerCase() === UseHerName.toLowerCase()){
$(this).parent().parent().next().find("div.post").attr("style","color: " + Colhore);
};});};
PostTextMem("Agent Moose","red");
PostTextMem("Exilis","blue");
</script>
Check out Revolution X's Brand new Code Index!

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
3163 Views
Last post June 02, 2007, 04:24:37 am
by Laugh-nd-kid
18 Replies
18691 Views
Last post August 16, 2010, 12:28:58 am
by Inferno-Legion
4 Replies
2939 Views
Last post July 20, 2009, 11:34:27 am
by clairebear
0 Replies
1329 Views
Last post March 29, 2008, 02:31:19 am
by i untouched
3 Replies
1546 Views
Last post February 15, 2009, 09:46:06 am
by simply sibyl