Advertisement:

Author Topic: Insert Custom Section above Info Box  (Read 572 times)

Offline jaime_s

  • Newbie
  • *
  • Posts: 4
Insert Custom Section above Info Box
« 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

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,579
  • Gender: Male
    • Kindred-999 on GitHub
Re: Insert Custom Section above Info Box
« Reply #1 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.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,803
  • Master of BBC Abuse
Re: Insert Custom Section above Info Box
« Reply #2 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.