Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Coding Changes not Taking Effect

    Quote Originally Posted by afo View Post
    Please create your own custom folders before you go too far. Editing the files in the classic folders is unwise since those files will be overwritten with an upgrade/update.

    This list is a bit outdated, but it'll give you an idea where to start to create a very basic custom template (you can build from there):
    • includes/languages/YOUR_TEMPLATE/english.php
    • includes/languages/english/YOUR_TEMPLATE/index.php
    • includes/languages/english/YOUR_TEMPLATE/meta_tags.php
    • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
    • includes/templates/YOUR_TEMPLATE/template_info.php
    • includes/templates/YOUR_TEMPLATE/common/tpl_header.php <- may not be necessary
    • includes/templates/YOUR_TEMPLATE/common/tpl_footer.php <- may not be necessary
    • includes/templates/YOUR_TEMPLATE/images/logo.gif (or .jpg or .png)
    • includes/templates/YOUR_TEMPLATE/css/stylesheet.css


    Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder.

    Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.
    Hi,

    Changes I made to:
    1. /includes/languages/mytemplate/english.php
    /include/languages/english/mytemplate/index.php
    /includes/languages/english/html_includes/mytemplate
    /define_main_page...
    2. /includes/templates/mytemplate

    work perfectly on my local XAMPP.


    But when I upload the changes to my webhost server (Linux/Unix) (latest ZC 1.3.8a) using Filezilla - only changes in 2. work. None in 1. has any effect.

    I've re-uploaded those .php files many times. Still nothing changed. Refreshed, Cleared cached many times. No use.
    I've been scanning ZC Tutorials/FAQ/forum for a couple of days now. Some answers are very good, but they don't apply to my problem.

    Please help.

    Len.

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Coding Changes not Taking Effect

    Are you sure you have the right permissions on those folders/files? Are you sure you are uploading them to the correct locations? Does Filezilla say the upload was successful? When you go to replace one of those files, what is the revision date/time on the remote copy?

  3. #3
    Join Date
    Oct 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Coding Changes not Taking Effect

    Quote Originally Posted by afo View Post
    Please create your own custom folders before you go too far. Editing the files in the classic folders is unwise since those files will be overwritten with an upgrade/update.

    This list is a bit outdated, but it'll give you an idea where to start to create a very basic custom template (you can build from there):
    • includes/languages/YOUR_TEMPLATE/english.php
    • includes/languages/english/YOUR_TEMPLATE/index.php
    • includes/languages/english/YOUR_TEMPLATE/meta_tags.php
    • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
    • includes/templates/YOUR_TEMPLATE/template_info.php
    • includes/templates/YOUR_TEMPLATE/common/tpl_header.php <- may not be necessary
    • includes/templates/YOUR_TEMPLATE/common/tpl_footer.php <- may not be necessary
    • includes/templates/YOUR_TEMPLATE/images/logo.gif (or .jpg or .png)
    • includes/templates/YOUR_TEMPLATE/css/stylesheet.css


    Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder.

    Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.
    Quote Originally Posted by gjh42 View Post
    Are you sure you have the right permissions on those folders/files? Are you sure you are uploading them to the correct locations? Does Filezilla say the upload was successful? When you go to replace one of those files, what is the revision date/time on the remote copy?
    --------
    Thanks for the reply.
    1. I CHMOD everything in /includes/ and its subdirs to 0777 (which is stupidly unnecessary)
    2. Upload english.php from my HD to store/includes/languages/mytemplate/english.php (overwrite the existing one). Filezilla says "Directory listing successful". Revision date/time is 16/10/09 2:52:37 AM which is few minutes ago at my location. Filesize becomes a bit smaller as happened to all files when uploaded (37,999 on my HD, 37,306 on the server). Permission becomes 0644.
    3. Similar thing done with /includes/languages/english/mytemplate/index.php, /includes/languages/english/html_includes/mytemplate/define_main_page.

    Checked my site. Refreshed. Still no effect

    Please keep helping.

    Len.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Coding Changes not Taking Effect

    That's definitely odd. I'm afraid I can't think of anything else at the moment. Clearing your cache should not be necessary, as I see uploaded changes without doing that, but it couldn't hurt to try it.
    Hopefully someone else has some better ideas.

 

 

Similar Threads

  1. v153 My stylesheet.css changes arent immediately taking effect, standard steps taken.
    By evosmash in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Sep 2015, 02:23 AM
  2. v139h Meta tag changes not taking effect
    By jgold723 in forum General Questions
    Replies: 1
    Last Post: 8 Oct 2013, 07:45 PM
  3. Changes made to Stylesheet not taking effect
    By lani_ezara in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Jun 2010, 02:10 PM
  4. custom stylesheet changes not taking effect
    By tlyczko in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 May 2008, 08:50 AM
  5. Product changes not taking effect
    By nickbulka in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 14 Nov 2006, 03:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg