Pixelpost Forum

Pixelpost Forum (http://www.pixelpost.org/forum/index.php)
-   Addons (http://www.pixelpost.org/forum/forumdisplay.php?f=13)
-   -   Addon: Reply To Comments (http://www.pixelpost.org/forum/showthread.php?t=7723)

austriaka 01-17-2008 08:07 AM

Addon: Reply To Comments
 
This addon lets you and your visitors reply to comments.
  • Comments are displayed in a threaded view.
  • Visitors get a notification email if there is an answer to one of their comments.
  • Spam Check works with Akismet but not with Defensio, sorry
NEW TAGS (for use in image_template.html and comment_template.html):
<REPLYABLE_COMMENTS> - List of Comments in threaded view. Use it instead of <IMAGE_COMMENTS>.
<THREAD_FIELD> - Hidden field with the threading ids and a notification if replying or not. Put it between <form> and </form> tags into the comment form.
<IMAGE_OTHERS_COMMENTS_NUMBER> - Use instead of <IMAGE_COMMENTS_NUMBER> if you don't want to include your own comments into the number of comments shown in image page. Use your Admin email in Comments form to be identified.

SETTINGS
Open the file commentication.php and set the following variables:
$marked colour for highlighting the comment to answer
$count_my_comments 'yes' or 'no', set this to 'no' if you want to exclude your own comments from the number of comments
$reply_wording the phrase or image for the reply-link
$alt_reply_wording the phrase/image for the reply-link in your alternative language
$marked_wording the phrase for showing that this comment is a reply
$alt_marked_wording translation of the above to your alt language (if used)
$comment_wording the phrase for showing that this comment is no reply
$alt_comment_wording translation of the above to your alt language (if used)

DATABASE CHANGES
A new field 'cthread_id' is added to the pixelpost_comments table. This is keeping the line of replied comments.

INSTALLATION
Unpack the zip and copy the whole _commentication folder into your Addon folder.
Edit the file commentication.php
Go to your Addons page in Admin panel and turn both Addon parts on (display and front side part). The new database field will be created.
That's it!

Tipp for Users of Horizon-Template (or any other templates which shows the comments by JavaScript)
Add this tiny JavaScript to make it work perfect with horizon template:

Code:

<script language="javascript" type="text/javascript">
if(window.location.href.match(/#commentform/)) {
  new Effect.toggle('image-info','BLIND');
}
</script>

Add this at the very end of your image_template.html (right before </body>).

Maybe you have to change the Effect to the one you are using, this scriopt is for the unchanged horizon template (Effect.toggle BLIND)

DOWNLOAD
http://www.pixelpost.org/extend/addo...ents/download/

http://blog.uhlig.at/scrs1.gif
See it working here in my blog:
http://blog.uhlig.at/index.php?popup=comment#comments

You like this addon?
https://www.paypal.com/en_US/i/btn/x-click-but04.gif

Have fun with it and keep on commenting :-)

iHamad 01-17-2008 08:51 AM

not working
i think it has something to do with my template ..
supaclean ..

i tried it on horizon it worked ..
but needed some CSS adjustments ..
im trying to make it work with my template ..
cant seem to figure out the problem ..

reflejandome 01-17-2008 08:54 AM

nice addon, but not have multilanguage support

austriaka 01-17-2008 08:56 AM

cryfreeman, you can change the phrase "antworten" by editing the file commentication.php
:-)

austriaka 01-17-2008 09:04 AM

iHamad, I checked your template file, the <REPLYABLE_COMMENTS> tag is in place but the <THREAD_FIELD> tag is missing.
This one is very important, it brings the whole reply-line into the database

And yes, of course the css has to be adjusted.

iHamad 01-17-2008 09:15 AM

the comments disappear when i add the new tag <REPLYABLE_COMMENTS>
in the currernt supaclean template i am using ..

but in horizon template its working fine ..
i think there is something wrong with template i am using ..

austriaka 01-17-2008 09:18 AM

please check the css for the comments.
If you look into the source code of your page, the comment is here, it is just invisible.
Did you set something to "invisible" or "hidden"?

austriaka 01-17-2008 09:29 AM

iHamad, I found the issue.
I have put the <div id="comments"> into the tag <REPLYABLE_COMMENTS> and this is obviously wrong to make it work in the same manner as <IMAGE_COMMENTS>.
I uploaded a corrected package of the Reply-To-Comments Addon. Please download it and replace the commentication.php file, then it should work without changing your CSS

iHamad 01-17-2008 09:54 AM

Working perfectly now :)
thanks a million .!!!

austriaka 01-17-2008 09:55 AM

I just tried to leave a reply-comment but it got not published.
Do you have it in moderation?


All times are GMT. The time now is 12:24 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.