• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

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