screenshot: http://prntscr.com/1x7o9

i click on reply and the reply form disappears. very odd.

Comments

acouch’s picture

The comment form at the bottom is supposed to disappear if you click 'reply' below a comment, but another form should appear below where you clicked 'reply'.

Right now the css for comments needs to be the same as bartik.

Can you try using the bartik theme quickly to confirm that it doesn't work at all?

patoshi’s picture

yea it doesnt work.. u can try it urself:

nycnextlevel . com/dev/node/1

acouch’s picture

Thanks. Looks like you have everything setup correctly.

Can you try disabling the advanced forum module and see if that works?

patoshi’s picture

yep.. disabled forumand advanced forum completely... same problem.. im guessing its not outputting it to the specified div container you have?

acouch’s picture

Thanks for testing this and helping to get this module off the ground.

The problem is the module expects the wrappers around your comment to be something like this:

<div class="comment comment-by-node-author clearfix" typeof="sioc:Post sioct:Comment" about="/comment/4#comment-4">

whereas yours has this:

<div class="comment comment-by-node-author clearfix" typeof="sioc:Post sioct:Comment" about="/dev/comment/4#comment-4">

Notice the extra 'dev' in about. The module should be able to correct for this. I'll try and fix that when I get a chance. In the meantime if you change:

101   $commands[] = ajax_command_after('div[about="/comment/' . $cid . '#comment-' . $cid . '"]', $form);

to:

101   $commands[] = ajax_command_after('div[about="/dev/comment/' . $cid . '#comment-' . $cid . '"]', $form);

it should work.

I would warn you that this module is still in development.

acouch’s picture

Title: click reply button and message form dissappears. » ajax_command_after argument needs to account for additional directories in url

If a the base url for a site is http://example.com/development/ then the comment about for bartik will be:

<div class="comment comment-by-node-author clearfix" typeof="sioc:Post sioct:Comment" about="/development/comment/4#comment-4">

The command_invoke on line 101 needs to account for that.

patoshi’s picture

ok i think i fixed it.. just add $base_path ..

100   global $base_path;
101   $commands[] = ajax_command_after('div[about="'. $base_path .'comment/' . $cid . '#comment-' . $cid . '"]', $form);

as for declaring global vars .. where should i put them? usually on the top of the file right?

acouch’s picture

Status: Active » Fixed

I committed this. The global is declared within the function. Thanks for your help. Please keep opening issues as you come across them.

patoshi’s picture

does this work for forum topics btw.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.