Home Tour Demo FAQ App Gallery Buy Now    
Home > Comments and Ratings > How to add a Comment Form to a static pa...


How to add a Comment Form to a static page?

Comment tag is only intended to work with applications. That's why they require  an application name and entry ID to connect comments and page entry with each other.

However, you can trick Memberkit to show comment forms on non-application pages. Simply put this on your page:

<?
    $_GET[if_id] = 1001000;
    $values[id] = $_GET[if_id];
    $GLOBALS[formname] = "profile";
?>
{COMMENT:none/comment}

-----------

$_GET[if_id] = 1001000; This line makes the comments belong to this page. 1001000 is a page ID. You need to change this number if you want to add this trick to other pages.

Make this number greater than 1000000 in order to prevent any possible conflicts with profile entries.



Tags: comments tips
Related Articles:

Add a new comment

Send Comment

 
 
Customer Log-in | Support Forums | User Guide | Free Form Builder | Contact Memberkit Team