1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Ajax Comments

Discussion in 'Plugin Suggestion Box' started by Graeme, Jun 4, 2013.

  1. Graeme

    Graeme Member

    I made a start at the ajax comments - you have to make changes to comment_ajax.php and ajaxcomments.js - put your site url in the first variables...i haven't done it well, but maybe it can help somebody make a start...there may be too many dependencies my own site too.

    anyway I have put it on Github - i'm not the most experienced wiht php, but there u go...

    https://github.com/Graylien/HotaruAjaxComments

    Main additions

    comment_ajax.php
    ---------------------
    - this file handles the ajax requests from the jquery ajax calls.
    - it is pretty well commented so have a read to see what's going on there


    ajaxcomments.js
    ----------------

    this grabs data from the form and sends it to the php file. It gets the comment text and the user name etc
    just from what is displayed on the screen (by the id)
     
  2. nothingman

    nothingman Active Member

    Tested.
    - The Ajax works and comments are posted

    BUT

    - Reply does not work and clicking it takes you to the top of the page. This is the same with the edit link.
    - The input box is too small.
     

Share This Page