hey guys an gals, is it possible to modify a guestbook script so that i can post regular html codes ??

i want to use the guestbook approach because it has the power to allow only a defined number of posts per page, and automatically creates other pages from the remainders. also, it shows the latest post on top. << This is extremely important for me.

my head's hurtin there tryin to figure out a way to do this, please let me know if this is even possible before i attempt it. thanks

    quazack wrote:

    hey guys an gals, is it possible to modify a guestbook script so that i can post regular html codes ??

    i want to use the guestbook approach because it has the power to allow only a defined number of posts per page, and automatically creates other pages from the remainders. also, it shows the latest post on top. << This is extremely important for me.

    my head's hurtin there tryin to figure out a way to do this, please let me know if this is even possible before i attempt it. thanks

    You're saying you want to allow users to enter HTML in your guestbook? Not a good idea. Do you already have a script or are you looking for one? What exactly are you trying to do?

      oh.. the posted html must be functional and not appear as

      <table>
      <td>
      < .... etc etc.

      and if it is by some odd chance possible, what would the code look like to be able to print out raw html codes like that

        no no.. it wouldnt really be a guestbook, only I will have access to post the HTML codes.

        im tryin to set up a system where i can enter tables into a page (by jus posting html codes for the tables) and havin them displayed wid last entry first and only 10 tables (posts) per page

        oh naw.. dont have a script yet.. want to know if this possible before i try doin it

          The functionality you're trying to describe sounds perrfectly possible.

          Whether you can do it by modifying a script which doesn't start out doing exactly what you want depends on:

          • the functionality delivered by the script you start out with
          • the structure of that code, how easy it is to understand and modify etc
          • how complicated what you want to achieve is
          • how clearly you understand what you want to achieve
          • how well you understand programming concepts
          • how good you are at reverse engineering, design and programming
          • how much time you have to devote to this project

          Nobody here will be able to quantify any of the above for you.

            cool, i found something on the web that was almost exactly what i been lookin for.

            thanks for tha help

              here's the script i want to modify guestbook funtion script

              can someone pleaseee make this thing accept html codes!
              i tried makin those "remove html" functions blank ( {} ).. jus end up wid blank pages.

              sorry for this longass script, i jus need someone to enable html on this bad boy and i shall liv happily ever after.

              incase the modification(s) is too large to post here, please post a quick reply here or send me a private message so i can send u a private message wid my email address.

                quazack wrote:

                here's the script i want to modify guestbook funtion script

                can someone pleaseee make this thing accept html codes!
                i tried makin those "remove html" functions blank ( {} ).. jus end up wid blank pages.

                sorry for this longass script,
                I jusi need someone to enable html.

                yes, that was a badass long script
                no need for that much code
                for making a guestbook <form> that takes your HTML code

                I am sure you do not need MySQL database, which that guy is using
                Just for to put you HTML into some other file at your server

                I will go see what I have!
                Wait some seconds
                I be back

                /halojoy
                http://halojoy.dnsalias.org/website/

                😉 🙂 😉 🙂

                  thanks dude.. i know thaz a high end guestbook..

                  but it was a feature the host offered for free, i jus deleted all the junk that i didnt want to be displayed.. now its jus that html thing on my back

                  of course i dont want to just simply post html codes, i want em stacked newest on top with 10 per page.. thats why i went went the guessbook script.

                    this could work
                    at least after some little bughunting
                    and small modifications

                    instead of write to file you can append to existing data in file
                    by using $fp = ( $file, "ab" );

                    and add some error messages, too

                    /halojoy - did a rewriting of a script he has downloaded ( a file-editor )

                    <?php
                    
                    if(isset($_POST["act"]) && $_POST["act"]=="save"){
                    
                      if (isset($file) && ($file!="") ){
                    
                            $fp = getFilePath($file);
                    
                            if ($fd = @fopen($fp, "wb")) {
                    
                        	$data = trim($_POST["data"]);
                            	$data = stripslashes($data); // Strips doubled backslashes
                            	$data = str_replace("\r\n", "\n", $data); // Remove LF => UNIX format
                    // if ($fileformat == "dos") $data = str_replace("\n", "\r\n", $data); // Add LF => DOS format
                    
                           	@fwrite($fd, $data);
                          	@fclose($fd);
                    
                        	echo htmlspecialchars($data);
                         	echo "<br>File $file saved.";
                        }
                       }
                    
                    }else{
                    
                    $data = "enter your HTML code here";
                    
                            echo "<table border=0 cellspacing=0 cellpadding=10>";
                            echo "<form action='' method=post name=editForm>";
                            echo "<input name=act type=hidden value=save>";
                            echo "<input name=file type=hidden value=\"$file\">";
                            echo "<tr>";
                            echo "<td colspan=3>";
                            echo "<textarea name=data cols=$editcols rows=$editrows>";
                            echo htmlspecialchars($data);
                            echo "</textarea>";
                            echo "</td>";
                            echo "</tr>";
                            echo "<tr>";
                            echo "<td colspan=3 align=center>";
                            echo "<input type=submit value=\"Save\">";
                            echo "</td>";
                            echo "</tr>";
                            echo "</form>";
                            echo "</table>";
                    }
                    
                    exit;
                    
                    ?>
                      Write a Reply...