Support > English Support

Have a block only show on threads?

(1/1)

danmsmith018f:
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!

Chen Zhen:
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: ---~topic|100.0

--- End code ---

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

danmsmith018f:

--- Quote from: 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: ---~topic|100.0

--- End code ---

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

--- End quote ---

Thanks for responding, I appreciate it.

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

ccbtimewiz:

--- Quote from: danmsmith018f on January 03, 2019, 05:46:35 AM ---
--- Quote from: 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: ---~topic|100.0

--- End code ---

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

--- End quote ---

Thanks for responding, I appreciate it.

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

--- End quote ---

I'm pretty sure it will still work. Have you tried it yet?

Navigation

[0] Message Index

Go to full version