The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Username that sparkles with icon.

3 posters

Go down

Username that sparkles with icon. Empty Username that sparkles with icon.

Post by E.rr0r November 23rd 2012, 1:36 pm

How to make a username that sparkles that has icon in its left? Mine just won't work, I don't know what to do. Please help me.

This is my code:
.name strong a[href="/u1"]{
padding-left: 19px;
background: url(https://i.servimg.com/u/f47/17/47/06/15/shield11.png) no-repeat left;
background: url("https://2img.net/h/oi48.tinypic.com/2yjo4kn.gif) no-repeat left");}
E.rr0r
E.rr0r
Forumember

Male Posts : 49
Reputation : 1
Language : CSS, HTML, Javascript, English, Tagalog
Location : Philippines

Back to top Go down

Username that sparkles with icon. Empty Re: Username that sparkles with icon.

Post by iyaaz November 23rd 2012, 1:51 pm

CSS

Code:
background: url("http://i48.tinypic.com/2yjo4kn.jpg") !important;}
.lastpostAvatar {
    width: 40px;
    height: 40px;
    float: left;
    margin: 0 5px;
    border: 0px solid #CCC;
}

Javascript Code

Code:
/* Kruna ispred nicka administratora. By BubbleDreams 2011 -
AdminCentar.net . Nemoj uklanjati copyright! Don't remove copyright! */

$(function() {
if($('a[href="/u1"] span strong')){
            $('a[href="/u1"] span strong').before('<img src="http://i47.servimg.com/u/f47/17/47/06/15/shield11.png" border="0" />');
    }
});


works for phpBB3 why don't you update?
iyaaz
iyaaz
Forumember

Male Posts : 350
Reputation : 8
Language : English
Location : London

http://iyaaz.forumotion.co.uk/

Back to top Go down

Username that sparkles with icon. Empty Re: Username that sparkles with icon.

Post by E.rr0r November 23rd 2012, 2:00 pm

Code:
.name strong a[href="/u1"]{
padding-left: 19px;
background: url(http://i47.servimg.com/u/f47/17/47/06/15/shield11.png) no-repeat left;
background: url("http://i48.tinypic.com/2yjo4kn.jpg") !important;}
.lastpostAvatar {
    width: 40px;
    height: 40px;
    float: left;
    margin: 0 5px;
    border: 0px solid #CCC;
}

Is this right?
E.rr0r
E.rr0r
Forumember

Male Posts : 49
Reputation : 1
Language : CSS, HTML, Javascript, English, Tagalog
Location : Philippines

Back to top Go down

Username that sparkles with icon. Empty Re: Username that sparkles with icon.

Post by Kaizer Lee November 23rd 2012, 8:18 pm

Code:
.name strong a[href="/u1"]{
padding-left: 19px;
background: url(http://i47.servimg.com/u/f47/17/47/06/15/shield11.png) no-repeat left;
background: url("http://i48.tinypic.com/2yjo4kn.jpg") !important;}
.lastpostAvatar {
    width: 40px;
    height: 40px;
    float: left;
    margin: 0 5px;
    border: 0px solid #CCC;
}

You forgot to add a " after and before the first background: url. Also, is the 2nd background url for the avatar? If so, please put it below the .last postAvatar
Kaizer Lee
Kaizer Lee
Active Poster

Female Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines

http://www.medievalchaos.net/forum

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum