online/offline status problem

Go down

Solved online/offline status problem

Post by zenzo on Sat Feb 23 2013, 02:39

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 Thu Mar 07 2013, 03:11; edited 1 time in total
avatar
zenzo
Forumember

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

Back to top Go down

Solved Re: online/offline status problem

Post by Sir Chivas™ on Sat Feb 23 2013, 02:47

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 y it as solved.


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: online/offline status problem

Post by zenzo on Sat Feb 23 2013, 06:55

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
avatar
zenzo
Forumember

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

Back to top Go down

Solved Re: online/offline status problem

Post by Sir Chivas™ on Sat Feb 23 2013, 06:59

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.


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: online/offline status problem

Post by zenzo on Sat Feb 23 2013, 08:02

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

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

Back to top Go down

Solved Re: online/offline status problem

Post by Cassius Dio on Sat Feb 23 2013, 11:50

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
avatar
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 Sat Feb 23 2013, 12:29

[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?
avatar
zenzo
Forumember

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

Back to top Go down

Solved Re: online/offline status problem

Post by zenzo on Sun Feb 24 2013, 10:49

bump
avatar
zenzo
Forumember

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

Back to top Go down

Solved Re: online/offline status problem

Post by Cassius Dio on Sun Feb 24 2013, 12:19

If you use phpBB3 it will appear exacly like the "online" one. In the right/left corner.
avatar
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 Sun Feb 24 2013, 12:28

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
avatar
zenzo
Forumember

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

Back to top Go down

Solved Re: online/offline status problem

Post by zenzo on Sat Mar 02 2013, 00:11

bump...
avatar
zenzo
Forumember

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

Back to top Go down

Solved Re: online/offline status problem

Post by zenzo on Mon Mar 04 2013, 07:28

bump
avatar
zenzo
Forumember

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

Back to top Go down

Solved Re: online/offline status problem

Post by Sanket on Mon Mar 04 2013, 08:31

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

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

http://webartzforum.com

Back to top Go down

Solved Re: online/offline status problem

Post by Macca_96 on Mon Mar 04 2013, 12:07

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 Tue Mar 05 2013, 03:56

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
avatar
zenzo
Forumember

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

Back to top Go down

Solved Re: online/offline status problem

Post by Sanket on Tue Mar 05 2013, 05:52

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" />');
});
avatar
Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

Solved Re: online/offline status problem

Post by zenzo on Wed Mar 06 2013, 17:04

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 Thu Mar 07 2013, 03:11; edited 1 time in total
avatar
zenzo
Forumember

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

Back to top Go down

Solved Re: online/offline status problem

Post by Sanket on Wed Mar 06 2013, 18:19

Well, you aren't answering my question? Confused
avatar
Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

Solved Re: online/offline status problem

Post by Jophy on Fri Mar 08 2013, 07:30

Since this was marked solved...

Topic Solved & Locked
avatar
Jophy
ForumGuru

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

Back to top Go down

Back to top


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