SimplePortal

Customization => Blocks and Modifications => Mod Requests => Topic started by: xeon365 on October 27, 2014, 05:45:43 PM

Title: Board News; style topic based on the board id it was from
Post 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.


Title: Re: Board News; style topic based on the board id it was from
Post by: ccbtimewiz on October 27, 2014, 08:13:55 PM
You could use a switch on the board ID and then append $style to your liking.

Eg;

Code: [Select]
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.
SimplePortal 2.3.8 © 2008-2024, SimplePortal