Advertisement:

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

Offline mattizzy

  • Semi-Newbie
  • *
  • Posts: 75
  • Gender: Male
    • mattizzy.okeke on Facebook
    • @mattizzyo on Twitter
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.
I am only an SMF Addict. I think I took overdose.

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 57,345
  • 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: 122
  • Carpe diem!
    • wintstar on GitHub
    • 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 

?>




Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 57,345
  • 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: 75
  • Gender: Male
    • mattizzy.okeke on Facebook
    • @mattizzyo on Twitter
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
I am only an SMF Addict. I think I took overdose.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 50,084
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: 75
  • Gender: Male
    • mattizzy.okeke on Facebook
    • @mattizzyo on Twitter
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
I am only an SMF Addict. I think I took overdose.