SimplePortal
Customization => Blocks and Modifications => Block Requests => Topic started 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
-
From this post :-
http://simpleportal.net/index.php?topic=6063.msg35570#msg35570
I got this variation...
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;
-
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?