The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Online and offline appearances (PhpBB2) profile

2 posters

Go down

Solved Online and offline appearances (PhpBB2) profile

Post by Luis Ferreira October 25th 2015, 5:00 pm

TECHNICAL DETAILS

Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Google Chrome
Who the problem concerns : All members
Forum link : http://gamemunity.team-talk.net/

DESCRIPTION OF PROBLEM

Hi i use this codes for online appearances

In viewtopic_body template i switched :

Code:
class="post post--{postrow.displayed.U_POST_ID}"

and replaced to :

Code:
class="post {postrow.displayed.ONLINE_IMG_NEW} post--{postrow.displayed.U_POST_ID}"

then i saved and i place in CSS this:

Code:
.post .name {
  display:block;
}

.post.online .name {
  background:url('IMAGE') 0 0;
  padding-top:50px;
}

and it worked for online, and now i want to place something similar this but when someone is offline (in same position)
avatar
Luis Ferreira
Forumember

Posts : 53
Reputation : 1
Language : Poruguese

http://gamemunity.team-talk.net/

Back to top Go down

Solved Re: Online and offline appearances (PhpBB2) profile

Post by Ange Tuteur October 25th 2015, 5:32 pm

Hi @Luis Ferreira,

Change the CSS to this :
Code:
.post .name {
  background:url('OFFLINE_IMAGE') 0 0;
  display:block;
}

.post.online .name {
  background:url('ONLINE_IMAGE') 0 0;
  padding-top:50px;
}

and replace the OFFLINE_IMAGE and ONLINE_IMAGE by an image URL. Wink
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Online and offline appearances (PhpBB2) profile

Post by Luis Ferreira October 25th 2015, 6:01 pm

Great Very Happy but i needed to change a little thing like (to be equal) :



Code:
.post .name {
  background:url('OFFLINE_IMAGE') 0 0;
  padding-top:50px;
  display:block;
}

.post.online .name {
  background:url('ONLINE_IMAGE') 0 0;
  padding-top:50px;
}
avatar
Luis Ferreira
Forumember

Posts : 53
Reputation : 1
Language : Poruguese

http://gamemunity.team-talk.net/

Back to top Go down

Solved Re: Online and offline appearances (PhpBB2) profile

Post by Ange Tuteur October 25th 2015, 6:22 pm

Ah yes, I forgot ! Online and offline appearances (PhpBB2) profile 1f633

Is this now solved ? Smile
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Online and offline appearances (PhpBB2) profile

Post by Luis Ferreira October 25th 2015, 9:17 pm

yes solved ! Very Happy
thx a lot i was breaking my head for this simple code Online and offline appearances (PhpBB2) profile 1f60a

ps : i think you must put this in the tips on phpbb3 tutorial because i see a lot of troble about this on the forum Very Happy
avatar
Luis Ferreira
Forumember

Posts : 53
Reputation : 1
Language : Poruguese

http://gamemunity.team-talk.net/

Back to top Go down

Solved Re: Online and offline appearances (PhpBB2) profile

Post by Ange Tuteur October 25th 2015, 10:13 pm

You're welcome. ^^ I'll try to look into that. Wink

Topic archived

Have a good day. Smile
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top


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