Advertisement:

Author Topic: Add message to index.php (guest must register)  (Read 878 times)

Offline DMR123

  • Full Member
  • ***
  • Posts: 487
    • Photography Forum
Add message to index.php (guest must register)
« on: May 11, 2012, 03:10:14 PM »
Hi,
I have posted this in my other thread but its not getting any views, as I was asking something else which was solved, but then I asked something else.. nevermind.

I would like to add a custom message to the index.php, the page where guests must register before viewing the forum. I have added a message to the page when the site is in maintenance mode, but I would now like to take it off maintenance mode and change the settings so that guests cannot browse the forum and must register.

The custom message only shows in the maintenance mode and not in the other mode.

Can anyone help..


Cheers

Offline 4Kstore

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 3,451
  • Gender: Male
  • |-|Principito|-|
    • agustintari on Facebook
    • @agustintarifa on Twitter
    • SSIMPLE TEAM PAGE

Offline Krash.

  • Beta Tester
  • SMF Hero
  • *
  • Posts: 2,681
  • It's not a feature, it's a bug.
Re: Add message to index.php (guest must register)
« Reply #2 on: May 11, 2012, 11:34:24 PM »

Or you can do a custom edit of function template_kick_guest() in Login.template.php.  That's the 'Warning' message that guests see when guest access is disallowed.
"In the land of the blind, the one-eyed man is king."

Offline DMR123

  • Full Member
  • ***
  • Posts: 487
    • Photography Forum
Re: Add message to index.php (guest must register)
« Reply #3 on: May 12, 2012, 04:24:54 AM »
if you visit www.photo-station.co.uk/index.php you will see the custom message (Titled "please read"). 

I was told what to do for that here: http://www.simplemachines.org/community/index.php?topic=476159.0

But once I take it out of maintenance mode, that message goes. I would like it to stay where it is, but when the forum isnt visible to guests.