The forum of the forums
Welcome on the Forumotion Support Forum.

To take full advantage of everything offered by our forum, please log in if you are already a member or join our community if you're not yet....



Create a free forum like this one.

Adding icon to username

View previous topic View next topic Go down

Solved Adding icon to username

Post by eccato on November 5th 2011, 12:18 pm

Hello!

I saw icon at the beginning of username at one forumotion forum, but how to add it?

eccato
Forumotion Member

Posts: 24
Language: Estonian, English
Points: 18
Join date: 2011-08-18

http://wevax-volukool.forum.co.ee

Back to top Go down

Solved Re: Adding icon to username

Post by Guest on November 5th 2011, 12:26 pm

Code:
a[href="/u1"] {
    background: url("http://illiweb.com/fa/admin/couronne.png") no-repeat;
    padding-left: 19px;
    padding-top: 2px;
}

Add this code to CSS Stylesheet.

Guest
Guest


Back to top Go down

Solved Re: Adding icon to username

Post by eccato on November 5th 2011, 12:29 pm

But what I need to put here:

a[href="/u1"] {

eccato
Forumotion Member

Posts: 24
Language: Estonian, English
Points: 18
Join date: 2011-08-18

http://wevax-volukool.forum.co.ee

Back to top Go down

Solved Re: Adding icon to username

Post by Guest on November 5th 2011, 12:30 pm

I don't understand you? Very Happy Only put the code I show.

Guest
Guest


Back to top Go down

Solved Re: Adding icon to username

Post by eccato on November 5th 2011, 12:31 pm

Okay...

But it didn't appear.

eccato
Forumotion Member

Posts: 24
Language: Estonian, English
Points: 18
Join date: 2011-08-18

http://wevax-volukool.forum.co.ee

Back to top Go down

Solved Re: Adding icon to username

Post by Nera. on November 5th 2011, 2:41 pm

Hi,

Try using this. Add it to AP > Modules > JS managment and mark all pages.

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://cdn2.iconfinder.com/data/icons/ledicons/crown.png" border="0" />');
    }
});

----------------------------



Nera.
Manager
Manager

Female
Posts: 6419
Age: 28
Language: Croatian, Italian, German, English
Location: Split, Croatia
Points: 9366
Join date: 2010-09-01

http://www.webartzforum.com/

Back to top Go down

Solved Re: Adding icon to username

Post by eccato on November 5th 2011, 11:46 pm

But it doesn't appear. I want to add it to only my account.

eccato
Forumotion Member

Posts: 24
Language: Estonian, English
Points: 18
Join date: 2011-08-18

http://wevax-volukool.forum.co.ee

Back to top Go down

Solved Re: Adding icon to username

Post by Nera. on November 6th 2011, 1:14 am

It will be added to your account only. I'm not sure you are doing it correctly. You have a phpBB3 forum and this is the script working my test phpBB3 forum
http://someonelikeyou.forumcroatian.com/

Is your JS enabled?

Edit: Is this your profile Argos Theodor Ürklainen? That's the 25 registered, u25.
I can't read your language but the script works on the founder of the forum. The u1 in the script represents the first registered. You have to change it to the number you are on the board if you are not the founder. You get the number by clicking on your name on the board and taking it from the browser. On FM mine would be
http://help.forumotion.com/u42273

----------------------------



Nera.
Manager
Manager

Female
Posts: 6419
Age: 28
Language: Croatian, Italian, German, English
Location: Split, Croatia
Points: 9366
Join date: 2010-09-01

http://www.webartzforum.com/

Back to top Go down

Solved Re: Adding icon to username

Post by eccato on November 6th 2011, 1:29 am

Okay, I got it. Thanks to everyone! Someone may close it.

eccato
Forumotion Member

Posts: 24
Language: Estonian, English
Points: 18
Join date: 2011-08-18

http://wevax-volukool.forum.co.ee

Back to top Go down

Solved Re: Adding icon to username

Post by Nera. on November 6th 2011, 1:33 am

eccato wrote:Okay, I got it. Thanks to everyone! Someone may close it.


Topic solved

----------------------------



Nera.
Manager
Manager

Female
Posts: 6419
Age: 28
Language: Croatian, Italian, German, English
Location: Split, Croatia
Points: 9366
Join date: 2010-09-01

http://www.webartzforum.com/

Back to top Go down

View previous topic View next topic Back to top


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