Custom Comment

I really love programming plugins
It has just been 3 days that I have learned how to program wp-plugins
Yesterday I checked the Ideas page of wordpress and I saw an idea about letting users define more fields for comment form.
So I just tried to do it and after lots of searching I found all of the things i wanted!(What I needed was the actions and filters for comments)
Download

Read more about this plugin.

  1. #1 by Randa Clay on 18/01/2011 - 6:11 PM

    Hi there. I’m trying to use this plugin to add a State field for the user to fill in when they comment and then display their state along with their name and comment. I have added a comment field in your plugin’s admin page, but I don’t see the new field in the comment form. (http://carinsuranceguidebook.com) What am I doing wrong? Also, it seems I’ll need a template tag or something to display the state- I don’t see anything in your documentation on how to do that.
    Thanks!

    • #2 by Im a programmer on 18/01/2011 - 7:03 PM

      I haven’t add this option yet
      The actual plugin serves for the blogger to see the information of the users
      I will add it as soon as possible
      Thanks for the comment

      • #3 by Orasid on 19/01/2011 - 10:17 AM

        I’m really looking forward for that feature. 🙂

        Thanks for starting this.

      • #4 by Im a programmer on 19/01/2011 - 5:50 PM

        you’re welcome!:D

  2. #5 by Jos on 24/01/2011 - 7:35 PM

    I’m also looking for a plugin that can add.change comment-form fields and also display them

    • #6 by Im a programmer on 25/01/2011 - 3:27 AM

      right now this plugin displays the extra fields only in the comment form not on the user’s comment
      i’m looking for a place to put the extra fields for each comment
      i thought of using jquery to show extra data when you hover on the comment or something like that but still can’t make my mind
      do you guys have any idea where i should put the extra data for comments?

  3. #7 by Jos on 25/01/2011 - 2:42 PM

    Maybe this can help: http://www.solaceten.info/extra-comment-fields-plugin

    He has a pdf on his site with installation guidelines and also talks where to put the for displaying extra field etc.

    What I also miss in your plugin (which works great by the way) is the possibility to make the fields required.

    • #8 by Im a programmer on 25/01/2011 - 6:03 PM

      Thanks for your comment jos
      I’ve just finished version 2.1 after seeing your comment
      I added the ability to make a field required
      I plan to let the user show the extra fields for comments in 2 or 3 different positions and some more options in version 3(which i will do after the exams, or better said before march)

  4. #9 by Randa Clay on 25/01/2011 - 3:17 PM

    That solaceten plugin is the one I ended up using and it worked well. It requires a little bit of techie- it’s not plug and play by any means but it works great. Still I’ll keep an eye out here for updates because I think the author has a good start on a really useful plugin.

    • #10 by Im a programmer on 25/01/2011 - 3:23 PM

      Randa thanks for your comment
      I have lots of ideas for this plugin but right now i have 3 weeks of exams so I can’t apply those ideas right now
      About the techie part It’s only the option page that you need to configure nothing else, right?(or did you have to do something else to make it work?)
      And if you have any idea for showing the extra fields on a comment please tell me(I thought about under the date of comment or a link to another page after the user’s name)

  5. #11 by Randa Clay on 25/01/2011 - 3:44 PM

    With this other plugin, there were snippets of code that needed to be placed in the functions file and in the comments file, which was not a big deal, but would have been hard for a novice user. For ease of use, I think the plugin user needs to create a new comment field in the plugin options panel, then use a template tag to insert the field wherever they like in the comments form, then also use a template tag to display the field in the comments listing.
    Good luck with your exams!!

    • #12 by Im a programmer on 25/01/2011 - 6:04 PM

      Thanks Randa
      I couldn’t resist to add the new option which wasn’t really hard to do so I did it before the exams:P
      Check the new version(It might take 10 minutes for wp to update the pluggin)

  6. #13 by Jos on 25/01/2011 - 7:17 PM

    I was really thrilled that you’ve updated the plgin, but required fields don’t work. after trying i’ve deleted my extra fields and wanted to add them again, but now it says that they already exist, but I don’t see them anymore….
    Looked in de tables to delete them manuallu, but can’t find any table…

    PS: Succes with your exams

    • #14 by Im a programmer on 25/01/2011 - 8:16 PM

      Thanks for informing me about the bug(deleted field), I just fixed it and it’s ready to be updated.
      And also about the required fields, when you add an extra field, by default it’s not required and you should click on the yes button to make it required
      It acts the same way as the wordpress does for the email and name fields

    • #15 by Im a programmer on 25/01/2011 - 8:30 PM

      And one more thing
      My plugin uses wp options to manage the values
      Since it’s my second plugin and I wanted to practice more with options I used this way but I’m not sure if it’s better to directly use wp database or not

  7. #16 by Jos on 25/01/2011 - 8:41 PM

    Thanks, I will try again after the update.
    Of course I used the required button, toggled it a few times, but still the fields were not required on the form

  8. #17 by Jos on 25/01/2011 - 9:34 PM

    Required fields still don’t work after update. You can try it on:
    http://www.rondomhetziekenhuis.nl/uw-suggesties/bestemming-budolocatie/

    • #18 by Im a programmer on 25/01/2011 - 10:05 PM

      Does the required button for your field show “No”?(it should be No when it’s a required field)
      Here is where i always test my plugin and you can see that required fields work just fine
      http://118film.com/plugin/?p=4

  9. #19 by Jos on 25/01/2011 - 10:15 PM

    Very very strange. on your site it works indeed.

    Of course my fields say required ‘yes’

    I will remove the plugin completely and install it again instead of upgrading.

    • #20 by Im a programmer on 25/01/2011 - 10:36 PM

      No no
      The button should say No
      The meaning of the button is the action that will be applied after clicking on it
      Just hover on the button and it shows you an explanation

  10. #21 by Jos on 25/01/2011 - 10:43 PM

    aaaaaah. You are right (of course)! It works now.

    Hadn’t see the hoover text. Find it a bit strange though, because header text says ‘required’ and than I would think ‘ yes’ means yes and not ‘no’…..

    Thanks al lot, really appreciate it. Now go on studying!

    • #22 by Im a programmer on 25/01/2011 - 11:34 PM

      You’re welcome
      I know it’s a little bit strange but I saw it better since for the activate i did the same(naming the button the same as the action)
      By the way
      I saw your blog is not english
      The only phrase that my plugin has is
      Error: please fill the required fields
      Just open CustomComment in the plugin editor and search for it and replace it with the one you want
      I guess in the future I’m going to make it multilingual;)

  11. #23 by Jos on 26/01/2011 - 1:06 AM

    Thanks for your last tip!

  12. #24 by Amit on 26/01/2011 - 5:59 PM

    Here’s the error I am getting:

    CuCo_prefix in /()/wp-content/plugins/customcomment/CustomComment.php on line 128 Notice: Undefined variable: CuCo_prefix in /()/wp-content/plugins/customcomment/CustomComment.php on line 128 Notice: Undefined variable: CuCo_prefix in /()/wp-content/plugins/customcomment/CustomComment.php on line 134

    • #25 by Im a programmer on 26/01/2011 - 7:45 PM

      CuCo_prefix was a variable that the plugin uses to avoid conflicts with other plugins which use wp options
      It’s defined in CustomComment.php on line 27 and until now for all the people it has worked
      Can you tell me which version of wp you use?

      • #26 by Amit on 27/01/2011 - 4:08 AM

        Oh yeah – I am using 3.04 – the new one

    • #27 by Im a programmer on 27/01/2011 - 4:20 AM

      I have made some changes
      You can download the new version
      Since I don’t use that variable anymore i guess now it works fine for you

  13. #28 by Amit on 27/01/2011 - 4:31 AM

    Where can I download that one? The one that is on http://wordpress.org/extend/plugins/customcomment/ still has the cuCo variable?

    Could you point me to the right page/link?

    • #29 by Im a programmer on 27/01/2011 - 12:03 PM

      Go to http://wordpress.org/extend/plugins/customcomment/ and download version 2.1.2

      • #30 by Amit on 27/01/2011 - 12:38 PM

        Still not working dude. Here is the error now:

        Undefined offset: 2 in /()/wp-content/plugins/customcomment/CustomComment.php on line 130 Notice: Undefined offset: 1 in /()/wp-content/plugins/customcomment/CustomComment.php on line 134

  14. #31 by Li-An on 06/02/2011 - 10:53 AM

    Fields do not show on a blog test with no other plugins activated…

    • #32 by Im a programmer on 06/02/2011 - 12:16 PM

      The value of the buttons in this plugins means the action that will be applied to the field
      Which means when activate button is “Deactivate” the field is activated and when you click on the field it will be deactivated
      The blank rows are activated fields and the gray fields are deactivated fields
      Check if the fields are activated

  15. #33 by Jos on 28/02/2011 - 12:52 PM

    I thought everything worked fne, but when I click on info I doesn’t show the values of the new fields

    • #34 by Jos on 23/03/2011 - 10:51 PM

      I hope you can answer my question and solve my problem to, because I really like and need this plugin working (show the content of the new fields in the admin).. Commenting works, but as,said, when I click on Info in the comment in the admin, a new screen opens with the new fields, but they are empty.
      Where should they be?

      Sorry, I’ve replied too at the wrong question…..

  16. #35 by Juliano Fero on 22/03/2011 - 3:22 PM

    How to make change to my script at commenst.php flle to work whit CustomComment plugin( ?

    In “value” is “nothing” at admin page and in comment for all.

    Please help me.

    All the best!

    • #36 by Im a programmer on 23/03/2011 - 9:08 PM

      you don’t have to make any change in your comment.php
      once you install the plugin in the admin panel at the end of the page you can see the link to custom comment page

    • #37 by Jos on 23/03/2011 - 10:50 PM

      I hope you can answer my question and solve my problem to, because I really like and need this plugin working (show the content of the new fields in the admin).. Commenting works, but as,said, when I click on Info in the comment in the admin, a new screen opens with the new fields, but they are empty.
      Where should they be?

      • #38 by Im a programmer on 23/03/2011 - 11:56 PM

        Dear jos
        Can you please update to the latest version?
        There was an error in the name of the inputs so that there was nothing saved in the database
        If it doesn’t work I will help you to fix it

  17. #39 by Binh on 22/03/2011 - 5:38 PM

    Hi. Thank you for writing useful plugin such as this. I’m trying to put custom comment fields on http://www.homenh.vn which is using wp3.1 using your plugin and it doesn’t work. Neither this or the Custom Comment Fields plugin (by other author) works.

    Any suggestions?

    • #40 by Im a programmer on 23/03/2011 - 9:07 PM

      if you don’t mind give me access to admin panel to check where the problem is
      since it worked for some people and some people experience problems

    • #41 by Jos on 27/03/2011 - 9:51 PM

      Hi Moein,

      I’ve updated to to the latest version, but I see no difference.
      How can I help you? Must I give you access?

      • #42 by Im a programmer on 27/03/2011 - 10:00 PM

        you can give me access to check the problem
        my email is moein.ak [at] gmail [dot] com

      • #43 by Im a programmer on 27/03/2011 - 11:46 PM

        Dear jos I think I have fixed the problem
        Since I wasn’t able to save the changes in your site so I commit the new version(2.1.5)
        Please check if the new version works or not
        With the best regards
        M.A

      • #44 by Jos on 28/03/2011 - 12:04 AM

        Hi Moein,

        It works now. Thank you very very much!

        Btw: did you get your exams?

      • #45 by Im a programmer on 28/03/2011 - 12:07 AM

        I’m glad I could fix the problem

        Yeap, It’s been a month, I didn’t do really good:P

  18. #46 by Jason "The Chef" Turner on 07/04/2011 - 11:18 AM

    Could you write up a bit of a tutorial on how to get new fields to show on the comments? It would seem I am missing something because when I add a field, I don’t see it on the comment when it is active. Is there something that I need to change in the comment settings somehow to allow for these fields to show? Do I need to call it in somewhere?

    This is in WP 3.1 and 3.1.1 (I just updated today)

    • #47 by Im a programmer on 07/04/2011 - 1:06 PM

      The main objective of this plugin is to let the webmaster get more information not to show it.
      The problem about what you ask is that there are various type of template for wp and for each one of them you have to do it in a different way to look good in the template. And it’s not something that I can do for all the templates.
      I think there are various tutorials about how adding customized field in the comment template
      Once you know how to do it you can get the values from wp options that i implemented.
      Let me know when you have a tutorial about adding fields to comment template.
      Or if you can wait about 2 weeks i might(70% probability) add this feature to the plugin

      • #48 by Jason "The Chef" Turner on 14/04/2011 - 2:03 AM

        I think there is a misunderstanding. I am talking about actual new form fields. For example: Name, Email, Website, Location where Location would be the new form field. That is what is not showing in WP 3.1 and 3.1.1. So I can’t even get the information in the first place as new fields aren’t showing for some reason.

      • #49 by Im a programmer on 14/04/2011 - 12:13 PM

        i checcked it in wp 3.1 and it works just fine
        take in account that the activation button must show deactivate which means the field is currently activated

  19. #50 by Big O on 21/04/2011 - 11:38 PM

    Like Jason the Chef, I have the same problem here.
    Installed WP 3.1, upgraded it to 3.1.1, install this plugin for the first time. Doesn’t work.
    Don’t see the new fields on the input form. I created 2 new fields, activated & deactivated them. No luck.

    Only thing I did was messing around with comments.php before installing the plugin, BUT still I restored the original version before installing the plugin.

    Any clue? Thanks much.

    • #51 by Big O on 21/04/2011 - 11:51 PM

      One last thing.
      In my local enviorentment works (with WP 3.1.1 too)
      On my remote environment doesn’t but am using a theme & the funny thing is that when I set a field as a required, it gives me an error when posting a comment cause I can never fill that field.

      • #52 by Im a programmer on 22/04/2011 - 2:51 AM

        I installed wp 3.1 on one of my domains and the plugin seems to work just fine

        Hello Programmers!

        If you don’t care send me your information to check where the problem is exactly

  20. #53 by Big O on 22/04/2011 - 4:53 AM

    Thanks Moein for your quick answer. In fact you’re right, works just fine with 3.1.1. The problem was the theme.

    So let me re-phrase the issue then:
    1. What code should I plug on comments.php to call custom comment (so make the custom fields appear) ?
    2. What code should I use to display the custom comment values?

    I feel that these two questions have arisen along all the comments. It’d be extremely useful & helpful if you could provide some documentation in regards of these very common issues.

    Thanks again.

    • #54 by Im a programmer on 22/04/2011 - 10:42 AM

      Dear Big O
      I tried two themes on the test blog but no luck to simulate your problem
      Can you tell me the name of the theme that you have problem with so I could find out how you can show the fields in it?

  21. #55 by Big O on 22/04/2011 - 7:18 PM

    Sure it’s a paid theme! Why don’t you send me an email & will get back to you with the theme attached?
    Thanks much.

  22. #56 by Anders Frey Birkmose on 01/05/2011 - 9:19 PM

    Hi Moein
    I have the extra fields in my comment form, and now I want the the fields be shown on the list together with the name and comment.

    Just like Big O i don’t know how to call the custom comment values.

    Thank you

    • #57 by Im a programmer on 03/06/2011 - 11:34 PM

      Dear adnres
      First sorry for the really long delay since Im a student I had to do lots of things and didn’t have enough time to check the blog
      About the problem you have I wanted to do it while I was programming the plugin
      But what were the problems
      1. In default template it didn’t have a good place to put and Im not an expert in design
      2. Each template has it’s own design for comments so it makes it impossible to do it in general

      But if you know a little bit about the wordpress following my next tutorial you will be able to show them as you want

  23. #58 by Ivar on 10/06/2011 - 8:18 AM

    Hello,

    I think I have a known problem. But I’ll give it a shot 🙂

    The added field appear for visitors, but not for logged in users.
    Plus, when I fill in the extra fields, the data input is not shown in the comment. Only the standaard data is shown: name, website, text.

    Is this a common problem? Can I fix this?

    Thanks in advance!

    • #59 by Im a programmer on 18/06/2011 - 12:30 PM

      Hi Ivar
      Yes it’s a know problem and I’m fully aware of it
      As for the showing the data for visitors I have explained it here

      Showing custom comments saved values to visitors


      But the other problem(logged in users) I will check it out once my exams are finished(at the end of the June)
      Don’t hesitate to ask me any question while reading my post about showing the information to users 😉

  24. #60 by frabbe on 18/07/2011 - 10:12 AM

    Hi, I have a problem with this plugin and WordPress 3.2.1: when I try to delete a comment from the admin area the comment is not deleted… It disappears from the list but when I refresh the page is there again…

    • #61 by Im a programmer on 21/07/2011 - 9:55 PM

      Are you sure the problem is because of this plugin?
      try to deactivate the plugin and remove a comment to check if it’s because of the plugin

      • #62 by frabbe on 22/07/2011 - 3:34 PM

        Yes, I have deactivated the plugin and all works….

      • #63 by frabbe on 26/07/2011 - 3:18 PM

        Other problem: if this plugin is activated i cannot disable other plugins

      • #64 by Im a programmer on 15/10/2011 - 2:41 AM

        I tried it in wp 3.2 and it’s working fine

    • #65 by Im a programmer on 15/10/2011 - 2:42 AM

      The problem is solved in the new version(2.1.6)
      It was because of the new class for delete button in wp 3.2 which had conflict with the class i used for my buttons
      Now I have gave a prefix to all classes

  25. #66 by Marko on 06/09/2011 - 10:37 AM

    I am looking for a “leave a reply” form just like this one. Is there a plugin for it? Thanks

  26. #67 by Marko on 06/09/2011 - 5:37 PM

    I now see that it is inbuilt to wordpress.com. Thanks anyway

    • #68 by Im a programmer on 15/10/2011 - 1:07 AM

      Marco as I know what this plugin do is not built-in in wp3(yet)
      If I’m mistaken please tell me!

  27. #69 by Colleen K on 24/10/2011 - 9:03 PM

    I’m a bit disappointed.. Sure the extra fields are there, before I comment, but what good are they if once you hit “Submit” the label AND content of said fields disappears?

    • #70 by Im a programmer on 24/10/2011 - 9:12 PM

      Dear Colleen
      I don’t quite get what you mean
      But I guess you mean the problem with showing the data for the public right?
      If my guess is right I didn’t implement that option since it totally depends on the template and it doesn’t look good at all
      But just in case for the people who wants to use this plugin I have written a post about how to show the fields after posting the comment
      Here you can see how to show the data to the visitors
      I you have any question don’t hesitate to ask 🙂

  28. #71 by ImRocker!!™ on 05/11/2011 - 12:04 AM

    this is the code, delete the old post. (srry)

    $required = ”;
    else
    $required = ‘ (obligatorio)’;
    if ($custom_field_arr[1] == 1)
    echo ‘ ‘.$custom_field_arr[0].” .$required.”;
    }
    }

    this is right

    • #72 by Im a programmer on 05/11/2011 - 12:12 AM

      Done 😉
      Since I see you are using the plugin please tell if you see any problem(along with wp version you are using)
      Thanks again for your comment

  29. #73 by Im a programmer on 05/11/2011 - 12:04 AM

    Thanks for the correction
    The but the required fields are shown by a *

  30. #74 by Mark on 12/11/2011 - 4:07 AM

    Hi — Really like your plugin here and have a question — Is it at all possible to have BOTH the new / modified Comment form AND an unaltered version ?

    I have reason for wanting to collect additional information under some circumstances (on a specific page / post) but not across the rest of the site. My hunch is this will cause added problems fetching data via the Loop given that it will be difficult to separate one group of comments from the other, but I’d like to ask the question anyway.

    Would be willing to help pay for this development, even if it then turned the capability back over to the overall community.

    • #75 by Im a programmer on 12/11/2011 - 10:13 AM

      Hi Mark
      Yes you can have both version of forms by giving a condition for the hooks
      If you open CustomComment.php in the plugin editor you can see all the hooks at the beginning of the file
      There are three hooks to remove(in the execution time) when you want the original file
      add_action(‘comment_form_after_fields’, ‘CComment_form’);
      add_action(‘comment_form_logged_in_after’, ‘CComment_form’);
      add_action(‘comment_post’, ‘CComment_comment_post’);
      So if you want to make have the original form in some special urls it will be like this
      if (!in_array(site_url, original_form_url_array))
      {
      add_action(‘comment_form_after_fields’, ‘CComment_form’);
      add_action(‘comment_form_logged_in_after’, ‘CComment_form’);
      add_action(‘comment_post’, ‘CComment_comment_post’);
      }
      you read more about site_url here

    • #76 by Mark on 13/11/2011 - 8:46 PM

      Thank You — Really appreciate your taking the time to reply so quickly and with such useful information. But before one question turns into another, turns into another, et cetera, let me tell you what I’m trying to accomplish.

      First of all, I didn’t use your solution, but it did help me see part of the answer . . . and to get that part working.

      I’m building a site — using your plugin, of course — that has the guts of a CustomComment form embedded in the sidebar. That form collects additional information, is available site wide, and is built off how the custom comment form is rendered for a generic page that allows comments. (Essentially, the form in the sidebar is hard-coded.) This form posts its comments to /?p=13.

      I then take that additional information collected by the form in the sidebar and integrate / report the data in-line with the comments associated with /?p=13. It was necessary to modify my theme’s bfa_custom_comments.php form to build an echo instruction to get the data to report. The CustomComment data is now reporting very nicely as part of the comments associated with /?p=13.

      What I then did was comment out the following:

      // add_action(‘comment_form_after_fields’, ‘CComment_form’);
      // add_action(‘comment_form_logged_in_after’, ‘CComment_form’);

      This ‘struck’ the extra fields in the generic comment form but preserved all the CustomComment functionality.

      But — and this is the last little step — I’m still seeing the modified structure to the bfa_custom_comments.php result because, obviously, I changed the design. Would you perhaps have a suggestion on how to apply some logic similar to what you proposed in that area so as to either ‘show additional fields if /?p=13’ or ‘skip if any other page’ ?

      I know this is likely simple. I also know it’s outside the scope of your plugin. I’m an engineer, not a programmer, which is probably a big reason why I’ve been able to get this far . . . but then having trouble going any further.

      • #77 by Im a programmer on 13/11/2011 - 9:24 PM

        Since the value of p is visible in a global variable called $_REQUEST you can try the logic I told you with the condition if (isset($_REQUEST[‘p’]) && $_REQUEST[‘p’] == 13) so it will be only hooked if you have the ?p=13
        Let me know if it works 😉

  31. #78 by NeedMoreCustomComField on 15/11/2011 - 4:37 PM

    Hi there,
    Custom comment fields are great value for any WP’ers. Your plugin is actually the only one wich is “seems to work” clearly & simply. This is great job, thank you!
    Just “seems” because I’m using Thematic theme from Temeshaper. It’s working massively with hooks and filters.
    I’ve tried many customcommentfield plugin, failed everytime. But yours seems to be the better way to achieve custom tricks, really.

    So:
    When I use your plugin, new custom field is showing up, but only as text mode, and at the very body’s top, on the top of my header image. Firebug show my head/head is now empty, and every meta in head as gone to the top of body, right after the new custom “not” field…

    To use your plugin accordingly with Thematic (and surely many other non default themes), I think you must provide a hook/filter/function/shortcode (I don’t know, I’m not really dev…) to put on comments.php (or maybe functions.php) for showing new extra field in correct place.

    I don’t know how to do that (but I think it’s not tricky for a dev), but I’m sure that this is the only tip to get CustomComment to work properly (but maybe I’m wrong).

    I’m looking forward your exciting answer!
    (Sorry, cannot provide my temporary url…)

  32. #79 by NeedMoreCustomComField on 15/11/2011 - 4:40 PM

    Hem, sorry, the code has screwed up.
    BTW you can find it here http://themeshaper.com/thematic/
    See ya.

  33. #80 by NeedMoreCustomComField on 15/11/2011 - 5:04 PM

    Really sorry for the tri-posting, but I messed up myself…
    In fact, using the plugin is changing nothing on the comments form (need a hook in comments.php, I think).
    It’s when I use your snippet in functions.php for front-end showing that the custom nofieldbuttext is showing at the top of body.

    Regards…

    • #81 by Im a programmer on 15/11/2011 - 8:26 PM

      Ok
      First of all I removed your code from the comment since it wasn’t really useful in that comment 😉
      Second
      Before I start explaining something let me ask you something
      When you use the plugin the fields which show up in the form are working perfectly?
      Is your problem about the showing data which I explained in other post?
      I will help you as far as I can since I’m just a php lover no WP developer 😉

      • #82 by NeedMoreCustomComField on 15/11/2011 - 9:21 PM

        Yes,
        1- x
        2- In fact there is no new field appearing in the form (but yeahuu, admin plug is working smoothly, with sufficient options and ease to use).
        That’s why I believe some people (many, as well) need a hook/shortcode in comments.php for calling the new fields from the plug.
        2,5- Yes, problem is about showing data when putting $CComment_fields = array_filter(explode(“,”, get_option(‘CComment_fields’))); (…) in functions.php. The “custom notfieldbuttext” is appearing on every top page, even in admin back-end :°-

        Many thanks for your help.

      • #83 by Im a programmer on 15/11/2011 - 11:02 PM

        The hook to show the fields in the form is already done if you look at the beginning of the php file(There are two hooks, one for unregistered users and one for logged in users) About showing data I have no experience with other templates but I try to help you Can you tell what “custom notfieldbuttext” is? I’ve never heard of it

      • #84 by NeedMoreCustomComField on 16/11/2011 - 12:51 PM

        Dear IAP, it’s working now. I’ve tried various combin, but the right way look to be; instead of ‘add_action’, change to ‘do_action’, like this: .
        Fields are up now, and fields content is recorded and visible in admin side.

        But, still a problem with requiered fields: they’re not prompted as required.

        “Notfieldbuttext” is a custom for saying: ” hey buddy, you’re showing me a text line, not a label with his field”. But in fact this is normal, as we talk about showing info, not filling info. Sorry for mess up.
        So this is another problem: showing info is printed on the very top of body and screwing my head meta.. It would be fine if we could fix it, but I can live without this and have my play around for showing the data. I didn’t expect thousand of comments, as it is only for getting few but crucials testimonials.

        So now the priority for me is to have requierment enabled for requiered fields.
        And then I could css play to arrange my fields.

      • #85 by NeedMoreCustomComField on 16/11/2011 - 12:53 PM

        … like this: do_action(‘comment_form_after_fields’, ‘CComment_form’);

  34. #86 by Jos on 15/11/2011 - 8:34 PM

    How do I unsubscribe from this comments…..?

    • #87 by Im a programmer on 15/11/2011 - 8:46 PM

      Search for a link in the sent emails There must be a link which says unsubscribe

  35. #88 by Jos on 15/11/2011 - 8:50 PM

    Jee, I did that but couldn’t find it. Now I look again and I don’t understand how I could miss it the first time….thanks

  36. #89 by NeedMoreCustomComField on 16/11/2011 - 6:03 PM

    Hi again,
    Another subject (but the question above still opened 😀 ) …
    I’m working on saving band with and dadada…
    I found that your nice plugin is loading in front-end, the javascript only used in admin side.
    To avoid this, I’ve put this on my functions.php:

    // Loading CComment.js only if admin logged
    if ( !is_admin() ) {
    add_action( ‘wp_print_scripts’, ‘my_deregister_javascript’, 100 );
    }
    function my_deregister_javascript() {
    wp_deregister_script( ‘CComment-ajax-request’ );
    }

    It is working nice for me, but the correct solution must come hard coded in the plugin, I presum.
    I found this but I don’t know…
    http://devpress.com/blog/how-to-load-javascript-in-the-wordpress-admin/

    Cheers.

    • #90 by Im a programmer on 16/11/2011 - 11:15 PM

      Hi again Sorry I can’t answer you right now since today I had a horrible headache even thought I’m better but I can’t think about anything! I will answer you as soon as I get better

      • #91 by NeedMoreCustomComField on 17/11/2011 - 9:04 AM

        Moein, if you send me a recent photo of you, I can make your head & body much lighter, as I’m magnetizer energy healer (not sure about translation…). Give it a try 😉

      • #92 by Im a programmer on 17/11/2011 - 1:14 PM

        Thanks for your concern ^^ Right now I’m fine and attending university class 😀

    • #93 by Sasha on 02/12/2011 - 12:13 AM

      Hi, NeedMoreCustomComField

      I am trying to create a Senior Care Community at houseofheart.com.

      and

      I was wondering if you could help me. I have very little programming experience and I am trying to add Titles to my comments. I am using a theme called Platform. So while this Plugin (which I was looking for such a long time) adds the field to my comments, the comment is not displayed with that field after it’s posted. I was wondering if you could give me some advice, because it seems like you know way over my head.

      I know I am supposed to add function to my theme functions.php, but there was no original callback function, which I could replace. So I don’t know what to do with this piece of code:

      The function

      $CComment_fields = array_filter(explode(“,”, get_option(‘CComment_fields’)));
      foreach ($CComment_fields as $CComment_field){
      $CComment_field_arr = explode(“;CuCo;”, get_option($CComment_field));
      $CComment_field_desc = $CComment_field_arr[0];
      $CComment_field_active = $CComment_field_arr[1];
      $Comment_field_value = get_comment_meta(get_comment_ID(), “CuCo_”.$CComment_field);
      if ($CComment_field_active == 1)
      echo $CComment_field_desc.’ : ‘. (($Comment_field_value[0] != ”) ? $Comment_field_value[0] : ‘-‘);
      }

      It seems like it’s missing a heading: something like add_filter or add_action (something like this)

  37. #94 by Oliver Lippert on 24/01/2012 - 3:18 PM

    Hey There,
    your Pluin didn’t work on one of the sites I do technincal support for…

    What may can be the problem?

  38. #95 by webdessro on 29/01/2012 - 10:18 PM

    I installed the plugin in the latest version of wordpress. The custom textbox apears after i set them from wp-admin, but they does not record any information. after submiting the coment the only data recorded is name, email, website and comment( the default). How cam i make this plugin work?????

    • #96 by Im a programmer on 29/01/2012 - 10:34 PM

      I guess you haven’t read about the plugin
      This plugin is not for showing data and all the extra data are only visible to the admin(If you go to comments page in wp-admin in front of the name of comment author you can see an info link)
      If you want to show those data read this post

      Showing custom comments saved values to visitors

      • #97 by webdessro on 29/01/2012 - 10:43 PM

        I understand. thanks

  39. #98 by Hoe word ik rijk methode on 17/08/2012 - 8:00 PM

    Thanks for the Plugin!

  40. #99 by Hoe word ik rijk on 18/09/2012 - 1:25 PM

    Great! I love this plugin.

    Hoe word ik rijk

  1. WordPress Plugins We Use Ourselves | Unknown Ink Design Blog
  2. WordPress Plugins We Use Ourselves @ Unknown Ink Design
  3. WordPress Plugins We Use Ourselves : Unknown Ink Design

Leave a reply to Anders Frey Birkmose Cancel reply