Get Comment Author ID on the fly while posting
Ah! It was so simple 😛 Just using WP built in function get_current_user_id( ) and all done. Thanks a lot.
Ah! It was so simple 😛 Just using WP built in function get_current_user_id( ) and all done. Thanks a lot.
To fix the numbering, you’ll have to modify the first code to reset numbering via CSS. This way (untested, but you’ll catch the idea 😉 ). <?php if ( have_comments() ) : ?> <h3 class=”com”><span class=”com-titlu”><?php comments_number(‘Niciun comentariu’, ‘Un comentariu’, ‘% comentarii’ );?></span> la: <?php the_title(); ?></h3> <?php $number = intval(get_query_var( ‘cpage’ )) * intval(get_query_var( … Read more
You can use the genesis_post_info and genesis_post_meta filters in your child theme rather than modify the parent theme frameworks files which will be lost when you update Genesis. Remove comments link from post info add_filter( ‘genesis_post_info’, ‘remove_post_info_comments_link’ ); function remove_post_info_comments_link($post_info) { $post_info = ‘[post_date] by [post_author_posts_link] [post_edit]’; return $post_info; } Add comments link to post … Read more
The problem is that you are echoing inside a string concatenation. Think of echo as something that will always begin on a new line. In most cases it’s wisest to perform any calculations or string concatenations and store the result in a variable, and then call echo $var; on the following line. In this particular … Read more
Maybe you have forgotten to wrap the comments_popup_link() with if ( comments_open() ) if ( comments_open() ) : comments_popup_link( […] ); endif;
In wp-admin go to wp-admin/options-discussion.php and change the setting:
Firstly, in the for there is missing a ‘$’. It should read: for ( $i = 1; $i <= $im; $i++ ). Secondly, in order to use the page link(s), you need to call the function wp_link_pages(). $im = stripslashes( get_option( ‘tm_alim’ ) ); for ( $i = 1; $i <= $im; $i++ ) echo … Read more
This function replaces the comment author’s link with the comment author’s profile page, if the comment author is a registered user. Otherwise, the standard WordPress comment author link is displayed. This function is not mine and has been found googling. function graphene_comment_author_profile_link(){ /* Get the comment author information */ global $comment; $comment_ID = $comment->user_id; $author … Read more
If understood correctly, you are referring to the Quick Edit Reply action. There is no hook (a direct one at least) to hide that. It has to be CSS or jQuery. Like: add_action( ‘admin_head-edit-comments.php’, ‘hide_quick_reply_wpse_92435’ ); function hide_quick_reply_wpse_92435() { echo “<style>#qt_replycontent_toolbar {display:none}</style>”; }
You’ll be able to moderate comments. Here’s the relevant quote from the doc‘s Moderation Tools section: Doing this enables a moderator interface on Facebook where comments from all plugins administered by your app id can be easily moderated together. I personally never used the moderation tool, but it is available if you need it, which … Read more