SMF For Free Support Forum
Signup For Free Forum
November 24, 2014, 01:55:44 am *
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 Chat  

Pages: [1]
  Print  
Author Topic: Is there any possibility  (Read 1125 times)
0 Members and 1 Guest are viewing this topic.
Mythe
SMF For Free Member
*
Offline Offline

Posts: 53


View Profile
Total Badges: 8
Badges: (View All)
Topic Starter Combination Level 2 Level 1 50 Posts
« on: August 10, 2011, 08:28:31 am »

With this script like <script>
function Color_Username(ethan,troy){
//Created by Agent_Moose (lulz)
var Vikhyat = document.links;
for(simply_sibyl=0;simply_sibyl<Vikhyat.length;simply_sibyl++){
if(Vikhyat[simply_sibyl].href.match("profile;u=" + ethan + "$")){
Vikhyat[simply_sibyl].style.color = troy;
};};};
Color_Username("ALL Members","Green");
</script>

That evrey members name is green?
Logged
Seldom Fail
Helpers
*
Offline Offline

Posts: 2082


Helping for 3 years! :)


View Profile WWW
Total Badges: 26
Badges: (View All)
Sixth year Anniversary Fifth year Anniversary Apple User Search Poll Voter
« Reply #1 on: August 10, 2011, 11:26:26 am »

The easiest way I see of doing this is using this code, and just putting in all the membergroups. Which shouldn't take long.

Code:
<script>
function color_group_name() {
//Created by Agent Moose (smcodes.smfforfree3.com)
var group = new Array()
group[group.length] = ["Newbie","orange"]
group[group.length] = ["MEMBER GROUP","COLOR"]

for(f=0;f<group.length;f++){
$("div.smalltext").each(function() {
if(this.innerHTML.match(group[f][0])){
this.innerHTML = this.innerHTML.replace(group[f][0],"<font color='" + group[f][1] + "'>" + group[f][0] + "</font>");
};});};}
color_group_name();
</script>

And just put in all the membergroups rather than each individual member.
Logged

<--- Donate to SMF For Free! Cheesy
Mythe
SMF For Free Member
*
Offline Offline

Posts: 53


View Profile
Total Badges: 8
Badges: (View All)
Topic Starter Combination Level 2 Level 1 50 Posts
« Reply #2 on: August 10, 2011, 01:29:00 pm »

Seldom, you don't seem to understand I mean all the userames Green not the Membergroup names
Logged
Mythe
SMF For Free Member
*
Offline Offline

Posts: 53


View Profile
Total Badges: 8
Badges: (View All)
Topic Starter Combination Level 2 Level 1 50 Posts
« Reply #3 on: August 11, 2011, 07:35:04 am »

someone help?
Logged
Mythe
SMF For Free Member
*
Offline Offline

Posts: 53


View Profile
Total Badges: 8
Badges: (View All)
Topic Starter Combination Level 2 Level 1 50 Posts
« Reply #4 on: August 12, 2011, 09:56:08 am »

censoreding help
Logged


Pages: [1]
  Print  
 
Jump to:  



Powered by SMF 1.1.20 | SMF © 2013, Simple Machines