Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 2,901 through 2,925 (of 31,071 total)
  • Author
    Search Results
  • #272889
    Joseph G.
    Participant

    There is something wrong with either of your theme or your shortcode syntax. We’ve been using both Visual Composer +bbPress+BuddyPress for several years and we have no issues so far.

    Take note that the theme must support buddypress or bbpress, atleast from the a simple stylesheet.

    Check out this theme: http://flocks.dunhakdis.com/community-forums/ . The homepage uses bbpress shortcodes formatted inside a VC block.

    Cheers

    steeley1
    Participant

    Hi and thank you for your reply. I will try that plugins.

    Regarding the cover, my theme support says they can’t support me since they don’t feel the issue is theme related, I’m at a loss. Uh

    wbcomdesigns
    Participant

    @steeley1 You can change the notice string via translating them. You can use loco translate plugin.
    For Group Cover, check with your theme support

    #272793

    In reply to: sitewide notice

    Venutius
    Moderator

    Well the function that is probably being used is messages_send_notice, but that’s not guaranteed, you’d need to search for that in your plugins and theme directories files, that’s where the function you are looking for are likely to reside.

    #272777

    In reply to: sitewide notice

    sugar7
    Participant

    The first file;
    <?php
    /**
    * @package Boss Child Theme
    * The parent theme functions are located at /boss/buddyboss-inc/theme-functions.php
    * Add your own functions in this file.
    */

    /**
    * Sets up theme defaults
    *
    * @since Boss Child Theme 1.0.0
    */
    function boss_child_theme_setup()
    {
    /**
    * Makes child theme available for translation.
    * Translations can be added into the /languages/ directory.
    * Read more at: http://www.buddyboss.com/tutorials/language-translations/
    */

    // Translate text from the PARENT theme.
    load_theme_textdomain( ‘boss’, get_stylesheet_directory() . ‘/languages’ );

    // Translate text from the CHILD theme only.
    // Change ‘boss’ instances in all child theme files to ‘boss_child_theme’.
    // load_theme_textdomain( ‘boss_child_theme’, get_stylesheet_directory() . ‘/languages’ );

    }
    add_action( ‘after_setup_theme’, ‘boss_child_theme_setup’ );

    /**
    * Enqueues scripts and styles for child theme front-end.
    *
    * @since Boss Child Theme 1.0.0
    */
    function boss_child_theme_scripts_styles()
    {
    /**
    * Scripts and Styles loaded by the parent theme can be unloaded if needed
    * using wp_deregister_script or wp_deregister_style.
    *
    * See the WordPress Codex for more information about those functions:
    * https://codex.wordpress.org/Function_Reference/wp_deregister_script
    * https://codex.wordpress.org/Function_Reference/wp_deregister_style
    **/

    /*
    * Styles
    */
    wp_enqueue_style( ‘boss-child-custom’, get_stylesheet_directory_uri().’/css/custom.css’ );
    }
    add_action( ‘wp_enqueue_scripts’, ‘boss_child_theme_scripts_styles’, 9999 );

    /****************************** CUSTOM FUNCTIONS ******************************/

    // Add your own custom functions here

    ?>

    The second contains:

    <?php

    if ( !defined( ‘BP_AVATAR_THUMB_WIDTH’ ) )
    define( ‘BP_AVATAR_THUMB_WIDTH’, 35 ); //change this with your desired thumb width

    if ( !defined( ‘BP_AVATAR_THUMB_HEIGHT’ ) )
    define( ‘BP_AVATAR_THUMB_HEIGHT’, 35 ); //change this with your desired thumb height

    ?>

    #272776

    In reply to: sitewide notice

    Venutius
    Moderator

    functions.php or bp-custom.php is possibly where an additional function has been setup to create the notice:

    wp-content/themes/your child theme/functions.php

    or

    wp-content/plugins/bp-custom.php

    #272769
    ttremain
    Participant

    Thought I had an additional issue. ‘screen_function’ wasn’t getting reached. The theme was ALSO creating a menu item with the same slug.

    Solved.

    Varun Dubey
    Participant

    @madwester You can use Theme My Login plugin, it will define all endpoints including forgot password as well.

    #272684
    jameskoo
    Participant

    Oh I see, but this is a good solution too.

    May I know where do you apply these shortcodes?
    1) For the main member page (activity) use the following shortcode:
    [bp_user_profile_link text=”Profile” ]

    2) For the View Profile page
    [bp_user_profile_link text=”View My Profile” target=”profile”]

    3) For the Edit Profile page
    [bp_user_profile_link text=”Edit My Profile” target=”edit_profile”]

    As for now, I just created a functions.php in my child theme. And pasted the codes into the functions.php.

    #272679
    ma3ry
    Participant

    My coder gave me the following information. It works for me. If it doesn’t work for you, I’m sorry but I don’t know what to tell you. I’m not a coder.

    CUSTOM MENU SHORTCODES

    Create a simple shortcode by adding the following in child-theme’s functions.php file

    add_shortcode( 'bp_user_profile_link', 'bp_user_profile_link_shortcode');
    function bp_user_profile_link_shortcode( $atts ){
    	$atts = shortcode_atts( array(
    		'text'		=> 'Profile',
    		'target'  => ''
    	), $atts );
    	if( !is_user_logged_in() )
    		return '';
    	$target_link = bp_loggedin_user_domain();
    	switch( $atts['target'] ){
    		case 'settings' : $target_link .= 'settings/'; break;
    		case 'profile'  : $target_link .= 'profile/'; break;
    		case 'edit_profile'  : $target_link .= 'profile/edit/'; break;
    	}
    
    	return "<a href='" . $target_link . "'>" . $atts['text'] . "</a>";  }

    Now this gives you the chance to choose which profile link you want to target. So

    1) For the main member page (activity) use the following shortcode:
    [bp_user_profile_link text=”Profile” ]

    2) For the View Profile page
    [bp_user_profile_link text=”View My Profile” target=”profile”]

    3) For the Edit Profile page
    [bp_user_profile_link text=”Edit My Profile” target=”edit_profile”]

    CUSTOM MENU URL (this may be very specific to my website. I don’t know.

    Edit Profile: https://yourwebsite.com/members/–sububsername–/profile/edit/group/1/

    Hope this helps.

    #272676
    Venutius
    Moderator

    Yep BP does not come with those features, they must be provided by your theme. You’ll need to ask them for support since we’ll not be able to replicate your setup.

    #272675
    jimbonorth
    Participant

    I have double checked and the Theme I am using is the KLEO Template by By SeventhQueen.

    #272674
    Venutius
    Moderator

    In that case I don’t think that page is part of your BuddyPress install, I’m thinking it must have come with your theme, unless you renamed an existing bp page to that. there’s quite a few ways of getting the members page in masonry view, but unless you set it up specifically then it’s not part of the standard bp install I don’t think.

    #272672
    jimbonorth
    Participant

    I’m using Divi Theme alongside a Visual Composer plugin for page editing. I dont think there is anything related to BP-Nouveau. I might be wrong though.

    #272671
    Venutius
    Moderator

    Members Masonry Page? Are you running BP-Nouveau or is that something supplied by your theme?

    #272665
    ChuxMark
    Participant

    WordPress 4.9.5 running Twenty Seventeen theme. The only change to WP is that I deactivated Hello Dolly and installed Jet Pack. There are no other files in public_HTML. If you have no other thoughts, I am going to try terming this cPanel user and starting with a fresh domain, then I will install BP on WP

      without

    Jet Pack.

    THANKS for getting me this far.

    #272664
    Venutius
    Moderator

    Either something went badly wrong with your install, wich is unlikelu or there’s something running on your site that is seriously messing with BuddyPress. Now you know how to recover from this, you could disable all other plugins, switch to the 2017 theme and then re-enable BuddyPress, to see if it works on it’s own.

    mubiesam
    Participant

    @vapvarun did change to activate BuddyPress at the network level, but only https://lt.johocen.com/ will not display the toolbar, the other 2 sites are OK.

    Will it be conflict with the theme used? where should i look into?

    Your suggestion is highly appreciated.
    Sam

    #272523

    In reply to: Fields on single line

    yodam
    Participant

    Thank you for your answer.

    I’ve tryed many themes and I had the same result

    #272521
    Varun Dubey
    Participant

    @galador WordPress login is same as BuddyPress login; you can create a themed login page as well.

    IF you are concern about WordPress.com login options, it might be possible you have enabled it inside Jetpack plugin setting, you can disable from Jetpack option https://jetpack.com/support/sso/

    #272519

    In reply to: Fields on single line

    Varun Dubey
    Participant

    @yodam it’s theme css specific issue. You can inline fields with CSS.

    #272517
    Varun Dubey
    Participant

    @demiano You can try following codes inside your child theme functions.php or use code snippet plugin

    
    add_action( 'bp_core_activated_user', 'wb_set_email_notifications_preference');
     
    function wp_set_email_notifications_preference( $user_id ) {
     
        //I am putting all the notifications to no by default
        //you can set the value to 'yes' if you want that notification to be enabled.
        $settings_keys = array(
            'notification_activity_new_mention'         => 'no',
            'notification_activity_new_reply'           => 'no',
            'notification_friends_friendship_request'   => 'no',
            'notification_friends_friendship_accepted'  => 'no',
            'notification_groups_invite'                => 'no',
            'notification_groups_group_updated'         => 'no',
            'notification_groups_admin_promotion'       => 'no',
            'notification_groups_membership_request'    => 'no',
            'notification_messages_new_message'         => 'no',
        );
     
        foreach( $settings_keys as $setting => $preference ) {
     
            bp_update_user_meta( $user_id,  $setting, $preference );
        }
    
    }
    
    #272493
    Galador
    Participant

    Yes so I got it to work, it just decided to randomly work when I showed my husband why I was so angry haha

    I turned off every plugin, and went into jetpack debugging and turned it off completely and then swapped the theme back to 17, once I did that it saved. I was able to re-add all my other plugins and themes and they continued to work after that. Hopefully this helps anyone else with this problem. I dont know why it worked that time but it did.

    #272488
    Venutius
    Moderator

    The bp_core_template_plugin function is loading plugins.php from the bp-templates directory, which can be overloaded by placing your own template file in themes/child-theme/buddypress/members/single/plugins.php that’s one way of doing it. another way is to register your own template directory (inside plugin for example) and tell bp to load that.

    kwavewd
    Participant

    I believe the user is is already pulled because we show username, links to profile pages in email template already.

    There is a notification file but I already called USER_PHONE AND WORKER_PHONE. Correctly into this file.

    		$replacement = array(
    			'/\bSITE_NAME\b/U'        => wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ),
    			'/\bCLIENT\b/U'           => $args['user'],
    			'/\bCUSTOMER_USERNAME\b/U'=> $args['customer_username'],
    			'/\bARTIST_USERNAME\b/U'  => $args['artist_username'],
    			'/\bSERVICE_PROVIDER\b/U' => $args['worker'],
    			'/\bSERVICE\b/U'          => preg_replace( '/\$(\d)/', '\\\$$1', $args['service'] ),
    			'/\bDATE_TIME\b/U'        => mysql2date( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), $args['datetime'] ),
    			'/\bORDER_ID\b/U'         => $args['ID'],
    			'/\bTRAVEL_TYPE\b/U'      => $args['travel_type'],
    			'/\bUSER_PHONE\b/U'       => $args['user_phone'],
    			'/\bWORKER_PHONE\b/U'     => $args['worker_phone'],		

    This basically sets the SHORTCODE for use in admin notification email template section.

    I think I also need to add some code to the functions.php file of my theme. I see some other coding in functions.php from my past developer but it may not be related to the notification parts.

    
    $profile_name=xprofile_get_field_data( 'Profile Name' , $user_id );
        if($profile_name!=""){
    		global $wpdb;
    		$query="select * from {$wpdb->prefix}bp_xprofile_data";
    		$phone=$wpdb->get_results($query);
    		if(count($phone)>0){
    			$arr=array();
    			foreach($phone as $service){
    			$arr[]=	$service->ID;
    			$arr2=array(
    				'service_id' => $service->ID,
    				'provider_id' => $user_id,
    				'additional_price' => 0						
    				);
    				
    			$wpdb->insert( "{$wpdb->prefix}app_service_additional_price", $arr2);
    			}

    I don’t understand how we can change this to bp_xprofile_data all I need to call at this point is the phone data id 206 and 7 the field title is Phone.

    This is what I have in my confirmation template but not working error line user phone and worker phone

    $User_phone = get_userdata($r->phoneuser);
    $Worker_phone = get_userdata($r->phoneworker);
    		 
    		$args = array(
    			'user'     => $r->name,
    			'customer_username'=>$customerUser->user_login,
    			'artist_username'=>$artistUser->user_login,
    			'service'  => $appointments->get_service_name( $r->service ),
    			'worker'   => appointments_get_worker_name( $r->worker ),
    			'datetime' => $r->start,
    			'price'    => $r->price,
    			'deposit'  => $appointments->get_deposit( $r->price ),
    			'phone'    => $r->phone,
    			'user_phone'  => $User_phone->user_login,
    			'worker_phone' => $Worker_phone->user_login,
    			'phoneuser' => $wpdb->get_col("SELECT value FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 206 AND user_id = $user_id");
    			'phoneworker' => $wpdb->get_col("SELECT value FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 7 AND user_id = $user_id");	
    			'note'     => $r->note,
    			'address'  => $address,
    			'email'    => $email,
    			'city'     => $r->city,
    			'number_of_guest'=>$r->number_of_guest,
    			'travel_type'=>$travel_type,
    			'ID'=>$r->ID
    		);

    I also tried this which did not show errors but just didn’t work

    $User_phone = $wpdb->get_col("SELECT value FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 206 AND user_id = $user_id");
    $Worker_phone = $wpdb->get_col("SELECT value FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 7 AND user_id = $user_id");		 
    		 
    		$args = array(
    			'user'     => $r->name,
    			'customer_username'=>$customerUser->user_login,
    			'artist_username'=>$artistUser->user_login,
    			'service'  => $appointments->get_service_name( $r->service ),
    			'worker'   => appointments_get_worker_name( $r->worker ),
    			'datetime' => $r->start,
    			'price'    => $r->price,
    			'deposit'  => $appointments->get_deposit( $r->price ),
    			'phone'    => $r->phone,
    			'user_phone'  => $User_phone->user_login,
    			'worker_phone' => $Worker_phone->user_login,
    			'note'     => $r->note,
    			'address'  => $address,
    			'email'    => $email,
    			'city'     => $r->city,
    			'number_of_guest'=>$r->number_of_guest,
    			'travel_type'=>$travel_type,
    			'ID'=>$r->ID
    		);
Viewing 25 results - 2,901 through 2,925 (of 31,071 total)
Skip to toolbar