Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 01-17-2008, 08:07 AM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
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/


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

You like this addon?


Have fun with it and keep on commenting :-)
__________________
Uh!log Photoblog
My Addons

Last edited by austriaka; 04-14-2008 at 07:05 AM.
Reply With Quote
  #2  
Old 01-17-2008, 08:51 AM
iHamad's Avatar
iHamad Offline
pp regular
 
Join Date: Aug 2007
Posts: 49
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 ..
__________________
my photoblog

Last edited by iHamad; 01-17-2008 at 08:58 AM. Reason: added more detail
Reply With Quote
  #3  
Old 01-17-2008, 08:54 AM
reflejandome Offline
pixelpost guru
 
Join Date: Mar 2005
Posts: 124
Send a message via MSN to reflejandome Send a message via Yahoo to reflejandome
nice addon, but not have multilanguage support
__________________
reflectingmyself photoblog :: reflejandome fotoblog [ http://www.reflejandome.com ]
Reply With Quote
  #4  
Old 01-17-2008, 08:56 AM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
cryfreeman, you can change the phrase "antworten" by editing the file commentication.php
:-)
__________________
Uh!log Photoblog
My Addons
Reply With Quote
  #5  
Old 01-17-2008, 09:04 AM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
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.
__________________
Uh!log Photoblog
My Addons
Reply With Quote
  #6  
Old 01-17-2008, 09:15 AM
iHamad's Avatar
iHamad Offline
pp regular
 
Join Date: Aug 2007
Posts: 49
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 ..
__________________
my photoblog
Reply With Quote
  #7  
Old 01-17-2008, 09:18 AM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
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"?
__________________
Uh!log Photoblog
My Addons
Reply With Quote
  #8  
Old 01-17-2008, 09:29 AM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
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
__________________
Uh!log Photoblog
My Addons
Reply With Quote
  #9  
Old 01-17-2008, 09:54 AM
iHamad's Avatar
iHamad Offline
pp regular
 
Join Date: Aug 2007
Posts: 49
Working perfectly now
thanks a million .!!!
__________________
my photoblog
Reply With Quote
  #10  
Old 01-17-2008, 09:55 AM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
I just tried to leave a reply-comment but it got not published.
Do you have it in moderation?
__________________
Uh!log Photoblog
My Addons
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 04:13 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs