SMF For Free Support Forum
Signup For Free Forum
November 22, 2008, 01:25:11 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]
  Print  
Author Topic: [Req] 2 Iconed name!  (Read 242 times)
0 Members and 1 Guest are viewing this topic.
mintkiller
SMF For Free Newbie
*
Offline Offline

Posts: 17


View Profile
« on: July 25, 2008, 04:29:59 pm »

well i posted this before but Simply sibyl said post it here with a picture so ive got a picture for this request this time i want to request a code for a 2 iconed name like below :



i was wondering if anyone could sort a code out for this or if there is already a code that you can get two icons post the link or the code here!

Thanks everybody!

somebody please answer Cheesy
« Last Edit: July 26, 2008, 05:17:59 am by mintkiller » Logged



A Funny animation made by me :
Celebrus
SMF For Free Hero
*
Offline Offline

Posts: 818


Previously known as Omikron


View Profile WWW
« Reply #1 on: July 26, 2008, 05:44:45 am »

Try this on a test forum first-
Code:
<script>
// created by celebrus of aetus.net
var mname="Member's display name";
var images[0]="http://url2imagebeforethename";
var images[1]="http://url2imageafterthename";
// not much editing needed after this.
if(typeof('$')== "undefined"){document.write('<script src="http://"+window.location.host+"/jquery.js" type=text/javascript></script>');}
var newname = images[0]+mname+images[1];
$("a:contains("+mname+")").text(newname);
</script>

I could base it on the user id if you want.
« Last Edit: July 26, 2008, 05:46:51 am by Celebrus » Logged


||
Agent Moose
Moderator
*****
Offline Offline

Posts: 666


Do not PM me for Code Support or Request


View Profile
« Reply #2 on: July 26, 2008, 08:56:51 am »

Or you can try this one:

Code:
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfour = new Array()
vfour[vfour.length] = ["NAME","<img src='IMAGE URL'/>NAME<img src='IMAGE URL'/>","COLOR",""];

for(f=0;f<vfour.length;f++){
$("a[href*='u=']").each(function() {
if(this.innerHTML == vfour[f][0]){
this.innerHTML = this.innerHTML.replace(vfour[f][0],"<font color='" + vfour[f][2] + "'>" + vfour[f][3] + vfour[f][(vfour[f][1] != "" ? 1 : 0)] + "</font>");
};});};}
name_across_board();
</script>

Smiley
Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen


Pages: [1]
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.401 seconds with 18 queries.