We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34017
    • 898 Posts
    Just wanted to let you know ManagerManager is a default install for me now.

    Thanks for your work on it.
      Chuck the Trukk
      ProWebscape.com :: Nashville-WebDesign.com
      - - - - - - - -
      What are TV's? Here's some info below.
      http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
      http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
      • 5213
      • 5 Posts
      ManagerManager (for me) does not work in conjunction with of the ShowImageTVs plugin.

      Please refer to this message in the support thread for ShowImageTVs for more information.

      ShowImageTVs plugin was incorporated in the coming 0.9.6.2 release, so maybe somebody else can confirm the existence of a problem. It would be great if we could use both plugins together. The cleaner the interface is, the less intimidating it is to a not-so-techie person...
        • 21056
        • 327 Posts
        Quote from: chrisR at Jun 08, 2008, 05:11 PM

        ManagerManager (for me) does not work in conjunction with of the ShowImageTVs plugin.

        Please refer to this message in the support thread for ShowImageTVs for more information.

        ShowImageTVs plugin was incorporated in the coming 0.9.6.2 release, so maybe somebody else can confirm the existence of a problem. It would be great if we could use both plugins together. The cleaner the interface is, the less intimidating it is to a not-so-techie person...

        Can you give more details exactly how it doesn’t work? Do certain parts of it not work, or does it fail altogether?
          Author: ManagerManager plugin - customise your ModX manager interface

          Rckt - web development, Sheffield, UK
          • 16892
          • 107 Posts
          I can’t get the following items to hide: is_folder, is_richtext, log

          This happens in the default installation, under IE7 and FF2

          Running PHP Version 4.3.10, Apache/1.3.33, MySQL 4.0.20

          Any insight appreciated.

          Thanks.
            • 16879
            • 87 Posts
            I had the same problem - try moving them to another tab and then hiding the tab - think you can create new tabs as well now so you could try that. Also, I seem to remember moving the publish/unpublish tab to another tab and that not working. Haven’t tried with the latest version tho. Might try it later today.
              • 21056
              • 327 Posts
              Quote from: legatissima at Jun 09, 2008, 09:22 PM

              I can’t get the following items to hide: is_folder, is_richtext, log

              This happens in the default installation, under IE7 and FF2

              Running PHP Version 4.3.10, Apache/1.3.33, MySQL 4.0.20

              Any insight appreciated.

              Thanks.
              Can you give the line(s) you are using - e.g. mm_hideFields(.....
                Author: ManagerManager plugin - customise your ModX manager interface

                Rckt - web development, Sheffield, UK
                • 21056
                • 327 Posts
                OK, found the problem - try replacing this bit of code (around line 375 of mm_functions.inc.php):

                default:
                						
                					// Lets check the fields exist, or is a TV, so we're not writing JS for elements that don't exist
                					if (isset($mm_fields[$field]) || substr($field, 0, 2) == 'tv') {
                						$output .= '$("input[@name='.$field.']").parents("tr").hide(); ';					
                					} else {
                						break;
                					}	
                				break;


                with the following:
                default:	
                					// Is it a TV?
                					if (substr($field, 0, 2) == 'tv') {
                						$output .= '$("#'.$field.'").parents("tr").hide(); ';
                					} else if (isset($mm_fields[$field]))  { // Check the fields exist,  so we're not writing JS for elements that don't exist
                						$output .= '$("'.$mm_fields[$field]['fieldtype'].'[@name='.$mm_fields[$field]['fieldname'].']").parents("tr").hide(); ';
                					} else {
                						break;
                					}				
                				break;
                  Author: ManagerManager plugin - customise your ModX manager interface

                  Rckt - web development, Sheffield, UK
                  • 5213
                  • 5 Posts
                  Assuming you are referring to the ShowImageTV problem: no, the change doesn’t help.

                  Quote from: ncrossland at Jun 09, 2008, 03:18 AM

                  Can you give more details exactly how it doesn’t work? Do certain parts of it not work, or does it fail altogether?

                  The basic problem is that ShowImageTVs doesn’t work as expected with MM enabled. The purpose of ShowImageTVs is to insert another field next to an image url field containing a visual representation of that image.

                  All MM options work as expected, with or without ShowImageTVs. But with MM enabled the ShowImageTVs javascript fails. As I mentioned here (from an amateurs perspective smiley ) it looks like MM breaks the ShowImageTVs javascript. I can even uncomment all MM rules, the ShowImageTVs javascript still fails.

                  With ManagerManager enabled Firefox error console shows this error:
                  Error: url is undefined
                  Source: http://www.asdf.ch/manager/index.php?a=27&id=11
                  Line: 799


                  Opera has the following to say about the problem:
                  JavaScript - http://asdf.ch/manager/index.php?a=27&id=11
                  Event thread: DOMContentLoaded
                  Error:
                  name: TypeError
                  message: Statement on line 31: Type mismatch (usually a non-object value used where an object is required)
                  Backtrace:
                    Line 31 of inline#13 script in http://asdf.ch/manager/index.php?a=27&id=11
                      var img = new Element("img").setProperty("src", full_url(url)).setStyles("max-width:300px; max-height:100px");
                    Line 1 of eval script 
                      return fn.apply(options.bind, args);
                    Line 1 of eval script 
                      var args;
                  if (options.event)
                      else
                      var returns = (function ()
                  {
                    return fn.apply(options.bind, args);
                  }
                  );
                  if (options.delay)
                      if (options.periodical)
                      if (options.attempt)
                      return returns();
                    Line 1 of eval script 
                      fn.bind(this, args)();
                    Line 1 of eval script 
                      for (var i = 0;i < this.length;i++)
                        Line 1 of eval script 
                      if (this.events && this.events[type])
                        Line 1 of eval script 
                      if (this.loaded)
                      this.loaded = true;
                  if (this.timer)
                      Element.prototype.fireEvent.call(this, "domready");
                  this.events.domready = null;
                    Line 1 of eval script 
                      return fn.apply(options.bind, args);
                    Line 1 of eval script 
                      var args;
                  if (options.event)
                      else
                      var returns = (function ()
                  {
                    return fn.apply(options.bind, args);
                  }
                  );
                  if (options.delay)
                      if (options.periodical)
                      if (options.attempt)
                      return returns();
                    At unknown location
                      [statement source code not available]
                  


                  The ShowImageTVs javascript in question is as follows:
                  <script type="text/javascript" charset="utf-8">
                    var imageNames = ['wmBildURL'];
                    var pageImages = [];
                    
                    function full_url(url)
                    {
                  	 	return (url != '' && url.search(/http:\/\//i) == -1) ? ('http://www.asdf.ch/' + url) : url;
                    }
                  
                    function checkImages() 
                    {
                      for (var i = 0; i < pageImages.length; i++) {
                      	var elem = pageImages[i];
                        var url = elem.value;         
                        if (url != elem.oldUrl) {   
                       	  elem.thumbnail.setProperty('src', full_url(url));  
                       	  elem.thumbnail.setStyle('display', url=='' ? 'none': 'inline');    	      
                          elem.oldUrl = url;    
                        }  
                      }
                    }
                  
                  	window.onDomReady(function() { 
                      for (var i = 0; i < imageNames.length; i++) {   
                      	var elem = $('tv' + imageNames[i]);      
                        if (elem) {  	  
                          var url = elem.value;
                          
                          	// create div and img to show thumbnail
                          var div = new Element('div').addClass('tvimage');
                          var img = new Element('img').setProperty('src', full_url(url)).setStyles('max-width:300px; max-height:100px');
                          elem.getParent().adopt(div.adopt(img));
                          
                          elem.thumbnail = img;    // direct access for when need to update
                          elem.oldUrl = url;   		 // oldUrl so change HTML only when necessary  
                          pageImages.push(elem);   // save so don't have to search each time              
                        }
                      }           
                      setInterval(checkImages, 1000);
                    })  
                  </script>	
                  


                  I hope this makes sense. Oh, and sorry if I’m barking up the wrong tree. If it actually is a problem of ShowImageTVs, maybe the script should be removed from the 0.9.6.2 release.
                  Thanks anyway.


                    • 21056
                    • 327 Posts
                    There may be a conflict between Mootools and Jquery -- certainly the error refers to ShowImageTVs’s javascript. I will take a look.

                    It depends if this will be just distributed with 0.9.6.2, or actually enabled by default.
                      Author: ManagerManager plugin - customise your ModX manager interface

                      Rckt - web development, Sheffield, UK
                      • 25663 MODX Staff
                      • 12,272 Posts
                      Will be distributed and enabled. Probably best to include a line in your install instructions to disable the plugin and that should solve it, or update the jQuery version that Brett did originally (this on is the mootools port).
                        Ryan Thrash, MODX Co-Founder
                        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me

                      This discussion is closed to further replies. Keep calm and carry on.