PDA

View Full Version : date, commentlink etc. in image notes


marc
12-29-2006, 08:49 AM
Hi

<IMAGE_NOTES> gives you a paragraph with the notes for your image. Nice. I want the post date to be displayed in this note (as a start for the text) like "29.12.2006: blablablabla" and at the end some sort of "post a comment" including a link. All that should go inside the paragraph tags. With <images_notes> thats not possible. But <image_notes_clean> just outputs you the text. No html. So that would be the solution, since I can manually add the html tags etc. in my template. BUT when using image_notes_clean every piece of html gets wiped out, including tags I used when writing the note (like links, text-formating and so on). And thats bad.

What would be the appropriate solution to make something like

<p>date: text with html</p>?

DikkieBurger
12-29-2006, 10:18 AM
Hi

<IMAGE_NOTES> gives you a paragraph with the notes for your image. Nice. I want the post date to be displayed in this note (as a start for the text) like "29.12.2006: blablablabla" and at the end some sort of "post a comment" including a link. All that should go inside the paragraph tags. With <images_notes> thats not possible. But <image_notes_clean> just outputs you the text. No html. So that would be the solution, since I can manually add the html tags etc. in my template. BUT when using image_notes_clean every piece of html gets wiped out, including tags I used when writing the note (like links, text-formating and so on). And thats bad.

What would be the appropriate solution to make something like

<p>date: text with html</p>?

For the date you can use <IMAGE_DATETIME> (dateformat which you choose in Admin-Panel/OPTIONS/DATE FORMAT)
For the comments you can use the standard <COMMENT_POPUP> tag.

BTW all this info can be found in the PP WIKI (http://wiki.pixelpost.org/)

marc
12-29-2006, 10:43 AM
well I know that. Thats not the problem. I want the date and comment-link to be displayed inside (inline) the image_notes <p> tags. Since image_notes parses text AND <p>-tags the only standard way I see would be to use image_notes_clean so you can put the <p> tags by yourself in the template and add whatever you want inside the <p> tags. But then I also loose any html tags I put manually in the image description text. And exactly that last point is my problem since I don't want to lose those text formating tags.

Dkozikowski
12-29-2006, 04:10 PM
I'm not sure of the exact problem here but if your trying to use < and > for html and they are getting stripped out try this though I'm not sure if it will work!

&lt; = <

&gt; = >

Example: &lt;IMAGE_DATETIME&gt;

marc
01-01-2007, 06:36 PM
thanks but thats not the problem ;)

austriaka
01-02-2007, 10:28 AM
Because it is Christmas I wrote an addon for you.
Just save it into your addons folder and use "<MARCS_IMAGE_NOTES>" in your template.

Marcs Image Notes (http://www.uhlig.at/tmp/marcs_image_notes.zip) (zip)

LG
KArin

marc
01-02-2007, 07:50 PM
I'm in Prague at the moment so I can't try it out. but thanks a lot! very kind of you!