TinyPortal

Development => Support => Topic started by: Dylert on January 08, 2012, 08:54:35 AM

Title: Blocks in certain thread
Post by: Dylert on January 08, 2012, 08:54:35 AM
Link to my site: http://www.hellasforum.net
SMF version: SMF ver. 2.0.2
TP version: TP ver. 1.104
Default Forum Language: Norwegian
Theme name and version: Total Blue 2.0.2

Hi! I'm wondering if it's possible to have blocks only in a certain thread. I know it's possible to have it in a certain board, but I would like to have a couple of blocks only in one thread.
Title: Re: Blocks in certain thread
Post by: Lesmond on January 08, 2012, 11:29:10 AM
I have tried this on one of my test sites, and I don't think it is possible, unless someone else knows of a way!
Title: Re: Blocks in certain thread
Post by: ZarPrime on January 08, 2012, 06:29:41 PM
No, this isn't currently possible.

ZarPrime
Title: Re: Blocks in certain thread
Post by: IchBin on January 09, 2012, 02:55:08 AM
You could only do it with some code in a PHP block.

global $topic;

if(isset($topic) && $topic == 5)
    echo 'what you need here to only show on topic 5';


Doing this though, I'd suggest you set the block to not show the frame/title. Otherwise you'll just have an empty block showing on the other pages.
Title: Re: Blocks in certain thread
Post by: ZarPrime on January 09, 2012, 04:49:58 AM
Thank you IchBinâ,,¢. O0 I hadn't actually thought about doing something like that.

ZarPrime
Title: Re: Blocks in certain thread
Post by: IchBin on January 09, 2012, 05:09:12 AM
It could be useful I suppose.But sooo many block options is crowding those screens. lol