i’m making a website for programming learning, so i’d like to know the answer…
bbp style pack
dashboard>settings>bbp style pack>buttons
Thank you Mr.Robin!!!
I tried using PHP code to put this button in place.
↓Here is the code↓
<!DOCTYPE html>
<html lang="ja">
<head>
<div class="login-box">
<?php if ( is_user_logged_in() ) : ?>
<?php bp_loggedin_user_avatar( 'type=thumb&width=40&height=40' ); ?>
<?php global $user_identity; echo $user_identity; ?>
<a href="<?php echo wp_logout_url( bp_get_root_domain() ) ?>">ログアウト</a>
<?php else : ?>
<a href="https://tokyolyric.com/wp-login-php">ログイン</a>
<?php endif; ?>
</a>
</div>
</head>
but I can’t go to “user’s profile page” from “the user’s image” and “user name”.
please let me know if there is any description to add to the code!!!
This is my website URL
The profile above is from the login-widget, and the profile below is from my php code.
However, it doesn’t not have a link to the user’s profile.
I would like to add a link to the profile screen in the image and username like above one!!!
please teach me…
i’m sorry for the inconvenience
I plan to use CSS to manage the placement.
I achievement this php problems! THX!
great – can you post your solution to help others
Ok! Mr.Robin
This is my code
<!DOCTYPE html><html lang="ja"><head><div class="login-box">
<?php if ( is_user_logged_in() ) : ?>
<a href="<?php echo bp_loggedin_user_domain(); ?>
"><?php bp_loggedin_user_avatar( 'type=thumb&width=40&height=40' ); ?></a><?php global $user_identity; echo $user_identity; ?>
<a href="<?php echo wp_logout_url( bp_get_root_domain() ) ?>">logout</a>
<?php else : ?><a href="http://localhost/wp01/wp-login-php">login</a><?php endif; ?></div></head>