This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Add Comment Link
#1

First, let me say this is an awesome script, exactly what I have been looking for. I have it all setup and its working nicely.

My only issue is, and its probably me just being not very code savy. Is that on my dynamic pages, I would like it to just show, the comments, with a LINK to add a comment. I don't want the people to see the add comment form to fill out unless they click the Add Comment link.

Is there an easy way to do this. I've looked all over the forum and didn't find anything, so I'm thinking it must be pretty simple, and I'm just pulling my hair out and figure I would ask.

Thanks for your time.
Reply
#2

Steven is this something that can be done? Basically just want to hide the form part until someone clicks on ADD COMMENT and then it expands the form.

Thanks
Reply
#3

Hi,

It's not very elegant but it works:

1. In the admin panel open Layout -> Divider and change this line:
Code:
<h3><a id="form" name="form">Add Comment</a></h3>

To this:
Code:
<h3><a id="form" name="form" onclick="toggle_visibility('open_form');">Add Comment</a></h3>

2. Open /comments/includes/app/processor.php and add this on line 26:
PHP Code:
<?php 
define
('CMTX_PROCESSING', '1');

3. Open /comments/includes/template/comments.php and remove the toggle_visibility function (lines 277-288).

4. Replace /comments/includes/commentics.php with the attached file.

Note: Next you may want to change 'Add Comment' to be, or at least look like, a link.


Attached Files
.php commentics.php Size: 10.25 KB  Downloads: 38

Have you completed the interview?
Reply
#4

Thank you very much!!! Works perfectly!

Thanks again
Reply
#5

Hi Steven

Do you have a workaround for version 1.8. Just installed and things are a bit different.

Thanks for a great script.

Reply
#6

Hi,

Sure, follow these steps:

1. Open /comments/includes/app/processor.php and add this on line 28:
PHP Code:
<?php 
define
('CMTX_PROCESSING', '1');

2. Replace /comments/includes/template/form.php with the attached file.


Attached Files
.php form.php Size: 33.62 KB  Downloads: 35

Have you completed the interview?
Reply
#7

Thanks Steven for the FAST response! Works great!
Reply
#8

Oh thank you
Reply
#9

Hi, this work in the latest version? I try and not worked for me
buttons do not display

sorry for my bad english Blush
Thanks!
Reply
#10

This feature is included in the latest version.

In the admin panel go to Layout -> Form -> General and enable the "Hide the Form" setting.

Have you completed the interview?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
29-Sep-2021, 11:41 AM
Last Post by afoster
02-Aug-2020, 10:40 PM
Last Post by Steven
10-Jan-2018, 09:58 PM
Last Post by noblues
08-Mar-2015, 05:08 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)