ZenphotoCMS Forum
Location field in Comments - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Location field in Comments (/thread-4889.html)



Location field in Comments - boo - 2009-03-22

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.




Location field in Comments - sbillard - 2009-03-22

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.




Location field in Comments - boo - 2009-03-22

ok great!

Thankyou




Location field in Comments - boo - 2009-04-01

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.




Location field in Comments - sbillard - 2009-04-01

the field in the DB is custom_data




Location field in Comments - boo - 2009-04-02

Hi, ok I get undefined error.

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





Location field in Comments - sbillard - 2009-04-02

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.




Location field in Comments - boo - 2009-04-03

Hi, ok I am not a programmer, can you please give me an example of the code.

Thanks.




Location field in Comments - boo - 2009-04-06

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!




Location field in Comments - sbillard - 2009-04-06

Fat chance. Go use Gallery if you wish to have such an attitude.




Location field in Comments - boo - 2009-04-07

Hi, I posted my last comment with a large degree of humor, it was supposed to make you laugh....




Location field in Comments - acrylian - 2009-04-07

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.




Location field in Comments - sbillard - 2009-04-07

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.




Location field in Comments - acrylian - 2009-04-07

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...




Location field in Comments - boo - 2009-04-07

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 ?