How to display profile fields with no data in BuddyPress profile view? [closed]

Create a template overload of this file: buddypress\bp-templates\bp-legacy\buddypress\members\single\profile\profile-loop.php Then find this code: <?php if ( bp_field_has_data() ) : ?> <tr<?php bp_field_css_class(); ?>> <td class=”label”><?php bp_the_profile_field_name(); ?></td> <td class=”data”><?php bp_the_profile_field_value(); ?></td> </tr> <?php endif; ?> And change it to: <tr<?php bp_field_css_class(); ?>> <td class=”label”><?php bp_the_profile_field_name(); ?></td> <td class=”data”><?php bp_the_profile_field_value(); ?></td> </tr> EDIT: We need to force … Read more

How to enable truly anonymous posting in bbPress forums? [closed]

When we post an empty anonymous reply, we get the following errors: The part of BBPress that’s responsible for handling this, is the bbp_new_reply_handler() function, in the file /bbpress/includes/replies/functions.php. It contains these lines that are of interest to us: // User is anonymous if ( bbp_is_anonymous() ) { // Filter anonymous data $anonymous_data = bbp_filter_anonymous_post_data(); … Read more

how to get buddy press messages based on thready_id?

Dig a little deeper into the BP Messages file and you will see that bp_message_thread_content() only outputs the last message in the thread. Similarly with bp_message_thread_subject(). bp_message_thread() sets up the last message data but no other message data. Instead it looks like you want a new class of BP_Messages_Thread_Template to output the messages for the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)