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 and offline appearances (PhpBB2) profile

View previous topic View next topic 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

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

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

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

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

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

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