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.

User Crowns

View previous topic View next topic Go down

In progress User Crowns

Post by Exion on December 15th 2011, 6:46 am

Can somebody give me the JavaScript code for certain groups?

I have;
Code:


$(function() {
if($('a[href="/u1"] span strong')){
$('a[href="/u1"] span strong').before('<img src="http://i56.tinypic.com/2wrem0y.png" border="0" />');
}
});

But that is just for one certain user.

Exion
New Member

Posts : 1
Reputation : 1
Language : English

Back to top Go down

In progress Re: User Crowns

Post by Guest on December 15th 2011, 2:27 pm

No, you can't. For group name it's possible, but I meant for all users who are in that group... Sad

Guest
Guest


Back to top Go down

In progress Re: User Crowns

Post by Base on December 15th 2011, 5:37 pm

Hi!

I think with some minor modifications, it may be possible to use this code:

Code:
$(function() {
        if($('a[href="/g1-administrators"] span strong')){
                    $('a[href="/g1-administrators"] span strong').before('<img src="http://i56.tinypic.com/2wrem0y.png" border="0" />');
            }
        });

That will give the original admin group an image beside it. Of course, you'll need to change the 'g1-administrators' part if you wish to apply this to other groups. Smile

Base
Forumaster

Male Posts : 10386
Reputation : 1687
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

Back to top Go down

In progress Re: User Crowns

Post by Guest on December 15th 2011, 5:38 pm

Hey Base, I think he meant for all members that are in that group. Smile

Guest
Guest


Back to top Go down

In progress Re: User Crowns

Post by Base on December 15th 2011, 5:39 pm

Gassy wrote:Hey Base, I think he meant for all members that are in that group. Smile

If he meant that then no, that's not possible. However, I gave him the code for the group name in case he was asking for that. Wink

Base
Forumaster

Male Posts : 10386
Reputation : 1687
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

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