Search Results for 'forum'
-
AuthorSearch Results
-
July 16, 2016 at 4:47 am #256651
In reply to: Group cover photos not uploading
Stacy (non coder)
ParticipantIt seems to add any photo with less than 120 width. 96 gets no problems. However th epic is of course a very poor fit.
It has given me a new dimension suggestion of 1170 x 260 which works. Can i write this instruction in on the field somehow for users to know? The HTTP Error message is related to dimensions.
And another error I haven’t seen is from another plugin “Upload Failed! Error was: Oh Snap! Imsanity was unable to resize this image for the following reason: ‘No editor could be selected.’ . If you continue to see this error message, you may need to either install missing server components or disable the Imsanity plugin. If you think you have discovered a bug, please report it on the Imsanity support forum.”
July 15, 2016 at 8:27 pm #256639In reply to: Add $_POST data before submitting registration
gorbett
Participantthanks for all the help. I ended up doing something like this in my functions.php child theme:
function assign_username() { if ( isset( $_POST ) ) { $_POST['signup_username'] = create_username(); } } add_action( 'bp_signup_pre_validate', 'assign_username' ); function create_username() { $i = 0; $username = $_POST['field_3'] . $_POST['field_4']; while ( username_exists( $username ) ) { $username = $username . ++$i; } return $username; }However, now I have some weird behavior that is asking me if I want to leave the page when submitting the form (typical window.onbeforeunload event when entering information: http://stackoverflow.com/questions/1119289/how-to-show-the-are-you-sure-you-want-to-navigate-away-from-this-page-when-ch) although I have no idea what is triggering it on my custom register.php (https://pantest.centralus.cloudapp.azure.com/register/).
So I think my code above solves my $_POST issue, but now I have another one. Going to run through some tests to debug it now.
Thanks again for the prompt help. Was hoping people still check out these forums.
July 14, 2016 at 5:47 pm #256600In reply to: How to change default from Activity to Profile
sharmavishal
ParticipantMentioned couple of times on this forum kindly search
July 14, 2016 at 5:13 am #256584In reply to: Getting error saying Buddypress Group photo large?
pfeufer
ParticipantHi Stacy,
I found the solution to this issue on another forum:Copy and paste the following code into to the functions.php of your child theme:
add_filter( ‘bp_core_avatar_original_max_filesize’, function() {
return 5120000; // 5mb
} );July 14, 2016 at 1:50 am #256577In reply to: Lost access to my site
coffeywebdev
ParticipantParse error: syntax error, unexpected '.' in themes/icynets-simplic/inc/customizer.php on line 437That’s saying there is a period or ‘dot’ where there shouldn’t be.
Renaming the theme would at least make the site recovered(force deactivation of theme), then you could access the WordPress dashboard again if you don’t have FTP
Then you could use the WordPress editor to make the edit you need possibly.
I hope that helps, I’m kind of new to the forums coming from the support side
July 11, 2016 at 11:34 pm #256508In reply to: BBPress uses plugins template?
r-a-y
Keymasterbp_is_user_forums()references the older legacy forums component, which is no longer in use.You could probably use
bp_is_user() && bp_is_current_component( 'forums' ) )as an alternative.July 11, 2016 at 6:30 pm #256494In reply to: How to hide profile menu items from other users
marcono
ParticipantThx *danbp* I REALLY appreciate your help.
I’m a mech. eng. and started 1 week with wordpress, so u can guess how much I know about wordpress! Yet, of course when I used the code ‘define(‘BP_DEFAULT_COMPONENT’, ‘profile’ )’ for group default, I changed ‘profile’ to something else 🙂
btw, this code ‘define(‘BP_DEFAULT_COMPONENT’, ‘profile’ )’ worked for me and my default tab in user profile is ‘Profile’ now.But concerning the code above (your post above) for changing the group’s default tab, it does not work obviously, and still I see the page is not available?
Not to mention, I used the function above (ur post above) before functions which change the name of Forum, etc. Exactly at the top of ‘bp-custom.php’.July 11, 2016 at 6:19 pm #256493In reply to: Link páginas Buddypress
danbp
ParticipantOlá! Desculpe, o nosso objectivo neste fórum falamos Inglês!
Sorry, but on this forum we speak English!
July 11, 2016 at 6:02 pm #256490In reply to: How to hide profile menu items from other users
danbp
ParticipantThe Home tab is the default one. If you remove that tab, BP has no way to know where to output the other group tabs content. If you remove Home(aka activity) you should define another landing tab.
But when you want to modify groups, you shouldn’t define ‘profile’, but ‘groups’. (read what you wrote!)
For the profile landing tab, see this codex page.For groups, you can try this snippet. This let you define a different landing tab for each of your groups (not profile, ok ?). 😉
function bpfr_custom_group_default_tab($default_tab){ /** * class_exists() is recommanded to avoid problems during updates * or when Groups Component is deactivated */ if ( class_exists( 'BP_Group_Extension' ) ) : // $group=groups_get_current_group();//get the current group if(empty($group)) return $default_tab; switch($group->slug){ case 'kill-bill': // group name (use slug format) $default_tab='forum'; break; case 'groupe-2014': $default_tab='members'; break; default: $default_tab='home';// the original default landing tab break; } return $default_tab; endif; // end if ( class_exists( 'BP_Group_Extension' ) ) } add_filter('bp_groups_default_extension','bpfr_custom_group_default_tab');July 11, 2016 at 1:42 pm #256474sharmavishal
ParticipantBest asked at Paid membership pro plugins support forum
July 11, 2016 at 1:41 pm #256473In reply to: Problem with buddypress activity privacy plugin
sharmavishal
Participantraise this issue at the plugins support forum
July 10, 2016 at 10:27 pm #256451In reply to: How to hide profile menu items from other users
danbp
Participant@socialc, since 2.6 and the new Nav API, there is a much simplier possibility as the translation file to change nav item names.
@marcono, try this; not sure you learned, below snippet is on Nav API examples i indicated previously. 😉function bpcodex_rename_group_tabs() { if ( ! bp_is_group() ) { return; } buddypress()->groups->nav->edit_nav( array( 'name' => __( 'Group Discussion', 'buddypress' ) ), 'forum', bp_current_item() ); } add_action( 'bp_actions', 'bpcodex_rename_group_tabs' ); function bpcodex_rename_profile_tabs() { buddypress()->members->nav->edit_nav( array( 'name' => __( 'My Buddy Forums', 'textdomain' ) ), 'forums' ); buddypress()->members->nav->edit_nav( array( 'name' => __( 'My Buddy Groups', 'textdomain' ) ), 'groups' ); } add_action( 'bp_actions', 'bpcodex_rename_profile_tabs' );July 10, 2016 at 8:08 pm #256447In reply to: How to hide profile menu items from other users
marcono
Participantdanbp, I learned from you a lot today! THANK YOU FOR YOUR TIME HELPING ME!
I know it is not related to topic directly, but could you give a hint about changing the name of ‘Forum’ and ‘Group’ in user profile and ‘Forum’ on the group page!?July 10, 2016 at 5:51 pm #256441In reply to: Notification: redirect on tagged/quoted post
danbp
ParticipantPlease don’t bump!
July 10, 2016 at 5:48 pm #256439In reply to: Posting guidleines
danbp
ParticipantJuly 10, 2016 at 2:49 pm #256425In reply to: Errors after update
danbp
Participant[MOD] Topic moved to a more appropriate forum.
The following plugins/widget are generating these error messages.
bp-edit-group-slug
BP_Toplevel_Groups_Widget
BP_Group_Navigator_Widget
bp-group-email
bp-group-hierarchy
You have to contact their authors via plugin support on WP repo.
and on your side:
The first step to getting rid of those Notices is identifying the source, so:
– switch momentarily to a WP theme like 2016 and see if any persist
– turn off plugins one at a time and see if any persistAbout the bbPress notice (bbp_setup_current_user was called incorrectly), read here:
https://buddypress.trac.wordpress.org/changeset/10709/July 10, 2016 at 2:26 pm #256419In reply to: How to hide profile menu items from other users
danbp
ParticipantIt’s the same principle, but not the same syntax since 2.6
To hide tabs on groups, you need to specify the component. Note that all menu items (nav and subnav items) are considered as sub-nav, they have not the same distinction as on member or activity menus.
Use another function for groups. Try this.
function bpex_remove_group_tabs() { if ( ! bp_is_group() ) { return; } $slug = bp_get_current_group_slug(); // hide items to all users except site admin if ( !is_super_admin() ) { // bp_core_remove_subnav_item( $slug, 'members' ); bp_core_remove_subnav_item( $slug, 'send-invites' ); // bp_core_remove_subnav_item( $slug, 'admin' ); // bp_core_remove_subnav_item( $slug, 'forum' ); } } add_action( 'bp_actions', 'bpex_remove_group_tabs' );To get more usage examples, see here:
July 10, 2016 at 12:09 pm #256411In reply to: How to hide profile menu items from other users
danbp
ParticipantAdd this snippet to bp-custom.php and give it a try.
function bpex_hide_profile_menu_tabs() { if( bp_is_active( 'xprofile' ) ) : if ( bp_is_user() && !is_super_admin() && !bp_is_my_profile() ) { // BP's profile main menu items. Comment those to show. // bp_core_remove_nav_item( 'activity' ); bp_core_remove_nav_item( 'profile' ); bp_core_remove_nav_item( 'friends' ); bp_core_remove_nav_item( 'groups' ); // exist only if you use bbPress bp_core_remove_nav_item( 'forums' ); // BP's profile main menu items. Comment those to show. // bp_core_remove_subnav_item( 'activity', 'personnal' ); bp_core_remove_subnav_item( 'activity', 'mentions' ); bp_core_remove_subnav_item( 'activity', 'favorites' ); bp_core_remove_subnav_item( 'activity', 'friends' ); bp_core_remove_subnav_item( 'activity', 'groups' ); } endif; } add_action( 'bp_setup_nav', 'bpex_hide_profile_menu_tabs', 15 );July 8, 2016 at 12:16 pm #256123In reply to: Export new user data to migrated site
sharmavishal
Participantyou are using bbpress right? IF yes you would need to ask this at bbpress forums
July 6, 2016 at 11:16 am #256034In reply to: [Resolved] Removing nav & subnav item in groups
danbp
Participantplease don’t jump into topics marked as resolved! Open your own, for more clarity
How to remove group tabs since 2.6
function bpex_remove_group_tabs() { /** * @since 2.6.0 Introduced the $component parameter. * * @param string $slug The slug of the primary navigation item. * @param string $component The component the navigation is attached to. Defaults to 'members'. * @return bool Returns false on failure, True on success. */ if ( ! bp_is_group() ) { return; } $slug = bp_get_current_group_slug(); // all existing default group tabs are listed here. Uncomment or remove. // bp_core_remove_subnav_item( $slug, 'members' ); bp_core_remove_subnav_item( $slug, 'send-invites' ); // bp_core_remove_subnav_item( $slug, 'admin' ); // bp_core_remove_subnav_item( $slug, 'forum' ); } add_action( 'bp_actions', 'bpex_remove_group_tabs' );July 5, 2016 at 10:50 pm #255992danbp
ParticipantYou can use something like this (add to bp-custom.php or child theme’s functions.php)
BuddyPress usermenu usage: remove_node(‘$id-$nav-$subnav’)
/* remove items from Toolbar Usermenu (top-right) */ function bpex_admin_bar_remove_this(){ global $wp_admin_bar; $wp_admin_bar->remove_node('my-account-forums-favorites'); $wp_admin_bar->remove_node('my-account-messages-starred'); // etc... } add_action('wp_before_admin_bar_render','bpex_admin_bar_remove_this');July 5, 2016 at 7:54 pm #255990danbp
ParticipantMerci @imath !
The old way
The following syntax to change the tab order is deprecated since 2.6 and will throw an error notice:
function rt_change_profile_tab_order() { global $bp; $bp->bp_nav['profile']['position'] = 10; $bp->bp_nav['activity']['position'] = 20; } add_action( 'bp_setup_nav', 'rt_change_profile_tab_order', 999 );The new way
Now the correct syntax to use for modifying – since 2.6 – the tabs position on the buddybar when you’re on a profile.
This example list all BP related items who appear by default on a profile nav, in order of appearance and include also the forum tab (if you use bbPress for group forums).
By default, activity tab comes as 1st. The snippet will move it to 4th position.To modify a position you simply change the numeric value.
If you want to move only one item, you remove or comment (add//at begin of the line) the ones you don’t want to move.function bpex_primary_nav_tabs_position() { buddypress()->members->nav->edit_nav( array( 'position' => 4, ), 'activity' ); buddypress()->members->nav->edit_nav( array( 'position' => 5, ), 'profile' ); buddypress()->members->nav->edit_nav( array( 'position' => 7, ), 'notifications' ); buddypress()->members->nav->edit_nav( array( 'position' => 9, ), 'messages' ); buddypress()->members->nav->edit_nav( array( 'position' => 2, ), 'friends' ); buddypress()->members->nav->edit_nav( array( 'position' => 6, ), 'groups' ); buddypress()->members->nav->edit_nav( array( 'position' => 3, ), 'forums' ); buddypress()->members->nav->edit_nav( array( 'position' => 1, ), 'settings' ); } add_action( 'bp_setup_nav', 'bpex_primary_nav_tabs_position', 999 );That’s it for the buddybar nav menu order on profile.
July 5, 2016 at 3:36 pm #255976In reply to: Can’t Activate WP User Sync
shoreshotweb
ParticipantI did READ the error msg. That is why I am asking about BP XProfile WP User Sync.
Thank you for providing the link to a non-forum page, claiming it is a support forum. Don’t you READ the pages you send your forum visitors to?
Less than useless.
July 5, 2016 at 3:07 pm #255971In reply to: Group forum creation – location & order
danbp
ParticipantCheck your Forum settings. For each group forum you can change the order manually.
For more in-deep settings, you’ve better chance to get an answer on bbPress support.
July 5, 2016 at 7:49 am #255939In reply to: Customize buddypress register.php file
danbp
ParticipantHi,
this page is made of list elements and divs. To wrap them into columns, you have to adjust the CSS.
This can be done by child-theme, where you have to copy
bp-templates/bp-legacy/buddypress/members/register.php
to /your-child-theme/bp-legacy/buddypress/members/register.phpAnd CSS goes into /your-child/style.css
How to wrap
<div> and <li>is out of the scope of this forum. -
AuthorSearch Results