We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16545
    • 358 Posts
    I have the same error....
      • 11975
      • 2,542 Posts
      Hi,

      please have a look at this post.
      This should solve the issue.

      http://modxcms.com/forums/index.php/topic,16456.msg123881.html#msg123881

      :-)
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
        • 16545
        • 358 Posts
        Thx,
        but after some manipulation I have the same problem embarrassed

        Quote from: heliotrope at Jun 15, 2008, 09:58 AM

        Hi,

        please have a look at this post.
        This should solve the issue.

        http://modxcms.com/forums/index.php/topic,16456.msg123881.html#msg123881

        :-)
          • 11975
          • 2,542 Posts
          Hi,

          here is the complete code.
          Remove the existing builUrl function in class/ditto.class.php and paste this one.
          	// ---------------------------------------------------
          	// Function: buildURL
          	// Build a URL with regard to Ditto ID
          	// ---------------------------------------------------
          	
          	function buildURL($args,$id=false,$dittoIdentifier=false) {
          		global $modx, $dittoID;
          			$dittoID = ($dittoIdentifier !== false) ? $dittoIdentifier : $dittoID;
          			$query = array();
          			foreach ($_GET as $param=>$value) {
                      if ($param != 'id' && $param != 'q') {
                         $keyparam =htmlspecialchars($param, ENT_QUOTES);
                         $keyvalue = (is_array($value)) ? array_walk($value,"ditto::applyHsc") : htmlspecialchars($value, ENT_QUOTES);
                         $query[$keyparam] = $keyvalue;               
                      }
          			}
          			if (!is_array($args)) {
          				$args = explode("&",$args);
          				foreach ($args as $arg) {
          					$arg = explode("=",$arg);
          					$query[$dittoID.$arg[0]] = urlencode(trim($arg[1]));
          				}
          			} else {
          				foreach ($args as $name=>$value) {
          					$query[$dittoID.$name] = urlencode(trim($value));
          				}
          			}
          			$queryString = "";
          			foreach ($query as $param=>$value) {
          				$queryString .= '&'.$param.'='.(is_array($value) ? implode(",",$value) : $value);
          			}
          			$cID = ($id !== false) ? $id : $modx->documentObject['id'];
          			$url = (isset($modx->documentObject['id'])) ? $modx->makeURL(trim($cID), '', $queryString) : 'index.php?id='.$GLOBALS['modID'].$queryString;
          			return ($modx->config['xhtml_urls']) ? $url : str_replace("&","&",$url);
          	}
          	
          	function applyHsc($var){
                $var = htmlspecialchars($var, ENT_QUOTES);
          
             	}
          
          


          :-)
            Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
            • 16545
            • 358 Posts
            Thx, no more errors.
              • 28033
              • 925 Posts
              The script installed fine, but when I try to view the tv-Explorer tab, it shows nothing.

              Did I miss doing a step or something?
                My Snippets
                -> PopUpChunk v1.0
                • 11975
                • 2,542 Posts
                Hi,

                could you PM me a login/pwd to check your install.

                :-)
                  Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                  • 28033
                  • 925 Posts
                  Quote from: heliotrope at Aug 06, 2008, 02:45 AM

                  Hi,

                  could you PM me a login/pwd to check your install.

                  :-)

                  I’ll be sending it in a few hours (when I start doing website work).
                    My Snippets
                    -> PopUpChunk v1.0
                    • 11975
                    • 2,542 Posts
                    For readers smiley

                    Issue solved, do not forget to clean the cache after installation otherwise required chunk will not be included.

                    :-)
                      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                      • 18367
                      • 834 Posts
                      Been away from this one for a couple of months because I found it just so hard to install and figure out, and at the time I was just starting modx, so it might have been taking on too much.

                      Anyway, I’ve reinstalled tvedtor and I get as far as the install button which gives me this message

                      Install tvEditor

                      Before using tvEditor, you have to install the required chunks.

                      What are the required chunks? Where can I find them?

                      Thanks



                        Content Creator and Copywriter