Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default [support thread] Javascript loader

    Javascript loader offers n way to load javascript files in a specific order based on specific conditions.

    It also helps to avoid loading the same js files in case you have more than 1 modules require the same files.

    A good example is: for the lightbox module which zoom images on the product info pages, we do not want to load those jscript on other pages (which will be a waste of resources).

    A more complicated example: you may want to load certain jscript only if customers have some specific items in cart (to let them know they can add some additional items to get a discount, for example).

    This module is mainly for developers, however, it may benefit normal users with the basic knowledge of PHP as well.

    Download: http://public.rubikintegration.com/ (available on zencart download section soon)
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  2. #2
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: [support thread] Javascript loader

    There is a major changes in this module (new version 2.0 will be uploaded later), this new version allows you to:
    1. Also includes CSS on conditions.
    2. Include css in the order you want, no longer care about alphabet order.
    3. Put css in .php files, hence you can use php condition etc in your CSS files. This is ideal for using different width depending the number of columns used in the current page, for example.

    Module will now be named css/jscript loader.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  3. #3
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: [support thread] Javascript loader

    This module can now be downloaded here:
    http://public.rubikintegration.com/

    It will also be uploaded to Zencart within several minutes, hopefully it will go through :)
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  4. #4
    Join Date
    Jun 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: [support thread] Javascript loader

    hi yellow.
    I installed this today, unfortunately, I failed.
    when I finished installation, I couldn't open the main page.
    I also changed that $ to true, but,

    Is there anybody has the same prolem?

    thank you for your contribution.

    Regards

    Bruce
    -------------
    www.lixiaoya.com

  5. #5
    Join Date
    Apr 2008
    Posts
    82
    Plugin Contributions
    0

    Default Re: [support thread] Javascript loader

    Hi Yellow,
    Unfortunately I have the same problem as rooot, I am getting the blank page on my site. I ran the Debug Error Logging Utility, and it here what it told me:
    [29-Oct-2009 03:25:49] PHP Fatal error: Call to undefined function is_logged_in() in includes/functions/extra_functions/jscript.php on line 180. As I can understand there is a bug with the module.
    Do you have any suggestions on how to fix it?
    Thank you!

  6. #6
    Join Date
    Apr 2008
    Posts
    82
    Plugin Contributions
    0

    Default Re: [support thread] Javascript loader

    Also I have a question about ssu (I know this is a wrong topic but there nobody could answer it). The links for my languages does not work, I mean that they show up as ex for category with id #1 - "-c-1" instead of platya for russian платья. I have already checked many times but I do have ru.php and I changed local.config.php.example to local.config.php but it has no effect. Can you please tell me what I am doing wrong?
    Thank You!!!!!!!!!!!

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,651
    Plugin Contributions
    88

    Default Re: [support thread] Javascript loader

    I'm having a difficult time figuring out the syntax of the loader_*.php file. How do I specify that xyz.css file is to be loaded only on "main_page=login", but stylesheet.css is to be loaded on all pages?

    Many thanks ...

  8. #8
    Join Date
    Jan 2009
    Location
    Czech Republic
    Posts
    59
    Plugin Contributions
    0

    Default Re: [support thread] Javascript loader

    Thx for another amazing and usefull contribution. Only one problem of this modul is validity, I have alredy read your solution how to fix the problem but I am not much wiser, I am still stuck with errors like this: /css/stylesheet_tv.css&1256488629 for css or /jscript/jscript_imagehover.js&1256488629 for javascript. Is possible that I did smt wrong?

 

 

Similar Threads

  1. v153 CSS JS Loader [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 168
    Last Post: 3 Aug 2023, 03:37 PM
  2. Replies: 8
    Last Post: 26 Feb 2016, 12:41 AM
  3. css javascript loader addon problems
    By tony_sar in forum All Other Contributions/Addons
    Replies: 110
    Last Post: 25 Aug 2014, 11:05 AM
  4. 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
  5. 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

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR