Add a link to the Comments Plug-in

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
codetwists
Regular
Posts: 44
Joined: Sat Dec 20, 2008 5:46 pm

Add a link to the Comments Plug-in

Post by codetwists »

I'm using the Comments Plug-in. I'd like to add a link for a new coment to the current entry. How can I do that?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Add a link to the Comments Plug-in

Post by garvinhicking »

Hi!

You mean you want to fetch the most recent blog article, and then link to that?

You must then eihter create your own plugin or modify the existing one, to use serendipity_fetchEntry() / serendipity_fetchEntries() to get the most recent entry, and then print out it's links in the generate_content() method of that plugin.

Best regards,Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
codetwists
Regular
Posts: 44
Joined: Sat Dec 20, 2008 5:46 pm

Re: Add a link to the Comments Plug-in

Post by codetwists »

garvinhicking wrote:You mean you want to fetch the most recent blog article, and then link to that?
No, I just want a link to the same comment entry screen that a user gets when he clicks on the comment link in the bottom of an entry window.

Thanks,

Myron
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Add a link to the Comments Plug-in

Post by garvinhicking »

Hi!

But if a user is already there, he must only scroll down to enter a new comment?! Why clutter the sidebar plugin with yet another link, if it actually refers to the same page? I'm not fully sure I understand what you want to do yet. :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Regular comments are not a plugin. The sidebar comments ARE generated by a plugin. Is that what you are referring to?

Can you provide a URL to your site and verbally describe exactly where you want that?
=Don=
codetwists
Regular
Posts: 44
Joined: Sat Dec 20, 2008 5:46 pm

Add a link to the Comments Plug-in

Post by codetwists »

Don Chambers wrote:Can you provide a URL to your site and verbally describe exactly where you want that?
www.codetwists.com/Blog

In the right sidebar I have the Comments Plug-in. Right now there are no comments. I'd like to have a link in it to allow the reader to access the comment entry window.

Thanks,

Myron
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Thanks for the link.

Comments are entry-specific, not "site-wide". If you want people to make non-entry-specific remarks, you might look into the shoutbox plugin.
=Don=
Post Reply