TinyPortal

Development => Support => Topic started by: Bryan on August 07, 2008, 04:09:28 PM

Title: Controlling Panel & Block Visibility with the Calendar
Post by: Bryan on August 07, 2008, 04:09:28 PM
Using TP 1.0.5 beta 1 and SMF 1.1.5 with DilberMC theme:

I'm having difficulty controlling the visibility of panels and blocks with respect to the calendar.  In “Panel Settings” if I check “Calendar Screen” in “Hide panels when in these sections”, the panels still show when the calendar is displayed (the other choices in this hide list work OK).  The workaround for this is to add calendar to the “Hide panels when in custom actions” box, which works as expected.

I would prefer to control the blocks individually, but again with respect to block visibility on the calendar page I can't seem to accomplish this.  Leaving the panel settings to allow visibility with the calendar and then trying to turn off visibility for an individual block by leaving the calendar box unchecked in visible options while checking the other actions where I do want visibility, the block still shows with the calendar. (the “Display on all pages and sections” is unchecked).

My installed mods are below:

1. No Temp Directory Removal 1.0
2. Auto Embed Video/Audio Clips 3.1.1
3. TinyPortal 1.052
4. Custom Profile Field Mod 3.19
5. Enhanced Calendar 1.1

Note:  The Enhanced Calendar mod was installed after I noticed the problem and did not have any effect on the problem.  Enhanced Calendar, although no longer supported by the developer, is working fine.
Title: Re: Controlling Panel & Block Visibility with the Calendar
Post by: Ken. on August 07, 2008, 04:32:18 PM
I had not tried to use a block in just that manner, but after trying for the past 10 minutes to make it work my results are the same as yours.

Hopefully another Team member will have a better answer for you.
Title: Re: Controlling Panel & Block Visibility with the Calendar
Post by: G6Cad on August 07, 2008, 04:47:49 PM
did you add just the calendar or what did you add ?  and remember to separate the actions with a , sign
Title: Re: Controlling Panel & Block Visibility with the Calendar
Post by: Bryan on August 07, 2008, 04:55:13 PM
Quote from: G6 on August 07, 2008, 04:47:49 PM
did you add just the calendar or what did you add ?  and remember to separate the actions with a , sign
The calendar is the one that is included with SMF.  I'm not having any problem with adding “calendar” to the custom actions box â€" that works fine as I described above.  It's the check boxes in the panels settings and block visibility options that control visibility with the calendar that I can't seem to get to work.
Title: Re: Controlling Panel & Block Visibility with the Calendar
Post by: G6Cad on August 07, 2008, 04:59:41 PM
No, i meant the action you type in to the hide for this action box.

Like IE   gallery,arcade,calendar


What did you add to the box and did you separate it with a , and with out a spacing between them ?
Title: Re: Controlling Panel & Block Visibility with the Calendar
Post by: Bryan on August 07, 2008, 05:05:37 PM
The “Hide panels when in custom actions” works fine as a workaround for the checkbox not working.  The only action I tried adding to that box was calendar and the result was as expected, but I would prefer to control the blocks individually using the block visibility options instead of hiding all the panels with the calendar
Title: Re: Controlling Panel & Block Visibility with the Calendar
Post by: Bryan on August 08, 2008, 03:05:23 AM
What I described is really two problems related by the fact that both involve visibility settings when the calendar is displayed.  The first problem with panel visibility is interesting because it involves the calendar, but there is a workaround and this is not really my problem, although the checkbox not working for panel visibility with the calendar may be a bug.

The second problem with block visibility when the calendar is displayed is my real problem.  To try to further clarify, what I'd like to figure out is how to do this, if possible:  Create three blocks in any panel, make two of them visible everywhere except when the calendar is displayed.  Make the third block visible only when the calendar is displayed.