Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27
  1. #11
    Join Date
    Jan 2006
    Posts
    1,542
    Plugin Contributions
    0

    Default Re: Need help customizing template

    Looks like you changed the name of the template. Is it good practice to have a space in your template name?

    includes/templates/Webstore Template/css/stylesheet.css

    I test alot of templates and have never downloaded a two-name template with spaces. Example, gjh42 uses an underscore:

    includes/templates/fr_template/css/stylesheet.css

    Possibly something to look at before you get too far. I dunno.
    Steve
    prommart.com

  2. #12
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Need help customizing template

    Quote Originally Posted by SPH View Post
    Looks like you changed the name of the template. Is it good practice to have a space in your template name?
    I'm not sure who this response is for, but the answer is NO!. Template names should *never* contain a space character. In some cases it won't cause a problem, but there are many instances where the spaces *will* cause an issue (usually with symptoms that make it near impossible to diagnose the cause).

    The standard/recommended practice it to replace spaces with underscores.

    Cheers
    Rod

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

    Default Re: Need help customizing template

    It seems to usually work to have spaces in your template folder name, since people get away with it, but sometimes the space will cause an error, perhaps from third-party code that is not as bulletproof as core ZC. However, it is never a good practice. Windows has spoiled people by allowing them to name directories anything at all and hiding the fact that the names have to be tweaked behind the scenes to function safely... perhaps an overreaction from the old DOS practice of limiting folder names to eight characters total.

    The best web practice is to keep file and folder names to lowercase letters, numbers and - or _ characters. This will minimize the possibility of capitalization typos.

  4. #14
    Join Date
    Aug 2011
    Location
    Helsinki, Finland
    Posts
    60
    Plugin Contributions
    0

    Default Re: Need help customizing template

    Hi,
    Well I just have the background of the page, blue with small stars (bg.gif), all the boxes, pictures and text are gone.
    As for the source, it shows this
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
    <head>
    <title>Zen Cart!, The Art of E-commerce</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta name="keywords" content="Men Ladies Accessories Jewellery Pomade Home Books Magazines ecommerce, open source, shop, online shopping " />
    <meta name="description" content="Zen Cart! :  - Men Ladies Accessories Jewellery Pomade Home Books Magazines ecommerce, open source, shop, online shopping" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="author" content="The Zen Cart&trade; Team and others" />
    <meta name="generator" content="shopping cart program by Zen Cart&trade;, http://www.zen-cart.com eCommerce" />
     
    <base href="http://shop.fastnloud.com/zencart/" />
    <link rel="canonical" href="http://shop.fastnloud.com/zencart/" />
     
    <link rel="stylesheet" type="text/css" href="includes/templates/Webstore Template/css/stylesheet.css" />
    <link rel="stylesheet" type="text/css" media="print" href="includes/templates/Webstore Template/css/print_stylesheet.css" />
    </head>
     
    <body id="indexHomeBody">
     
    <div id="mainWrapper">
    I'm not sure I used the right wrap for the source code here.
    Gonna put the setting back and check what the source is when everything is showing up...

  5. #15
    Join Date
    Aug 2011
    Location
    Helsinki, Finland
    Posts
    60
    Plugin Contributions
    0

    Default Re: Need help customizing template

    Ok, code is back the way it was and so is everything on my page, now the source code is showing all the code that was missing previously under that line
    Code:
    <div id="mainWrapper">
    .
    It is weird that if I remove a small part of the code, the whole thing is disappearing completely...
    Do I need to put the complete source code here too so you can compare?

  6. #16
    Join Date
    Aug 2011
    Location
    Helsinki, Finland
    Posts
    60
    Plugin Contributions
    0

    Default Re: Need help customizing template

    Ok guys, I ve renamed the template and used an underscore... I didn't know about the no space thing. Sorry.

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

    Default Re: Need help customizing template

    If you accurately removed a complete block of PHP/HTML code, you would not have a problem. You have somehow corrupted the file you were working on and caused a PHP fatal error. You should have a myDebug file in the /cache/ folder in your site root. Post the latest one of those and it may tell us exactly where the error is.

    If that does not help, you could post your tpl_header.php in PHP tags.

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

    Default Re: Need help customizing template

    What are you using to edit your files? Some editors can damage PHP files by adding extraneous characters invisibly.

  9. #19
    Join Date
    Aug 2011
    Location
    Helsinki, Finland
    Posts
    60
    Plugin Contributions
    0

    Default Re: Need help customizing template

    Quote Originally Posted by gjh42 View Post
    If you accurately removed a complete block of PHP/HTML code, you would not have a problem. You have somehow corrupted the file you were working on and caused a PHP fatal error. You should have a myDebug file in the /cache/ folder in your site root. Post the latest one of those and it may tell us exactly where the error is.

    If that does not help, you could post your tpl_header.php in PHP tags.
    ok I checked the myDebug files, and I found one that says [01-Jun-2012 01:38:08] PHP Parse error: syntax error, unexpected '}' in D:\Hosting\8066884\html\zencart\includes\templates\Webstore Template\common\tpl_header.php on

    Does it mean I didn't delete the code properly when I did it?

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

    Default Re: Need help customizing template

    Technically, yes, though since this is a custom version of the file, there is apparently some extra PHP code that crosses boundaries of code blocks. Following the standard advice exactly would cause this error. We will need to see your copy of the file to find out where it is. The debug message will say exactly what line of the file has this error. Posting that verbatim is better than summarizing it if you don't know exactly what bits are relevant.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Help needed customizing Mostlygrey template.
    By luther in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 15 Jan 2010, 12:07 AM
  2. Help with Customizing my Template Stylesheet
    By zarenya in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 17 Sep 2009, 11:33 AM
  3. Help with customizing template
    By james739 in forum General Questions
    Replies: 2
    Last Post: 9 Jun 2007, 04:45 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