• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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