Menu

Install Problems with 0.5

Help
2004-02-05
2004-03-02
  • Nobody/Anonymous

    Hello

    I have installed CodeSnipplet 0.5 and i have modifi hfile location. if i want enter the code i don't view the "Highlight Mode" and i put the code i don't view the tabs.

    if i click on user-info.php (filename on filesystem ist user_info.php no page was displayd. same is with to create edit user. name is addedit-user.php on file system is addedit_user.php.

    jonesi

     
    • Brad Fears

      Brad Fears - 2004-02-05

      Have you configured your $base_url properly?  A good indicator would be whether you see the red background in the header and footer from the default theme.

      Is your $HFile_dir configured with an absolute file path (not the url path, but the file system path)?

      Also, try the "Check Configuration" option display  from the setup.php file.  Do you see any error messages?

      --Brad Fears

       
    • Nobody/Anonymous

      Error(s) in Configuration Options:

      $dbpass NOT DEFINED
      $glbl_hash SHOULD BE CHANGED

      dbpass ist for test is empty
      i have write the absolut path but no higlighting mode view.

      And if in the input.php i remarke the $stripped_snippet then can i copy the code with the tabs and in the hfile example hfile_vbscript.php in the $thirs->notrim i set the value to 1 i can see the tabs

      only the highlithing i can't see.

       
      • Brad Fears

        Brad Fears - 2004-02-05

        First, I'm not sure what happens when you have no database password defined - I've never tried it.  I'm assuming it connected to the database anyway, otherwise it would have given you an error message.

        Just to be clear, the only thing that the $stripped_snippet line (120 in input.php) does is to replace tabs with 5 spaces AFTER the snippet has been entered into the database.  It has nothing to do with actually what you see when you paste your code into the snippet textarea (before submit).

        Regarding the syntax highlighting, please be aware that you will not see highlighting as your are entering code.  The highlighting will only appear on snippets that you view - it will not provide highlighting in a html textarea.

        --Brad Fears

         
    • Bob Janes

      Bob Janes - 2004-03-01

      I'm having a problem with 0.5 - fresh install as a new user - in seeing snippets. Everything seems to work OK except that when I try to view a snippet the page stops at the end of the breadcrumb. The following echo statement must be failing somewhere.

      I think the problem may be the HFile path: I have

      # full path to your HFile directory.
      $HFile_dir = "C:\sokkit\site\phpcc\include\HFile";

      in config.php and the highlight drop-down fills Ok when I enter a snippet.

      Any ideas for good places to look?

      GreyHead

       
      • Brad Fears

        Brad Fears - 2004-03-01

        Perhaps it's a problem with the type of highlighting, or an unchecked (on my part) quote or tick in one of the info fields.  Does this happen with all snippets of all highlight types, even if you just stick 'test' in all the fields?

        --Brad Fears

         
        • Bob Janes

          Bob Janes - 2004-03-02

          OK tested a bit more - but not conclusive. I'm working just with Highlight type of JavaScript for this example.

          + If I put test in all fields everything is OK

          The example I chose to use was a JavaScript clock which contains these two lines

          var mnames = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
          var dnames = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');

          If I cut and paste both these lines from my text editor (NoteTab Pro under Windows XP) then the snippet will not display.

          If I paste in the first or second line alone that's OK.

          If I paste in the second, save it then modify and add the first it's not OK.

          If I edit the second line in PHPMyAdmin to:
          var dnames = new Array('Sun');
          then it's OK again

          Paste back in the rest of the array content and it's not OK.

          I confess myself bemused. I thought it might be line endings but it doesn't seem to be so.

          Any more clues?

          GreyHead

          Running Apache/2.0.48 (Win32) PHP/4.3.4, MySQL  4.0.13-nt 

           
          • Brad Fears

            Brad Fears - 2004-03-02

            This may be a platform-specific issue.  I just tested the code that you provided, and it worked fine on my server.

            Try it on the phpcc demo server:

            http://phpcc.mtsdev.com/demo/

            Login as either admin, password 'admin',
            or guest, password 'guest'.

            Let me know what happens.

            --Brad Fears

             

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.