Advertisement:

Author Topic: [Help Request] Adding forum header to website  (Read 390 times)

Offline mindseye

  • Semi-Newbie
  • *
  • Posts: 13
[Help Request] Adding forum header to website
« on: December 05, 2017, 01:27:07 AM »
Hi!

I'm sorry if this has been asked, but I have searched and have not found anything in the help articles nor forum so I don't know if this is possible.

I found a forum template that I think looks pretty nice, and I'm wondering if there is a way to include the full header on my main website? I have seen lots of tricks to get my website theme into my forum, but not really the other way around.

*Edit* Forgot to say I may just have to check the html, copy it, and replace the sections with the includes if there is not an easier way.

Thanks for your time and assistance.

mindseye
« Last Edit: December 05, 2017, 01:39:35 AM by mindseye »

Offline Looking

  • SMF Hero
  • ******
  • Posts: 2,126
  • SMF Customization
    • jeanborde on Facebook
    • SMF Custom Themes
Re: [Help Request] Adding forum header to website
« Reply #1 on: December 05, 2017, 04:02:16 AM »
You will probably need to edit the theme's index.template as well as the css file. Neither of these should be edited unless you know what you are doing because you can cause your site to go offline or look weird.

Offline mindseye

  • Semi-Newbie
  • *
  • Posts: 13
Re: [Help Request] Adding forum header to website
« Reply #2 on: December 05, 2017, 04:05:58 AM »
You will probably need to edit the theme's index.template as well as the css file. Neither of these should be edited unless you know what you are doing because you can cause your site to go offline or look weird.

Thanks Looking. That is what I figured but wanted to confirm lol. I have in the past tried to use bootstrap but that did not go so well, so I started took the html and inserted the SSI commands within.

Thanks for the quick reply and hope you have a great day.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,042
    • Arantor on GitHub
Re: [Help Request] Adding forum header to website
« Reply #3 on: December 05, 2017, 05:34:51 AM »
Include SSI.php in your site, then call template_header() to display the top part, and template_footer() for the bottom after your content.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,115
  • Gender: Male
    • Kindred-999 on GitHub
Re: [Help Request] Adding forum header to website
« Reply #4 on: December 06, 2017, 01:10:07 AM »
Also, if you are still using smf 1.1.x, you need to upgrade to the 2.0.x series —- 1.1.x is at end of life and will lose all support soon
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.