Location field in Comments

Hi, is it possible that you could add a Location field in the comments in your next release, it would be really nice to see where visitors are from and make it more personal.

Many thanks.

Comments

  • There will be a custom data field available for comments in the next release. As well, there will be a filter attached to comment posting so that you can create a filter plugin to process a comment posting. That should let you add whatever you wish to the comment handling.
  • boo Member
    ok great!

    Thankyou
  • boo Member
    Hi, ok I've installed 1.2.4 on my local machine can you tell me the variable name for the comments custom field.

    Many thanks.
  • the field in the DB is `custom_data`
  • boo Member
    Hi, ok I get undefined error.

    Undefined index: custom_data in /var/www/web1/gallery/themes/lis/image.php

    ---------

    <input type="text" id="custom_data" name="custom_data" size="20" value="<?php echo $stored['custom_data'];?>" class="inputbox" />

    Thanks.
  • The `$stored` array (actually, the result of the `getCommentStored()` function)saves data from a comment posting. The standard processing of comments does not use the custom data, so it does not preserve that field.

    The field will be present in the array `$_zp_current_comment` array which is set by the `next_comment()` loop. However, you will have had to create the comment filter as above to process and save the data in this field.
  • boo Member
    Hi, ok I am not a programmer, can you please give me an example of the code.

    Thanks.
  • boo Member
    Hi, ok I have found 2 bugs in your latest version but I'm not going to tell you what they are until you give me the code for the custom field.

    Give me the code!
  • Fat chance. Go use Gallery if you wish to have such an attitude.
  • boo Member
    Hi, I posted my last comment with a large degree of humor, it was supposed to make you laugh....
  • acrylian Administrator, Developer
    Well, then you probably better should have used some emoticons as that was really missunderstandable. I was about to answer in a similar way when sbillard was faster.
  • You think that it is a `joke` to make hostige references? Perhaps you are not of a Western culture. Here we do not think that funny.
  • acrylian Administrator, Developer
    Let's take this issue here too serious now. A little :-) here and there woud have made it sound much differently. It is common that written texts in emails or forums is easily understood completely differently than intended. Of course, boo, you should have known that...
  • boo Member
    Hi, ok I apologise for not making it more understandable, this is something I need to work on, I do suffer with mental health issues and what seems clear to me at the time in my mind is not always conveyed in text well.

    I had also consumed a fair amount of vodka and thought I was being quite witty at the time.

    Not sure what you mean about hostige references tho ?
Sign In or Register to comment.