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.

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

View previous topic View next topic Go down

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

Post by Vito-UFA on October 15th 2011, 1:03 pm

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 ?

Vito-UFA
Forumember

Male Posts : 118
Reputation : 6
Language : polish/english
Location : Lodz

http://www.ufa-league.net/forum

Back to top Go down

Solved Re: Icon before username in "Members connected during ... "

Post by *Mare-SBK™* on October 15th 2011, 1:11 pm

Try this CSS:
Code:
.forumline:last span.gensmall a {
 padding-left: 13px;
    background: url(imagedirectlink) no-repeat left;
}

*Mare-SBK™*
Forumember

Male Posts : 181
Reputation : 16
Language : Serbian, English, German

http://design4u.forumsr.com/

Back to top Go down

Solved Re: Icon before username in "Members connected during ... "

Post by Vito-UFA on October 15th 2011, 1:20 pm

@*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.

Vito-UFA
Forumember

Male Posts : 118
Reputation : 6
Language : polish/english
Location : Lodz

http://www.ufa-league.net/forum

Back to top Go down

Solved Re: Icon before username in "Members connected during ... "

Post by *Mare-SBK™* on October 15th 2011, 1:24 pm

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; }

*Mare-SBK™*
Forumember

Male Posts : 181
Reputation : 16
Language : Serbian, English, German

http://design4u.forumsr.com/

Back to top Go down

Solved Re: Icon before username in "Members connected during ... "

Post by Vito-UFA on October 15th 2011, 1:31 pm

@*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 ?

Vito-UFA
Forumember

Male Posts : 118
Reputation : 6
Language : polish/english
Location : Lodz

http://www.ufa-league.net/forum

Back to top Go down

Solved Re: Icon before username in "Members connected during ... "

Post by bHulleT.w on October 15th 2011, 7:00 pm

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 !

bHulleT.w
Forumember

Male Posts : 244
Reputation : 13
Language : Estonian - Html - Php - Css - MySQL
Location : Closet :3

Back to top Go down

Solved Re: Icon before username in "Members connected during ... "

Post by Vito-UFA on October 15th 2011, 10:16 pm

@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.

Vito-UFA
Forumember

Male Posts : 118
Reputation : 6
Language : polish/english
Location : Lodz

http://www.ufa-league.net/forum

Back to top Go down

Solved Re: Icon before username in "Members connected during ... "

Post by Base on October 15th 2011, 10:22 pm

@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.

Base
Forumaster

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

http://forumotionhub.net

Back to top Go down

Solved Re: Icon before username in "Members connected during ... "

Post by Nera. on October 15th 2011, 10:34 pm

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.

Nera.
Energetic

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

http://webartzforum.com

Back to top Go down

Solved Re: Icon before username in "Members connected during ... "

Post by *Mare-SBK™* on October 16th 2011, 12:01 am

That is my script Nera. Razz XD

Which legend, "Members connected..." or typical legend[Administrator, Moderator...]?

*Mare-SBK™*
Forumember

Male Posts : 181
Reputation : 16
Language : Serbian, English, German

http://design4u.forumsr.com/

Back to top Go down

Solved Re: Icon before username in "Members connected during ... "

Post by Nera. on October 16th 2011, 12:16 am

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.

Nera.
Energetic

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

http://webartzforum.com

Back to top Go down

Solved Re: Icon before username in "Members connected during ... "

Post by Vito-UFA on October 16th 2011, 1:23 am

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.


Vito-UFA
Forumember

Male Posts : 118
Reputation : 6
Language : polish/english
Location : Lodz

http://www.ufa-league.net/forum

Back to top Go down

Solved Re: Icon before username in "Members connected during ... "

Post by Nera. on October 16th 2011, 7:56 am

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?

Nera.
Energetic

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

http://webartzforum.com

Back to top Go down

Solved Re: Icon before username in "Members connected during ... "

Post by Vito-UFA on October 16th 2011, 5:04 pm

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

Vito-UFA
Forumember

Male Posts : 118
Reputation : 6
Language : polish/english
Location : Lodz

http://www.ufa-league.net/forum

Back to top Go down

Solved Re: Icon before username in "Members connected during ... "

Post by Nera. on October 16th 2011, 5:18 pm

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

Nera.
Energetic

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

http://webartzforum.com

Back to top Go down

Solved Re: Icon before username in "Members connected during ... "

Post by Vito-UFA on October 16th 2011, 8:38 pm

It's all good now. Thank you rock

Vito-UFA
Forumember

Male Posts : 118
Reputation : 6
Language : polish/english
Location : Lodz

http://www.ufa-league.net/forum

Back to top Go down

Solved Re: Icon before username in "Members connected during ... "

Post by Nera. on October 16th 2011, 8:41 pm

Hello

Lock

Nera.
Energetic

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

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