Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 4,276 through 4,300 (of 31,071 total)
  • Author
    Search Results
  • #256550
    Henry Wright
    Moderator

    The Theme My Login plugin does that quite well.

    #256526
    danbp
    Participant

    Compare source code of the textarea on activities (which use original BP JS) and compare with the source of the custom textarea. The first thing you may notice on the original, is that there is no iframe.

    The second is that you have some tinymce related divs which aren’t handled by what’s new JS – that’s why the visual tab doesn’t recognize formatted text and why there is the filter to diable that tab.

    To show the buton and the missing selector, it’s a simple CSS adjustment to declare.
    Add this to your child theme style.css

    #whats-new-options{
    	clear:both!important;
    }

    Works at least on 2016.

    If you absolutely want the visual tab to work, you have to write some additionnal JS, so it can recognize the custom area tools. I’ve never done that and i’m unable to help you with this.

    #256523
    Henry Wright
    Moderator

    Hi @socialc

    The Template Hierarchy will let you override create.php. In your own version of that file you could use custom_show_blog_signup_form() in place of bp_show_blog_signup_form(). I’d copy everything from bp_show_blog_signup_form() to your custom function and edit what you need to.

    Bj123
    Participant

    Thanks for all your replies! @r-a-y ‘s modified zip of the plugin successfully fixed the error on my Boss themed site. It’s all working normal again. Awesome job there r-a-y!!

    #256489
    danbp
    Participant

    Global.js is related to BP Default theme which is no more used since 1.9.
    The “new” js you can check for comment count is \buddypress\bp-templates\bp-legacy\js\buddypress.js:667

    I don’t know how the default 5 count is set before firing Show all X comments link. But i haven’t read very attentively the whole js file.

    If your goal is to gain some place on activity feeds, you may use a show/hide comment button ?

    function add_comment_hide_show() {
    ?>
    <style>
    .single-group .activity-comments ul{display: none;}
    </style>
    <script type="text/javascript">
    jQuery(function($) {
    	setInterval(function() {
    		$('.activity-meta').each(function() {
    			if( !$(this).find('.show-comments').length ){
    				var html = '<a href="#" class="button bp-primary-action show-comments">Show/Hide Comments</a>';
    				$(this).find('.button.acomment-reply').after(html);
    			}
    		});
    		
    	}, 500);
    	
    	$('body').on('click', '.show-comments', function(e) {
    		e.preventDefault();
    		var obj = $(this).closest('.activity-content').next('.activity-comments').find('ul');
    		obj.slideToggle();
    		return false;
    	});
    	
    });
    </script>
    <?php
    }
    add_action( 'wp_footer', 'add_comment_hide_show' );

    Or if you want to limit the number of comment a member can leave on activities, BPDEVEL has a premium plugin called BP Rate Limit User Activity which can do that.

    On Trac, some very old tickets about comments: #2768, #1870

    Perhaps @dcavins can tell you more about this ?

    knownocode
    Participant

    Also I added Modulus to my list of themes, thanks everyone who contributed! This can be marked as closed/resolved! (not seeing how to do so myself)

    #256459
    mgenjoker
    Participant

    I was unable to see the link you saw. With my theme i see the correct link but a white screen for edit. Even though I left twentyfourteen on over night. But It’s back on my theme. I’ve tried with, removing each, and removing all of the functions in the functions.php there are only 3 basic things. That leaves it to be something in the main section of my css. I could upload my css if you wanted to take a look, I’m in the process of trying to sort stuff out somewhat. Css link: https://www.dropbox.com/s/u961o0da9am7ocy/cssBackup71016.txt?dl=0

    tutorbe
    Participant

    Hello @danbp,

    Thanks for your help,

    Actually I have been using BP 2.5.3 for several months and already did the configurations you’ve mentioned above, it has been working properly. I just tried to upgrade to BP 2.6.1.1 then the problem has happened. I tried to eliminate causes of the problem by installing a fresh WP 4.5.3 with only PB 2.6.1.1 activated, the problem still existing.

    I also tried to compare BP 2.5.3 and BP 2.6.1.1 with the same configuration, the same request and with Ray’s script, I have noticed one difference is that:
    1. For BP 2.5.3, it can send requesting {action, component} for each menu navigation, but
    2. For 2.6.1.1, it only sends only {component}

    Just would like to mention that I have tried to use BP 2.6.1.1 with different themes, the same problem has happened for all. My server uses nginx, it works well with BP BP 2.5.3.

    Thanks for helps.

    Jobi

    tutorbe
    Participant

    Dear All,

    I hope someone can point me a clue regarding the following:

    I have just installed WP 4.5.3 along with only Buddypress 2.6.1.1 activated, when I tried to access members/admin/profile/, it just returned 404 page. I have tried with different themes, the same issue still existing.

    I tried to investigated the problem using the debug script from r-a-y, it just showed:

    Array
    (
        [component] => profile
    )

    Thanks and best regards,

    Jobi

    #256434

    In reply to: Custom post type

    danbp
    Participant

    Glad you got it !

    Sad you did it wrong by hacking a plugin core file (ignitiondeck-admin.php). What will happen to your modification at next Ignitiondeck update ?

    Couldn’t your filter work from within bp-custom.php or theme’s functions.php ?
    Has that plugin no hooks to extend it ?

    IMO a generous bad good idea.

    #256431
    socialc
    Participant

    … or just add a login link to your site anywhere in your theme files. e.g <a href="<?php echo wp_login_url(bp_loggedin_user_domain()); ?>"><?php _e('Login', 'buddypress'); ?></a>.

    This will redirect a user to their profile page after logging in.

    #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

    #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 );
    #256410
    mgenjoker
    Participant

    I switched to the Twentyfourteen theme to see if it would work and it did. I don’t understand why my child theme would be causing it. I’ve tried removing my stuff from functions.php . That just leaves the css, any insite on what possibly could be causing that? It’s Weird.

    5high
    Participant

    uh oh – just logged a php error for the new code. The error reported was this:

    PHP Parse error: syntax error, unexpected ‘endif’ (T_ENDIF) in /home/mysite/public_html/wp-content/themes/child-theme/buddypress/activity/index.php on line 34

    But when I look at this file I’m pretty sure it’s the same as what you posted =

    <?php if ( is_user_logged_in() && is_super_admin() ) ?>
    	 
    	   <?php bp_get_template_part( 'activity/post-form' ); ?>
    
    	<?php endif; ?>

    and line 34 is: <?php endif; ?> which I’m pretty sure I didn’t change!

    Can anyone spot what the problem is here?

    Many thanks, j

    5high
    Participant

    @danbp – Just had another chance of reviewing this and finally the penny’s dropped! So I now totally understand what you’re doing and where the code goes and it works as expected! (as I’m sure you knew it would…)
    Though one of the issues before, rather embarrassingly, was that after migrating my site and retesting with the original theme I’d then forgotten to change it back to my child theme – so all my edits weren’t taking effect – duh!
    So now it works AND it has the correct code in.
    many thanks for your time again, j

    #256394
    mcarlyle
    Participant

    Hi, Ive spent most the day trying to add widgets to the profile areas and stumbled accross this explanation which seems perfect but doesnt seem to work for me.

    The widget areas are there and populated, and the home tab is displaying, but the widget content doesnt display?

    Is it possible my front.php is not being called for some reason?

    Im using an Avada Child theme, could that be part of the problem?

    Thanks

    #256168
    socialc
    Participant

    @danbp yeah, sorry about that :). Reason I went a bit further was when working on a theme earlier I was using a function get_displayed_group_id() or something with a similar name. I was expecting a return value but it was echoing no matter where I placed this.

    Ended up using a different method.

    Just wondered if there were other functions inside BuddyPress that looked like a return value but had output instead.

    #256166

    In reply to: Custom post type

    danbp
    Participant

    Have you read this tutorial ?

    Note that most of BP custom functions for core are better handled when living in bp-custom.php. Sometimes also, a same function may work from within one file, but not from the other. In other case, which file has no real importance.
    Even if in background there is a hierarchy and a load order, to take in account for the file choice.

    That said, as it is related to CPT, bp-custom is the best place IMO.

    Theme’s functions.php contains functions related to theme, templating and evtl. wp stuff
    BP custom functions goes to bp-custom.php

    It’s also better for you to have such separated functions.

    #256162

    In reply to: Multisite

    peterBerlin
    Participant

    For some unknow reason, it all worked out the next day and the local themes was working again. Maybe the server restarted or something… who knows.

    #256158
    socialc
    Participant

    Inside your theme, make sure there is a file wp-content/themes/your-theme/buddypress/activity/post-form.php. If there is no file in that location copy this file wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/post-form.php into the first location.

    Then, look at line number 28 – 32 of post-form.php.

    From there, you will notice you can change this text for the activity update form which reads “What’s new in “GROUP NAME” if you’re on a group page posting the update or “What’s new USERNAME” if you’re any where else.

    So, to swap in a specific profile field you’d need to supply a bit more about the nature of your project and how it’s setup. You could simply drop in some static text, but if you want it to relate to a specific profile field in a dynamic way then please elaborate further.

    #256147
    binary10
    Participant

    Might be a theme problem? Try if it works with WP default theme or use this CSS .entry-title{display:block !important}

    #256136
    sharmavishal
    Participant

    yes its not…check with the theme author

    #256135
    pulidomate
    Participant

    I’m using WPLMS theme:
    https://themeforest.net/item/wplms-learning-management-system/6780226

    Maybe is not a problem of Buddypress?

    #256078
    danbp
    Participant

    If you’re sepaking about the Group directory page, yes !

    # of columns can be defined by CSS. For other details, read here
    https://buddypress.org/support/topic/how-to-display-multiple-single-group-headers-on-a-single-page/

    You need also a child-theme to do customization.

    Codex is your friend. πŸ˜‰

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