- 该话题包含 3 个回复,3 人参与,最后由
xingjia10086 更新于 7 年、 6 月前 。
正在查看 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 个帖子)
- 哎呀,回复话题必需登录。