Closed (outdated)
Project:
Album Photos
Version:
7.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Jan 2011 at 02:00 UTC
Updated:
7 Apr 2021 at 19:23 UTC
Jump to comment: Most recent
Comments
Comment #1
iquichi commentedsame problem here!
I've tried the 'patch' on http://drupal.org/node/455708, but no luck!
Somebody any ideas?
Comment #2
nathaniel commentedLooking into this for the D7 version and want to leave some notes here...
Adding support for ajax comments requires #comment-wrapper:
photos.image.inc
_photos_comment ...
After posting one comment the form is reloaded by ajax comments and the fid is no longer available, so the second comment and any following comments will post to the album node and appear under the image temporarily, but will not be there if the page is reloaded because the fid was not available to link that comment with the image.
Example image url:
photos/image/86
Ajax comments url:
system/ajax
Code in photos.module to add image fid to comment form:
photos_form_alter ...
So, we need some way to pass the fid (86 in this example) to the comment form after it is reloaded by the ajax comments module.
Comment #3
nathaniel commentedComment #4
nathaniel commentedAdding the following code to the ajax_comments.module ajax_coments_submit_js function solves the problem by passing the photos_fid to the new form.
Issue on ajax comments module: #2052041: Pass custom variable to new comment form
Comment #5
nathaniel commentedComment #6
nathaniel commentedCleaning up issue queue.