SimplePortal

Support => English Support => Topic started by: fapencio on July 30, 2014, 11:28:25 PM

Title: Block just in topics, forum index and portal but not in boards
Post by: fapencio on July 30, 2014, 11:28:25 PM
Hi, i need a value o parameter for a block, i want show this block just in the right side of the topics, but not in the boards, just in forum index, portal and topics

my configuration: Select Actions: Portal and Forum selected
                             Select Boards: Check All enabled
my Custom Display Options: ~topic,-~board,-~action|post,-~action|post2

this custom display options not work, the block is hide in topics and boards, but i want show just in topics, please help

Title: Re: Block just in topics, forum index and portal but not in boards
Post by: fapencio on July 31, 2014, 10:49:18 PM
up
Title: Re: Block just in topics, forum index and portal but not in boards
Post by: andy on August 01, 2014, 01:30:33 AM
Not sure why you selected
Quote
Select Boards: Check All enabled


Then negate that in custom display? Doesn't make sense.
Quote
-~board

Try this
In advanced options select the portal and forum only. Then in custom display use this;

~topic,-~action|post

I didnt test the post2  but mine works as you requested - on portal page, on forum, not on each board but shows on topics. Doesnt show on post.
Title: Re: Block just in topics, forum index and portal but not in boards
Post by: fapencio on August 01, 2014, 01:53:59 PM
Not sure why you selected
Quote
Select Boards: Check All enabled


Then negate that in custom display? Doesn't make sense.
Quote
-~board

Try this
In advanced options select the portal and forum only. Then in custom display use this;

~topic,-~action|post

I didnt test the post2  but mine works as you requested - on portal page, on forum, not on each board but shows on topics. Doesnt show on post.

Amazing, this works!!!!  :applause: :thumbsup:

Many thanks master @andy  you're a genius  :applause:

problem solved!
Title: Re: Block just in topics, forum index and portal but not in boards
Post by: popupsteve on September 05, 2014, 03:33:22 PM
I think this is kind of what I want to do but the opposite. I want a block to appear only at the top of a specific board (which it is by selecting only that board in the list of boards), but then I don't want the block to appear within a topic under that specific board.
Title: Re: Block just in topics, forum index and portal but not in boards
Post by: popupsteve on September 05, 2014, 04:44:20 PM
OK, finally found the documentation on "Custom Blocks Display (http://simpleportal.net/index.php?action=docs;area=custom_blocks_display)", much clearer then the help block from the "Add/Edit Block" in the Admin section.

This is what I ended up using: "~board|271.0,-~action|post,-~topic"

I also unchecked all boards under the "Select Boards" option and unchecked all Actions under the "Select Actions" option
SimplePortal 2.3.8 © 2008-2024, SimplePortal