Custom Block to only show up when logged in

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
xGROMx
Active Member
Posts: 2
Joined: 2. December 2009 19:21
phpBB.de User: xGROMx
phpBB.com User: xGROMx

Custom Block to only show up when logged in

Post by xGROMx »

Your Portal Version: 1.0.0RC3
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Basic Knowledge

What have you done before the problem was there?


What have you already tryed to solve the problem?


Description and Message
How would i make the Center Custom Block only show up to logged in users or users of a usergroup?

waxxie
Active Member
Posts: 1
Joined: 2. December 2009 19:36
phpBB.com User: waxxie

Re: Custom Block to only show up when logged in

Post by waxxie »

Just like a normal template file

Code: Select all

<!-- IF S_USER_LOGGED_IN -->
YOUR CODE HERE
<!-- ENDIF -->

Topic author
xGROMx
Active Member
Posts: 2
Joined: 2. December 2009 19:21
phpBB.de User: xGROMx
phpBB.com User: xGROMx

Re: Custom Block to only show up when logged in

Post by xGROMx »

Thanks, but what file holds the code to show the custom block that i can put that around?

jerkstore
Active Member
Posts: 26
Joined: 10. October 2008 06:45

Re: Custom Block to only show up when logged in

Post by jerkstore »

Isn't it the portal_body.html ? You would put

Code: Select all

<!-- IF S_USER_LOGGED_IN -->
<!-- INCLUDE portal/block/custom_center.html -->
<!-- ENDIF -->

Locked

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