News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Custom Board Icons

Started by live627, September 06, 2023, 07:14:30 PM

Previous topic - Next topic

clubkadettspain

I fixed it modifying the index.css file on the custom theme on the line where .board_icon was definied i reemplace all this part from the default theme index.css modified by this mod.

Diego Andrés

Should this MOD include some inline CSS to remove the background image from .board_icon a when there's a custom icon set?
I guess it could be something like class="board_cbi cbi_%s" .board_icon a.board_cbi {background: none;} ?

SMF Tricks - Free & Premium Responsive Themes for SMF.

JRMBelgium

Quote from: clubkadettspain on June 13, 2024, 06:58:27 PMsample image where i modify first icon board and it mantains default one also.
Is should replace it true? and not mantain both.



This bug still hasn't been fixed. Gonna remove the mod until it is.

keyboard

Yes.... I wound up removing it too.....  I wanted desperately for it to work !
Слaва
Украинi

Senkusha

One thing I've noticed.  I'm using the ReSeller theme, and this mod seems to work decently, until you have a Redirect board.  I've combed over the Theme files, and the developer can not reproduce the problem.  The only difference I see is this mod could impact the Topics/Posts count instead of Redirections count stat.  The first image is the ReSeller Theme, the second image is the Default template.

You cannot view this attachment.
You cannot view this attachment.
// Show some basic information about the number of posts, etc.
 echo '
 <div class="board_stats">
 ', function_exists('template_bi_' . $board['type'] . '_stats') ? call_user_func('template_bi_' . $board['type'] . '_stats', $board) : template_bi_board_stats($board), '
 </div>';

Above here, is the code in the Default template.php file, which is identical to the code in the ReSeller template.php file.  I'm not sure what could be the issue here.

I've poked around in the Subs-CBI.php file, and found this, but I'm not sure where else to look:
function template_bi_cbi_stats($board)
{
 if (function_exists('template_bi_' . $board['old_type'] . '_stats'))
 call_user_func('template_bi_' . $board['old_type'] . '_stats', $board);
 else
 template_bi_board_stats($board);
}


-- Senkusha
The Kawaii Klub
The Creative Anime Role Playing Community.
(SMF v. 2.1.4, PHP v. 8.0)

Advertisement: