Search Results for 'buddypress'
-
AuthorSearch Results
-
June 15, 2015 at 3:46 pm #240738
In reply to: Groups no longer working
danbp
ParticipantJune 15, 2015 at 9:29 am #240726In reply to: Limit the stream activity
Henry Wright
ModeratorYes. You can use
bp_parse_args()for that. See the Using bp_parse_args() to filter BuddyPress template loops article for more info.June 15, 2015 at 12:05 am #240718In reply to: Why is there no ajax on profile tabs?
Henry Wright
ModeratorI can view anyones messages when logged out.
And you’re definitely talking about what BuddyPress refers to as private messages?
Can you try again after disabling all plugins, reverting to TwentyFifteen and removing all custom code? If you still get to see private messages when logged out then that shouldn’t be happening.
June 14, 2015 at 11:31 pm #240717In reply to: Why is there no ajax on profile tabs?
CodeMonkeyBanana
ParticipantI can view anyones messages when logged out. If I log in I think it shows me my own messages, not sure, the main issue is that someone could easily harvest every single message from a buddypress site. Users are not tech savy and will presume that correspondence is relatively secure so there may be sensitive data stored. Or at worst it would give enough information for an attacker to social engineer the additional data they need.
June 14, 2015 at 11:21 pm #240716In reply to: Why is there no ajax on profile tabs?
Henry Wright
ModeratorWith standard buddypress (no modifications) you can freely view anyone’s messages without even logging in
That shouldn’t be the case for all users. Only users with admin capabilities should be able to do that. Are you able to see people’s private messages when logged in as a subscriber? If so, that’s a bug
June 14, 2015 at 11:08 pm #240715In reply to: Why is there no ajax on profile tabs?
CodeMonkeyBanana
ParticipantWith standard buddypress (no modifications) you can freely view anyone’s messages without even logging in. Personally I think that is not very good security/privacy, whatever you want to call it.
I made a ticket as I don’t think that “private messages” should be publicly viewable
(https://buddypress.trac.wordpress.org/ticket/6504#ticket)What privacy/security checks would you recommend for people who don’t want users private data publicly viewable?
June 14, 2015 at 8:57 pm #240712In reply to: Why is there no ajax on profile tabs?
CodeMonkeyBanana
Participant@henrywright How would you do the security check? If I follow current way buddypress does things with loading the template part for the tab any logged out user can just modify the javascript and get into any profile page they like. It’s first time I’ve done this so appreciate the advice.
what harm could come from a visit to a simple profile tab?
You could see hidden data that user did not want displayed. I believe if you hold data and say it is private then you should attempt to secure it. You could also view their messages and private groups.
The thing I am struggling to understand is how buddypress functions work on the post request. I wrote some test code and data is correctly populated from displayed user. Does buddypress read a referrer value somewhere on every ajax post?
June 14, 2015 at 6:13 pm #240707In reply to: Can not change the title of the “members” page
comsys13
ParticipantI am trying to comprehend what I am doing wrong since this appears so hard 🙂
In the options: buddypress configuration > pages I have selected http://example.com/profiles as the page I want to use for listing members
However, it shows its page title in English “Members” and no matter how much I edit the page – I can no change he page title to Danish.
I have also gone through the language files and translated all I could.
June 14, 2015 at 4:56 pm #240705maelga
ParticipantThanks @shanebp.
It only works if I remove the function triggered at bp_loaded, as follows:if ( class_exists( 'BP_Group_Extension' ) ) : class members_nav_tab_in_group extends BP_Group_Extension { function __construct() { if( bp_is_group_single() ) { $bp = buddypress(); $group_id = $bp->groups->current_group->id; if( $group_id == '1' ) { $args = array( 'slug' => '../../members', 'name' => 'Members Directory', 'nav_item_position' => 105, ); parent::init( $args ); } } } } bp_register_group_extension( 'members_nav_tab_in_group' ); endif;What is the rationale/advantage for adding this function add_group_tab()?
June 14, 2015 at 2:02 pm #240700shanebp
ModeratorMay not be the best way, but try:
function add_group_tab() { if ( class_exists( 'BP_Group_Extension' ) ) : class members_nav_tab_in_group extends BP_Group_Extension { function __construct() { if( bp_is_group_single() ) { $bp = buddypress(); $group_id = $bp->groups->current_group->id; if( $group_id == 1 ) { $args = array( 'slug' => '../../members', 'name' => 'Members Directory', 'nav_item_position' => 105, ); parent::init( $args ); } } } } bp_register_group_extension( 'members_nav_tab_in_group' ); endif; } add_action( 'bp_loaded', 'add_group_tab' );June 14, 2015 at 9:01 am #240696danbp
ParticipantThe following active BuddyPress Components do not have associated WordPress Pages: Activate, Register. Repair
Those pages are not created automatically. When you get this error message, you have to create the pages manually first.
Go back to bp settings > pages tab and allocate the new pages to the respective component. Save.
You have also to set pretty permalinks to something other thant “by default”. Save.
Now BP has his page assigned and should work.
About the missing button.
Clear your browser cache.
If you use a cache plugin, clear it.
Go to wp-config.php and activate debug mode at the end of the file.Deactivate all plugins except BP and activate one of WP’s theme (2015, 2014 or 2013…)
See if you get some error message and correct the errors (if exist).
If after tracking/repairing errors, the button is still not showing, deactivate buddypress, delete it and upload a fresh copy of BuddyPress to your site. Sometimes files can be corrupted and need to be replaced. No worry, this will not affect any data in your DB.
If still nothing, check that your host plan has the required php version to be used with WP and BP: at least 5.2.4
June 14, 2015 at 8:38 am #240695In reply to: Sort Members Alphabetically by Default
danbp
ParticipantHi @manakio2k,
you could try to just modify the template to get alphabetical as first sort option, instead of the default Last active.
Create a child-theme first, add a folder called buddypress. In this folder add members folder and in that folder add a copy of index.php which is in bp-templates/bp-legacy/buddypress/members/index.php
Around line 78, change the options order to get this:
<select id="members-order-by"> <?php if ( bp_is_active( 'xprofile' ) ) : ?> <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option> <?php endif; ?> <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option> <option value="newest"><?php _e( 'Newest Registered', 'buddypress' ); ?></option>Now, members directory is sorted alphabetically by default.
June 13, 2015 at 10:43 pm #240685In reply to: Buddypress Plugin all files inactive troubleshooting
shanebp
Moderatornow it does nothing.
So you can see it.
That means that ‘buddypress/bp-members/bp-members-template.php’ is not inactive.Your description of the problem is so muddled that suggesting a solution is nigh impossible.
Confirm that the issues are not in your theme. Try switching to a standard theme like WP 2013.
June 13, 2015 at 10:27 pm #240683In reply to: Sign In page issue
shanebp
ModeratorLook at the BP templates for guidance on those issues.
For example:
buddypress\bp-templates\bp-legacy\buddypress\members\register.phpJune 13, 2015 at 9:39 pm #240681In reply to: Sign In page issue
discdemo
Participantthx Shane. Do you happen to know the function or an example of a function which would work for the buddypress sign in and also registration, if you happen to know? again, thx! (not my theme and so far unable to find out from the author.)
June 13, 2015 at 7:23 pm #240677In reply to: Buddypress Plugin all files inactive troubleshooting
shanebp
ModeratorIf buddypress/bp-members/bp-members-template.php is ‘inactive’,
how do you know that ‘the member functions to filter’ are not working?Have you activated all the components?
June 13, 2015 at 7:13 pm #240676In reply to: Buddypress Plugin all files inactive troubleshooting
ct25
ParticipantAll of the BuddyPress plugin files including the buddypress/bp-core/bp-core-component.php buddypress/bp-core/bp-core-template.php buddypress/bp-members/bp-members-template.php .
Also, the member functions to filter by alphabetical, last active, and newly registered. The BuddyPress plugin is active but the files are no longer active so it is not working.
I reinstalled it, same problem.
June 13, 2015 at 2:25 pm #240666In reply to: Setup BuddyPress Forum without bbPress
Fox_Black
ParticipantThank you very much for your answer!
I thougth first that with BP 1.1 and higher you can now use a forum from within a component of buddypress directly instead of using bbPress.
I thank you, that you clarified that. So I will use bbPress furthermore 🙂
Best reagards,
June 13, 2015 at 11:49 am #240664In reply to: BP Messages Star fx for themes based on bp-deafult
wpthemes
ParticipantUpdated :
add_action('wp_ajax_messages_star','bp_course_messages_star'); function bp_course_messages_star(){ if(function_exists('bp_messages_star_set_action') && is_numeric($_POST['message_id']) && in_array($_POST['star_status'],array('star','unstar'))){ echo bp_messages_star_set_action(array( 'action' => $_POST['star_status'], 'message_id' => $_POST['message_id'], 'bulk' => false )); } die(); }You also need to update the template files bp-default/members/single/messages/messages-loop.php
<?php do_action( 'bp_before_member_messages_loop' ); ?> <?php if ( bp_has_message_threads( bp_ajax_querystring( 'messages' ) ) ) : ?> <div class="pagination no-ajax" id="user-pag"> <div class="pag-count" id="messages-dir-count"> <?php bp_messages_pagination_count(); ?> </div> <div class="pagination-links" id="messages-dir-pag"> <?php bp_messages_pagination(); ?> </div> </div><!-- .pagination --> <?php do_action( 'bp_after_member_messages_pagination' ); ?> <?php do_action( 'bp_before_member_messages_threads' ); ?> <table id="message-threads" class="messages-notices"> <thead> <tr> <th></th> <th scope="col" class="thread-count"> </th> <?php if ( bp_is_active( 'messages', 'star' ) ) : ?> <th scope="col" class="thread-star"><span class="message-action-star"><span class="icon"></span> <span class="screen-reader-text"><?php _e( 'Star', 'buddypress' ); ?></span></span></th> <?php endif; ?> <th scope="col" class="thread-from"><?php _e( 'From', 'buddypress' ); ?></th> <th scope="col" class="thread-info"><?php _e( 'Subject', 'buddypress' ); ?></th> <?php /** * Fires inside the messages box table header to add a new column. * * This is to primarily add a <th> cell to the messages box table header. Use * the related 'bp_messages_inbox_list_item' hook to add a <td> cell. * * @since BuddyPress (2.3.0) */ do_action( 'bp_messages_inbox_list_header' ); ?> <th scope="col" class="thread-options"><?php _e( 'Actions', 'buddypress' ); ?></th> </tr> </thead> <?php while ( bp_message_threads() ) : bp_message_thread(); ?> <tr id="m-<?php bp_message_thread_id(); ?>" class="<?php bp_message_css_class(); ?><?php if ( bp_message_thread_has_unread() ) : ?> unread<?php else: ?> read<?php endif; ?>"> <td width="1%" class="thread-select"> <input type="checkbox" name="message_ids[]" value="<?php bp_message_thread_id(); ?>" /> </td> <td width="1%" class="thread-count"> <span class="unread-count"><?php bp_message_thread_unread_count(); ?></span> </td> <?php if ( bp_is_active( 'messages', 'star' ) ) : ?> <td width="1%" class="thread-star"> <?php bp_the_message_star_action_link( array( 'thread_id' => bp_get_message_thread_id() ) ); ?> </td> <?php endif; ?> <td width="1%" class="thread-avatar"><?php bp_message_thread_avatar(); ?></td> <?php if ( 'sentbox' != bp_current_action() ) : ?> <td width="30%" class="thread-from"> <?php _e( 'From:', 'buddypress' ); ?> <?php bp_message_thread_from(); ?><br /> <span class="activity"><?php bp_message_thread_last_post_date(); ?></span> </td> <?php else: ?> <td width="30%" class="thread-from"> <?php _e( 'To:', 'buddypress' ); ?> <?php bp_message_thread_to(); ?><br /> <span class="activity"><?php bp_message_thread_last_post_date(); ?></span> </td> <?php endif; ?> <td width="50%" class="thread-info"> <p><a href="<?php bp_message_thread_view_link(); ?>" title="<?php _e( "View Message", "buddypress" ); ?>"><?php bp_message_thread_subject(); ?></a></p> <p class="thread-excerpt"><?php bp_message_thread_excerpt(); ?></p> </td> <?php do_action( 'bp_messages_inbox_list_item' ); ?> <td width="1%" class="thread-options"> <a class="ahref confirm" href="<?php bp_message_thread_delete_link(); ?>" title="<?php _e( "Delete Message", "buddypress" ); ?>"><?php _e( 'Delete', 'buddypress' ); ?></a> </td> </tr> <?php endwhile; ?> </table><!-- #message-threads --> <div class="messages-options-nav"> <?php bp_messages_options(); ?> </div><!-- .messages-options-nav --> <?php do_action( 'bp_after_member_messages_threads' ); ?> <?php do_action( 'bp_after_member_messages_options' ); ?> <?php else: ?> <div id="message" class="info"> <p><?php _e( 'Sorry, no messages were found.', 'buddypress' ); ?></p> </div> <?php endif;?> <?php do_action( 'bp_after_member_messages_loop' ); ?>June 12, 2015 at 11:47 pm #240655danbp
ParticipantJune 12, 2015 at 11:45 pm #240654danbp
Participantdo you plan to ask the same question each day ? It’s the fourth time now, and you received many answers in the past 3 days. Or you received erroneous answers or you didn’t understand them or couldn’t find a solution by yourself. That’s life and i’m sorry for you but it’s just a forum here, not a miracle shop.
You say My hosting plan server is iPage (which uses NGINX), running a 5.0 PHP version.
If 5.0 is really the php version, you can’t use WP or BP with this old version as both require at least 5.2 version.
For Nginx server, have you read WP’s codex ?
https://codex.wordpress.org/Nginx
Search for nginx install on wordpress.org brings also several answers…For paid consultants, post the job to http://jobs.wordpress.net/ or BP Jobs Board.
June 12, 2015 at 9:36 pm #240648In reply to: Username problems
billreefer
ParticipantI think it’s better to give registrants and newbies a break by warning them to not use spaces BEFORE they try first to register instead of frustrating them ‘neener neener’ after they do it wrong (don’t ya think?)
at wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/index.php
at line 46 then and 66 I added the following 2 edits in bold
/** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
do_action( ‘template_notices’ ); ?><p><?php _e( ‘Registering for this site is easy. Just fill in the fields below, and we\’ll get a new account set up for you in no time. NO-SPACES-ALLOWED-IN-USER-NAMES. If you have an EXISTING ACCOUNT try logging in with Username (one-word) instead of User Name‘, ‘buddypress’ ); ?></p>
<?php
/**
* Fires before the display of member registration account details fields.
*
* @since BuddyPress (1.1.0)
*/
do_action( ‘bp_before_account_details_fields’ ); ?><div class=”register-section” id=”basic-details-section”>
<?php /***** Basic Account Details ******/ ?>
<h4><?php _e( ‘Account Details’, ‘buddypress’ ); ?></h4>
<label for=”signup_username”><?php _e( ‘Username NO SPACES‘, ‘buddypress’ ); ?> <?php _e( ‘(required)’, ‘buddypress’ ); ?></label>
<?php`
Edit as you wishJune 12, 2015 at 5:25 pm #240642In reply to: Image watermark
Hank_Chinasky
ParticipantHello,
Thanks for the quick reply.
I tried the DMCA plug-in you recommended (Thanks) and it works but i like to watermark my images without a third party involved. Also i get the DMCA logo together with my own watermark on the picture and that’s not what I’m looking for.
Right now i have image watermark installed which is working fine on other blogs of mine except one due the Hueman theme.
On my Buddypress blog i have the theme magazine (Gavin) installed and when i go to the media library and try to apply the watermark, not one picture on the blog is actually watermarked.
And i did tried this with several plug-ins with no results.Maybe it’s the theme?
June 12, 2015 at 3:59 pm #240639notpoppy
ParticipantOK I’ve been able to recreate the problem which has given me a much better understanding of what is going wrong. Worryingly, it seems the problem also affects anyone who’s signed up for the first time:
* New users (and some existing users) are shown the message “You cannot create new topics” in forums belonging to groups which they are not members of.
* They are also shown the message “You cannot reply to this topic” in topic threads of forums belonging to groups which they are not members of.
* If they join the group, these messages go awayI thought the way it was supposed to work was that users can post in any public forum, and when they do so for the first time they automatically become a member of that group. Is that correct? If so why isn’t that working here?
I have tried disabling all plugins (apart from BuddyPress and BBPress, of course) and using a default theme, all of which made no difference.
I am still unable to run the “Remap existing users to default forum roles” option in /wp-admin/tools.php?page=bbp-repair. If I disable all plugins (apart from BuddyPress and BBPress) then when I run it I get the following error:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in /var/www/f1fanatic/htdocs/wp-includes/cache.php on line 631
I am looking into whether I can raise the memory limit on the server to get it to run. In the meantime if anyone can shed any light on this problem please do!
June 12, 2015 at 9:33 am #240633In reply to: availability plugin buddypress
homa121
Participantthank you, i search plugin but i dont found one,
i try add custom field type”calendar date” or “selector repeat”…in users profil but it not exist.
also connector buddypress of advanced custom fields or custom fields suite its not exist -
AuthorSearch Results