Online and offline appearances (PhpBB2) profile

Go down

Solved Online and offline appearances (PhpBB2) profile

Post by Luis Ferreira on 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)

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 on 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
avatar
Ange Tuteur
Forumaster

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Online and offline appearances (PhpBB2) profile

Post by Luis Ferreira on 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;
}

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 on October 25th 2015, 6:22 pm

Ah yes, I forgot !

Is this now solved ? Smile
avatar
Ange Tuteur
Forumaster

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Online and offline appearances (PhpBB2) profile

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

yes solved ! Very Happy
thx a lot i was breaking my head for this simple code

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

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 on October 25th 2015, 10:13 pm

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

Topic archived

Have a good day. Smile
avatar
Ange Tuteur
Forumaster

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Back to top


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