Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: jonboy99 on October 17, 2008, 11:24:32 AM

Title: Putting a message on the login screen?
Post by: jonboy99 on October 17, 2008, 11:24:32 AM
Hi folks, what is the best way to put a message on the login screen?  Doesn't have to be complicated, will most likely just be to inform users if there has been a rearragement of the forums, change in terms and conditions etc which they see when they login.

I don't want to have to send unsolicted emails to do this, and many people only read one forum so can't put it as a sticky post unless it's going to be in all forums.

Do I need a full blown portal, or can do it simply?


cheers

Jon

PS I should have put this in the admin and functionality section I think, sorry.  Feel free to move.
Title: Re: Putting a message on the login screen?
Post by: H on October 17, 2008, 01:11:34 PM
Welcome to SMF.

Depending on where you want the message to go it shouldn't be too difficult to manually add the message to the relevant file.

You could also try one of these mods which you could use to redirect the user to an info topic:

http://custom.simplemachines.org/mods/index.php?mod=1364
http://custom.simplemachines.org/mods/index.php?mod=1443
Title: Re: Putting a message on the login screen?
Post by: jonboy99 on October 17, 2008, 01:20:44 PM
Thanks Huw.  The redirects look an option, but a message on the login screen, anywhere really would be better.  My forum requires login before seeing any forums, so there is simply an almost blank screen with the username and password boxes when you go to the forum site.  Anywhere on there would be fine - is there a suitable file to edit?
Title: Re: Putting a message on the login screen?
Post by: H on October 17, 2008, 01:22:47 PM
Easiest way would be in the login.template.php of your theme. You'll need to echo (http://php.net/echo) them.

You may also want to edit index.template.php if you have login boxes on the homepage :)
Title: Re: Putting a message on the login screen?
Post by: jonboy99 on October 17, 2008, 01:51:36 PM
Cheers, i'll give that a go.
Title: Re: Putting a message on the login screen?
Post by: H on October 17, 2008, 03:57:53 PM
Great. Let us know how it goes :D