online/offline status problem
The forum of the forums :: Support forum :: Forum Design & Appearance Help :: Design & Appearance Problems Archives
Page 1 of 1 • Share •
online/offline status problem
i use this javascript code for online/offline status
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...
- 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 : 564
Reputation : 13
Language : english,tagalog
Location : philippines
Re: online/offline status problem
Well, inside the JavaScript, you have "First." Hmm, may be changing that will work?
I'm not an expert in JavaScript.

I'm not an expert in JavaScript.



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please y it as solved.
Sir Chivas™- Support Moderator
-
Posts : 6810
Reputation : 433
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||
Re: online/offline status problem
CJ11wrote:Well, inside the JavaScript, you have "First." Hmm, may be changing that will work?
![]()
I'm not an expert in JavaScript.![]()
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 : 564
Reputation : 13
Language : english,tagalog
Location : philippines
Re: online/offline status problem
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 y it as solved.
Sir Chivas™- Support Moderator
-
Posts : 6810
Reputation : 433
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||
Re: online/offline status problem
i got this when i'm searchingCJ11™ wrote:Did you create these scripts? Or got them from somewhere?
zenzo- Forumember
- Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines
Re: online/offline status problem
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:
You have to replace "Link imagine offline" to a offline image, like the "online" one

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');
});
- Code:
.offline{
background-image: url(Link imagine offline);
background-position: right 0;
background-repeat: no-repeat;
}
You have to replace "Link imagine offline" to a offline image, like the "online" one

Re: online/offline status problem
[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?
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 : 564
Reputation : 13
Language : english,tagalog
Location : philippines
zenzo- Forumember
- Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines
Re: online/offline status problem
If you use phpBB3 it will appear exacly like the "online" one. In the right/left corner.
Re: online/offline status problem
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 : 564
Reputation : 13
Language : english,tagalog
Location : philippines
zenzo- Forumember
- Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines
zenzo- Forumember
- Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines
Re: online/offline status problem
Have you followed that tutorial? Where does it appear after you follow the tutorial? Please post a screenshot.
Re: online/offline status problem
What exactly does this do?
Macca_96- Forumember
- Posts : 232
Reputation : 0
Language : English
Re: online/offline status problem
i use this code in version invision
javascript
but as you see. it only appears on the first post sometime on the first and second post

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 : 564
Reputation : 13
Language : english,tagalog
Location : philippines
Re: online/offline status problem
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" />');
});
Re: online/offline status problem
anyone have exact code?
edit
oh,, i'm sorry sanket
its not working on my first try
but now its totally works
thank you
edit
oh,, i'm sorry sanket
its not working on my first try
but now its totally works
thank you

Last edited by zenzo on March 7th 2013, 2:11 am; edited 1 time in total
zenzo- Forumember
- Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines
Re: online/offline status problem
Since this was marked solved...
Topic Solved & Locked |
Jophy- ForumGuru
-
Posts : 17924
Reputation : 835
Language : English
Location : Somewhere
The forum of the forums :: Support forum :: Forum Design & Appearance Help :: Design & Appearance Problems Archives
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum