Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: jaime_s on April 24, 2019, 03:31:09 PM

Title: Insert Custom Section above Info Box
Post by: jaime_s on April 24, 2019, 03:31:09 PM
Hello,

We would like to insert a new section between the last Board Category and the Info Box (using the same theme look and feel as those sections).

I'm looking for the location in the code to do so. First step is to hard code the change and ultimately build a mod that will make it easy to modify the contents of this section.

I'm struggling with locating where the info box is generated -- figured it would be right above that code block that I would be able to do the insertion.

Thanks for the pointers.

Using the Dani theme
SMF Version 2.0.15
Title: Re: Insert Custom Section above Info Box
Post by: Kindred on April 24, 2019, 04:57:04 PM
check in either index.template.php or BoardIndex.template.php for display

Please do note that for mods, especially, functional code should be in a Sources file and display code should be in a template file.
Title: Re: Insert Custom Section above Info Box
Post by: Antechinus on April 26, 2019, 05:07:05 AM
BoardIndex.template.php is the file you want. It's commented, so you can tell where the info centre starts.