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 status problem

View previous topic View next topic Go down

Solved online/offline status problem

Post by zenzo on February 23rd 2013, 1:39 am

i use this javascript code for online/offline status

Code:
$(function() {
  $('.post:not(".online")').addClass('offline');
  $('.online .postprofile dd:first').after('<dd class="online"><span class="online"><span class="ipson">Online</span></span></dd>');
  $('.offline .postprofile dd:first').after('<dd class="offline"><span class="offline"><span class="ipsoff">Offline</span></span></dd>');
});

it appears below the user title image


the problem is,it only appears on first and second post

but the following post is not showing anymore...


Last edited by zenzo on March 7th 2013, 2:11 am; edited 1 time in total

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: online/offline status problem

Post by Sir Chivas™ on February 23rd 2013, 1:47 am

Well, inside the JavaScript, you have "First." Hmm, may be changing that will work?

I'm not an expert in JavaScript. mwii



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Solved Re: online/offline status problem

Post by zenzo on February 23rd 2013, 5:55 am

CJ11 wrote:Well, inside the JavaScript, you have "First." Hmm, may be changing that will work?

I'm not an expert in JavaScript. mwii

so what do you have


i also use this
javascript
Code:
$(function(e) {
$('.post:not(".online")').addClass('offline');
});

CSS
Code:
.post.online .postprofile dt strong {
background-image: url('http://i34.servimg.com/u/f34/13/94/17/66/onl10.png');
background-repeat: no-repeat;
background-position: left center;
padding-left: 14px;
}

.post.offline .postprofile dt strong {
background-image: url('http://i34.servimg.com/u/f34/13/94/17/66/onl10.png');
background-repeat: no-repeat;
background-position: left center;
padding-left: 14px;
}

but it double the image

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: online/offline status problem

Post by Sir Chivas™ on February 23rd 2013, 5:59 am

Did you create these scripts? Or got them from somewhere?



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Solved Re: online/offline status problem

Post by zenzo on February 23rd 2013, 7:02 am

CJ11 wrote:Did you create these scripts? Or got them from somewhere?
i got this when i'm searching

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: online/offline status problem

Post by Cassius Dio on February 23rd 2013, 10:50 am

Hi!

There you have a tutorial that will work for all the posts:
http://help.forumgratuit.ro/t41005-adaugarea-butonului-offline

I know, it is in romanian but all you have to do is to add this:
Code:
$(function(){
$('.post:not(".online")').addClass('offline');
});
in JavaScript codes management, and this:
Code:
.offline{
background-image: url(Link imagine offline);
background-position: right 0;
background-repeat: no-repeat;
}
in CSS Stylesheet.

You have to replace "Link imagine offline" to a offline image, like the "online" one

Cassius Dio
Forumember

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

http://beatles.forummo.com/

Back to top Go down

Solved Re: online/offline status problem

Post by zenzo on February 23rd 2013, 11:29 am

[quote="SGSS"]Hi!

There you have a tutorial that will work for all the posts:
http://help.forumgratuit.ro/t41005-adaugarea-butonului-offline

i will try

edit


oh i already have this code


do you have an idea how it appears on profile field?

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: online/offline status problem

Post by zenzo on February 24th 2013, 9:49 am

bump

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: online/offline status problem

Post by Cassius Dio on February 24th 2013, 11:19 am

If you use phpBB3 it will appear exacly like the "online" one. In the right/left corner.

Cassius Dio
Forumember

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

http://beatles.forummo.com/

Back to top Go down

Solved Re: online/offline status problem

Post by zenzo on February 24th 2013, 11:28 am

SGSS wrote:If you use phpBB3 it will appear exacly like the "online" one. In the right/left corner.

you mean this can't be put inside the profile field?

but why this code can
Code:
[quote="zenzo"][quote="CJ11"]Well, inside the JavaScript, you have "First." Hmm, may be changing that will work?  :spamafote:

I'm not an expert in JavaScript.  :mwii: [/quote]

so what do you have


i also use this
javascript
[code]$(function(e) {
$('.post:not(".online")').addClass('offline');
});[/code]

CSS
[code].post.online .postprofile dt strong {
background-image: url('http://i34.servimg.com/u/f34/13/94/17/66/onl10.png');
background-repeat: no-repeat;
background-position: left center;
padding-left: 14px;
}

.post.offline .postprofile dt strong {
background-image: url('http://i34.servimg.com/u/f34/13/94/17/66/onl10.png');
background-repeat: no-repeat;
background-position: left center;
padding-left: 14px;
}[/code]

but it double the image[/quote]

the problem is, online offline image goes double

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: online/offline status problem

Post by zenzo on March 1st 2013, 11:11 pm

bump...

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: online/offline status problem

Post by zenzo on March 4th 2013, 6:28 am

bump

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: online/offline status problem

Post by Sanket on March 4th 2013, 7:31 am

Have you followed that tutorial? Where does it appear after you follow the tutorial? Please post a screenshot.

Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

Solved Re: online/offline status problem

Post by Macca_96 on March 4th 2013, 11:07 am

What exactly does this do?

Macca_96
Forumember

Posts : 232
Reputation : 0
Language : English

Back to top Go down

Solved Re: online/offline status problem

Post by zenzo on March 5th 2013, 2:56 am

i use this code in version invision

javascript
Code:
$(function() {
  $('.post:not(".online")').addClass('offline');
  $('.online .postprofile dd:first').after('<dd class="online"><span class="online"><span class="ipson">Online</span></span></dd>');
  $('.offline .postprofile dd:first').after('<dd class="offline"><span class="offline"><span class="ipsoff">Offline</span></span></dd>');
});

but as you see. it only appears on the first post sometime on the first and second post

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: online/offline status problem

Post by Sanket on March 5th 2013, 4:52 am

Isn't this the code to be used for Invision ?
Code:
$(function(){
$('.post:not(".online")').addClass('offline');
$('.post.offline .post-header .popmenubutton a').prepend('<img src="Link imagine offline" class="i_icon_offline" alt="Offline" title="Offline" />');
});

Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

Solved Re: online/offline status problem

Post by zenzo on March 6th 2013, 4:04 pm

anyone have exact code?




edit
oh,, i'm sorry sanket

its not working on my first try


but now its totally works


thank you :wouhou:


Last edited by zenzo on March 7th 2013, 2:11 am; edited 1 time in total

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: online/offline status problem

Post by Sanket on March 6th 2013, 5:19 pm

Well, you aren't answering my question? Confused

Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

Solved Re: online/offline status problem

Post by Jophy on March 8th 2013, 6:30 am

Since this was marked solved...

Topic Solved & Locked

Jophy
ForumGuru

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

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