这个答案适用于Buddypress 1.7。不知道有多少(如果有的话)仍然适用于当前版本(2.8以上)
这里有一个尚未完成的文件目录。随着我对buddypress主题网站的深入,我会更新它。
官方“提示”页面可在此处找到。。
https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/
如果您希望有一个基本指南,让您熟悉模板文件,以及如何使它们在您选择的主题中为您服务,您可以阅读此指南。。
https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/
Note: 如果您没有使用buddypress,有几个php没有关闭的模板。如果在这些页面上包含wordpress页眉和页脚,则需要关闭php基本模板。
Advisory: It\'s been noted by a buddypress developer that this is not the standard way to customize buddypress to fit with your wordpress theme. 在投了否决票后(我猜),他没有提供这个答案的“适当”替代方案。
配置文件
profile -> edit
来自bp legacy
/bp-legacy/buddypress/members/single/profile/edit.php
到您的主题
/yourtheme/buddypress/members/single/index-action-edit.php
profile -> change profile photo
你的网站/会员/管理员/个人资料/更改头像/
/bp-legacy/buddypress/members/single/profile/change-avatar.php
/yourtheme/buddypress/members/single/index-action-change-avatar.php
profile -> change cover image
你的网站/会员/管理员/简介/更改封面图片/
/bp-legacy/buddypress/members/single/profile/change-cover-image.php
/yourtheme/buddypress/members/single/index-action-change-cover-image.php
single profile page
你的网站/会员/会员名称/
/bp-legacy/buddypress/members/single/home.php
/yourtheme/buddypress/members/single/index.php
通知
notifications base template (notifications.php)
/bp-legacy/buddypress/members/single/notifications.php
/yourtheme/buddypress/members/single/index-action-notifications.php
将调用循环。。
notifications loop (notifications loop.php)
/bp-legacy/buddypress/members/single/notifications/notifications-loop.php
/yourtheme/buddypress/members/single/notifications/notifications-loop.php
调用未读或已读。。
notifications -> unread
你的网站/会员/管理员/通知/
/bp-legacy/buddypress/members/single/notifications/unread.php
/yourtheme/buddypress/members/single/notifications/unread.php
notifications -> read
你的网站/会员/管理员/通知/阅读/
/bp-legacy/buddypress/members/single/notifications/read.php
/yourtheme/buddypress/members/single/notifications/read.php
或者如果不存在通知。。
no notifications 反馈无通知。php
/bp-legacy/buddypress/members/single/notifications/feedback-no-notifications.php
/yourtheme/buddypress/members/single/notifications/feedback-no-notifications.php
消息
messages -> inbox &;
messages -> sent你的网站/成员/管理员/消息/
你的网站/成员/管理员/消息/sentbox/
*php在模板文件中未关闭,如果遵循这种主题样式,则必须关闭。
/bp-legacy/buddypress/members/single/messages.php
/yourtheme/buddypress/members/single/index-component-messages.php
开关-如果是收件箱或sentbox调用消息循环。php
messages loop
/bp-legacy/buddypress/members/single/messages/messages-loop.php
/yourtheme/buddypress/members/single/messages/messages-loop.php
呼叫消息。php查看每个单独的消息线程
message thread
/bp-legacy/buddypress/members/single/messages/message.php
/yourtheme/buddypress/members/single/messages/message.php
messages -> inbox -> \'view message\' 消息线程或对话
/bp-legacy/buddypress/members/single/messages/single/single.php
/yourtheme/buddypress/members/single/messages/single.php
或者,您可以将其重命名并放置在此处(不确定最初为什么要设置此选项)
/yourtheme/buddypress/members/single/index-action-view.php
individual message (此时某某)
从单个消息页调用,单个。php/索引操作视图。php。。
<?php bp_get_template_part( \'members/single/messages/message\' ); ?>
。
/bp-legacy/buddypress/members/single/messages/message.php
/yourtheme/buddypress/members/single/messages/message.php
messages -> starred
你的网站/会员/管理员/消息/明星/
似乎与收件箱相同。岗亭
messages -> compose
从索引组件消息调用。php开关盒:组合
你的网站/会员/测试订阅者/消息/撰写/
/bp-legacy/buddypress/members/single/messages/compose.php
/yourtheme/buddypress/members/single/messages/compose.php
messages -> all member notices (仅管理员可查看)
你的网站/会员/管理员/消息/通知/
调用通知循环。php
<?php bp_get_template_part( \'members/single/messages/notices-loop\' ); ?>
needs doing
朋友们
friends -> friendships
你的网站/会员/管理员/朋友/
*php在模板文件中未关闭,如果遵循这种主题样式,则必须关闭。
/bp-legacy/buddypress/members/single/friends.php
/yourtheme/buddypress/members/single/index-component-friends.php
friends -> pending requests
你的网站/会员/管理员/朋友/请求/
/bp-legacy/buddypress/members/single/friends/requests.php
/yourtheme/buddypress/members/single/index-action-requests.php
设置注意-可能有一个主模板,可以从原始bp遗留路径调用其中的每一个设置。有点像设置。php,ile使用它并稍后更新。
settings -> general
你的网站/成员/管理员/设置/
/bp-legacy/buddypress/members/single/settings/general.php
/yourtheme/buddypress/members/single/index-action-general.php
settings -> general -> email (电子邮件通知)
你的网站/成员/管理员/设置/通知/
/bp-legacy/buddypress/members/single/settings/notifications.php
/yourtheme/buddypress/members/single/index-action-notifications.php
settings -> general -> profile visibility
你的网站/成员/管理员/设置/个人资料/
/bp-legacy/buddypress/members/single/settings/profile.php
/yourtheme/buddypress/members/single/index-action-profile.php
settings -> general -> delete account
*注意-您无法将此页面视为管理员(如果您尝试,则会重定向),它甚至未在“设置”菜单中列出。以测试帐户(非管理员)登录以查看它。
你的网站/会员/测试订户/设置/删除帐户/
/bp-legacy/buddypress/members/single/settings/delete-account.php
/yourtheme/buddypress/members/single/index-action-delete-account.php