View Full Version : I would like to edit how <IMAGE_NOTES> shows up
Basically I want to use the image notes area for a link to purchase the individual prints...I want to have a link in my top menu (current, prev next, archive..etc)
<IMAGE_NOTES>
and in my images notes will be a simple < a href"" >order this print< /a > tag. But right now if I do that the <IMAGE_NOTES> adds in line spacing and doesn't show up beside my menu items.
where do I change the <IMAGE_NOTES> layout?
er. make sense?
1.5 beta 1
I don't get it. You want a new link next to archive? And the link will be look like this:
<a href="index.php?view=order&showimage=1">order this print</a>
AND
You want to solve this problem with the <IMAGE_NOTES> tag?
Screenshot of admin post: http://www.karmative.com/pphelp.jpg
result: http://www.karmative.com/pphelp1.jpg
What I figured is my easy work around for adding a link for each image to go to the exact purchase print link in my ecomm print site (different url) would be just to add the link into the image notes comment area when I post an image. Then add the <IMAGE_NOTES> tag beside my top menu "archive" link (in image_template.html)
example:
http://karmative.com/photos/index.php?showimage=214
my last menu link is "order prints" which just takes you to the main ecomm page. I want to add a link in the image note/comment area that directly takes you to the image you were looking at
So I add this in the image note area of the admin post new image.
<a href="http://www.karmative.com/prints/product_info.php?cPath=1&products_id=18">order this print</a>
but when I try that, the "order this print" is line spaced down and not showing up beside the last link in the menu
I will leave the example up on my site.
---------image_template menu code
<a href="index.php">Current</a>
<IMAGE_PREVIOUS_LINK>
<IMAGE_NEXT_LINK>
<a href="<SITE_BROWSELINK>">Archive</a>
<a href="index.php?x=about">About</a>
<a href="http://www.photoblogs.org" target=_new>Photoblogs.org</a>
<a href="http://www.karmative.com/prints">Order Prints</a>
<IMAGE_NOTES>
<br>
---------------------
for some reason it adds a <p> tag when <image_notes> is parsed - I guess I need to try and track that down
The parsed code
<a href="index.php">Current</a>
<a href='./index.php?showimage=213'>Previous</a>
<a href='./index.php?showimage=216'>Next</a>
<a href="./index.php?x=browse">Archive</a>
<a href="index.php?x=about">About</a>
<a href="http://www.photoblogs.org" target=_new>Photoblogs.org</a>
<a href="http://www.karmative.com/prints">Order Prints</a>
<p><a href="http://www.karmative.com/prints/product_info.php?cPath=1&products_id=18">Order this print</a></p>
there is a <p> </p> before & after the parsed <IMAGE_NOTES>
Does this have to do with the markdown stuff?
Well I found this fix from aurora and it works like a charm.
I'm using "Cool DHTML Tooltip" (http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm) on my site. I spent about an hour or so messing with it, trying to get it to work. I ended up having to edit index.php.
Find:
$image_notes = markdown(pullout($row['body']));
And change it to:
$image_notes = pullout($row['body']);
Then call <IMAGE_NOTES> in the script. Works like a charm.
Can anyone tell me why I shouldn't have removed that markdown bit from image_notes? I mean, if there's a reason I shouldn't have.
http://forum.pixelpost.org/showthread.php?t=2269&highlight=IMAGE_NOTES
Please remember one thing:
We dont support users who hacked their PP installations!! All problems which can you have from this moment you must solve by your own brain!!
se.nsuo.us
02-13-2006, 03:41 AM
One more case of markdown causing problems... may be it should be moved to an addon....
Dkozikowski
02-13-2006, 07:36 AM
One more case of markdown causing problems... may be it should be moved to an addon....
I agree.
As a dev team we think about this.
Up, I have the same problem !
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.