Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 3,976 through 4,000 (of 31,071 total)
  • Author
    Search Results
  • #259267
    danbp
    Participant

    Hi,

    have you correctly set up the child theme ?
    You can test the CSS by adding it directly to your theme csss file (just while testing). If it works there, it should work in the child. If not, you have a problem with the child.

    It could also be that you use a theme who give you the opportunity to add custom css via the theme settings page. If it is the case, you add the css there.

    You can also try by adding !important to each rule. Ie. font-size: 15px!important;

    #259260
    metalhead
    Participant

    Thanks very much guys!

    One last question: If I go for the css trick, which css file is associated with register.php?

    I have a child theme, and I tried adding the code to the .css file in the root of the child theme folder, but that didn’t work.

    #259247
    danbp
    Participant

    Do you mean html <style> tag or inline css style ?

    The form is texturized and use wp_kses filter. To allow some html tags (at your own risk), you can use such a function:(in bp-custom or child theme functions.php)

    function bpfr_notice_allowed_tags( $activity_allowedtags ) {
    
    		$activity_allowedtags['p']		= array();
    		$activity_allowedtags['strong']		= array();	
    		$activity_allowedtags['s']		= array();	
    
    	return $activity_allowedtags;	
    }
    add_filter( 'bp_activity_allowed_tags', 'bpfr_notice_allowed_tags' );
    simon1970
    Participant

    @henrywright Thanks, yes I would like to be able to use translation files and have tried in the past too but for some reason I can’t get them to work. I suspect it might have something to do with BeTheme as this theme has caused me lots of issues in the past. I will probably try to get to the bottom of it again sometime but for now I’m really glad I got the templates working anyway πŸ™‚

    #259216
    Henry Wright
    Moderator

    I’ve tested BuddyPress on Twenty Fifteen and Twenty Sixteen recently, both work great. Outside of those 2 themes you’ll have many choices but my best advice would be to set up a testing site and try out before you go live.

    Hope this helps.

    #259212
    danbp
    Participant

    Hi,

    color scheme’s are usually defined by the theme. Positioning elements needs some ID’s or class correctly defined and a medium knowledge for HTML & CSS handling.

    if you create a child theme, you can change a lot of things related to BuddyPress, including CSS.

    Read through the theme guidelines on BP Codex to get a general overview and check also the documentation of your theme.

    Unfortunately, you use a premium theme and, as we have no access to his code, we can’t assist you more for it. Any questions related to it should be asked on your theme support.

    But don’t hesitate to search the BuddyPress forum using keywords like css, template and so on…

    #259203
    shanebp
    Moderator

    Manually delete the existing entries.
    Place this in your theme/functions.php or in bp-custom.php to prevent creation of new entries.

    function bp_activity_do_not_save( $activity_object ) {
    	$exclude = array(
    	        'updated_profile',
    	        'new_member'
    	    );
    	
    	if( in_array( $activity_object->type, $exclude ) )
    		$activity_object->type = false;
    }
    add_action('bp_activity_before_save', 'bp_activity_do_not_save', 10, 1 );
    #259201
    GeekGal
    Participant

    Thanks. That goes a little bit beyond what I was looking for. Was hoping just for a theme. Do you recommend any reliable stable themes for buddypress? Thanks.

    #259198
    danbp
    Participant

    Sorry, I haven’t tested the plugin i mentionned. You’re right it doesn’t show a button but simply display favorites differently.

    OK, here is a snippet you can add to bp-custom.php which will add a Favorite button to blog posts.

    Note
    the function works with currrent BP version (2.6.2).
    The grey side of this solution is that you have to use a child-theme and to tweak a little the way the button will show. This is very theme dependant and would not be used the same way if you use ie. Twenty Sixteen or ie. Graphene.

    While using 2016, you can simply echo the button on the template.
    If you use a more complex theme, you could probably use an existing action hook of the theme. This means that you need a function who hooks into such a predefined placeholder.

    In any case, the file to modify is your theme’s single.php. Copy it into the child theme to get:
    /wp-content/themes/child-theme/single.php

    If you don’t see any do_action( ‘something’ ), you add the following in an appropriate place:

    echo get_fav_or_unfav_button_for_post( $post );
    Certainly inside the post loop, and probably below the post and before the comments.

    If you see some action hooks in single.php, you add this function to bp-custom:

    function fav_buttons() {
      echo get_fav_or_unfav_button_for_post( $post );
    }
    add_action( 'graphene_before_comment_template', 'fav_buttons' );

    You need to change graphene_before_comment_template to the action name used by your theme.

    add_action( 'graphene_before_comment_template'

    Hope to be clear.

    And here the function for the button:

    function get_fav_or_unfav_button_for_post( $post ) {
    global $bp, $activities_template, $post;
    
    	// only show the button to logged-in users
    	if ( ! is_user_logged_in() ) {
    	return '';
    	}
    	
    	$activity_id = bp_activity_get_activity_id( array(
    		'user_id' => $post->post_author,
    		'type' => 'new_blog_post',
    		'component' => 'blogs',
    		'item_id' => 1,  // blog_ID
    		'secondary_item_id' => $post->ID // post_ID
    		) );
    	
    	if ( ! $activity_id ) {
    	return '';
    	}
    
    	bp_has_activities(); // update $activities_template with user's favs
    	$old_value = false;
    		
    	if ( isset( $activities_template->activity->id ) ) {
    		$old_value = $activities_template->activity->id;
    		$activities_template->activity->id = $activity_id;
    	} else {
    		$activities_template->activity = (object) array( 'id' => $activity_id );
    	}
    	
    	// build the template
    	$code = '';
    	$code .= '<div class="activity-meta">'."\n";
    
    		if ( ! bp_get_activity_is_favorite() ) {
    		// if not favorited, add a "Favorite" button
    		$code .= ' <a href="'.bp_get_activity_favorite_link( ).'" class="button fav bp-secondary-action" title="Add to my favorites">Favorite</a>'."\n";
    		
    		} else {
    		
    		// else, add "Unfavorite" button
    		$code .= ' <a href="'.bp_get_activity_unfavorite_link( ).'" class="button unfav bp-secondary-action" title="Remove from my favorites">Unfavorite</a>'."\n";
    		
    		// Bonus button: "View all my favorites"
    		$code .= ' <a href="'.bp_loggedin_user_domain() . 'activity/favorites/" class="button unfav bp-secondary-action">View all my favs</a>'."\n";
    		}
    		
    	// closing .activity-meta
    	$code .= '</div>'."\n"; 
    
    	if ( false !== $old_value ) {
    		$activities_template->activity->id = $old_value;
    	} else {
    		//$activities_template->activity = null;
    $activities_template->activity = (object) array( 'id' => $activity_id );
    	}
    	return $code;
    
    }

    And voila !

    #259189
    danbp
    Participant

    Salut,

    members are deleted 3 or 4 days after their registration
    Perhaps simply because they deleted their account ? πŸ˜‰
    Check Settings > BuddyPress > Options
    Suppression de compte []Les membres peuvent supprimer eux-mΓͺmes leur compte

    or some custom function in theme or bp-custom ?

    To know if it is related to theme, Force Photo or any other plugin, deactivate it(them) and see if it change something.

    Nothing better at the moment.

    #259157

    In reply to: [Resolved] Child Theme

    danbp
    Participant

    Is the child theme only good for Buddypress editing? YES

    Or can I use it to edit another plugin as well? NO
    Plugins don’t have (at the moment) a child-plugin.

    #259155
    danbp
    Participant

    Hi,

    no need to triple post. One topic is enought. (i deleted the 2 others).

    You have trouble with a plugin, and this plugin has is own support. You have to ask there and give more details about your install (WP/BP version, used theme name, plugin list).

    #259149

    In reply to: [Resolved] Child Theme

    metalhead
    Participant

    I did what you said and it’s working now. Thank you very much!

    It’s confusing as to why the new sub-folders differ so much from the originals. (In the child theme, we don’t have bp-templates, for example.)

    Is the child theme only good for Buddypress editing?

    Or can I use it to edit another plugin as well?

    If I can use it to edit other plugins, could you give me an example of how I will create that path?

    #259141
    danbp
    Participant

    Hi @bastianernst

    guess you made some mistake while activating BuddyPress and using your theme. Probably you have also some other plugins in use ?

    So, aside from reading absolutely throuhg the install BP documentation, i strongly recommand that you check the site fonctionnalities by using only:

    WP+BP+Twenty Sixteen theme. No other plugin, no custom code.

    If you allowed registration, you have a login widget (the one coming with WP) you can activate in the sidebar. Do this for testing the password change (click on lost password ?) once active.

    Also on the basic install, you should have all BP menus in the usermenu (top right corner) and on a user profile.

    Once anything ok on this install, upload BP Default Data plugin and activate it. This will add fake datas in all parts of BP, so you have content everywhere that let you test completely the site.

    Go through and see how it works.

    If all seems ok, you can then activate the final theme. Simply remind that BP pages should be empty, without any content or template model.
    Don’t forget to set up pretty permalinks (whatever but by default) and with a little luck, you’ll be on the right path.

    #259134

    In reply to: [Resolved] Child Theme

    danbp
    Participant

    Hi,

    it’s wrong !

    1) You add only copies of the files you want to modify. The original templates are in
    wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/

    2) the path in a child should respect the original directories, like this
    wp-content/themes/graphene-child-theme/buddypress/members/register.php

    simon1970
    Participant

    Hi,

    Thanks for all your help. I still can’t get that method to work but I have found what I believe is a better (or at least an alternative) way to do this, using the bp-templates system. The bp-templates system was the method I had previously been trying to use but for some reason I couldn’t get it to work. It turns out I was using the wrong path for the templates in my child theme. The following article set me straight:

    https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/

    The above article explains the correct path for the templates. The mistake I made was to include bp-templates\bp-legacy followed by \buddypress in the path in my child theme. I should not have included the bp-templates\bp-legacy part of the path and just started with buddypress instead. I hope that makes sense.

    Now I can make all my changes to the template files instead, and these changes won’t be affected by any updates.

    Thanks again,

    Simon

    #259125

    In reply to: [Resolved] Child Theme

    metalhead
    Participant

    Thanks! Now, to be certain, let me ask you this:

    This is the original path to the original register.php:
    public_html/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/register.php

    This is the new path that I created by adding new folders:

    public_html/wp-content/themes/graphene-child-theme/buddypress/bp-templates/bp-legacy/buddypress/members/register.php

    Please notice that I did NOT create a folder called “plugins,” during this process. Is this correct?

    If not, let me know where I goofed. But if I am correct, and there will be no folder called “plugins,” with regard to the child theme, then let me ask this last question:

    I will MAKE CHANGES TO the child theme’s register.php, and I will stop caring about what happens with the ORIGINAL register.php. Is this correct?

    Thanks for your patience with me. I appreciate very much!

    simon1970
    Participant

    Hi,

    After multiple unsuccessful attempts to get this to work using PoEdit and the plugin mentioned above I am starting to think that it might be a theme issue. I am using BeTheme. If anyone has any knowledge of how .mo files work with BeTheme, please let me know as I am pulling my hair out here.

    Thanks,

    Simon

    ckchaudhary
    Participant

    Hi,
    Buddypress doesn’t ship with reduxframework files. You are probably using a premium theme. I suggest you deactivate all plugins except buddypress, activate twentysixteen theme and then test. This will rule out any theme conflicts. If it works with default theme, you’d know the issue lies somewhere in your theme.

    #259118
    ckchaudhary
    Participant

    Hi there,
    This appears to be some javascript issue, possibly an eror in your theme’s or some other plugin’s javascript code. Without looking at your website, it’s hard to guess anything.
    Have you tried ruling out plugin&theme confilcts by disabling plugins and switching to default theme?

    danbp
    Participant

    hi Henry @henrywright,

    wp-content/languages/plugins/buddypress-en_GB.mo

    this path is the one used by GlotPress’s official automated translation updates for BP (and any other plugin translation if it exist). Same behave for the languages/themes/ directory.

    If you add a customized po/mo there, it will be overwritten at next update !

    Since i18n new improvements in WP 4.6, the only way to keep the integrity of a custom translation actually, so far i know, is to use this plugin: wpt-custom-mo-file, who allows you to override and use your own translation files for any WordPress themes or plugins.

    Just to let you know. πŸ™‚

    #259107

    In reply to: [Resolved] Child Theme

    Venutius
    Moderator

    The answer is yes and yes!

    Yes a BP theme is a WP theme that has been optimised for BP.

    And yes, if you create a child theme and copy the PHP file into wp-content/mychildtheme/buddypress/etc the file will be protected from bp updated.

    #259091
    shanebp
    Moderator

    Try this in your theme/functions.php

    function shanebp_the_title( $title, $id ) {
    
         if ( bp_is_user() ) 
    	 if ( $title == bp_get_displayed_user_fullname() )
    	     $title = '';
    
         return $title;
    	
    }
    add_filter( 'the_title', 'shanebp_the_title', 100, 2 );
    #259075
    Venutius
    Moderator

    I’m not an expert but I think that would involve doing a template overload of the user profile php files and editing the files in the members/single section.

    Theme Compatibility & Template Files

    Sorry I can’t be more specific

    #259074
    BillRox
    Participant

    Thanks Venutius,

    Yes, the icons are from the Kleo theme and replace the links from Buddypress. I want to remove those sections.

    Here are the default links in BP.

    Links

    I want to remove some of those.

Viewing 25 results - 3,976 through 4,000 (of 31,071 total)
Skip to toolbar