en-custom.php changes not showing

Discussion in 'Templates customization' started by cpetrauskas, May 9, 2011.

  1. cpetrauskas

    cpetrauskas New Member

    Joined:
    May 2, 2011
    Messages:
    4
    Hello,

    I've created an en-custom.php file per the guidelines but the results are aren't showing.

    The file:

    <?php
    /**
    * sample-custom.php
    * Lanuage Customization file
    * rename to en-custom.php and add lines as shown below
    */

    defined( 'INCLUDED_AMEMBER_CONFIG' ) or die( 'Direct access is not allowed' );

    // this is a sample line, copy lines from en.php to this file, then edit
    define('_STRING_TO_REPLACE', 'A New string to display instead of written in en.php');

    define ('_TPL_POWEREDBY', '');

    define ('_TPL_SIGNUP_MULT_TITLE', 'Subscribe');
    define ('_TPL_SIGNUP_MULT_ZIP', 'ZIP or Postal Code');
    define ('_TPL_SIGNUP_MULT_GETCOUP', '(if applicable)');


    define ('_TPL_THX_TITLE', 'Thank you for Subscribing');
    define ('_TPL_THX_ENJOY', 'Welcome to Bullseye Kiln-Glass Education Online. You will shortly receive an email receipt. To Login please click here: %sLogin%s');
    define ('_TPL_THX_YOUR_INVOICE', 'Invoice #');

    ?>


    The signup page:
    http://www.bullseyeglass.com/amember/signup.php

    Is there some cache I need to clear or reset to make this take? I've cleared browser cache to no avail.

    BTW, on a possibly related note I notice that my en.php file does not have a closing ?> tag. Is that correct? I checked it straight from the zip bundle and that is how it was provided.

    Thanks,
    Chris
  2. cpetrauskas

    cpetrauskas New Member

    Joined:
    May 2, 2011
    Messages:
    4
    PS - I even tried making some test changes in en.php and it didn't affect anything.
  3. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Are you running APC or any OpCache which may be caching your PHP files?
  4. cpetrauskas

    cpetrauskas New Member

    Joined:
    May 2, 2011
    Messages:
    4
    It turns out to be a PEBKAC error.

    I was editing the wrong set of variables. Duh.

    I was editing the "define ('_TPL_SIGNUP_MULT_" set but I really needed to be going after "define ('_TPL_SIGNUP_".

    Edited those and it came right through.

    Thanks,
    Chris

Share This Page