Page 7 of 12 FirstFirst ... 56789 ... LastLast
Results 61 to 70 of 111
  1. #61
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: css javascript loader addon problems

    Thanks for the response. I have tried the other html_header files in this thread as well. I'm tried to install this darn fec on several occasions and I can never get past this silly css loader.

    I'll just keep poking around this forum, hopefully someone else will have this issue and it get answered. I've seen several who have had this issue but it was listed in the forum years ago. I've tried to ask them through pm what they did, but no response.

    Thank you anyway.

  2. #62
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: css javascript loader addon problems

    @joyjoy Did you check your PHP version is 5.2+ ?

  3. #63
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: css javascript loader addon problems

    Yes, my PHP version in my server information on zen cart is at 5.2.14 should be fine right? Still stuck.

  4. #64
    Join Date
    Nov 2010
    Posts
    53
    Plugin Contributions
    0

    Default Re: css javascript loader addon problems

    Hi all,
    I have installed CSS/Javascript Loader - but after trying merging my existing html_header.php with the installation file my site doesn't work - I then added code which I found on this forum and my site loads but breaks when I add a product to the shopping cart.

    Below is the code that was originally in my html_header.php file:

    PHP Code:
    <?php
    /**
     * Common Template
     *
     * outputs the html header. i,e, everything that comes before the \</head\> tag <br />
     *
     * @package templateSystem
     * @copyright Copyright 2003-2010 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: html_header.php 15761 2010-03-31 19:31:27Z drbyte $
     */
    /**
     * load the module for generating page meta-tags
     */
    require(DIR_WS_MODULES zen_get_module_directory('meta_tags.php'));
    /**
     * output main page HEAD tag and related headers/meta-tags, etc
     */
    ?>
    <!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" <?php echo HTML_PARAMS?>>
    <head>
    <title><?php echo META_TAG_TITLE?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET?>" />
    <meta name="keywords" content="<?php echo META_TAG_KEYWORDS?>" />
    <meta name="description" content="<?php echo META_TAG_DESCRIPTION?>" />
    <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" />
    <?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance' || $robotsNoIndex === true) { ?>
    <meta name="robots" content="noindex, nofollow" />
    <?php ?>
    <?php 
    if (defined('FAVICON')) { ?>
    <link rel="icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <link rel="shortcut icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <?php //endif FAVICON ?>

    <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER DIR_WS_HTTPS_CATALOG HTTP_SERVER DIR_WS_CATALOG ); ?>" />
    <?php if (isset($canonicalLink) && $canonicalLink != '') { ?>
    <link rel="canonical" href="<?php echo $canonicalLink?>" />
    <?php ?>

    <?php
    /**
     * load all template-specific stylesheets, named like "style*.css", alphabetically
     */
      
    $directory_array $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css'), '/^style/''.css');
      while(list (
    $key$value) = each($directory_array)) {
        echo 
    '<link rel="stylesheet" type="text/css" href="' $template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' $value '" />'."\n";
      }
    /**
     * load stylesheets on a per-page/per-language/per-product/per-manufacturer/per-category basis. Concept by Juxi Zoza.
     */
      
    $manufacturers_id = (isset($_GET['manufacturers_id'])) ? $_GET['manufacturers_id'] : '';
      
    $tmp_products_id = (isset($_GET['products_id'])) ? (int)$_GET['products_id'] : '';
      
    $tmp_pagename = ($this_is_home_page) ? 'index_home' $current_page_base;
      if (
    $current_page_base == 'page' && isset($ezpage_id)) $tmp_pagename $current_page_base . (int)$ezpage_id;
      
    $sheets_array = array('/' $_SESSION['language'] . '_stylesheet',
                            
    '/' $tmp_pagename,
                            
    '/' $_SESSION['language'] . '_' $tmp_pagename,
                            
    '/c_' $cPath,
                            
    '/' $_SESSION['language'] . '_c_' $cPath,
                            
    '/m_' $manufacturers_id,
                            
    '/' $_SESSION['language'] . '_m_' . (int)$manufacturers_id,
                            
    '/p_' $tmp_products_id,
                            
    '/' $_SESSION['language'] . '_p_' $tmp_products_id
                            
    );
      while(list (
    $key$value) = each($sheets_array)) {
        
    //echo "<!--looking for: $value-->\n";
        
    $perpagefile $template->get_template_dir('.css'DIR_WS_TEMPLATE$current_page_base'css') . $value '.css';
        if (
    file_exists($perpagefile)) echo '<link rel="stylesheet" type="text/css" href="' $perpagefile .'" />'."\n";
      }

    /**
     * load printer-friendly stylesheets -- named like "print*.css", alphabetically
     */
      
    $directory_array $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css'), '/^print/''.css');
      
    sort($directory_array);
      while(list (
    $key$value) = each($directory_array)) {
        echo 
    '<link rel="stylesheet" type="text/css" media="print" href="' $template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' $value '" />'."\n";
      }

    /**
     * load all site-wide jscript_*.js files from includes/templates/YOURTEMPLATE/jscript, alphabetically
     */
      
    $directory_array $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE$current_page_base,'jscript'), '/^jscript_/''.js');
      while(list (
    $key$value) = each($directory_array)) {
        echo 
    '<script type="text/javascript" src="' .  $template->get_template_dir('.js',DIR_WS_TEMPLATE$current_page_base,'jscript') . '/' $value '"></script>'."\n";
      }

    /**
     * load all page-specific jscript_*.js files from includes/modules/pages/PAGENAME, alphabetically
     */
      
    $directory_array $template->get_template_part($page_directory'/^jscript_/''.js');
      while(list (
    $key$value) = each($directory_array)) {
        echo 
    '<script type="text/javascript" src="' $page_directory '/' $value '"></script>' "\n";
      }

    /**
     * load all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically
     */
      
    $directory_array $template->get_template_part($template->get_template_dir('.php',DIR_WS_TEMPLATE$current_page_base,'jscript'), '/^jscript_/''.php');
      while(list (
    $key$value) = each($directory_array)) {
    /**
     * include content from all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically.
     * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
     */
        
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE$current_page_base,'jscript') . '/' $value); echo "\n";
      }
    /**
     * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
     */
      
    $directory_array $template->get_template_part($page_directory'/^jscript_/');
      while(list (
    $key$value) = each($directory_array)) {
    /**
     * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
     * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
     */
        
    require($page_directory '/' $value); echo "\n";
      }

    // DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' || vs cpath: ' . $cPath . ' || page: ' . $current_page . ' || template: ' . $current_template . ' || main = ' . ($this_is_home_page ? 'YES' : 'NO') . ' -->';


    ?>
    <!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="includes/templates/alysa_rounded/css/ie6.css" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="includes/templates/alysa_rounded/css/ie7.css" /><![endif]-->
    </head>
    <?php // NOTE: Blank line following is intended: ?>

    I replace the above code with the code below which I got from this forum:

    PHP Code:
    <?php
    /**
     * Common Template
     *
     * outputs the html header. i,e, everything that comes before the \</head\> tag <br />
     * 
     * @package templateSystem
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: html_header.php 6948 2007-09-02 23:30:49Z drbyte $
     */
    /**
     * load the module for generating page meta-tags
     */
    require(DIR_WS_MODULES zen_get_module_directory('meta_tags.php'));
    /**
     * output main page HEAD tag and related headers/meta-tags, etc
     */
    ?>
    <!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" <?php echo HTML_PARAMS?>>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET?>" />
    <title><?php echo META_TAG_TITLE?></title>

    <meta name="keywords" content="<?php echo META_TAG_KEYWORDS?>" />
    <meta name="description" content="<?php echo META_TAG_DESCRIPTION?>" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="author" content="<?php echo STORE_NAME .', ' TEMPLATE_DESIGN_TEXT ', shopping cart program by Zen Cart&trade;, http://www.zen-cart.com eCommerce';?>" />
    <meta name="generator" content="shopping cart program by Zen Cart&trade;, http://www.zen-cart.com eCommerce" />
    <?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance' || $robotsNoIndex === true) { ?>
    <meta name="robots" content="noindex, nofollow" />
    <?php ?>
    <?php 
    if (defined('FAVICON')) { ?>
    <link rel="icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <link rel="shortcut icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <?php //endif FAVICON ?>

    <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER DIR_WS_HTTPS_CATALOG HTTP_SERVER DIR_WS_CATALOG ); ?>" />
    <?php if (isset($canonicalLink) && $canonicalLink != '') { ?>
    <link rel="canonical" href="<?php echo $canonicalLink?>" />
    <?php ?>

    <?php
    /**
    * load the loader files
    */

    if($RI_CJLoader->get('status')){
        
    $directory_array $template->get_template_part(DIR_WS_TEMPLATE.'auto_loaders''/^loader_/''.php');
        
        
    $loaders_check $RI_CJLoader->get('loaders');
        if(
    $loaders_check == '*' || count($loaders_check) > 0){
            while(list (
    $key$value) = each($directory_array)) {
            
    /**
            * include content from all site-wide loader_*.php files from includes/templates/YOURTEMPLATE/jscript/auto_loaders, alphabetically.
            */
                
    if($loaders_check == '*' || in_array($value$loaders_check))
                    require(
    DIR_WS_TEMPLATE.'auto_loaders''/' $value);
            }
        }
        
        
    $RI_CJLoader->loadCssJsFiles();
        
    $files $RI_CJLoader->processCssJsFiles();
        foreach(
    $files['css'] as $file)
            if(
    $file['include']) include($file['string']);
            else echo 
    $file['string'];
            
        foreach(
    $files['js'] as $file)
            if(
    $file['include']) include($file['string']);
            else echo 
    $file['string'];
    }
    //DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' || vs cpath: ' . $cPath . ' || page: ' . $current_page . ' || template: ' . $current_template . ' || main = ' . ($this_is_home_page ? 'YES' : 'NO') . ' -->';
    ?>
    </head>
    <?php // NOTE: Blank line following is intended: ?>
    I appreciate any help...thanks a mill

  5. #65
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: css javascript loader addon problems

    same thing happened to me. I was not able to figure it out yet though.

  6. #66
    Join Date
    Nov 2010
    Posts
    53
    Plugin Contributions
    0

    Default Re: css javascript loader addon problems

    Hi joyjoy, I sorted the problem. I used the debugging error logging utility and found the error was caused due to a recent addon to insert Paypal sidebox - The file name was paypal_creditcards_sidebox_defines. Therefore I assume there must be a file that you recently edited that could be causing the problem. I suggest you check the logs - includes/cache (if using 1.3.9) or download the utility from the addon area.

  7. #67
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: css javascript loader addon problems

    Thank you for the suggestion. I've been trying to use the fast & easy checkout mod, the css jscript loader is part of it and I just can't get it installed. I don't even know how to use debuggnig/error logs though, I guess that would be a good place to start!

    Thank you again!

  8. #68
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: css javascript loader addon problems

    Help! I'm sooo close!

    Okay so I was having errors and it's because some of the old css/jscript loader files were clashing with the ricj(yellow1219 version) files. So I was able to load all files and sql script successfully. But here's my problem now...

    When I go to my admin screen, in configurations when I click the css/jsloader box I get the tables but it's blank. No enable/disable options. WHAT AM I DOING WRONG HERE? Someone please help...

  9. #69
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: css javascript loader addon problems

    Quote Originally Posted by joyjoy View Post
    Help! I'm sooo close!

    Okay so I was having errors and it's because some of the old css/jscript loader files were clashing with the ricj(yellow1219 version) files. So I was able to load all files and sql script successfully. But here's my problem now...

    When I go to my admin screen, in configurations when I click the css/jsloader box I get the tables but it's blank. No enable/disable options. WHAT AM I DOING WRONG HERE? Someone please help...
    I finally got the css jscript loader installed! I found a post in the Numinex forum from May 2010 regarding this. I needed to process the uninstall sql patch for the loader. After that I also needed to run this sql patch:
    DELETE FROM configuration WHERE configuration_key = '';

    Then reinstall the sql patch. It works. Now on the 2nd part of the fec install.

  10. #70
    Join Date
    Nov 2009
    Posts
    32
    Plugin Contributions
    0

    Default Re: css javascript loader addon problems

    When I enable minify I lose css formatting: http://test2.letsdressup.com.au

    In the source of http://test2.letsdressup.com.au you can click the link to css file to see its full of errors.

    This is how it should be: http://test.letsdressup.com.au which doesn't have minify enabled. Everything works except for errors in Change Addresses on the checkout page.

    Can anyone shed some light on this? I think it is something to do with sites_switch.php file from the multisite mod.

    sites_switch.php...
    Code:
    $default_server_name = $_SERVER['HTTP_HOST'];
    	$config_file = $default_server_name.'_config.php';
     // echo $config_file;
    //  exit;
    	if(file_exists("includes/config_sites/".$config_file)) {
    		include("includes/config_sites/".$config_file);
    	} else {
    		echo "the domain ".$default_server_name." does not exist.";
    		exit;
    	}
    
    	//Name of the site that is written in the categories
    	define('SITE_NAME',$default_server_name); // JCK changed from $config_file 7/23/09
    	//The order for this site will be seen for ORDER_SITE from the admin section
    	define('ORDER_SITE',SITE_NAME);
      	define('HTTP_SERVER', "http://".$default_server_name);
      	define('HTTPS_SERVER', "https://".$default_server_name);
      	
      	//Define the parent category as 0 if not defined
    	define('CATEGORIES_ROOT','0');
    I've used js loader and fast and easy checkout before but this is the first time with multisite.

    I really need multisite for this client as he wants a mobile version of site http://m.letsdressup.com.au and multisite is the only way i know how to do this.

    Any help will be greatly appreciated.

 

 
Page 7 of 12 FirstFirst ... 56789 ... LastLast

Similar Threads

  1. Replies: 8
    Last Post: 26 Feb 2016, 12:41 AM
  2. css/js loader !!
    By Miff in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 28 Nov 2011, 01:19 PM
  3. CJ Loader (CSS/Javascript Loader) plugin function is not loaded by zen cart?
    By tripflex in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 11 Jul 2011, 03:55 PM
  4. Yellow1912's css javascript loader breaks Ajax EasySlider
    By dutchy in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 27 Oct 2010, 11:23 AM
  5. [support thread] Javascript loader
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 7 Nov 2009, 12:11 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