Advertisement:

Author Topic: How to use custom front page without portal  (Read 215 times)

Offline mattizzy

  • Semi-Newbie
  • *
  • Posts: 29
How to use custom front page without portal
« on: July 11, 2018, 08:43:15 AM »
Hello I need a clean homepage to write all my codes the way I want it. How can I also make SMF to recognize the page used as the home page.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,480
  • Gender: Male
    • Kindred-999 on GitHub
Re: How to use custom front page without portal
« Reply #1 on: July 11, 2018, 09:45:57 AM »
you have three options.

1- install a portal. You can then use the portal mainpage as the homepage and include custom HTML or php
2- install the custom homepage mod. Never used it, but I assume you can include HTML - maybe php
3- code it yourself, like we did here... (put the forum in a subdirectory and your homepage in the root)  then modify the button array to point the home button to your new homepage and add a forum button that points to your forum
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 wintstar

  • Jr. Member
  • **
  • Posts: 108
  • Carpe diem!
    • SF Webdesign
Re: How to use custom front page without portal
« Reply #2 on: July 11, 2018, 10:22:05 AM »
Look here => https://wiki.simplemachines.org/smf/Integrating_SMF_with_your_website

sample start.php
Code: [Select]
<?php
require_once('SSI.php'); //path to your SSI.php
$context['page_title_html_safe'] = '<-- your page titel -->';

$context['html_headers'] = '<-- your own css or java script -->';
$context['linktree'][] = array(
      
'name' => '<-- your page titel  or own titel-->',
 ); 
//breadcrumb 


template_header(); //header with menue
echo '<-- your html content -->';
template_footer(); // footer 

?>




Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,480
  • Gender: Male
    • Kindred-999 on GitHub
Re: How to use custom front page without portal
« Reply #3 on: July 11, 2018, 10:42:20 AM »
that would be option 3
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 mattizzy

  • Semi-Newbie
  • *
  • Posts: 29
Re: How to use custom front page without portal
« Reply #4 on: July 11, 2018, 01:37:45 PM »
So basically, How can I modify the FRONT PAGE OF SIMPLE PORTAL

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 49,443
Re: How to use custom front page without portal
« Reply #5 on: July 11, 2018, 01:38:28 PM »
post in the support topic for the mod you using.

Offline mattizzy

  • Semi-Newbie
  • *
  • Posts: 29
Re: How to use custom front page without portal
« Reply #6 on: July 11, 2018, 01:40:02 PM »
post in the support topic for the mod you using.

Okay