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)

View previous topic View next topic Go down

Solved Online and offline appearances (PhpBB2)

Post by SkyGuide on October 23rd 2015, 12:19 pm

Technical Details


Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Google Chrome
Who the problem concerns : All members
Forum link : http://mafiaofoldschool.freeinvision.net/t343-thesandsnake-problem

Description of problem

I was wondering if someone could possibly give me a coding for online/offline appearances. Just like on this forum. The only reason I ask is that a lot of my members were wondering if they could see an online/offline status more clearly. I'am aware that it is possible to see "online" on my forum, but perhaps it would be better to have it shown just like on this forumotion. Its all about entertaining the viewers, and if this its possible to obtain this type of coding, then I might be able to attract more activity on my forum. Thanks guys!


Last edited by SkyGuide on October 23rd 2015, 2:30 pm; edited 1 time in total

SkyGuide
Forumember

Male Posts : 261
Reputation : 2
Language : english

http://oldschoolsociety.forumotion.org/

Back to top Go down

Solved Re: Online and offline appearances (PhpBB2)

Post by Ange Tuteur on October 23rd 2015, 1:18 pm

Hi @SkyGuide,

Since your forum is phpbb2 you'll have to make a small modification. Go to Admin Panel > Display > Templates > General and open the viewtopic_body template. Edit

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

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

Then save and publish.

This should add a class to posts which indicates the online state.

You'd have to use CSS for this. Something like :
Code:
.post .name {
  display:block;
}

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

Replace IMAGE with the image URL of your online icon, and adjust the 50px so it corresponds to the height of the image.

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Online and offline appearances (PhpBB2)

Post by SkyGuide on October 23rd 2015, 2:07 pm

I'm guessing I would add the second code this time into the CCS? Also, I don't know where to find the image URL for the online icon.

SkyGuide
Forumember

Male Posts : 261
Reputation : 2
Language : english

http://oldschoolsociety.forumotion.org/

Back to top Go down

Solved Re: Online and offline appearances (PhpBB2)

Post by Ange Tuteur on October 23rd 2015, 2:13 pm

Yes, the second code goes in the stylesheet. For the image, you can upload one, request one, etc.. Then you just paste the URL where "IMAGE" is Smile

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Online and offline appearances (PhpBB2)

Post by SkyGuide on October 23rd 2015, 2:19 pm

The code works because I can see quite a large space at the top above the avatar. Thanks for the help. Also, could you tell me where to find the online image in the admin panel please? I can't seem to find it lol

SkyGuide
Forumember

Male Posts : 261
Reputation : 2
Language : english

http://oldschoolsociety.forumotion.org/

Back to top Go down

Solved Re: Online and offline appearances (PhpBB2)

Post by Ange Tuteur on October 23rd 2015, 2:22 pm

If you have one set it would be under Display > Pics management > Advanced > Buttons > Online

So the icon displays just edit the CSS I gave you and replace IMAGE in this part :
Code:
background:url('IMAGE') 0 0;
with the URL to the online image. Wink

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Online and offline appearances (PhpBB2)

Post by SkyGuide on October 23rd 2015, 2:29 pm

Thanks buddy Smile. I try to find some time to get my head around the coding, and I will get back to you if I have any problems. Topic complete!

SkyGuide
Forumember

Male Posts : 261
Reputation : 2
Language : english

http://oldschoolsociety.forumotion.org/

Back to top Go down

Solved Re: Online and offline appearances (PhpBB2)

Post by APE on October 23rd 2015, 2:37 pm

Topic solved and archived




APE
Manager
Manager

Male Posts : 8615
Reputation : 748
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

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