1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

FTP host during login

Discussion in 'Legacy Sitebuilder Software' started by rawkin, Mar 7, 2005.

  1. rawkin

    rawkin Guest

    0
     
    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.
     
  2. rawkin

    rawkin Guest

    0
     
    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
     
  3. bfrench

    bfrench Guest

    0
     
    Nice job. That works great. Were you able to remove the @ after the login name?
     
  4. rawkin

    rawkin Guest

    0
     
    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
     
  5. bfrench

    bfrench Guest

    0
     
    Got it. Thanks
     
  6. hudge

    hudge Guest

    0
     
    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.
     
  7. rawkin

    rawkin Guest

    0
     
    > 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
     
  8. hudge

    hudge Guest

    0
     
    Do you got any tricks on the publish page to hide it here also?
     
Loading...