SimplePortal

Support => English Support => Topic started by: danmsmith018f on January 01, 2019, 07:13:33 AM

Title: Have a block only show on threads?
Post by: danmsmith018f on January 01, 2019, 07:13:33 AM
Hi all,

Is there any way I can make a block appear on a thread only?

Setting it to board means the board index + threads.

All help is appreciated!
Title: Re: Have a block only show on threads?
Post by: Chen Zhen on January 03, 2019, 12:48:14 AM
Yes you edit the block where you see "Display Options", you need to check the box on the right labeled "Advanced Options".
Then you need to enter commands into the "Custom Display Options" text input.

For example, if you want the block to only shown on topic number 100, you enter the following:
Code: [Select]
~topic|100.0

.. if you look at the url when viewing a thread/topic you can figure out the data that needs to be entered.
For topic # 100 the url will say: ../index.php?topic=100.0 
Title: Re: Have a block only show on threads?
Post by: danmsmith018f on January 03, 2019, 05:46:35 AM

Yes you edit the block where you see "Display Options", you need to check the box on the right labeled "Advanced Options".
Then you need to enter commands into the "Custom Display Options" text input.

For example, if you want the block to only shown on topic number 100, you enter the following:
Code: [Select]
~topic|100.0

.. if you look at the url when viewing a thread/topic you can figure out the data that needs to be entered.
For topic # 100 the url will say: ../index.php?topc=100.0

Thanks for responding, I appreciate it.

Would this still work if post URL's are driven by pretty urls?
Title: Re: Have a block only show on threads?
Post by: ccbtimewiz on March 09, 2019, 07:32:01 PM

Yes you edit the block where you see "Display Options", you need to check the box on the right labeled "Advanced Options".
Then you need to enter commands into the "Custom Display Options" text input.

For example, if you want the block to only shown on topic number 100, you enter the following:
Code: [Select]
~topic|100.0

.. if you look at the url when viewing a thread/topic you can figure out the data that needs to be entered.
For topic # 100 the url will say: ../index.php?topc=100.0

Thanks for responding, I appreciate it.

Would this still work if post URL's are driven by pretty urls?

I'm pretty sure it will still work. Have you tried it yet?
SimplePortal 2.3.8 © 2008-2024, SimplePortal