PDA

View Full Version : Question about popup comments


blabber
07-01-2005, 07:59 AM
Hi All,
I've been using Pixlepost for a long while now, and never had any problems at all.

I'm using 1.3 right now, and I've been looking in the forums for some kind of instruction on changing to popup comments. I can't seem to find anything step by step.

I don't know a lot about PHP, but I want to use the popup comments because I want to strip down my site to the basics. At the moment I've disabled comments altogether.

You can see my site here: http://dofk.retiform.net

Hope you can help out. Many thanks,

B. :D

Connie
07-01-2005, 11:20 AM
you just use different PixelPost Tags in your template....

if you use the popup_comment you will need a popup-comment-template as well

it's a template thing, not a PHP thing!

blabber
07-01-2005, 11:34 AM
Okay Connie,
I appreciate your reply. At my level though, it's still a bit cryptic. I'm not any wiser as to how this can work. Could you please point me in the right direction?
Thanks,
B.

Connie
07-01-2005, 02:31 PM
Blabber,

please! When you unpack PixelPost, you find a folder with templates
one is called "pixelpost-dark" and one is called "pixelpost-light"

when you uploaded and installed Pixelpost, you can choose the template which you want to use (log in as ADMIN, go to OPTIONS, TEMPLATE)

Pixelpost-light adds the comments to the image-template
Pixelpost-dark opens a popup-window when you click "add comment"

when you click "Add comment" in that template the popup-window will load the comment-template.html from the folder /templates/pixelpost-dark

so you have a popup-comment window if you use that template

easy enought? did this explanation help you out?

blabber
07-02-2005, 12:33 AM
Hi Connie,

Many thanks. :D Your explanation cleared things up, and I now have the popup comment feature working.

All the best,

B.

Connie
07-02-2005, 06:25 AM
great! enjoy it and show us interesting photos!

zac
07-06-2005, 05:24 PM
Hey blabber,

If you want to use a different template and have popup comments just delate:
<div id="comments">
<a href='#addcomment' onclick="flip('add-comment'); gotocomments(); return false;">Add Comment</a><p /> 
<IMAGE_COMMENTS>
</div>

<div id="add-comment">
<script type='text/javascript'>
<!--
function gotocomments()
{
document.location = '#addcomment';
}
-->
</script>
<script language='javascript' type='text/javascript'>flip('add-comment');</script>
<a name="addcomment">
<form method='post' action='index.php?x=save_comment' name='commentform' accept-charset='UTF-8'></a>
Message:<br />
<textarea name='message' rows='2' cols='40'></textarea><p /> 
Name:<br />
<input type='text' name='name' class='input' value='<VINFO_NAME>' style='width:100%;'/> <br /><br />
Website URL, if any: <br />
<input type='text' name='url' class='input' value='<VINFO_URL>' style='width:100%;'/> <br /><br />
Email (not visible to others)<br />
<input class='input' type='text' name='email' value='<VINFO_EMAIL>' style='width:100%;'/><br /><br />
<input type='hidden' name='parent_name' value='<IMAGE_NAME>' />
<input type='checkbox' value='set' name='vcookie' /> Save User Info<br /><br />
<input type='submit' value='Add' />
<input type='hidden' name='parent_id' value='<IMAGE_ID>' />
<input type='hidden' name='parent_name' value='<IMAGE_NAME>' />
</form>
</div>

and replace it with:


<COMMENT_POPUP> (<IMAGE_COMMENTS_NUMBER>)

in your image_template.html

and then make sure and put the comment_template.html into the appropriate folder.