Buddypress对我的网页来说太沉重了。此外,我需要一个用户可以执行以下操作的页面
答案 0 :(得分:0)
一个。为私人消息(FEP)安装“前端PM”插件
湾创建一个页面“For Store's owner”并添加以下短代码
[gd_login_box]
[front-end-pm]
℃。进入FEP设置并在GENERAL->前端PM页面的第一个中选择“For Store's owner”
d。添加styles.css
#fep-wrapper {
margin-top:30px;
}
#fep-content input[type=text]{
width: 100% !important;
}
#fep-notification-bar {
margin-top:250px;
right:0;
width:unset !important;
}
即使总是发送到“admin”收件人插件\ front-end-pm \ includes \ class-fep-form.php第36和40行
Replace
'placeholder' => __( 'Name of the receipent.', 'front-end-pm' ),
'value' => '',
with
'placeholder' => 'my_site_admin',
'value' => 'my_site_admin',
其中'my_site_admin'是您网站管理员的用户名
F。按钮将用户从订户升级到贡献者,如果他是订阅者,则不允许添加列表。在plugins \ geodirectory \ geodirectory-functions \ general_functions.php
中 At Line 3349 Add this
$is_subscriber = user_can( $current_user, "subscriber" );
if ( $is_subscriber ) {
echo "<br />";
echo "<br />";
echo __("You can not add listings because you are a simple subscriber. Press the following to be able to add your store","wpgeodirectory");
echo "<br />";
echo '<a href="'. site_url() . '/upgrade-contact-form/">'.__("I am a Store owner or Affiliate","wpgeodirectory").'</a>';
}
如果他是L3388的订户,则不允许列入
if ( ! empty( $show_add_listing_post_types_main_nav )) {
with
if ( ! empty( $show_add_listing_post_types_main_nav ) && !$is_subscriber) {
克。使用
创建一个名为“升级联系表”的联系表格7 <label> Your Name (required)
[text* your-name default:user_display_name] </label>
<label> Your Email (required)
[email* your-email default:user_email] </label>
<label> Subject
[text your-subject "Upgrade me to a Store Owner"] </label>
<label> Your Message
[textarea your-message "I am a subscriber and I want to be able to add my own store" ] </label>
[submit "Send"]
小时。创建页面“升级联系表单”并通过复制粘贴以下
添加表单 [contact-form-7 id="553" title="Upgrade contact form"]
其中id是表单的ID