New upcoming Version - Support for NO Guest users

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.
User avatar

thomas.d
Former Team Member
Posts: 625
Joined: 19. January 2008 23:56
phpBB.de User: thomas.d
phpBB.com User: thomas.d
Contact:

Re: New upcoming Version - Support for NO Guest users

Post by thomas.d »

danleedham wrote:Sorrry - does this stop Guests seeing the Portal? or does it give you the choices of what Guests can / cannot see?

That would be the icing on the cake... thanks
Here we go putting the ice on the cake:

You can control wether guests may see certain blocks or not like this:

Usually a block is included like here (in /styles/*your_style*/template/portal/portal_body.html):

Code: Select all

		<!-- IF S_DISPLAY_BIRTHDAY_LIST -->
			<!-- INCLUDE portal/block/birthday_list.html -->
		<!-- ENDIF -->
If you don't want guest (and bots!) to be able to see it you will have to change it like this:

Code: Select all

		<!-- IF S_DISPLAY_BIRTHDAY_LIST -->
                        <!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
		        	<!-- INCLUDE portal/block/birthday_list.html -->
                        <!-- ENDIF -->
		<!-- ENDIF -->
How's the cake? ;-)
Viele Grüße

Thomas

Deutsche Sprachdateien für
[Alpha] phpBB Calendar 0.0.8 (alightner) | [RC] phpBB Arcade 1.0.RC8 |
ACP Add User MOD 1.0.0 |

danleedham
Active Member
Posts: 6
Joined: 18. February 2009 11:06
phpBB.de User: danleedham
phpBB.com User: danleedham

Re: New upcoming Version - Support for NO Guest users

Post by danleedham »

That cake's DARN GOOD!


Thanks so much - i'd never have worked this out on my own. (Noooob)


Now to making it look good...
User avatar

Mike
Former Team Member
Posts: 1862
Joined: 3. July 2008 23:59
Location: Schwarzwald / FDS
Contact:

Re: New upcoming Version - Support for NO Guest users

Post by Mike »

cake... Portal... reminds me of something...

The cake is a lie! ;)










Sorry for OT
kein Support per PN / Messenger
no Support via PM / Messenger

csurfass
Active Member
Posts: 1
Joined: 21. August 2009 21:41

Re: New upcoming Version - Support for NO Guest users

Post by csurfass »

Has this been implemented? I have tried inserting the mentioned code into the file (using default prosilver style), but it does not hide the content when I am logged out. Is there another setting I am missing in order for this to work properly? Anything that I need to set additionally within the ACP? I really need to be able to separate my portal content to registered (authenticated) users only.

EDIT: Found the issue. Note to others as well, if you have a blank line in your stylesheet.css under your portal.css entry, it will mess up your layout as well as not process the aforementioned code. Beginner's mistake! :oops:

Cr33per
Active Member
Posts: 6
Joined: 20. January 2010 16:32

Re: New upcoming Version - Support for NO Guest users

Post by Cr33per »

Ok so i put this code in the /template/portal/portal_body.html

Code: Select all

      <!-- IF S_DISPLAY_CHANGE_STYLE -->
                        <!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
                 <!-- INCLUDE portal/block/change_style.html -->
                        <!-- ENDIF -->
      <!-- ENDIF -->
But it don't work.
Did i do something wrong?
Edit: Never mind I found it in portal_left.html

Code: Select all

<!-- IF S_STYLE_OPTIONS and S_DISPLAY_CHANGE_STYLE -->
                        <!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
                 <!-- INCLUDE portal/block/change_style.html -->
                        <!-- ENDIF -->
      <!-- ENDIF -->
Locked

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