- 該話題包含 3 個回覆,3 人蔘與,最後由
xingjia10086 更新於 7 年、 7 月前 。
正在查看 4 個帖子:1-4 (共 4 個帖子)
-
作者帖子
-
路徑:/wp-content/plugins/bbpress/includes/common
文件:widgets.php
需要將 bp_get_current_user_id(), ’40’
改成 bp_get_current_user_id(), ’80’
代碼如下:
<div class="bbp-logged-in"> <a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>" class="submit user-submit"><?php echo get_avatar( bbp_get_current_user_id(), '80' ); ?></a> <h4> 您好,<?php bbp_user_profile_link( bbp_get_current_user_id() ); ?></h4> <a href="https://www.weixiaoduo.com/account" target="_blank" class="button link-menu"> 我的賬户</a> <a href="https://mall.weixiaoduo.com/my-account" target="_blank" class="button link-menu"> 查看訂單</a> <a href="https://www.weixiaoduo.com/profile" target="_self" class="button link-menu"> 個人資料</a> <a href="#" target="_blank" class="button link-menu"> 產品下載</a> <?php bbp_logout_link(); ?> </div>
清晰了看上去就是舒服。
新版的,調整了 CSS 和鏈接結構 :
<div class="bbp-logged-in"></div> <h4> 您好,<!--?php bbp_user_profile_link( bbp_get_current_user_id() ); ?--></h4> <a class="button link-menu" href="https://www.weixiaoduo.com/account" target="_blank"> 我的賬户</a> <a class="button link-menu" href="https://mall.weixiaoduo.com/my-account" target="_blank"> 查看訂單</a> <a class="button link-menu" href="https://www.weixiaoduo.com/profile" target="_self"> 個人資料</a> <a class="button link-menu" href="#" target="_blank"> 產品下載</a>
為何我的網址 https://www.weixiaoduo.com/account 就是沒有頁面呢 找不到 我的賬户 這個頁面 嗚嗚
-
作者帖子
正在查看 4 個帖子:1-4 (共 4 個帖子)
- 哎呀,回覆話題必需登錄。