Need help – UserPro Forums https://forum.userproplugin.com/forums/topic/need-help/feed/ Sun, 19 May 2024 10:54:31 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/need-help/#post-31004 <![CDATA[Need help]]> https://forum.userproplugin.com/forums/topic/need-help/#post-31004 Sat, 05 Apr 2014 15:47:02 +0000 Ananya Zaman How can i integrate user pro with sahifa theme comments?

and how can i add memberships in registration?

]]>
https://forum.userproplugin.com/forums/topic/need-help/#post-31063 <![CDATA[Reply To: Need help]]> https://forum.userproplugin.com/forums/topic/need-help/#post-31063 Sun, 06 Apr 2014 09:14:26 +0000 admin Please follow the integration tutorial for comments. 🙂

Thanks!

]]>
https://forum.userproplugin.com/forums/topic/need-help/#post-31120 <![CDATA[Reply To: Need help]]> https://forum.userproplugin.com/forums/topic/need-help/#post-31120 Sun, 06 Apr 2014 22:53:48 +0000 Ananya Zaman here is my comment php, im not sure what to change, they don’t look that familiar with integration guide.

<div id=”comments”>
<?php if ( post_password_required() ) : ?>
<p class=”nopassword”><?php _e( ‘This post is password protected. Enter the password to view any comments.’, ‘tie’ ); ?></p>
</div><!– #comments –>
<?php
return;
endif;
?>

<?php if ( have_comments() ) : ?>
<h3 id=”comments-title”>
<?php comments_number(__(‘No comments’,’tie’), __(‘One comment’,’tie’), ‘% ‘.__(‘comments’,’tie’) );?>
</h3>

<?php if ( get_comment_pages_count() > 1 && get_option( ‘page_comments’ ) ) : ?>
<div class=”navigation”>
<div class=”nav-previous”><?php previous_comments_link( __( ‘<span class=”meta-nav”>←</span> Older Comments’, ‘tie’ ) ); ?></div>
<div class=”nav-next”><?php next_comments_link( __( ‘Newer Comments <span class=”meta-nav”>→</span>’, ‘tie’ ) ); ?></div>
</div> <!– .navigation –>
<?php endif; ?>
<?php $comments_by_type = &separate_comments($comments); ?>
<?php if ( !empty($comments_by_type[‘comment’]) ) : ?>

    <?php wp_list_comments(‘type=comment&callback=custom_comments’); ?>

<?php endif; ?>
<?php $comment_counter = 0 ; ?>
<?php if ( !empty($comments_by_type[‘pings’]) ) : ?>
<div id=”pings” class=”commentlist”>

    <?php wp_list_comments(‘type=pings&trackback&pingback&callback=custom_pings’); ?>

</div>
<?php endif; ?>
<?php else :
if ( ! comments_open() ) :
?>
<?php __( ‘Comments are closed.’, ‘tie’ ); ?>
<?php endif; ?>
<?php endif; ?>

<?php

$commenter = wp_get_current_commenter();
$req = get_option( ‘require_name_email’ );
$aria_req = ( $req ? ” aria-required=’true'” : ” );

$fields = array(
‘author’ => ‘<p class=”comment-form-author”>’ . ‘<label for=”author”>’ . __( ‘Name’, ‘tie’ ) . ‘</label> ‘ . ( $req ? ‘<span class=”required”>*</span>’ : ” ) .
‘<input id=”author” name=”author” type=”text” value=”‘ . esc_attr( $commenter[‘comment_author’] ) . ‘” size=”30″‘ . $aria_req . ‘ /></p>’,
’email’ => ‘<p class=”comment-form-email”><label for=”email”>’ . __( ‘Email’, ‘tie’ ) . ‘</label> ‘ . ( $req ? ‘<span class=”required”>*</span>’ : ” ) .
‘<input id=”email” name=”email” type=”text” value=”‘ . esc_attr( $commenter[‘comment_author_email’] ) . ‘” size=”30″‘ . $aria_req . ‘ /></p>’,
‘url’ => ‘<p class=”comment-form-url”><label for=”url”>’ . __( ‘Website’, ‘tie’ ) . ‘</label>’ .
‘<input id=”url” name=”url” type=”text” value=”‘ . esc_attr( $commenter[‘comment_author_url’] ) . ‘” size=”30″ /></p>’,
);
$required_text = __(‘ Required fields are marked’, ‘tie’).’ <span class=”required”>*</span>’;
?>
<?php comment_form( array(
‘fields’ => apply_filters( ‘comment_form_default_fields’, $fields ),
‘must_log_in’ => ‘<p class=”must-log-in”>’ . sprintf( __( ‘You must be logged in to post a comment.’ , ‘tie’ ), wp_login_url( apply_filters( ‘the_permalink’, get_permalink( ) ) ) ) . ‘</p>’,
‘logged_in_as’ => ‘<p class=”logged-in-as”>’ . sprintf( __( ‘Logged in as %2$s. Log out?‘ , ‘tie’ ), admin_url( ‘profile.php’ ), $user_identity, wp_logout_url( apply_filters( ‘the_permalink’, get_permalink( ) ) ) ) . ‘</p>’,
‘comment_notes_before’ => ‘<p class=”comment-notes”>’ . __( ‘Your email address will not be published.’ , ‘tie’ ) . ( $req ? $required_text : ” ) . ‘</p>’,
‘title_reply’ => __( ‘Leave a Reply’ , ‘tie’ ),
‘title_reply_to’ => __( ‘Leave a Reply to %s’ , ‘tie’ ),
‘cancel_reply_link’ => __( ‘Cancel reply’ , ‘tie’ ),
‘label_submit’ => __( ‘Post Comment’ , ‘tie’ )
)); ?>

</div><!– #comments –>

]]>
https://forum.userproplugin.com/forums/topic/need-help/#post-31273 <![CDATA[Reply To: Need help]]> https://forum.userproplugin.com/forums/topic/need-help/#post-31273 Mon, 07 Apr 2014 20:49:51 +0000 Ananya Zaman anyone please?

]]>
https://forum.userproplugin.com/forums/topic/need-help/#post-31467 <![CDATA[Reply To: Need help]]> https://forum.userproplugin.com/forums/topic/need-help/#post-31467 Wed, 09 Apr 2014 08:26:59 +0000 admin Email me the theme 🙂 Better than doing this in comments.

]]>
https://forum.userproplugin.com/forums/topic/need-help/#post-31561 <![CDATA[Reply To: Need help]]> https://forum.userproplugin.com/forums/topic/need-help/#post-31561 Wed, 09 Apr 2014 18:32:43 +0000 Ananya Zaman https://forum.userproplugin.com/forums/topic/need-help/#post-32207 <![CDATA[Reply To: Need help]]> https://forum.userproplugin.com/forums/topic/need-help/#post-32207 Mon, 14 Apr 2014 20:34:08 +0000 Ananya Zaman still waiting to hear from you 🙂

]]>
https://forum.userproplugin.com/forums/topic/need-help/#post-32284 <![CDATA[Reply To: Need help]]> https://forum.userproplugin.com/forums/topic/need-help/#post-32284 Tue, 15 Apr 2014 11:23:01 +0000 admin Please resend the whole theme, not just a single file. thanks

]]>
https://forum.userproplugin.com/forums/topic/need-help/#post-33275 <![CDATA[Reply To: Need help]]> https://forum.userproplugin.com/forums/topic/need-help/#post-33275 Wed, 23 Apr 2014 21:57:17 +0000 Nexnivis @Ananya @Ahmed did you manage integration in Sahifa comments ? I’m interested 😀

]]>
https://forum.userproplugin.com/forums/topic/need-help/#post-33308 <![CDATA[Reply To: Need help]]> https://forum.userproplugin.com/forums/topic/need-help/#post-33308 Thu, 24 Apr 2014 09:23:21 +0000 admin Not yet, never had a chance to do it yet. 🙁

You can do it if you replace commenter username with : $userpro->permalink( $comment->user_id ) for link and userpro_profile_data(‘display_name’, $comment->user_id) for display name. 🙂

and userpro_show_badges($comment->user_id, $inline=true) for badges 🙂

]]>