Page 2 of 11 FirstFirst 1234 ... LastLast
Results 11 to 20 of 103
  1. #11
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Superglobals Plus

    Paulm, we were talking about the Return Auth mod, not this one
    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. #12
    Join Date
    Nov 2003
    Location
    Haarlem | Netherlands
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Superglobals Plus

    Quote Originally Posted by yellow1912 View Post
    Paulm, we were talking about the Return Auth mod, not this one
    I know (but reading back, I agree it probably looks like I misunderstood)

  3. #13
    Join Date
    Jun 2008
    Posts
    328
    Plugin Contributions
    0

    Idea or Suggestion Re: Superglobals Plus

    paulm, thank you for this excellent tool! I have installed it and it is already helping me learn more about Zen Cart. It works with version 1.3.8.

    I would like to suggest some improvement to the readme.txt in the package available for download. I believe that it is slightly clearer and may actually eliminate the need for the second readme.txt in extras subdirectory.

    Here goes (only for the Zen Cart catalog section - I haven't tried the admin yet)...

    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Installation (Zen Cart catalog):
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

    1) Backup your files and the database (as always).

    2) Copy the contents of the superglobals.sql file into the textbox of the sql patch tool in the Zen Cart admin/tools/ section

    (do not use the sql upload feature, that usually does not work well).

    If the Zen Cart sql tool returns errors, it's usually caused by its bugs. In that case use phpMyAdmin for example (don't forget to add your table prefixes if any!).

    3) Copy the file superglobals.php
    from: superglobals-plus_v1.24\catalog\includes\functions\extra_functions\
    to your shop's: \includes\functions\extra_functions\

    4) Copy the file stylesheet_superglobals.css to your catalog template css directory:
    includes\templates\<YOUR TEMPLATE>\css\

    5) Copy the file
    from: includes\templates\template_default\common
    to: includes/templates/<YOUR TEMPLATE>/common/
    (if the subdirectory 'common' doesn't exist under <YOUR TEMPLATE>, create it)

    TOpen the tpl_main_page.php file and, just before the ending </body> tag, add:

    PHP Code:
    <!--bof- superglobals display -->
    <?php
    // BEGIN Superglobals
    if(SHOW_SUPERGLOBALS == 'true') echo superglobals_echo();
    // END Superglobals
    ?>
    <!--eof- superglobals display -->
    6) Open the file admin/includes/footer.php and, just before the ending </body> tag, add:

    PHP Code:
    <!--bof- superglobals display -->
    <?php
    // BEGIN Superglobals
    if(SHOW_SUPERGLOBALS_ADMIN == 'true') echo superglobals_echo();
    // END Superglobals
    ?>
    <!--eof- superglobals display -->
    7) Ready
    (or ready to install the admin version if you like).

  4. #14
    Join Date
    Jun 2008
    Posts
    328
    Plugin Contributions
    0

    Idea or Suggestion Re: Superglobals Plus

    One thing that seems to be missing in this excellent utility (SuperGlobals Plus) is a legend describing the meaning of the text colors. At first, I thought that red/green was referring to the lifetime of the objects, but now I think that the colors simply describe the type of the objects:

    GREEN: array, string, integer, boolean, etc. (PHP built-in types).
    RED: object (class instance)
    BLUE: resource (handle, mysql link, result, etc.)
    GREY: superglobals message

    Please correct if I am mistaken.

    Daniel

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

    Default Re: Superglobals Plus

    Hi Daniel,

    thanks for the readme update

    The coloring is probably not very logical. I just quickly added some colors at the time to make it a bit easyer to read.

    Not all types have specific colors, and the colors are inherited. So, for example, because $GLOBALS is an array (colored green by the css) all childs of $GLOBALS will become green, unless another color has been assigned to the child. Objects are colored red, and all it's childs (that do not have a specific color assigned) will be red too.

    You can see in the stylesheet how it's done:
    Code:
    #superglobals .superglobals_array {
      border-left-color: green;
      color: green;
    }
    #superglobals .superglobals_object {
      border-left-color: red;
      color: red;
    }
    #superglobals .superglobals_empty {
      color: gray;
    }
    .superglobals_resource {
      color: blue;
    }
    .superglobals_type {
      color: black;
    }

    A small improvement might be to add a border at the bottom of each list (ul). I think that makes it a bit easier to see to what parent the childs belong.

    Change:
    Code:
    #superglobals ul {
      border: 1px solid black;
      border-width: 0 0 0px 1px;
      border-left-color: black;
    }
    To
    Code:
    #superglobals ul {
      border: 1px solid black;
      border-width: 0 0 1px 1px;
      border-left-color: black;
    }
    Or maybe even turn the ul's into boxes, like this:
    Code:
    #superglobals ul {
      border: 1px solid black;
      border-width: 1px;
      border-left-color: black;
    }
    (now I look at it I wonder why I have not done it like this in the first place...)
    Last edited by paulm; 22 Aug 2008 at 12:12 PM.

  6. #16
    Join Date
    Jun 2008
    Posts
    328
    Plugin Contributions
    0

    Default Re: Superglobals Plus

    Quote Originally Posted by paulm View Post
    Hi Daniel,

    thanks for the readme update
    You are very welcome but really, thank YOU for this great contribution. What I did is negligible comparing to your work.

    BTW, I discovered a typo in my readme update: I mistakenly omitted the filename in step 5. Instead of: "5) Copy the file ", it should read: "5) Copy the file tpl_main_page.php"

    And thank you for the clarification regarding the text coloring.

    Daniel

  7. #17
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: Superglobals Plus

    Anyone using this most helpful add-on for ZC 1.38a admin should note that there's another change required for full function. In \YOURADMIN\index.php, make the following change (after saving the file!) near the very end of the file:

    Code:
    </div>
    <!--bof- superglobals display -->
    <?php
    // BEGIN Superglobals
    if(SHOW_SUPERGLOBALS_ADMIN == 'true') echo superglobals_echo(); 
    // END Superglobals
    ?>
    <!--eof- superglobals display -->
    </body>
    </html>

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

    Default Re: Superglobals Plus

    I just submitted the update for this great debug tool to the "Free Software Add-ons" so that it is usable under 1.5.0.

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

    Default Re: Superglobals Plus

    Quote Originally Posted by lat9 View Post
    Anyone using this most helpful add-on for ZC 1.38a admin should note that there's another change required for full function. In \YOURADMIN\index.php, make the following change....
    Funny, I never really noticed that superglobals did not show on the admin index page

    Quote Originally Posted by lat9 View Post
    I just submitted the update for this great debug tool to the "Free Software Add-ons" so that it is usable under 1.5.0.
    Great, I am very happy to see this update! Just installed on 1.5.0BETA

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

    Default Re: Superglobals Plus

    The update is now available from the "Free Software Add-ons".

    Thanks, paulm, I didn't know you were still "around". This is the first add-on that gets installed on any of my Zen Cart installations!

 

 
Page 2 of 11 FirstFirst 1234 ... 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