News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Easiest way to make a custom home page

Started by Biology Forums, June 18, 2018, 08:14:16 PM

Previous topic - Next topic

Biology Forums

What's the easiest what to make a custom home page without the use of portals?

Is it index.php that controls this?

Of course I'd like to use the header and footer of the website.

In other words, if you access https://url.com, it goes to the custom page rather than boardindex.

Thanks

SMFHacks.com Team

In index.php where it says require BoardIndex.php replace with your own file.

Then make an action such as action=forum and have that redirect to the forum page. That's something what I do with my portal mod ezportal similar concept.
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Kindred

https://custom.simplemachines.org/mods/index.php?mod=2915


but why?   Why are you opposed to using a portal?  A portal can do as much or as little as you like (including JUST handling the home page)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Biology Forums

Too bloated, want to keep it simple.

Even the mod above, why would I add all that extra functionality when all I need is a homepage?

Sir Osis of Liver

Hmm, I vaguely recall doing something like that for a forum 4-5 years ago.  Let's see ....

Ok, it was here.  If guest access is disallowed, unlogged visitors see home page, logged members go directly to forum.  Code for home page is in function template_kick_guest() in Login.template.php.  It basically replaces the login screen guests see when guest access is disabled.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Biology Forums

that's an excellent idea... home page only for guests

thanks

Advertisement: