Adding Viewonline to Portal Center Block

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
RobbyJ88
Active Member
Posts: 3
Joined: 12. March 2010 14:43
phpBB.com User: RobbyJ88

Adding Viewonline to Portal Center Block

Post by RobbyJ88 »

Your Portal Version: 1.0.0RC3
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Basic Knowledge
Boardlink: http://www.cusemen.com/in/portal.php

PHP Version: 3.0.7

What have you done before the problem was there?


What have you already tryed to solve the problem?


Description and Message
I would like to add the Viewonline_body.html to the Portal page.

I have added the mchat to Portal, no problem, but I cant seem to figure out how to add the viewonline_body.html to the center block right above the chat box.

I know I need: <!-- INCLUDE viewonline_body.html --> to the portal_center.html, but I dont understand or know how to use the "if's". I follow instructions well, and that is why my board is where it is.

Please let me know if you can help.


Thank you very much!

Robby
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: Adding Viewonline to Portal Center Block

Post by Marc »

That won't work, since the viewonline.php creates a lot of variables for that page, which the portal is not able to do.

Topic author
RobbyJ88
Active Member
Posts: 3
Joined: 12. March 2010 14:43
phpBB.com User: RobbyJ88

Re: Adding Viewonline to Portal Center Block

Post by RobbyJ88 »

Understood, thanks.

What if I wanted to move the "Who is Online" block at the bottom to the top center of the page? Would that be possible?
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: Adding Viewonline to Portal Center Block

Post by Marc »

Move this in styles/*yourstyle*/template/portal/portal_center.html:

Code: Select all

<!-- IF S_DISPLAY_ONLINE_PORTAL_LIST and S_DISPLAY_ONLINE_LIST -->
	<!-- INCLUDE portal/block/whois_online.html -->
<!-- ENDIF -->

Topic author
RobbyJ88
Active Member
Posts: 3
Joined: 12. March 2010 14:43
phpBB.com User: RobbyJ88

Re: Adding Viewonline to Portal Center Block

Post by RobbyJ88 »

I almost thought it didnt work, But i refreshed the Template and it is right where I want. Thank you for your help!
Locked

Return to “board3 Portal 1.0.x - English Support”