Sunday, 26 May 2013

anyuser can see comment without log in?

anyuser can see comment without log in?

i setting it anyone can not give comment without logged in, but i want anyone can see comment without logged in and with logged in.please go this site http://www.techtunes.com.bd/reports/tune-id/210495 please see in below comment sector ... you can see comment without logged in but if you go my site http://www.projuktichowa.com/archives/1287 you can not see comment without logged in . but i want without logged in you can see comment.. how i can do it? my comment php code show beleow .
            <?php else : ?>

                <?php if ( $user_ID ) : ?>

                    <p><?php _e("সাথে আছে", "solostream"); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a> | <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e("বিদায়", "solostream"); ?>"><?php _e("বিদায়", "solostream"); ?></a></p>

                <?php else : ?>

                    <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="40" tabindex="1" />
                    <label for="author"><?php _e("নাম", "solostream"); ?> <?php if ($req) echo __("( প্রয়োজন )", "solostream"); ?></label></p>

                    <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="40" tabindex="2" />
                    <label for="email">ইমেইল <?php if ($req) echo __("( প্রয়োজন;প্রকাশ করা হবে না)", "solostream"); ?></label></p>

                    <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="40" tabindex="3" />
                    <label for="url"><?php _e("ওয়েবসাইট", "solostream"); ?></label></p>

                <?php endif; ?>

                <!--<p><small><strong><?php _e("XHTML", "solostream"); ?>:</strong> <?php _e("আপনি এই ট্যাগসমূহ ব্যবহার করতে পারবেন", "solostream"); ?>: <code><?php echo allowed_tags(); ?></code></small></p>-->

                <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>

                <p class="button-submit"><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e("মন্তব্য দিন", "solostream"); ?>" />
                <?php comment_id_fields(); ?>
                </p>

                <?php do_action('comment_form', $post->ID); ?>

            <?php endif; // If registration required and not logged in ?>

        </form>

    </div>

<?php endif; // if you delete this the sky will fall on your head ?>

No comments:

Post a Comment