-
Henry Wright replied to the topic [Resolved] Display a membership number in the forum How-to & Troubleshooting 11 years, 5 months ago
bp_displayed_user_id() requires an echo for display.
Just to confuse us all! 😉
-
Henry Wright replied to the topic [Resolved] Display a membership number in the forum How-to & Troubleshooting 11 years, 5 months ago
bp_displayed_user_id()is the member’s ID so perhaps that’s the same as a membership ID? I’m not sure it matters though as the important part is it’s a unique identifier so whatever name we give it is irrelevant.You should be able to add it to your member-header.php file. Which theme are you using? Some themes might not have it so you’ll need to…[Read more]
-
Henry Wright replied to the topic [Resolved] Display a membership number in the forum How-to & Troubleshooting 11 years, 5 months ago
<?php bp_displayed_user_id(); ?>will work on the member’s profile page. -
Henry Wright replied to the topic [Resolved] Can I create a website like facebook? in the forum Installing BuddyPress 11 years, 5 months ago
-
Henry Wright replied to the topic [Resolved] Weird (non) error message after sending message? in the forum How-to & Troubleshooting 11 years, 5 months ago
Actually it’s not quite the same. On a quick glance, I noticed you have extra
<div>tags such as<div class="effect6" style="width:100%;">, and you’re doing astr_replace()on some$_GETvariable and also you’re wrapping some of your label’s text in<h2>tags. Not entirely sure if those changes are to blame though. Anyhow, glad you got it resolved… -
Henry Wright replied to the topic [Resolved] Create users Pages in the forum How-to & Troubleshooting 11 years, 5 months ago
Good point @danbp
@bloodslayer, you’d need to be logged in as ‘editor’ or upwards (admin or super admin) for my example above to work.
-
Henry Wright replied to the topic [Resolved] Create users Pages in the forum How-to & Troubleshooting 11 years, 5 months ago
Hi @bloodslayer
wp_insert_post()is a function provided by WordPress which lets developers add pages to the database without the need to access the WP admin area.So, as an example, you could use it like this:
$post = array([Read more]
'post_content' => 'This is some content',
'post_name' => 'this-is-the-page-slug',
'post_title' => 'I am the… -
Henry Wright replied to the topic [Resolved] Create users Pages in the forum How-to & Troubleshooting 11 years, 5 months ago
In the absence of a plugin, you would need to create a front-end form and a server-side processing script which makes use of
wp_insert_post().Ref: https://codex.wordpress.org/Function_Reference/wp_insert_post
-
Henry Wright replied to the topic not recently active in the forum How-to & Troubleshooting 11 years, 5 months ago
Hi @bea107
Did you copy and paste @danbp‘s code? I haven’t tested it myself but if you have copied his code then it doesn’t look like you’ve copied it properly as some of it is certainly missing. For example, where did this bit in your code snippet come from?
add_filter( ‘bp_core_get_last_activity’ ); -
Henry Wright replied to the topic [Resolved] Weird (non) error message after sending message? in the forum How-to & Troubleshooting 11 years, 5 months ago
Perhaps your own processing is the cause of the nonce not validating? We still can’t be sure the nonce is the issue here because there’s no helpful error message but it’s a good place to start looking.
-
Henry Wright replied to the topic [Resolved] Weird (non) error message after sending message? in the forum How-to & Troubleshooting 11 years, 5 months ago
I assume you’re letting BP handle the form processing in the default way and not doing your own processing?
Can you try using this and see if the problem still happens:
-
Henry Wright replied to the topic [Resolved] Weird (non) error message after sending message? in the forum How-to & Troubleshooting 11 years, 5 months ago
Hi @godavid33
It’s likely the WP nonce is invalid. Usually you get a message such as “Are you really sure you want to do this?” so I can understand why the blank page looks weird.
Have you modified the form at all? Perhaps you could paste the form’s markup into pastebin? I’ll take a look to see if I can see anything wrong
-
Henry Wright replied to the topic [Resolved] Nobody visibility in the forum How-to & Troubleshooting 11 years, 5 months ago
Very nice plugin @shanebp!
-
Henry Wright replied to the topic [Resolved] Nobody visibility in the forum How-to & Troubleshooting 11 years, 5 months ago
I think the field visibility settings are applicable to the member who is performing the setting.
The suggested way to do what you want would be to make your notes profile field hidden to all non-admin members.
The first step would be to create /wp-content/themes/your-theme/buddypress/members/single/profile/edit.php inside your theme.
You can…[Read more]
-
Henry Wright replied to the topic BuddyPress notifications drop down and change notif in the forum How-to & Troubleshooting 11 years, 5 months ago
bp_notifications_add_notification()is used to add a notification. For example:if ( bp_is_active( 'notifications' ) ) {[Read more]
bp_notifications_add_notification( array(
'user_id' => $user_id,
'item_id' => $item_id,
'secondary_item_id' => $secondary_item_id,
'component_name' => $component_name,… -
Henry Wright's profile was updated 11 years, 5 months ago
-
Henry Wright replied to the topic not recently active in the forum How-to & Troubleshooting 11 years, 5 months ago
Hi @bea107
Check out the Template Hierarchy article which will let you customise the BuddyPress templates.
-
Henry Wright replied to the topic Limiting Membership Profiles in the forum How-to & Troubleshooting 11 years, 5 months ago
Hi @grkmp
All activated members get allocated a URL. For example: example.com/members/username. Actually, to my knowledge, even unactivated members are given a URL so in theory any person who has completed the registration form will have a profile. They way around this would be to implement a custom registration form which doesn’t make use of the…[Read more]
-
Henry Wright replied to the topic [Resolved] Avatar picture is WAY too big in my website! in the forum How-to & Troubleshooting 11 years, 5 months ago
That won’t change what’s already been uploaded. If you upload a new avatar going forward, you should see the new size.
-
Henry Wright replied to the topic Please help – Use WordPress Avatars not BuddyPress? in the forum How-to & Troubleshooting 11 years, 5 months ago
There might actually be more things you’d need to do. For example, the
bp_get_message_thread_avatar()function usesbp_core_fetch_avatar()so you would need to filter that usingbp_get_message_thread_avataretc.Unless someone else knows of an easier way, it seems as though it’ll be a big task of going through everything. You’d also need to be…[Read more]
- Load More
@henrywright
Active 1 year, 10 months ago