Page 2 of 2

Re: New upcoming Version - Support for NO Guest users

Posted: 18. February 2009 14:55
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? ;-)

Re: New upcoming Version - Support for NO Guest users

Posted: 18. February 2009 15:54
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...

Re: New upcoming Version - Support for NO Guest users

Posted: 18. February 2009 16:36
by Mike
cake... Portal... reminds me of something...

The cake is a lie! ;)










Sorry for OT

Re: New upcoming Version - Support for NO Guest users

Posted: 21. August 2009 22:57
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:

Re: New upcoming Version - Support for NO Guest users

Posted: 20. January 2010 22:13
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 -->