Is it possible to edit ssi_welcome(); to exclude "Please log in."?

Started by revgreed, October 30, 2022, 03:43:05 PM

Previous topic - Next topic

revgreed

I created a custom login form using SMF 2.1.2 SSI.  I am using the following:

ssi_welcome();
ssi_login();
ssi_logout();

The issue I'm running into is that ssi_welcome(); includes a login link, "Please log in." when the user is logged out of the forum.  However, I'm using ssi_login(); on the same form, so it creates a redundancy, as well as, I do not want to link to the forum's login.  Here's my login form:


You cannot view this attachment.


As you can see I'm using ssi_welcome(); in the legend.  But, I'm wanting to remove the "Please log in." portion of ssi_welcome();.  I realize the wiki says, "PLEASE DO NOT EDIT YOUR 'SSI.PHP' FILE Everything done here is done without having to edit 'SSI.php'"  All in all, I just don't how or if it can be done without breaking something.

You have my sincere appreciation for any help with this.

Diego Andrés

You could edit the language string, there are two ways of doing it.

- You can do it through the admin center in Languages > English > Edit > Edit Language Entries > Select General Strings > Locate welcome_guest and modify it as you like.
- Directly edit the language file in Themes/default/languages/index.english.php

$txt['welcome_guest'] = 'Welcome to <strong>%1$s</strong>. Please <a href="%2$s" onclick="%3$s">log in</a>.';

SMF Tricks - Free & Premium Responsive Themes for SMF.

revgreed

This is the solution, Diego!  You rock!  Thank you.

Advertisement: