The forum of the forums
Welcome to the Official Support Forum of Forumotion!

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've not yet.



Create a free forum like this one.

Adding Staff Icon problems...

View previous topic View next topic Go down

Solved Adding Staff Icon problems...

Post by Link4 on August 28th 2011, 11:06 am

Hey guys,

I have a phpBB3 Forums, and I was using this code I was given for the Icons (It used to work until we changed our forums around, IDK if the second Developer Changed the Forum Version or not, Checking right now)

EDIT: Ok, I checked, and I found out he changed it into a phpBB2 Version.. Is there a different Code I have to use now?


But, my Forums link is www.switchscape.forumotion.com

The code I found on a Guide was this:
Code:
p a[href="/u1"] {
    background: url("http://i53.tinypic.com/6nwis2.png") no-repeat scroll 0 0 transparent;
    height: 15px;
    line-height: 17px;
    padding-left: 18px;
    padding-top: 5px;
    width: 15px;
}
.forabg a[href="/u1"] {
    background: url("http://i53.tinypic.com/6nwis2.png") no-repeat scroll 0 0 transparent;
    height: 15px;
    line-height: 17px;
    padding-left: 18px;
    padding-top: 5px;
    width: 15px;
}
.forumbg a[href="/u1"] {
    background: url("http://i53.tinypic.com/6nwis2.png") no-repeat scroll 0 0 transparent;
    height: 15px;
    line-height: 17px;
    padding-left: 18px;
    padding-top: 5px;
    width: 15px;
}
.postprofile strong a[href="/u1"] {
    background: url("http://i53.tinypic.com/6nwis2.png") no-repeat scroll 0 0 transparent;
    height: 15px;
    line-height: 17px;
    padding-left: 18px;
    padding-top: 5px;
    width: 15px;
}

I hope that helped, and I hope I can be helped with....

All help is appreciated. Smile


Last edited by Link4 on August 28th 2011, 12:55 pm; edited 1 time in total

Link4
New Member

Posts : 14
Reputation : 0
Language : English

Back to top Go down

Solved Re: Adding Staff Icon problems...

Post by Nera. on August 28th 2011, 11:13 am

Hi,

Codes are different for every version. For phpBB2 I would use this

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" />');
    }
});

Add it to Modules > JS managment

If you want to give the crown to multiple users, just duble/repaste the script/function and in the next one add a different number of the user.

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

Solved Re: Adding Staff Icon problems...

Post by Link4 on August 28th 2011, 12:54 pm

Thank you Nera!

Link4
New Member

Posts : 14
Reputation : 0
Language : English

Back to top Go down

Solved Re: Adding Staff Icon problems...

Post by Sanket on August 28th 2011, 2:04 pm

Since this thread is marked solved, I will lock this thread.


Sanket Smile


Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://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