• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

FTP host during login

R

rawkin

Guest
We're running Sitebuilder 1.1.1 and all of our users utilise a single FTP host.

Is there any way I can hard code the default FTP hostname into the user login screen?

thanks.
 
After looking through various files in sitebuilder/styles/ & sitebuilder/localize I found I could achieve what I was after by;

1. Editing sitebuilder/styles/common.xsl and changing the ftphost field to be hidden and giving a fixed value.

2. Editing sitebuilder/localize/en_US/localize.php and modifying the bottom paragraph to reflect the field changes ('login_help_tooltip' is the variable name).

Pete
 
Nice job. That works great. Were you able to remove the @ after the login name?
 
Yep, the line immediately before the ftp_host input that you commented out is;

</input> <xsl:value-of select="$ftphost/@TITLE"/> 

Change that line to;

</input><!--  <xsl:value-of select="$ftphost/@TITLE"/>  -->

Pete
 
Can you type the code you changed for us noobies.

I assume it is this:
value="{$ftphost/@VALUE}"

to something like
value="IPaddress?"

Thanks great Tip too.
 
> I assume it is this:
> value="{$ftphost/@VALUE}"

Yep, this is the correct line.

> to something like
> value="IPaddress?"

Yep.

Then you may also want to remove this field from showing by changing the type from 'text' to 'hidden'.

If you hide the FTP Host field, you'll also want to get rid of the '@' character from showing by changing the line directly above the FTP Host input field from;

</input> <xsl:value-of select="$ftphost/@TITLE"/> 

to;

</input><!--  <xsl:value-of select="$ftphost/@TITLE"/>  -->

Pete
 
Do you got any tricks on the publish page to hide it here also?
 
Back
Top