We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33337
    • 3,975 Posts
    I’ve got a problem on my hosting servers, (same as MODx’s server):

    //$jotPath = $modx->config['rb_base_dir'] . 'snippets/jot/';
     //include_once($jotPath.'jot.class.inc.php');
    
    include_once $modx->config['base_path'] . "assets/snippets/jot/jot.class.inc.php";  //moded
    
    $Jot = new CJot;
    $Jot->VersionCheck("1.0 RC1");
    $Jot->Set("path",$modx->config['base_path'] . "assets/snippets/jot/");  //moded
    


    I have to use $modx->config[’base_path’] . "assets/snippets/jot/", Thanks to Susan for this. Other wise it gave me some kind of "Open Base dir restriction" error and few times I got "Cannot open file error".

    regards.

    zi
      Zaigham R - MODX Professional | Skype | Email | Twitter

      Digging the interwebs for #MODX gems and bringing it to you. modx.link
      • 33033
      • 43 Posts
      Works for me, only weird thing is that for some reason one of my posts is all in bold, and everything that is after that on the page is in bold until the next </strong>.
      Other than that everything seems to be running smoothly. Great work smiley
        • 32963
        • 1,732 Posts
        Very nice indeed!

        Is there a backend module that allows the admin to view all unpublished comments? as well as all comments?




          xWisdom
          www.xwisdomhtml.com
          The fear of the Lord is the beginning of wisdom:
          MODx Co-Founder - Create and do more with less.
          • 4195
          • 398 Posts
          Quote from: xwisdom at Oct 30, 2006, 02:14 PM

          Very nice indeed! Is there a backend module that allows the admin to view all unpublished comments? as well as all comments?

          The backend module is my next project and will contain maintenance and global moderation options.
            Armand Pondman
            MODx Coding Team
            :: Jot :: PHx
            • 4195
            • 398 Posts
            Quote from: zi at Oct 30, 2006, 09:00 AM

            I’ve got a problem on my hosting servers, (same as MODx’s server):

            //$jotPath = $modx->config['rb_base_dir'] . 'snippets/jot/';
             //include_once($jotPath.'jot.class.inc.php');
            
            include_once $modx->config['base_path'] . "assets/snippets/jot/jot.class.inc.php";  //moded
            
            $Jot = new CJot;
            $Jot->VersionCheck("1.0 RC1");
            $Jot->Set("path",$modx->config['base_path'] . "assets/snippets/jot/");  //moded
            


            I have to use $modx->config[’base_path’] . "assets/snippets/jot/", Thanks to Susan for this. Other wise it gave me some kind of "Open Base dir restriction" error and few times I got "Cannot open file error".

            regards.

            zi

            Strange, i fixed this for susan earlier.. but it seems you have a problem with the fix.. wink
            ow and btw.. why mod 3 lines if you can just mod the

            $jotPath = $modx->$config['base_path'] . "assets/snippets/jot/";
            


            lemme know if there are more issues at hand..
              Armand Pondman
              MODx Coding Team
              :: Jot :: PHx