Replies
- Ravi on September 7, 2016 at 5:02 pm in reply to: [Resolved] How to Increase Size of Photo Thumbnails in Activity #5463
Hi Simon,
Thank you for this acknowledgement. I am glad i could help.
Thank You
Ravi - Ravi on September 7, 2016 at 4:20 pm in reply to: Add a user to several groups at the same time #5461
Hi Dandy,
Please try the following code in your bp-custom.php file
function buddydev_add_user_to_group( $user_id ) { if ( ! function_exists( 'buddypress' ) || ! bp_is_active('groups' ) ) { return; } $group_ids = array(1,3,4,7); //ids of groups you want to add new user as member foreach ($group_ids as $group_id ) { groups_join_group( $group_id, $user_id ); } } add_action( 'user_register', 'buddydev_add_user_to_group', 10, 1 );
and let me know if it works or not.
Thank you
Ravi Hi Brandon,
I have fixed the pop up size. Please check.
Thank You
Ravi- Ravi on September 7, 2016 at 4:03 pm in reply to: [Resolved] How to Increase Size of Photo Thumbnails in Activity #5458
Hello Simon,
yes it can be easily doable. You have to override the activity grid-photo template in your active theme. Please follow the following step
Step 1. Copy the template file from plugin templates directory
mediapress/templates/mediapress/default/buddypress/activity/views/grid-photo.php
and paste this file to your active theme directory
twentysixteen/mediapress/default/buddypress/activity/views/grid-photo.php
and on line no. 21 replace the image size like
mpp_media_src( 'original' )
Please make sure directory structure should be same. Let me know if it works or not.
Thank You
Ravi Hi Brandon,
Width is set to 100%. Please check.
Thank You
RaviHi Brandon,
I have placed the code in your theme style-sheet file. Now Title background is same as content background. Please have a look.
Thank You
Ravi- Ravi on September 7, 2016 at 6:13 am in reply to: BP Ajax Registration – Request to close it without clicking on the X #5441
Hi Brandon,
Please revert that. I am sorry for the trouble. We are using magnific popup as our modal js and though the plugin has options for your specific case
http://dimsemenov.com/plugins/magnific-popup/documentation.html#optionsSetting the option is does not make it work. I just tested on my local and see the problem. I will look at the jquery plugin and see if I can modify it, but for now, Please disable the change I suggested above.
- Ravi on September 6, 2016 at 7:56 pm in reply to: Compatibility Issue of BP-Extended-Friendship-Request plugin #5424
Hi Dandy,
Please modify the following files of the plugin. From the file “bp-extended-friendship-request.php” replace the html part of the function load_template line no. 157 with the following code
<div class="bpdev-popover top"> <span class="bpdev-popover-close">x</span> <div class="arrow"></div> <div class="bpdev-popover-inner"> <h3 class="bpdev-popover-title"><?php _e( 'Request Friendship', 'bp-ext-friends-request' );?></h3> <div class="bpdev-popover-content"> <select name="request_friend_message" class="request_friend_message"> <option value="<?php _e( "Friend from school", "buddypress" ) ?>"> <?php _e( "Friend from school", "buddypress" ) ?> </option> <option value="<?php _e( "Friend from collage", "buddypress" ) ?>"> <?php _e( "Friend from Collage", "buddypress" ) ?> </option> <option value="<?php _e( "Office College", "buddypress" ) ?>"> <?php _e( "Office College", "buddypress" ) ?> </option> </select> <p> <a type="submit" class="button request-friend-ext-button" href="#"><?php _e( 'Send Request', 'bp-ext-friends-request' );?></a> </p> </div> </div> </div><!--end of popover -->
and plugin js file “bp-ext-friends.js” line no 16 with the
var template = '<div class="bpdev-popover top"><span class="bpdev-popover-close">x</span><div class="arrow"></div><div class="bpdev-popover-inner"><h3 class="bpdev-popover-title"></h3><div class="bpdev-popover-content"><select name="request_friend_message" class="request_friend_message"><option value="Friend from school">Friend from school</option><option value="Friend from collage">Friend from Collage</option><option value="Office College">Office College</option></select><p><a class="button request-friend-ext-button" type="submit" herf="#">Send Request</a></p></div></div></div>';
and line no. 196 with the following code
friendship_request_message': popup.find('select').val(),
It will fix the problem. Please let me know if it works or not.
Thank you
Ravi Hi Tiziano,
Thank you for posting. Is this issue coming from BuddyPress profile visibility plugin?.
Thank You
Ravi- Ravi on September 6, 2016 at 6:42 pm in reply to: Compatibility Issue of BP-Extended-Friendship-Request plugin #5420
Hi Dandy,
What version of BP-Extended-Friendship-Request plugin you are using. Also please let me know on which browser you are facing this issue.
Thank You
Ravi