Notes From James
Home | About | Find Stuff | Download
Commenting Within a Thingamablog Post   James - Saturday, March 24, 2007, 10:46 am

Note that this is in reply to this post.

Let me start off by staying that I'm not a PHP guru by any means. However, if you want to have the comment for Thingamablog included after the post, you should add the following PHP script to the Thingamablog template after the comment. Modify accordingly if you have tweaked your add_comment.php file.

Please note that I have not tested this! But it should be close.

<?php // Change mailto to your e-mail address, or leave blank if you don't want to mail notification $mailto = ""; $mail_program = "/usr/sbin/sendmail -t"; $post_key = "123456"; $origin = $_POST["origin"]; $title="<EntryTitle><$EntryTitle$></EntryTitle>"; $permalink="<$EntryPermalink$>"; $article="<$EntryID$>"; $base='.';

echo "<form action="add_comment.php" method="post">"; echo "Your Name: <input name="user" type="text" /><br />"; echo "E-mail (optional, will not be posted): <input name="email" type="text" /><br />"; echo "Web site (i.e. <input name="www" type="text" /><br />"; echo "Comment:<br><textarea name="comment" cols="70" rows="20" ></textarea>"; echo "<input type="hidden" name="post_val" value="$post_key">"; echo "<input type="hidden" name="article" value="$article">"; echo "<input type="hidden" name="permalink" value="$permalink">"; echo "<input type="hidden" name="title" value="$title">"; echo "<input type="hidden" name="origin" value="$origin"><br>"; echo "<input type="submit" value="Submit" />"; echo "</form>"; ?>

[Thingamablog - Archiving Settings to Fix Upload Issues]  [Doctor Who Review]