Page 3 of 11 FirstFirst 12345 ... LastLast
Results 21 to 30 of 103
  1. #21
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,571
    Plugin Contributions
    30

    Default enabling from the Admin

    Is there a reason why there is an extra constant used in the admin side?

    In
    admin
    /includes/functions/extra_functions/superglobals.php

    there is this constant defined:

    define('SHOW_SUPERGLOBALS_FROM_ADMIN', TRUE);

    this is only used in the main function in
    catalog
    includes\functions\extra_functions\superglobals.php

    PHP Code:
    if (defined('SHOW_SUPERGLOBALS_FROM_ADMIN')){
        
    // the script is being called from the admin
        
    if((SHOW_SUPERGLOBALS_ADMIN == 'true')....... 
    SHOW_SUPERGLOBALS_ADMIN is the constant used in the administration page. Why not just use that one and remove the overall "if"?

  2. #22
    Join Date
    Nov 2003
    Location
    Haarlem | Netherlands
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Superglobals Plus

    Hi torvista,

    the same function is used for both the admin and catalog side, and the defined('SHOW_SUPERGLOBALS_FROM_ADMIN') check is to determine if the funtion is called from the admin or catalogue. The SHOW_SUPERGLOBALS_ADMIN definition however is used to enable or disable the superglobals script depending on the admin configuration setting.

    If only the value of SHOW_SUPERGLOBALS_ADMIN is used, the superglobals script will be enabled for both the admin and catalog if SHOW_SUPERGLOBALS_ADMIN is True.

    (I am not sure though why I haven't used the existing IS_ADMIN_FLAG definition for this, maybe to make it fully independent of Zen Cart.)

  3. #23
    Join Date
    Nov 2003
    Location
    Haarlem | Netherlands
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Superglobals Plus

    Update:

    - Display superglobals in popup window.

    - CSS only loads if required.

    For now zip attached to this post.

  4. #24
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: Superglobals Plus

    Can SGP1.31 be used with 139h.

    Thanks in advance

  5. #25
    Join Date
    Nov 2003
    Location
    Haarlem | Netherlands
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Superglobals Plus

    Yes, it's compatible with all 1.3.9 versions (and 1.5.0., lat9 has included instructions for both).

  6. #26
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,401
    Plugin Contributions
    87

    Default Re: Superglobals Plus

    Quote Originally Posted by paulm View Post
    Update:

    - Display superglobals in popup window.
    Nice! That makes it much easier to go back and forth between the variables that are "in play" and the rendered result.

  7. #27
    Join Date
    Nov 2003
    Location
    Haarlem | Netherlands
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Superglobals Plus

    Quote Originally Posted by lat9 View Post
    Nice! That makes it much easier to go back and forth between the variables that are "in play" and the rendered result.
    Thanks for the feedback, I like the popup output much better too (but couldn't find the English words to describe those advantages).

  8. #28
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,401
    Plugin Contributions
    87

    Default Re: Superglobals Plus

    Superglobals Plus v1.4 has been submitted to "Free Software Add-ons". That version includes the popup window feature that paulm previously posted.

  9. #29
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,401
    Plugin Contributions
    87

    Default Re: Superglobals Plus

    Super Globals Plus v1.4.1 has been submitted to the Plugins area. This version updates the htmlentities calls to ensure PHP 5.4 compliance and corrects a couple of HTML validation issues.

  10. #30
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,401
    Plugin Contributions
    87

    Default Re: Superglobals Plus

    Super Globals Plus v1.4.2 has been submitted to the Plugins area:
    • Updated installation SQL files to correct problem documented by swguy here
    • Added new configuration value for v1.5.0 and later SQL values to control whether or not the queryCache object is shown. This object can be huge and takes a while to process. Changes made to the superglobals.sql file as well as /includes/functions/extra_functions/superglobals.php. Note that the queryCache object was introduced in Zen Cart v1.5.1; changing this configuration value on a v1.5.0 installation will have no effect.

 

 
Page 3 of 11 FirstFirst 12345 ... LastLast

Similar Threads

  1. v151 Re:Superglobals : Failure to install and run the ‘superglobals.sql.
    By lewisasding in forum Installing on a Windows Server
    Replies: 2
    Last Post: 31 May 2013, 02:25 PM
  2. Google Plus 1
    By rockmellon in forum All Other Contributions/Addons
    Replies: 29
    Last Post: 29 Dec 2011, 10:12 PM
  3. Manufacturer Info Plus
    By kuroi in forum Addon Sideboxes
    Replies: 13
    Last Post: 16 Jun 2011, 04:16 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR