Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 4,351 through 4,375 (of 31,071 total)
  • Author
    Search Results
  • #255400
    danbp
    Participant

    @kookidooki,

    BuddyPress doesn’t handle posts, but WP. BP only mention them on the site activity.
    BuddyPres doesn’t handle the post author behave. If a post has a featured thumbnail, it’s the author who added it.
    If a post is shown with a default featured thumbnail, it’s the theme who add that feaure, not BuddyPress.

    Globally, a post thumbnail is a theme feature. BuddyPress stopped to use his own theme since 1.7 and was endless improved since to work with about any WP theme.

    Read WP codex page related to Post Thumbnail.

    #255396
    m1000
    Participant

    Thanks, but how to fix it not touching buddypress files, I tried use remove_filter in functions.php of theme but it doesn’t work – http://pastebin.com/mgRe4e2Q

    #255392
    danbp
    Participant

    I don’t think it’s an issue, but more a latency thing. The search field can be lame sometimes.

    Looking for John Doe.
    You search John = ok
    You search Doe = ok

    Doe is still in the search box. You add John after to search: Doe Joe.
    Result: nothing because the user is registered as John Doe

    Same if you enter to rapidly search terms: johndoe This brings nothing.

    Ensure that you entered correctly the terms. And test with one of WP’s default theme if you use a third party theme.
    If you have some other plugin it can be possible there is a JS conflict somewhere, but imho, no as a single term search works.

    More a PBCK issue for now.

    If you need absolutely this functionnality to work at 200%, perhaps try one of these plugins:

    https://wordpress.org/plugins/bp-profile-search/
    https://wordpress.org/plugins/buddypress-global-search/

    #255387
    sharmavishal
    Participant

    which theme are u using?

    #255382
    danbp
    Participant

    Hi @simonmnt,

    you should create a correct child-theme to get BP templates customization to work.

    First, you need to declare the child via /your-child/style.css with the correct header information.
    Eg. for a twenty fourteen child

    
    /*
    Theme Name: Fourteen-Child
    Description: My child theme for Twenty Fourteen
    Version: 1.0
    Author: simon
    Template: twentyfourteen
    */
    
    @import url("../twentyfourteen/style.css");

    Once done, you can select this child as site theme.

    Now you can add a /buddypress/ folder to /your-child/

    Inside this folder, you copy any file you need to modify from /bp-legacy/buddypress/

    You copy only the file(not the whole /bp-legacy/buddypress/ folder) you want to change, by respecting eventually the original path. Eg
    .
    /your-child/buddypress/members/single/profile/profile-loop.php

    If you need custom functions for the theme, you add a file called functions.php inside /your-child/functions.php

    If you need custom functions for BuddyPress (like most of the snippets you can find on this forum), you add them to wp-content/plugins/bp-custom.php

    #255381
    oddreal
    Participant

    Resolved an error in Courses:

    Fatal error: Class ‘BP_Groups_Group’ not found in /path-to-project/wp-content/themes/lms/framework/buddypress/metaboxes.php on line 15
    

    A friend of mine – CMS developer – took a look at this and advised to just check User Groups at BuddyPress settings page (http://your.site/wp-admin/admin.php?page=bp-components)

    Have a nice day to all.

    #255367
    r-a-y
    Keymaster

    Not sure what to look for that might be broken…..?


    @kalico
    – Turn on WP_DEBUG:
    http://wpexplorer-themes.com/total/docs/enabling-wp-debug/

    And see if any errors pop up. If you see some notices, post them here.

    #255366
    r-a-y
    Keymaster

    @metaverso – Your solution is a quick fix, but not the right solution.

    We need to see what the underlying cause is.

    If someone can pass me a copy of the LMS theme for solely debugging purposes, I can find out the problem. Contact me on wordpress.slack.com (r-a-y) or via email.

    #255354
    danbp
    Participant

    – BuddyPress pages have all an ID.
    – BP pages are not ordinary static WordPress page, but dynamic pages, a kind of placeholder. They have no content and are only existing to have a slug (and a ID for DB magement) for WP/BP dialog.
    Eg. your-site/activity/ URL is empty when you deactivate BP.

    Let’s continue with the activity page as example.

    This “page” is made of different parts, which are contextually loaded on their own template. Use the activity filter to see what is all coming up on the (url/activity/) page. About 10 items which would be 10 real pages on a WP site without BP ! And that’s just default. Many plugins use also BP’s activity…

    For each component, there is a loop. As long as you are in such a loop, you can call what ever belong to that component from inside this loop. And for almost each loop, you have a template.

    If you want the About page (default WP page) to show up on a profile, you load it on one of the profile templates, but not on the BP member page which is the “page” who host “profiles”, but also the “member director”y. And you don’t want About apearing there, isn’t it ? 😉

    If you read the codex about theme develoment and template hierarchy, you may understand how all this is articulated.

    #255346
    David Cavins
    Keymaster

    @Earl_D: No. The above snippets are added to a custom version of the buddypress/members/single/messages/compose.php file. Basically, if you add this file to your theme (following the structure buddypress/members/single/messages/), it will be used in preference to the one BuddyPress ships with. Read more about adding custom template parts: https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/

    #255342
    binary10
    Participant

    @r-a-y i am not using any such custom code. I tested with all plugins disabled and with 2016 theme but doesn’t work. So i installed WP and BP separately to test and it worked but I still cannot get it to work on the main site. Anyways, thanks for your help

    #255340

    In reply to: Help with user menu

    danbp
    Participant

    Check your theme documentation and read WP’s Menu Guide.

    #255339
    danbp
    Participant
    #255336
    danbp
    Participant

    @daltontastic,

    color buttons are TinyMCE tools and not html tags. The only way to get them would be to use the editor toolbar.

    Here a scenario you could use:
    – create a child-theme and add post-form.php to it (copy from bp-templates/bp-legacy/buddyPress/activity/post-form.php).
    Result: your-child-theme/buddypress/activity/post-form.php

    In that file, go to line:40 where textarea start.
    Inser this action hook:

    <?php if ( bp_is_groups_component() ) : ?>
    	<?php do_action( 'blablabla' ); ?>
    <?php endif ?>

    Then add this <?php if ( ! bp_is_groups_component() ) : ?>
    <textarea class="bp-suggestions"......bla...bla...</textarea>
    and add <?php endif ?> after the textarea closing tag.

    This contionnals will show a custom area for the desired group and prevent update area to appear on all other groups home pages.

    So if a user is member of different groups, he will get a texteditor for group_id 13 and the normal update area on all others.

    The custom template is ready. Now the fonctions we need.

    Open bp-custom.php (or create it) and paste in those snippets.

    Adding the texteditor:

    function bpfr_whats_new_tiny_editor() {
    	// deactivation of the visual tab, so user can't play with style tools
    //add_filter ( 'user_can_richedit' , create_function ( '$a' , 'return false;' ) , 50 );
    
    $content = "";
    
    	// building the what's new textarea
    	if ( isset( $_GET['r'] ) ) :
    	$content = esc_textarea( $_GET['r'] ); 
    	endif;
    
    	// adding tinymce tools
    	$editor_id = 'whats-new';
    
    	$settings = array( 
    			'textarea_name' => 'whats-new', 
    			'teeny' => false, 
    			'media_buttons' => true, 
    			'drag_drop_upload' => true, 
    			'quicktags' => array(
    			'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close'
    		));	 
    	
    	// get the editor	
    	wp_editor( $content, $editor_id, $settings );
    }
    add_action( 'whats_new_textarea', 'bpfr_whats_new_tiny_editor' );

    A simple function who add the original textarea for users who are group members, but not allowed to rich edit.

    function my_textarea() { ?>
    			<textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10"
    				<?php if ( bp_is_group() ) : ?>data-suggestions-group-id="<?php echo esc_attr( (int) bp_get_current_group_id() ); ?>" <?php endif; ?>
    			><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif; ?></textarea>
    <?php
    }

    And the last one, where you set up the group allowed to publish updates using edit tools.

    function trotro() {
    
    if ( bp_is_groups_component() ) :
    
    $check = groups_is_user_member( bp_loggedin_user_id(), bp_get_group_id() );
    $check_group = bp_get_group_id(); 
    
    	if ($check != 0 && $check_group == 21 && 'leon' == bp_current_item() ){
    		echo 'Wow! You can rich edit in this group.';
    			bpfr_whats_new_tiny_editor();
    	} else {
    		echo 'Sorry, you cannot rich edit in this group';
    		my_textarea();
    	}
    
    endif;
    }
    add_action( 'blablabla', 'trotro' );

    Now, any member which is part of the group leon, group id 23 can publish updates and use the color picker and all other things which are on the edit bar.

    Only thing you have to do is to adjust leon and id to your rules.

    Successfully tested on 2.6 and 2016.

    May this help you to go further with your BuddyPress project. 🙂

    #255331
    r-a-y
    Keymaster

    @oddreal – Without having access to the theme, it’s hard to tell what the problem is, but I’m guessing it’s a problem with not checking if the Groups component is active.

    Tell the theme author to use bp_is_active( 'groups' ) to check if the Groups component is active before doing whatever group check is applicable in the widget code.

    #255329
    oddreal
    Participant

    @r-a-y, it’s a premium theme. Please see the link on it:
    http://themeforest.net/item/lms-responsive-learning-management-system-wordpress-theme/7867581/support

    Here can also be requested a backend demo.

    LMS, WordPress Responsive Theme

    Thank you for a prompt reply.

    #255327
    r-a-y
    Keymaster

    @oddreal – Is this theme freely available on wordpress.org or Github so we can take a look? Or is this a premium theme?

    #255326
    oddreal
    Participant

    Hi,

    I’ve faced the same problem. The patch https://buddypress.trac.wordpress.org/attachment/ticket/7140/7140.01.patch releaved me from the initial problem but now I have another one error message at the same place – Courses Group widget (it doesn’t allow to edit Courses):
    Fatal error: Class ‘BP_Groups_Group’ not found in /path-to-project/wp-content/themes/lms/framework/buddypress/metaboxes.php on line 15

    Please advise.

    #255319
    danbp
    Participant

    Maybe a theme setting or function ? What if you deactivate BP Wall ?

    #255314
    shanebp
    Moderator

    You should not change that function. You should use the hook.

    Try something like this in your theme functions.php:

    function hosam_delete_notification( $topic_id ) {
    
       // you cannot send an array
       // create individual variables
       $user_id = 386;  // etc
    
       bp_notifications_delete_notifications_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false );
    
    }
    add_action( 'bbp_trash_topic', 'hosam_delete_notification' );
    #255309
    danbp
    Participant

    @binary10

    did you tested with 2016 and all plugins disabled ?
    Does your theme use some specific functions for BP ?
    Have you custom code in bp-custom or functions.php ?

    #255299

    In reply to: Full Width

    Lars Henriksen
    Participant

    Hi Snorklebum,

    Thanks for sharing – can I see your page?

    I would like to use a full-width template for group pages only.

    Did you just upload a file named ‘full-width.php’ in you child theme with

    <body <?php if ( !bp_is_blog_page() ) { body_class( ‘full-width’ ); } else { body_class(); } ?>> ?

    How do you activate full-width for buddypress groups only – code says ‘blog_page’?

    Thanks,

    Lars

    #255288
    binary10
    Participant

    @r-a-y

    What type of activity item are you trying to embed?

    status update
    I saw the video but it doesn’t work on my installation. I am using WP 4.5.3 and BP 2.6. Also as in the video when the permalink is pasted into the visual editor it immediately gets converted into an embed but it doesn’t happen with my install. Is it some problem with WordPress? Other embeds work fine
    Also tested with 2016 theme but still doesn’t work? What might be the problem?
    thanks

    #255280
    tse11
    Participant

    Is there any other solution besides rolling back. My theme is now updated to accommodate the new BudyPress and this would cause another problem.

    #255255
    danbp
    Participant

    Nav items names can be changed via the language file.

    Which language do you use on your site ?
    Which language is used with BuddyPress ? (if turkish, get in touch with one of the editors here and ask for update)
    Is your theme fully translated to that language ?

    To move the User Menu sub-menu, read here.

    Check also your theme support forum, perhaps you’ll find some related topics to this WP core menu.

Viewing 25 results - 4,351 through 4,375 (of 31,071 total)
Skip to toolbar