Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'forum'

Viewing 25 results - 1,576 through 1,600 (of 20,260 total)
  • Author
    Search Results
  • #256651
    Stacy (non coder)
    Participant

    It 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.”

    #256639
    gorbett
    Participant

    thanks 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.

    #256600
    sharmavishal
    Participant

    Mentioned couple of times on this forum kindly search

    #256584
    pfeufer
    Participant

    Hi 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
    } );

    #256577

    In reply to: Lost access to my site

    coffeywebdev
    Participant

    Parse error: syntax error, unexpected '.' in themes/icynets-simplic/inc/customizer.php on line 437

    That’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

    #256508
    r-a-y
    Keymaster

    bp_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.

    #256494
    marcono
    Participant

    Thx *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’.

    #256493
    danbp
    Participant

    Olá! Desculpe, o nosso objectivo neste fórum falamos Inglês!

    Sorry, but on this forum we speak English!

    #256490
    danbp
    Participant

    The 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');
    sharmavishal
    Participant

    Best asked at Paid membership pro plugins support forum

    #256473
    sharmavishal
    Participant

    raise this issue at the plugins support forum

    #256451
    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' );
    #256447
    marcono
    Participant

    danbp, 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!?

    #256441
    danbp
    Participant
    #256439

    In reply to: Posting guidleines

    danbp
    Participant
    #256425

    In 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 persist

    About the bbPress notice (bbp_setup_current_user was called incorrectly), read here:
    https://buddypress.trac.wordpress.org/changeset/10709/

    bbp_setup_current_user was called incorrectly

    #256419
    danbp
    Participant

    It’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:

    Navigation API

    #256411
    danbp
    Participant

    Add 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 );
    #256123
    sharmavishal
    Participant

    you are using bbpress right? IF yes you would need to ask this at bbpress forums

    #256034
    danbp
    Participant

    @javierllinas,

    please 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' );
    #255992
    danbp
    Participant

    hi @javierllinas

    You 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');

    Reference

    danbp
    Participant

    Merci @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.

    #255976
    shoreshotweb
    Participant

    I 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.

    #255971
    danbp
    Participant

    Check your Forum settings. For each group forum you can change the order manually.

    Installing Group and Sitewide Forums

    For more in-deep settings, you’ve better chance to get an answer on bbPress support.

    #255939
    danbp
    Participant

    Hi,

    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.php

    And CSS goes into /your-child/style.css

    How to wrap <div> and <li> is out of the scope of this forum.

Viewing 25 results - 1,576 through 1,600 (of 20,260 total)
Skip to toolbar