SimplePortal
Customization => Blocks and Modifications => Mod Requests => Topic started by: xeon365 on October 27, 2014, 05:45:43 PM
-
Anyone able to make a mod for this?
Would be nice so news topics collected from different board id's, can get a different css styling on the frontpage based on the board id it was from.
-
You could use a switch on the board ID and then append $style to your liking.
Eg;
switch ($board)
{
case 1:
$style['some_key']['other_keys'] = 'your_new_css_for_board_1';
break;
case 2:
$style['some_key']['other_keys'] = 'your_new_css_for_board_2';
break;
case 3:
$style['some_key']['other_keys'] = 'your_new_css_for_board_3';
break;
}
But that's just from a hardcoding point of view. To make it a mod, would require just a few tweaks.