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.

Css code for who's Online

Go down

Solved Css code for who's Online

Post by Nape4 on November 4th 2013, 2:03 am

How would you do a custom css background for the Who's Online section? What is the Css code for the section I know the basic css code is
Code:
body {background-image:url('imagelink.png');

Background-repeat: no-repeat;


Last edited by Nape4 on November 5th 2013, 2:40 am; edited 1 time in total
avatar
Nape4
Forumember

Male Posts : 219
Reputation : 2
Language : English
Location : SC USA

http://lucario-domain.ogamebattle.com/forum

Back to top Go down

Solved Re: Css code for who's Online

Post by Ange Tuteur on November 4th 2013, 2:27 am

Hello Nape4,

The CSS selectors and ID's differ across forum versions. If possible, can you please provide us the version of your forum?
avatar
Ange Tuteur
Forumaster

Male Posts : 13193
Reputation : 2904
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Css code for who's Online

Post by Sir Chivas™ on November 4th 2013, 8:25 am

Hi,

Please provide us your forum URL, thank you. Smile

Or is it this one? http://lucario-domain.ogamebattle.com/forum

Regards,
Sir Chivas?
avatar
Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6810
Reputation : 433
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Solved Re: Css code for who's Online

Post by Nape4 on November 4th 2013, 6:29 pm

@Sir Chivas™️ wrote:Hi,

Please provide us your forum URL, thank you. Smile

Or is it this one? http://lucario-domain.ogamebattle.com/forum

Regards,
Sir Chivas?
http://lucario-domain.ogamebattle.com/forum is the one yes the type is phpbb 2 (subsilver) the css codes for the categorys work fine as you can see on my site. I also checked my site for malwere with a free scan for malwere on other scan for malwere site.
avatar
Nape4
Forumember

Male Posts : 219
Reputation : 2
Language : English
Location : SC USA

http://lucario-domain.ogamebattle.com/forum

Back to top Go down

Solved Re: Css code for who's Online

Post by Ange Tuteur on November 4th 2013, 9:03 pm

Most of the classes are universal: forumline, row1, 2, ect..Who is online table is using forumline and row1 however, we can apply a unique class to the who is online table with some JS, so we can style those cells specifically:

Administration Panel > Modules > HTML & JAVASCRIPT > Javascript codes management

Create a new script, tick only 'in the homepage', paste the code below and save.
Code:
$(function() {
$('.forumline:contains("Who is online?")').addClass('whoIs');
});
Then add this to CSS for styling:
Code:
table.forumline.whoIs td.row1{
background-image:url('IMG SRC');
background-color:#fff;/*Remove if only using img*/
}
avatar
Ange Tuteur
Forumaster

Male Posts : 13193
Reputation : 2904
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Css code for who's Online

Post by Nape4 on November 5th 2013, 2:29 am

SethC1995 wrote:Most of the classes are universal: forumline, row1, 2, ect..Who is online table is using forumline and row1 however, we can apply a unique class to the who is online table with some JS, so we can style those cells specifically:

Administration Panel > Modules > HTML & JAVASCRIPT > Javascript codes management

Create a new script, tick only 'in the homepage', paste the code below and save.
Code:
$(function() {
$('.forumline:contains("Who is online?")').addClass('whoIs');
});
Then add this to CSS for styling:
Code:
table.forumline.whoIs td.row1{
background-image:url('IMG SRC');
background-color:#fff;/*Remove if only using img*/
}
umm the way you said it sound like java.

the way I do css is the following

Admin Control Panel,Display,Colors then Css style sheet

all i want is a simple css code for the style sheet not some extra java script. aslo is the code all for css or is it java then css code

Code:
table .forumline.whois td.row 1{ background-image:url('Img src');

background-repeat: no-repeat
 will is just work for css style sheet only not java in colors display


Last edited by Nape4 on November 5th 2013, 2:35 am; edited 1 time in total
avatar
Nape4
Forumember

Male Posts : 219
Reputation : 2
Language : English
Location : SC USA

http://lucario-domain.ogamebattle.com/forum

Back to top Go down

Solved Re: Css code for who's Online

Post by SLGray on November 5th 2013, 2:33 am

JavaScript:
Code:
$(function() {
$('.forumline:contains("Who is online?")').addClass('whoIs');
});
CSS:
Code:
  table.forumline.whoIs td.row1{
    background-image:url('IMG SRC');
    background-color:#fff;/*Remove if only using img*/
    }


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 42690
Reputation : 3004
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Css code for who's Online

Post by Nape4 on November 5th 2013, 2:42 am

this subject is completed thanks I will do this as soon as I can on my site Smile.
avatar
Nape4
Forumember

Male Posts : 219
Reputation : 2
Language : English
Location : SC USA

http://lucario-domain.ogamebattle.com/forum

Back to top Go down

Solved Re: Css code for who's Online

Post by SLGray on November 5th 2013, 2:44 am

Topic Solved & Locked


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 42690
Reputation : 3004
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Back to top


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