Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 4,326 through 4,350 (of 22,689 total)
  • Author
    Search Results
  • #256722
    ah72king
    Participant

    I found a solution that can help

    
    <?php
    // For Custom Notification 
    // Registering Custom Componet 
    function custom_filter_notifications_get_registered_components( $component_names = array() ) {
     
        // Force $component_names to be an array
        if ( ! is_array( $component_names ) ) {
            $component_names = array();
        }
    
        // Add 'custom' component to registered components array
        array_push( $component_names, 'custom' );
     
        // Return component's with 'custom' appended
        return $component_names;
    }
    add_filter( 'bp_notifications_get_registered_components', 'custom_filter_notifications_get_registered_components' );
    
    // Formatting custom with respect to action
    function bp_custom_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
     		
     		//$item_id this your id which you can use to get your respected data
        	$data  = get_my_values_custom_function($item_id); // this is custom function it depend on your needs and data
        	$custom_title = $data->title;
        	$custom_link  = $data->link;
        	$custom_text  = $data->text;
    
        // New custom notifications
        if ( 'custom_action' === $action ) {
            
            // WordPress Toolbar
            if ( 'string' === $format ) {
                $return = apply_filters( 'custom_filter','Your custom notification for <a href="'.$custom_link.'">'.$custom_title.'</a> ', $custom_text, $custom_link );
     
            // Deprecated BuddyBar
            } else {
                $return = apply_filters( 'custom_filter', array(
                    'text' => $custom_text,
                    'link' => $custom_link
                ), $custom_link, (int) $total_items, $custom_text, $custom_title );
            }
            
            return $return;
            
        }
       
    }
    add_filter( 'bp_notifications_get_notifications_for_user', 'bp_custom_format_buddypress_notifications', 10, 5 );
    
    // Adding custom Notification in DB 
    function bp_custom_notification( $item_id, $author_id ) {
    
        if ( bp_is_active( 'notifications' ) ) {   // if notification is active from admin panel
        	// if notification is active from admin panel bp_notifications_add_notification function to add notification into database
            bp_notifications_add_notification( array(                        
                'user_id'           => $author_id, // User to whom notification has to be send
                'item_id'           => $item_id,  // Id of thing you want to show it can be item_id or post or custom post or anything
                'component_name'    => 'custom', //  component that we registered
                'component_action'  => 'custom_action', // Our Custom Action 
                'date_notified'     => bp_core_current_time(), // current time
                'is_new'            => 1, // It say that is new notification
            ) );
        }
    }
    add_action( 'custom_hooks', 'bp_custom_notification', 10, 2);
    /**
    * custom_hooks is action name which will be call by do_action() function
    * bp_custom_notification your function name
    * 10 is priority number
    * 2 is number of parameter 
    */
    
    /****
    * Now Where to call custom_hooks and how 
    */
    
    do_action('custom_hooks', $item_id, $author_id );
    
    /****
    * place it where you want to call this action and pass parameter
    */ 
    
    #256713
    intothemythica
    Participant

    this is what I got:

    Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). === Trace: #6 /nas/content/live/intothemythica/wp-content/plugins/revslider/includes/tinybox.class.php(49): is_user_logged_in() #7 [internal function]: RevSliderTinyBox::visual_composer_include(”) #8 /nas/content/live/intothemythica/wp-includes/plugin.php(525): call_user_func_array(Array, Array) #9 /nas/content/live/intothemythica/wp-settings.php(277): do_action(‘plugins_loaded’) #10 /nas/content/live/intothemythica/wp-config.php(154): require_once(‘/nas/content/li…’) #11 /nas/content/live/intothemythica/wp-load.php(37): require_once(‘/nas/content/li…’) #12 /nas/content/live/intothemythica/wp-blog-header.php(13): require_once(‘/nas/content/li…’) #13 /nas/content/live/intothemythica/index.php(17): require(‘/nas/content/li…’) #14 {main} === Please see Debugging in WordPress for more information. (This message wa in /nas/content/live/intothemythica/wp-includes/functions.php on line 3897

    Notice: Constant BP_AVATAR_THUMB_WIDTH already defined in /nas/content/live/intothemythica/wp-content/themes/x/framework/functions/global/plugins/buddypress.php on line 26

    Notice: Constant BP_AVATAR_THUMB_HEIGHT already defined in /nas/content/live/intothemythica/wp-content/themes/x/framework/functions/global/plugins/buddypress.php on line 27

    Notice: Constant BP_AVATAR_FULL_WIDTH already defined in /nas/content/live/intothemythica/wp-content/themes/x/framework/functions/global/plugins/buddypress.php on line 28

    Notice: Constant BP_AVATAR_FULL_HEIGHT already defined in /nas/content/live/intothemythica/wp-content/themes/x/framework/functions/global/plugins/buddypress.php on line 29

    Notice: The called constructor method for WP_Widget in WP_Widget_Moon_Phases is deprecated since version 4.3.0! Use
    __construct()
    instead. in /nas/content/live/intothemythica/wp-includes/functions.php on line 3718

    #256702
    sharmavishal
    Participant

    As mentioned:

    In the WordPress dashboard, find under “Users” a link titled, “Profile Fields” (Users>Profile Fields)

    Here you can add profile fields to the signup process,

    in your case add address, city and postal code fields

    if above is added and you are not able to see then check the visibility of this 3 fields

    #256685
    coffeywebdev
    Participant

    did you set the $blog_id variable? You must pass a number like this:

    define ( 'BP_ROOT_BLOG', 3 );

    Note: In WordPress 3.1, your $blog_id can be found by navigating to the “Network Admin > Sites” page and hovering over the blog in question. You should see a link that resembles this:

    #256683
    coffeywebdev
    Participant

    In the WordPress dashboard, find under “Users” a link titled, “Profile Fields” (Users>Profile Fields)

    Here you can add profile fields to the signup process, if you don’t want to add the fields to signup you need to add a new field group.

    The field group ‘Base’ is added to signup process

    I hope that helps

    #256675

    In reply to: Lost access to my site

    danbp
    Participant

    Modified topic title to be more explicit.


    @kvnqprezo
    , please notice, such a title doesn’t help anybody: Please Urgent Help Needed

    https://codex.wordpress.org/Forum_Welcome#Choose_A_Good_Topic_Title

    #256674
    danbp
    Participant

    No idea. But have you read this on plugin support ? Maybe it can help ?

    https://wordpress.org/support/topic/anyway-to-see-user-registration-before-approving-user

    #256650
    Stacy (non coder)
    Participant

    Sounds like the plugin should show a checklist for all this somewhere. The plugin is working so that means all the requirements are met.

    I have

    PHP version 5.6 or greater
    MySQL version 5.6 or greater
    BuddyPress 2.6.0+ with WordPress 4.1.0+
    Apache Module mod_rewrite enabled for “pretty permalinks”. (Wenet to settings> permalinks> checked plain> saved)
    WP was installed via cpanel’s wordpress installer and BP is working
    Using subdomains not subdirectories
    Folder name for any subdirectory or subdomain WordPress/BuddyPress installation must be in lowercase.BP is on the main blog.

    Tested not using the child theme.

    Is this supposed to be a created file and folder?
    “AllowOverride should be set to All in folder where .htaccess is, for example”

    coffeywebdev
    Participant

    I think ‘bp_init’ is the wrong hook.. Try using ‘bp_core_signup_user’

    function save_wc_address() {
     	if ( wp_verify_nonce( $_POST['bp_settings_general'] ) ){		
    
    		$user_id = sanitize_text_field( $_POST['user_id'] );
    
    		//sanitize input data
    		$billing_phone = sanitize_text_field( $_POST['billing_phone'] );
    
    		//update user meta
    		update_user_meta( $user_id, 'billing_phone', $billing_phone);
    
    	}
     }
     add_action( 'bp_core_signup_user', 'save_wc_address');

    source:
    http://wordpress.stackexchange.com/questions/160475/how-to-increase-password-requirements-for-registration

    #256640
    Slava Abakumov
    Moderator

    Version 3.6.9 is released, pushed to WordPress repository. Soon it should be available worldwide.

    #256632

    In reply to: Private messages

    fifnicke
    Participant

    https://wordpress.org/plugins/buddypress-restrict-messages/
    more like this plugin, where users choose who can pm them. Seems like its outdated though, and it filters on friends or followers

    r-a-y
    Keymaster

    @tutorbe – Thanks for mentioning that you are testing on HHVM.

    I personally haven’t tested HHVM with BP 2.6.1.1 yet.

    Can you turn WP_DEBUG on in wp-config.php and note down any debug notices that are showing up with BP 2.6.1.1?

    What happens if you disable class autoloading manually by commenting out these lines?
    https://buddypress.trac.wordpress.org/browser/tags/2.6.1.1/src/bp-loader.php?marks=469-470#L467

    Let me know if that works or not.

    danbp
    Participant
    #256601
    sharmavishal
    Participant

    You need to fix it via CSS..I use a plugin called WordPress social login

    danbp
    Participant

    Hi,

    apparently there is a conflict somewhere. Do you receive php notice or warnings with wp_debug activated ? The fn you mention posts new Activity comments received via a POST request.

    Before opening a ticket, can you provide some more details about your install please ? Server type, php version and memory_limit.

    Theme
    Is Valenti theme updated to fit with BuddyPress 2.6 ? No information about this detail on the theme presentation even if recent update (23/6/2016). But it’s crucial to know, as many things changed in 2.6+

    Plugins
    Hashbuddy wasn’t updated since 2 years.
    Do you use WDS-BuddyPress-Project-Framework ?

    Debug
    To test, you can deactivate all plugins except BP. It’s important you ensure that at least the basic install of WP+BP is fully working. First with a twenty theme and second, with your theme (not the child).

    If the site is for a client, you’re a pro. Hopefully you have a sandbox install (locally or online) to do this debug work ?!!!

    Any thoughts @djpaul, @r-a-y ?

    #256595
    Fahmi Barnes
    Participant

    Well, i tried reinstall WordPress and install BP with some plugin yesterday and still have this problem. What is wrong with my site? First i can’t edit post on visual editor and now this. Any other way to fix it? thanks before.

    #256583
    Stacy (non coder)
    Participant

    My host supports all those and my wordpress is the latest. Stil having this issue since the latest bp upgrade.

    #256578
    coffeywebdev
    Participant

    also ‘bp_signup_validate’

     function bp_password_beefing() {
     global $bp;
    
     if ( !empty( $_POST['signup_password'] ) )
       if ( strlen( $_POST['signup_password'] ) < 6 )
        $bp->signup->errors['signup_password'] = __( 'Your password needs to be at least 6 characters', 'buddypress' );  
     }
     add_action( 'bp_signup_validate', 'bp_password_beefing');

    source:
    http://wordpress.stackexchange.com/questions/160475/how-to-increase-password-requirements-for-registration

    #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

    #256575
    coffeywebdev
    Participant

    In the WordPress dashboard, find under the Users menu a link titled, “Profile Fields”(Users>Profile Fields)

    Once you click on this link, then you can add new fields to the profile by clicking the Add New Field button.

    When you’ve added a field to the Base(Primary) field group, then it will appear on your registration pages and user profiles.

    #256573
    coffeywebdev
    Participant

    Copy the buddypress theme into your WordPress child theme, and then you can modify the register template if needed.

    copy the buddypress theme into your child theme by pasting this path into your child theme folder
    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress

    path of file for registration fields is this:
    /wp-content/themes/child-theme/buddypress/members/register.php

    Then, add First and Last name fields under User>Profile Links in the WordPress Dashboard.

    Currently there is a ‘Name’ field that is required, you can edit it to read ‘First Name’ then add another ‘Last Name’ field..

    Then you need to process the data before it saves into the database, I’m kind of at a loss here… I would need more time to brainstorm on it but I did find this hook ‘bp_core_signup_user’

    I believe this is the hook you are looking for:

    // define the bp_core_signup_user callback 
    function action_bp_core_signup_user( $array, $int, $int ) { 
        // make action magic happen here... 
    }; 
             
    // add the action 
    add_action( 'bp_core_signup_user', 'action_bp_core_signup_user', 10, 3 ); 
    #256550
    Henry Wright
    Moderator

    The Theme My Login plugin does that quite well.

    #256518
    danbp
    Participant

    In addition, and relative to this point:
    Often people don’t have a profile picture on their harddrive/desktop

    you can use BP Avatar Suggestion

    If profile informations are important for your project, you can also use my BuddyPress Progress Bar plugin, which helps any site administrator to kindly remember his community members to complete their profile in a clear, significant and non-obstrusive way.

    #256515
    danbp
    Participant

    Hi @curely,

    auto embeding videos into WP is conditioned by certain rules. By default, embeding does only work for approved providers. FlowPlayer is not part of these.

    But you can try to add it and see if embeding videos from that provider becames to work. Read here how to do that:

    https://codex.wordpress.org/Embeds

    #256499
    danbp
    Participant

    It is possible and that’s what i explained on both topics i indicated.

    By default BP use only a textarea. You can add a WYSIWIG editor by using that snippet.

    All that is WP stuff and is explained on WP’s codex.

    user_can_richedit
    wp_editor

    Check you have correctly added anything to your custom page and if the button is still missing, check first the page source code from within your browser. If you find it in code but don’t see it on screen, there may be a css rule who hide it.

Viewing 25 results - 4,326 through 4,350 (of 22,689 total)
Skip to toolbar