Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Comments, trackbacks & pings (http://forum.bytesforall.com/forumdisplay.php?f=19)
-   -   How do I allow readers to search and go to specific comments? (http://forum.bytesforall.com/showthread.php?t=2158)

rewardshelp Jun 23, 2009 07:08 PM

How do I allow readers to search and go to specific comments?
 
Currently, when visitors go to our site and search for a keyword contained within a comment, the search result typically return the post that contains the comment, but not the comment itself. We want our visitors to be able to go to the actual comment and share the comment with their others, perhaps via a link.

We've noticed that when we click on the post date time stamp it shows the link to the comment in the URL bar on my computer. How can we either get this information to appear in the comment for users to share, or how do we get the search tool to drill down to actual comment, or have you heard of anything like a sociable for comments.

If we can be pointed to something with the functionality that also works on Atahualpa 3 site, we'll gladly donate $50 to this person.

It seems like this should be a fairly easy fix. This functionality is available for posts, but we can't find it for comments.

Flynn Jun 24, 2009 09:09 AM

To display the comment URL, edit functions/bfa_custom_comments.php and replace:

<div class="comment-meta commentmetadata">
<a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>">
<?php printf(__('%1$s at %2$s','atahualpa'), get_comment_date(__('F jS, Y','atahualpa')), get_comment_time()) ?></a>
<?php echo comment_reply_link(array('before' => '<span class="comment-reply-link">', 'after' => '</span>', 'reply_text' => $bfa_ata['comment_reply_link_text'], 'depth' => $depth, 'max_depth' => $args['max_depth'] )); ?>
<?php edit_comment_link($bfa_ata['comment_edit_link_text'],'<span class="comment-edit-link">','</span>') ?>
</div>
<?php comment_text() ?>
</div>



with:

<div class="comment-meta commentmetadata">
<a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>">
<?php printf(__('%1$s at %2$s','atahualpa'), get_comment_date(__('F jS, Y','atahualpa')), get_comment_time()) ?></a>
<?php echo comment_reply_link(array('before' => '<span class="comment-reply-link">', 'after' => '</span>', 'reply_text' => $bfa_ata['comment_reply_link_text'], 'depth' => $depth, 'max_depth' => $args['max_depth'] )); ?>
<?php edit_comment_link($bfa_ata['comment_edit_link_text'],'<span class="comment-edit-link">','</span>') ?>
</div><?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>
<?php comment_text() ?>
</div>

rewardshelp Jun 29, 2009 06:16 PM

Thank you Flynn!

We're sorry we didn't get around to thanking you sooner - we promised $50... so we'll make that donation via paypal now.

If you have any ideas, we're still wondering how do we get the search tool to drill down to an actual comment? We saw a press release at Wordpress that they have added this functionality to their site... we're wondering if you know if or when it will be possible to make it available for individually hosted wordpress sites... OR, if you know of any good search plugins that will do what we are describing.

Thank you!!!:):)

Flynn Jun 29, 2009 08:31 PM

The search is an area in WP that could (and probably will, I guess) be improved. I think http://wordpress.org/extend/plugins/search-everything/ can search in comments

More search plugins: http://wordpress.org/extend/plugins/search.php?q=search


All times are GMT -6. The time now is 09:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.