Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 46

Thread: Updater

  1. #11
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    I tried it it woulnt work right... But I changed it.

  2. #12
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    Ok its up but there is an error here is the add.php code...


    PHP Code:
    <html>
    <head>
    <title>Add Comment Demo</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="JavaScript" type="text/javascript" src="http://www.bellsouthpwp2.net/c/h/christwebs/WYSIWYG/wysiwyg.js">
    </script>
    </head>
    <body>
    <div align="center"> 
      <p><font size="+1">Add Comment Demo:</font></p>
    <form name="form1" method="post" action="sent.php" onSubmit="forcehtmlmode('textareaname');">
        <textarea id="textarea1" name="test1" style="height: 170px; width: 500px;">
        <?php
          
    if ($file = @file_get_contents("comments.phpdata")) {
             echo 
    $file."\n";
              }
             else {echo 
    "Sorry, But your page is blank";}
             
    ?>
      </textarea>
        <script language="javascript1.2">
      generate_wysiwyg('textarea1');
      </script>
        </p>
      <p>
        <input type="submit" id="button" />
        </p>
    </form>    <a href="index.php">Back</a>
    </div>
    </body>
    </html>

  3. #13
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You've got one } too many.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #14
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    what?

  5. #15
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Code:
        <?php
          if ($file = @file_get_contents("comments.phpdata")) {
             echo $file."\n";
              }
             else {echo "Sorry, But your page is blank";}
             ?>
    The red brace has no matching opening brace.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #16
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    well I took it out and it says "
    Parse error: parse error, unexpected $ in /home/www/benslayton.awardspace.com/add.php on line 32" so apparently its supp. to be there.

  7. #17
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    Ok I fixed it. the WYSIWYG editor kinda works but the it writes the actual code, and not like bold or color red etc.... Need help.

  8. #18
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    huh?

    The wysiwyg editor is supposed to be used on your site so you can use it's functions and it will sent to the next page the code. (Use my fix to make it work if you're in code view instead; otherwise it will just sent as text, not code... hard to explain).

    If you choose a color or bold in the editor, it will send as code, like <strong>something</strong> and you just need to implement it on the next page, like you were doing before, where the line break became a space.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  9. #19
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    I tried your fix from the sticky under DD scripts right, and it will not show the Editor at all. Maybe Im not understanding something.

  10. #20
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Probably.

    I think I made it pretty clear in that thread.... not sure what else to say.

    Remove/reset it to where it works in the default way, then maybe I can help with the changes I made.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •