Forums

How to create a standalone comment form (5 posts)

  1. pixeline
    Member
    Posted 6 years ago #

    hello!

    i would like to create a comment form that you can load directly. i looked in the provided comments.php but they have this line:

    code
    if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    die ('Please do not load this page directly. Thanks!');
    code

    if i remove it, it does not work. Yet if i want to load this page directly, how can i do it ?

    thank you!

    alex

  2. Samuel B
    moderator
    Posted 6 years ago #

  3. pixeline
    Member
    Posted 6 years ago #

    i don't understand why this plugin could be of help for me. i'm far from being able to turn my commentform into a plugin, i've only been playing with WP since 2 days.

    what i want to do, is use particletree's lightbox logic (http://particletree.com/features/lightbox-gone-wild/) to launch the comment box, so i need to isolate the comment form in some ways. it must then contain the logic to know which post it is commenting on, and all form actions parameters, which are given by WP.

  4. Mark (podz)
    Support Maven
    Posted 6 years ago #

    Why not use the inbuilt popup comments ?

  5. pixeline
    Member
    Posted 6 years ago #

    because it then displays the whole post's url, with an anchor#comments, which shows the posts, all existing comments, and then the form, whereas I only want the comment form.

Topic Closed

This topic has been closed to new replies.

About this Topic