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.

Online offline

View previous topic View next topic Go down

Online offline

Post by IdaTR on April 27th 2013, 10:10 am

I want my {USER_ONLINE} to stand with a green color on the profile, and with a image like this on:
The {USER_OFFLINE} should stand with a red color and with this image:

Is it possible?

IdaTR
Forumember

Female Posts : 339
Reputation : 1
Language : Danish, english
Location : Denmark

http://nionevrien.forumq.net/

Back to top Go down

Re: Online offline

Post by sasukekun on April 27th 2013, 12:42 pm

@IdaTR wrote:I want my {USER_ONLINE} to stand with a green color on the profile, and with a image like this on:
The {USER_OFFLINE} should stand with a red color and with this image:

Is it possible?

Like this right?


sasukekun
Forumember

Posts : 253
Reputation : 6
Language : English

Back to top Go down

Re: Online offline

Post by Sanket on April 27th 2013, 1:27 pm

Also, tell us your Forum URL & Version.

Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

Re: Online offline

Post by IdaTR on April 27th 2013, 1:49 pm

mostone wrote:
@IdaTR wrote:I want my {USER_ONLINE} to stand with a green color on the profile, and with a image like this on:
The {USER_OFFLINE} should stand with a red color and with this image:

Is it possible?

Like this right?


YUP EXACTLY!

@Sanket wrote:Also, tell us your Forum URL & Version.
http://zirukus.forumotion.com/

It should be shown on the profile.

IdaTR
Forumember

Female Posts : 339
Reputation : 1
Language : Danish, english
Location : Denmark

http://nionevrien.forumq.net/

Back to top Go down

Re: Online offline

Post by Sanket on April 27th 2013, 1:55 pm

I don't think we can add it on phpbb3.

Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

Re: Online offline

Post by Cassius Dio on April 27th 2013, 3:54 pm

Hi! Very Happy

Add to JavaScript codes management:
Code:
$(function(){
$('.post:not(".online")').addClass('offline');
});
and to CSS Stylesheet:
Code:
.offline{
background-image: url(Link offline image);
background-position: right 0;
background-repeat: no-repeat;
}
Replace "Link offline image" to an image URL adress.

Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

Re: Online offline

Post by Mati on April 27th 2013, 10:05 pm

Hi,

You can use this CSS code:

Code:
.post {
    background: url("http://illiweb.com/fa/offline.png") no-repeat scroll right top #2C2C2C;
}

input[type="text"], input[type="password"] {
    background-image: none !important;
}
.online {
    background: url("http://illiweb.com/fa/online.png") no-repeat scroll right top #2C2C2C;
    z-index: 999 !important;
}

Mati
Active Poster

Posts : 1873
Reputation : 281
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://elite-gaming.forumotion.net/

Back to top Go down

Re: Online offline

Post by IdaTR on April 27th 2013, 11:08 pm

@Sanket wrote:I don't think we can add it on phpbb3.
Its Phpbb2.
SGSS wrote:Hi! Very Happy

Add to JavaScript codes management:
Code:
$(function(){
$('.post:not(".online")').addClass('offline');
});
and to CSS Stylesheet:
Code:
.offline{
background-image: url(Link offline image);
background-position: right 0;
background-repeat: no-repeat;
}
Replace "Link offline image" to an image URL adress.
I try it out!
Matti_7 wrote:Hi,

You can use this CSS code:

Code:
.post {
    background: url("http://illiweb.com/fa/offline.png") no-repeat scroll right top #2C2C2C;
}

input[type="text"], input[type="password"] {
    background-image: none !important;
}
.online {
    background: url("http://illiweb.com/fa/online.png") no-repeat scroll right top #2C2C2C;
    z-index: 999 !important;
}
I will try this out to and come with a response if it worked ^^


EDIT: None of these worked.


Last edited by IdaTR on April 28th 2013, 9:20 am; edited 1 time in total

IdaTR
Forumember

Female Posts : 339
Reputation : 1
Language : Danish, english
Location : Denmark

http://nionevrien.forumq.net/

Back to top Go down

Re: Online offline

Post by Mati on April 27th 2013, 11:22 pm

Hi, IdaTR

The CSS code works for phpBB3 !!! Very Happy

Mati
Active Poster

Posts : 1873
Reputation : 281
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://elite-gaming.forumotion.net/

Back to top Go down

Re: Online offline

Post by sasukekun on April 28th 2013, 7:43 am

Matti_7 wrote:Hi, IdaTR

The CSS code works for phpBB3 !!! Very Happy

for phpBB2 what??

sasukekun
Forumember

Posts : 253
Reputation : 6
Language : English

Back to top Go down

Re: Online offline

Post by Jophy on April 28th 2013, 9:07 am

For phpbb2, this would be the code for offline:
Code:
.postbody {
  background: url("OFFLINE IMAGE URL HERE") no-repeat scroll right top;
}

I have not yet searched the code for the online part, maybe someone knows.

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

Re: Online offline

Post by IdaTR on April 28th 2013, 9:23 am

Oh.. i see... but if i also want it to be shown on the profile? Atm. I'm working on my own profile with html.

IdaTR
Forumember

Female Posts : 339
Reputation : 1
Language : Danish, english
Location : Denmark

http://nionevrien.forumq.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