SimplePortal

Customization => Blocks and Modifications => Block Requests => Topic started by: matt2323 on June 20, 2013, 03:55:44 AM

Title: Board title Block
Post by: matt2323 on June 20, 2013, 03:55:44 AM
Hi,

I wonder if someone can make a block that displays the Title of the Board?  By assigning the block above the forum view, the user would see the name of the board they are browsing. I realise that this works more with SMF - but I cant see a simple way of doing it in the Forum alone. (or am I missing something)

Thanks,

Matt
Title: Re: Board title Block
Post by: matt2323 on June 20, 2013, 04:46:40 AM
From this post :-

http://simpleportal.net/index.php?topic=6063.msg35570#msg35570

I got this variation...

Code: [Select]
global $context;

$variable = '{boardname}';

// we parse $variable so we can use bbc on it.

parse_bbc($variable);


$variable = str_replace('{boardname}', $context['name'], $variable);

echo $variable;
Title: Re: Board title Block
Post by: matt2323 on June 20, 2013, 06:37:28 AM
But now the challenge of getting the Board Title into the topic? Anyone got a suggestion? It would be great to do both board and topic with one block, an if/or?

SimplePortal 2.3.8 © 2008-2024, SimplePortal