Advertisement:

Author Topic: How to make a page that looks like the forum but doesn't use forum permissions?  (Read 839 times)

Offline Looking

  • SMF Hero
  • ******
  • Posts: 2,371
  • SMF Customization
    • jeanborde on Facebook
    • SMF Custom Themes & Custom Coding
I give up.  Long live fakebook.
I don't think swearing is allowed in this community. ;)

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,628
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
I would think a portal would be the easiest way to do this really, I seem to remember more than one of the existing portals allowing this through their own settings.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,308
^ See my previous post.  There may be a mod that does this, wouldn't know.  It was a custom job.


Offline anidea

  • Jr. Member
  • **
  • Posts: 254
I give up.  Long live fakebook.
I don't think swearing is allowed in this community. ;)

Well, I didn't exactly swear.  Maybe I made an oath to a false idol?  LOL

Offline anidea

  • Jr. Member
  • **
  • Posts: 254
I would think a portal would be the easiest way to do this really, I seem to remember more than one of the existing portals allowing this through their own settings.

I know I tried a few in the past that didn't work.  I just tried TinyPortal and that didn't work.  So if a portal is the answer, I don't know which one or how.  I think it's pretty much a lost cause, so I'm just going to let it go.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,308
Ok, basically you place your custom page in function template_kick_guest() in Login.template.php.  Instead of seeing the login window, guests see the custom page between the index template header and footer.
You have to add a header login if your theme doesn't have one, but that's easy.

Offline anidea

  • Jr. Member
  • **
  • Posts: 254
Ok, basically you place your custom page in function template_kick_guest() in Login.template.php.  Instead of seeing the login window, guests see the custom page between the index template header and footer.
You have to add a header login if your theme doesn't have one, but that's easy.

Thank you!  I will try that tomorrow, when my eyes are a little fresher, because that sounds like things could break pretty easily.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,502
  • Gender: Male
    • Kindred-999 on GitHub
Ok, basically you place your custom page in function template_kick_guest() in Login.template.php.  Instead of seeing the login window, guests see the custom page between the index template header and footer.
You have to add a header login if your theme doesn't have one, but that's easy.

That is a TERRIBLE way to do what the user is asking for.
It's a messy hack, at best
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 lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,447
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Fatal error: Uncaught Error: Function name must be a string in /home/public/smf/Sources/ScheduledTasks.php:1194 Stack trace: #0 /home/public/smf/Sources/Load.php(2008): loadEssentialThemeData() #1 /home/public/smf/Sources/TPortal.php(23): loadLanguage('TPortal') #2 /home/public/smf/SSI.php(67): require_once('/home/public/sm...') #3 /home/public/index.php(6): require('/home/public/sm...') #4 {main} thrown in /home/public/smf/Sources/ScheduledTasks.php on line 1194

I give up.  Long live fakebook.

Strange. So obviously it doesn't like the way you have your existing landing page set up, or perhaps a conflicting mod. Because out of the box TP runs fine on 2.0.15   I have reverted my test site for now. ;) 

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,308
That is a TERRIBLE way to do what the user is asking for.
It's a messy hack, at best

Actually, it's worked quite well for years.  All you're doing is replacing the login window with the custom page.  It's simple. it's neat, but like anything else in coding, if you do it wrong it breaks things.