Adding a comment link to the top of every post
Just use the comments_link() template tag, anywhere in your template (but within the Loop) that you need to display a link to the post comments.
Just use the comments_link() template tag, anywhere in your template (but within the Loop) that you need to display a link to the post comments.
The article you’re using is quite old, from ~2009. There are much better cleaner ways of doing commenting. As a guide, follow this: http://ottopress.com/2008/wordpress-2-7-comments-enhancements/ This is the definitive guide to implementing Comments post v2.7, and Otto is widely respected in the community. Firstly, your comments code uses have_posts() to check if there are comments, instead … Read more
The easiest way to achieve this is to use jQuery on the client side to handle this validation. There are a number of ways you can achieve this, though one of the easiest would be to use a ready made solution of which one can be found HERE You’ll need to download the plugin file … Read more
You should really pick one or the other. They are both designed to replace your existing commenting system and both take over the commenting functionality. Discuss does it by inserting javascript and jetpack uses an iframe.
Inline docs are the place to track changes. There are better tools for that: revision control. Use Git, Mercurial or – if you want to stay old-school 😉 – SVN. Each time you change something, you make a commit: A short note explaining the difference between the last and the new version (example). Usually, when … Read more
To replace nofollow with nofollow external _blank Put this code in your theme’s functions.php file to replace text as required. function wpse_60668_relnofollow($text) { $return = str_replace(‘nofollow’, ‘external nofollow _blank’, $text); return $return; } add_filter(‘get_comment_author_link’, ‘wpse_60668_relnofollow’); //this’ll change author link add_filter(‘comment_text’, ‘wpse_60668_relnofollow’); //This’ll change the content
Taking a quick look at comments.php, I can say – using custom comment type is so far legal, however I didn’t played with this yet but you can, and post back with your results if you found any illegal stuff in this. I found on codex the get_comments() function is accepting comment type as argument, … Read more
Short of building it yourself, you don’t. WordPress doesn’t have a way to get a nested array of comments like that. Instead, it gets all the comments to be displayed, then uses a class called a “walker” to display them. The Walker_Comment class is built on top of the generic Walker class. The Walker class … Read more
If you want to redirect the user to somewhere else after they submit a comment, then all you have to do is include a hidden input in your comment form with the name of “redirect_to” and the value of the URL you want to redirect them to. The lines of code you posted show that … Read more
Just found the solution: you gotta disable Disqus 2012 features on your website (pre-moderation haven’t been implemented on Disqus 2012 yet, despite being almost 2013 already). Here’s the article where i found the solution: http://help.disqus.com/customer/portal/articles/708758-how-to-enable-settings-missing-from-disqus-2012