Closed (outdated)
Project:
Activity
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 May 2010 at 09:31 UTC
Updated:
29 Oct 2025 at 14:22 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Scott Reynolds commentedMissing a screen shot.
But, I would sugguest trying something like this
Then with CSS you hide the form using selectors like html.js .activity-comment-form .form-item, so that way the items only get hidden when the user has javascript turned on. And finally, the missing piece is some JS to show the form when .activity-comment-show-form is clicked.
Comment #2
liliplanet commentedOops, sorry about missing the screenshot .. now attached
Scott, this is a little above my head, but if I understand correctly:
Create a module with the above function
Hide the html.js.activity-comment-form.form-item in css?
Somehow insert JS in an 'empty text' in a view where I want the link to appear ..
I'm prepared to pay for this enhancement ... as I don't think my skills are adequate (at all), but will try :)
Most appreciate your reply.
Lilian
Comment #3
troyl commentedI am not sure this is the best way to do so, but I think it would be very easy just to add fieldset class to the activity comment form .
if you look at the code in "activity_comment.module" from line number 131 to 135
This is the original code :
I think if it could be changed to something like this:
This would create a simple collapsed wrapper around the activity comment form, which would be collapsed till the user decided to comment.
Also at line 137 to 143
I think it would give users a better option... and with a bit of css you can get that Facebook type look..
Attached is a patch for it
Comment #4
troyl commentedoops forgot to attach the patch so here it's again
Comment #5
liliplanet commentedThat is beautiful troyl, thank you so much! Looking much more clean ... most appreciated :)
Comment #6
troyl commentedyou are very welcome...I have cleaned a bit more of the code and am attaching the patch to this one...check it out..
It also solves the problem of default text display on event
In this one I have also made changes to the default template activity-comment.tpl.php
Comment #7
liliplanet commentedthank you so much troyl :)
I've added the patch in #6 (manually) but now find that when you post a comment, it disappears after submission ..
patch in #4 did not have that problem ..
so appreciate your time :)
Lilian
Comment #8
liliplanet commentedthis is what I see in dblog :
array_search() [<a href='function.array-search'>function.array-search</a>]: Wrong datatype for second argument in /home/public_html/sites/all/modules/activity/activity_comments/activity_comments.module on line 101Comment #9
liliplanet commentedsorry me bad (: .. it's perfect! thank you troyl!
Comment #10
troyl commentedYou are welcome !! glad I could help... If you have any issue please let me know...
you can also check this one... if you are interested in user pictures in activity comment, thanks to @gausarts
http://drupal.org/node/797840
PS ..for some reason i can't CVS to make patches will look into it..
Comment #11
liliplanet commentedHi Troyl,
Hope you are very well.
Troyl, you were so kind to help previously to get 'comment link' to show rather than the comment box.
I'm still trying to find a way that the 'comment link' appears next to 'as time ago', 'delete' and then 'comment'
Please see attached screenshot, it's not so pretty :) and it's got this line going through the table ..
What would be ideal is the 'comment link' appears next to 'delete' and when you click, comment box appears below.
Is that perhaps possible? Looking most forward to your reply, and thank you ..
Lilian
Comment #12
troyl commentedSorry for the long delay in responding, I have been busy. You can get it to work with views,
Create a view of your activity, and use advanced display options, you will be able to create it. You can also use the rewrite output option in views.
if you need any further help send me a mail and I shall help
Comment #13
liliplanet commentedThank you Troy for your reply!
I've rewritten the display in views as follows:
[message] [created] [delete_activity] [comment_form], but still the comment box appears below. (see attached screenshot3)I think it has to do with the box around the form? I've tried with css without avail. (see attached screenshot2)
Look most forward to your kind help :)
Lilian
Comment #14
rjbrown99 commentedThere is a patch here, changing status and adding a more descriptive issue title.
Comment #15
_shyD6 reached its EOL back in February 2016, and there is no active release for D6 for this module anymore.
Development or support is not planned for D6. All D6-related issues are marked as outdated in a bunch.
If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.
Thanks!