Page 4 of 11 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 105
  1. #31
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    1,979
    Plugin Contributions
    21

    Default Re: css javascript loader addon

    Quote Originally Posted by countrycharm View Post
    Come to find out Mine was cause by having and older version of the css javascript loader. When I updated to the new version all errors went away. I didn't even know there was a newer version until yellow1912 told me what was going on and where to download it.
    For others looking for the most recent version, it's available from http://blog.rubikintegration.com/200...ader-released/

  2. #32
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    3,184
    Plugin Contributions
    30

    Default Re: css javascript loader addon

    Quote Originally Posted by lat9 View Post
    For others looking for the most recent version, it's available from http://blog.rubikintegration.com/200...ader-released/
    Actually, that is the most recent version, but it is for 1.3.8m, not 1.3.9

    ~Melanie
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered.

  3. #33
    Join Date
    Jul 2007
    Posts
    1,888
    Plugin Contributions
    14

    Default Re: css javascript loader addon problems

    Actually 1.7 is the recent version and it will work for 1.3.9 versions of zen cart
    You can download it from rubikintegration.com

  4. #34
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    3,184
    Plugin Contributions
    30

    Default Re: css javascript loader addon problems

    Quote Originally Posted by lat9 View Post
    For others looking for the most recent version, it's available from http://blog.rubikintegration.com/200...ader-released/
    Sorry, but 1.7 is for 1.3.8 as the html_header (below) lacks the characteristic rel canonical function of 1.3.9

    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>
    <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
    /**
    * 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: ?>
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered.

  5. #35
    Join Date
    Jul 2007
    Posts
    1,888
    Plugin Contributions
    14

    Default Re: css javascript loader addon problems

    Quote Originally Posted by mprough View Post
    Sorry, but 1.7 is for 1.3.8 as the html_header (below) lacks the characteristic rel canonical function of 1.3.9

    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>
    <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
    /**
    * 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: ?>
    Sorry mprough for misleading others, what I was trying to say it will work with 1.3.9, you have to compare and merge the files. Good catch

  6. #36
    Join Date
    Oct 2010
    Location
    Idaho
    Posts
    292
    Plugin Contributions
    0

    Default Re: css javascript loader addon problems

    On a fresh version of CSS Loader, and assuming I did things correctly, what do I have to edit next? My site is totally broke (or just not displaying in the browser??) after a fresh install of CSS Loader.

    I'll keep looking for the answer in the forums, but if I am just doing something really dumb, could someone tell me?

    Thanks

  7. #37
    Join Date
    Oct 2010
    Location
    Idaho
    Posts
    292
    Plugin Contributions
    0

    Default Re: css javascript loader addon problems

    okay, I'm starting to fix it, but what is with the CSS Loader Usage instructions about duplicating and renaming the loader_sample file in the autoloader directory?

    Does it need to be done?

    If so, in what way?, because my best effort caused total breakage in the browser.

  8. #38
    Join Date
    Jul 2007
    Posts
    1,888
    Plugin Contributions
    14

    Default Re: css javascript loader addon problems

    Quote Originally Posted by finlander View Post
    okay, I'm starting to fix it, but what is with the CSS Loader Usage instructions about duplicating and renaming the loader_sample file in the autoloader directory?

    Does it need to be done?

    If so, in what way?, because my best effort caused total breakage in the browser.
    Take the includes/templates/your_template/common/html_header.php and copy the contents below and insert it in that file nothing else and see if that want solve your problem.

    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: ?>

  9. #39
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    1,979
    Plugin Contributions
    21

    Default Re: css javascript loader addon problems

    Quote Originally Posted by mprough View Post
    Sorry, but 1.7 is for 1.3.8 as the html_header (below) lacks the characteristic rel canonical function of 1.3.9
    Here's v1.3.9f's /includes/templates/template_default/common/html_header.php merged with the v1.7 of the loader's changes. Place this into /includes/templates/YOUR_TEMPLATE/common/html_header.php (merging any previous changes you might have).
    Attached Files Attached Files

  10. #40
    Join Date
    Jul 2007
    Posts
    1,888
    Plugin Contributions
    14

    Default Re: css javascript loader addon problems

    Quote Originally Posted by lat9 View Post
    Here's v1.3.9f's /includes/templates/template_default/common/html_header.php merged with the v1.7 of the loader's changes. Place this into /includes/templates/YOUR_TEMPLATE/common/html_header.php (merging any previous changes you might have).
    The same I suggested above. Maybe you will get it sorted out between both post. Thanks for providing the file lat9.

 

 
Page 4 of 11 FirstFirst ... 23456 ... LastLast

Similar Threads

  1. AutoFacebook OG 1.3.9 addon problems
    By eOstrE in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 7 Jul 2010, 09:44 AM
  2. Facebook addon problems
    By Maynards in forum All Other Contributions/Addons
    Replies: 14
    Last Post: 22 Apr 2010, 03:38 PM
  3. [support thread] Javascript loader
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 7 Nov 2009, 12:11 AM
  4. Problems with Back In Stock Notifications addon
    By dhanesh in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 21 Aug 2008, 02:26 PM
  5. JavaScript on product page problems
    By zidain in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 1 Jan 2008, 07:37 PM

Bookmarks

Posting Permissions

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