Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Comments, trackbacks & pings »

How do I allow readers to search and go to specific comments?


  #1  
Old Jun 23, 2009, 08:08 PM
rewardshelp
 
2 posts · Jun 2009
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.
  #2  
Old Jun 24, 2009, 10:09 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
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>
  #3  
Old Jun 29, 2009, 07:16 PM
rewardshelp
 
2 posts · Jun 2009
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!!!
  #4  
Old Jun 29, 2009, 09:31 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
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

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing padding for a specific page Eric Bobrow Header configuration & styling 15 Nov 20, 2009 06:23 AM
Specific image rotation on page? blueprairie Header configuration & styling 3 Aug 8, 2009 04:12 PM
Page Specific Logos drewpasmith Header configuration & styling 15 May 12, 2009 07:45 AM
Including code under a button for readers to snag pltrace Sidebars & Widgets 1 Mar 30, 2009 08:47 PM
Making one specific widget different than the others. Nourdmrolnmt1 Sidebars & Widgets 0 Mar 26, 2009 09:51 PM


All times are GMT -6. The time now is 03:28 PM.


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