Icon before username in "Members connected during ... "

Vito-UFA at 13h03
15
Oct
2011
I used the "Icon beofre username" tutorial from Forumotion and of course everything is fine but i allso would like to add icon next to username in legend at the bottom of the forum, what code refers to users in this part of forum ?
1 *Mare-SBK™*, on 15/10/2011 at 13h11
Try this CSS:
Code:
.forumline:last span.gensmall a {
 padding-left: 13px;
    background: url(imagedirectlink) no-repeat left;
}
2 Vito-UFA, on 15/10/2011 at 13h20
*Mare-SBK™* wrote:Try this CSS:
Code:
.forumline:last span.gensmall a {
 padding-left: 13px;
    background: url(imagedirectlink) no-repeat left;
}

I think something is missing in this code ^^ where are the member references ? How this code will know that i want to add this icon before an admin.
Not working bro, thx for quick reply.
3 *Mare-SBK™*, on 15/10/2011 at 13h24
You want to add icon before admin nickname? Say that. Laughing

Use it:
Code:
a[href="/u1"] {  padding-left: 13px; background: url(imagedirectlink) no-repeat left; }
4 Vito-UFA, on 15/10/2011 at 13h31
*Mare-SBK™* wrote:You want to add icon before admin nickname? Say that. Laughing

Use it:
Code:
a[href="/u1"] {  padding-left: 13px; background: url(imagedirectlink) no-repeat left; }

I think i did, admin is also a member Smile this code you posted working for all over the forum, avatar, user name, and few other places. I need a code that refers only to bottom legend of "Members connected during last 48 hours" ONLY
I already using this code:
Code:
.name strong a[href="/u1"]{
    padding-left: 23px;
    background: url(IMAGE LINK) no-repeat left;}

to display icon before username in messages now i need the code that let me add an icon ONLY in the bottom in the field i mentioned above.
What code refers to that ?
5 bHulleT.w, on 15/10/2011 at 19h00
About design & appearance rules, For design and appearance problems please provide your forum url. Then you will follow the rules, but now you are not following the rules, thank you !
6 Vito-UFA, on 15/10/2011 at 22h16
bHulleT.w wrote:
About design & appearance rules, For design and appearance problems please provide your forum url. Then you will follow the rules, but now you are not following the rules, thank you !

What you trying to say by that, i think you going out of the topic loul URL of my forum is in my profile.
7 Base, on 15/10/2011 at 22h22
bHulleT.w wrote:
About design & appearance rules, For design and appearance problems please provide your forum url. Then you will follow the rules, but now you are not following the rules, thank you !


This is a clear attempt at moderating another member. The member has their forum in their profile, please do not moderate other members. This is your second reminder, next time will be a warning. Thank you.
8 Nera., on 15/10/2011 at 22h34
Vito,

Do you want the icon everywhere but it has not been added to legend after using the tutorial? If so, delete the CSS you added from the tutorial and 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 your JS managment and mark all pages.
9 *Mare-SBK™*, on 16/10/2011 at 00h01
That is my script Nera. Razz XD

Which legend, "Members connected..." or typical legend[Administrator, Moderator...]?
10 Nera., on 16/10/2011 at 00h16
This will go better for him Mare since CSS from the tut will make a glitch on phpBB2 behind the profile button in posts.
I was wondering why are you not suggesting it tongue
Anyways we can wait for Vito to tell us what he wants exactly.
11 Vito-UFA, on 16/10/2011 at 01h23
Ok so it's like this, by using this code i posted above:
Code:
.name strong a[href="/u1"]{
    padding-left: 23px;
    background: url(IMAGE LINK) no-repeat left;}

i have achieved icon before username in 2 places:
- here

- and here

and also I would like add this icon
- here

next to every (red) underlined member.

12 Nera., on 16/10/2011 at 07h56
Jup, why don't you delete the code you added and add the script. It will add the icons to the places where you already added them and to your WIO list & in the end, that is what you want, isn't it?
13 Vito-UFA, on 16/10/2011 at 17h04
OK i have added this script to JS managment and nothing have changed
I'm testing it on my test forum
http://betatester.forumpolish.com/t11-ufa-1-begining
14 Nera., on 16/10/2011 at 17h18
It is not changing since it uses the strong too to add it. You did not colorise the usernames and than have no strong in the code.

EDIT: Disregard the script if you don't want to colorise usernames.

Add this to CSS:
Code:
.ikona .gensmall a[href="/u1"] {
    background: url("http://i178.photobucket.com/albums/w254/SensualGist/Akari/crown_small.gif") no-repeat scroll 0 0 transparent;
    padding-left: 16px;
    padding-top: 2px;
}


Than go to your index_body template and find this:
Code:
<!-- BEGIN disable_viewonline -->
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">


Replace it with this:
Code:
<!-- BEGIN disable_viewonline -->
<table class="forumline ikona" width="100%" border="0" cellspacing="1" cellpadding="0">


Save and publish Add

And here is an example of it working on my PhpBB2 forum:


Very good
15 Vito-UFA, on 16/10/2011 at 20h38
It's all good now. Thank you rock
16 Nera., on 16/10/2011 at 20h41
Hello

Lock
Similar topics
Would anyone here know how to add an icon before a specific username on PHPBB2 using CSS? Thanks in advance!
At the moment it is only possible to go as low as view "Members last connected" in the last 2 hours. How about dropping the increments to multiples of 5 minutes ie. Last on line 5 minutes ago, 10 minutes ago 15 minutes ago etc etc to 1 hour.
Sorry if this seems an odd question but I have a query about the "members connected in the last 24hrs" In the last 24hrs we have approx 70 members showing, but my attention is drawn to a new member who's username is showing in
See also
more_less
Informations

16 Replies For the topic :
"Icon before username in "Members connected during ... ""

This topic has been viewed 807 times.

Last message :
15/10/2011 at 13h03 by "Vito-UFA"