Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 5,226 through 5,250 (of 31,073 total)
  • Author
    Search Results
  • #246305

    In reply to: Custom Hook Help

    shanebp
    Moderator

    After you register a user, do you see a message that starts with You have successfully created your account! ?

    If you do, your function should work.

    You could try putting it in the theme/functions.php

    Putting code directly into a template is okay if you create a template overload.

    shanebp
    Moderator

    The right way is to use a template overload.

    #246232
    danbp
    Participant

    Please, read a possible answer in this new codex article:

    BuddyPress Cover Images

    #246215
    Plucker
    Participant

    Hi shane, thanks for the very prompt response – I’m getting nothing on screen with debug on and nothing in the file if I also switch the debug log file on.

    This is with BuddyPress active, bbpress de-activated and with t013 theme and no other plug-ins installed.

    I have the same (or very similar) error with member avatars.

    Upload Failed! Error was: The uploaded file could not be moved to wp-content/uploads/avatars/1/avatars/1.

    #246212
    slawek247
    Participant

    Hello again.

    Thank you very much, it helped me a lot and it works fine.
    But after click in “Load More” in bottom of page, older post has been loaded. Then thoses posts are loaded with all comments. Seems, the function bp_legacy_theme_hide_comments does not work for load more. Can you confirm it? Or maybe it’s a kind of bug, or maybe other other function is responsible for this? (I tried to find some other function but without success).

    Thank you in advance.

    #246207
    shanebp
    Moderator

    That is odd.
    It’s difficult to suggest a solution when replicating the issue is nigh impossible.
    But maybe more info about the issue can be generated…

    Try using a WP theme like 2013, deactivating bbPress and turning debug on in wp-config.php
    https://codex.wordpress.org/WP_DEBUG

    The file is getting uploaded to “wp-content/uploads/group-avatars/4/” but doesn’t appear on the group.

    Does anything appear on the group? View source or use a browser code inspector to take a close look.

    #246192
    paragbhagwat
    Participant

    Ok i figured out part question 1 and 2. Basically i copied create.php in my theme and customized the text as needed. Now the remaining questions are

    1)Add additional tab or fields to existing tab for the group.
    2) I want to enforce each group having a forum is there a way i can remove the section?

    Thanks,
    parag

    #246190
    Brajesh Singh
    Participant

    Hi,
    You need to override this js function

    
     bp_legacy_theme_hide_comments(
    

    There are many ways to do it. You can either put the following code in your theme’s js file

    
    function bp_legacy_theme_hide_comments() {
    	var comments_divs = jq('div.activity-comments'),
    		parent_li, comment_lis, comment_count;
    	
    		var max_show = 2;
    	
    	if ( !comments_divs.length ) {
    		return false;
    	}
    
    	comments_divs.each( function() {
    		if ( jq(this).children('ul').children('li').length < max_show ) {
    			return;
    		}
    
    		comments_div = jq(this);
    		parent_li = comments_div.parents('#activity-stream > li');
    		comment_lis = jq(this).children('ul').children('li');
    		comment_count = ' ';
    
    		if ( jq('#' + parent_li.attr('id') + ' a.acomment-reply span').length ) {
    			comment_count = jq('#' + parent_li.attr('id') + ' a.acomment-reply span').html();
    		}
    
    		comment_lis.each( function(i) {
    			/* Show the latest 5 root comments */
    			if ( i < comment_lis.length - max_show ) {
    				jq(this).addClass('hidden');
    				jq(this).toggle();
    
    				if ( !i ) {
    					jq(this).before( '<li class="show-all"><a href="#' + parent_li.attr('id') + '/show-all/" title="' + BP_DTheme.show_all_comments + '">' + BP_DTheme.show_x_comments.replace( '%d', comment_count ) + '</a></li>' );
    				}
    			}
    		});
    
    	});
    }
    
    

    or you can put the following php code in your bp-custom.php/functions.php

    
    
    function buddydev_override_legacy_theme_hide_comments_js() {
    	?>
    <script type="text/javascript">
    function bp_legacy_theme_hide_comments() {
    	var comments_divs = jq('div.activity-comments'),
    		parent_li, comment_lis, comment_count;
    	
    		var max_show = 2;
    	
    	if ( !comments_divs.length ) {
    		return false;
    	}
    
    	comments_divs.each( function() {
    		if ( jq(this).children('ul').children('li').length < max_show ) {
    			return;
    		}
    
    		comments_div = jq(this);
    		parent_li = comments_div.parents('#activity-stream > li');
    		comment_lis = jq(this).children('ul').children('li');
    		comment_count = ' ';
    
    		if ( jq('#' + parent_li.attr('id') + ' a.acomment-reply span').length ) {
    			comment_count = jq('#' + parent_li.attr('id') + ' a.acomment-reply span').html();
    		}
    
    		comment_lis.each( function(i) {
    			/* Show the latest 5 root comments */
    			if ( i < comment_lis.length - max_show ) {
    				jq(this).addClass('hidden');
    				jq(this).toggle();
    
    				if ( !i ) {
    					jq(this).before( '<li class="show-all"><a href="#' + parent_li.attr('id') + '/show-all/" title="' + BP_DTheme.show_all_comments + '">' + BP_DTheme.show_x_comments.replace( '%d', comment_count ) + '</a></li>' );
    				}
    			}
    		});
    
    	});
    }
    
    </script>
    
    <?php
    	
    }
    add_action( 'bp_after_activity_loop', 'buddydev_override_legacy_theme_hide_comments_js' );
    
    

    Both will work. you can change the max_show to any value. Hope that helps.

    #246117
    William
    Participant

    Now, there is a “Custom CSS” section in my Theme. Will pasting the modified code there work?

    I’m not sure give it a try.

    #246106
    shanebp
    Moderator

    It looks like an issue with your theme.
    To confirm – try switching to a WP theme like 2015 and see if the problem remains.

    #246100
    konberg
    Participant

    Phew, it worked this time! After I saw it in IE!!! Thank you, William!!

    I am not sure if it was your code that helped – because other fields, not radio boxes, also got lowercased. Perhaps, it was this code that i found in style.css

    form p{
    text-transform: uppercase;
    margin: 15px 0;
    display: block;
    width: 100%;
    }

    I simply replaced uppercase with none.

    Now, there is a “Custom CSS” section in my Theme. Will pasting the modified code there work? It did for other things in my Child theme? Thank you again!!!

    #246099
    William
    Participant

    @konberg you probably did not create the child theme properly. Try pasting that code directly in “style.css” of your active theme and see if it works. Don’t paste it in child theme first.

    I tested the code from my end and it worked.

    It’s also likely that your web browser has cached your website. Try clearing the cache, restart your browser, and see if you notice the changes. If that does not work try visiting the website from another web browser such IE, Google Chrome, Firefox etc. You can even use a different computer to do so.

    #246097
    Henry Wright
    Moderator

    Unfortunately, this code did not work at all 🙁

    Likely you’ll need to change the selector #buddypress .standard-form div.radio div label so that it’s appropriate for the theme you’re using.

    #246096
    shanebp
    Moderator

    …which I have uploaded to the root of the buddpress folder

    It should go in the root of the plugins folder.

    bp-custom.php

    #246095
    konberg
    Participant

    hi William,

    This is the best advice I have seen so far, thank you so much! Unfortunately, this code did not work at all 🙁

    Yes, I am using the child theme and I did it in active folder (child theme’s folder).

    #246090

    In reply to: Help loop activities

    William
    Participant

    @RafVin Here’s how to hide “All Members” tab with CSS.

    Find a file called “style.css” in the wordpress active theme, add the code below and re-upload the file.

    #buddypress div.item-list-tabs ul li.selected a {
        display: none !important;
    }
    

    Warning! When you update your theme, you’ll loose these CSS changes so try doing this in a child theme if you’d like to retain the changes when you update your theme.

    Showing custom tasks under personal? Well that requires some custom PHP coding or probably a plugin. Hopefully, someone will help you with this.

    #246089
    William
    Participant

    @konberg find a file called “style.css” in the wordpress active theme, add the code below and reupload the file.

    #buddypress .standard-form div.radio div label {
        text-transform: lowercase;
    }

    Warning! When you update your theme, you’ll loose these CSS changes so try doing this in a child theme if you’d like to retain the changes when you update your theme.

    Let me know if that works.

    #246085
    mrjarbenne
    Participant

    I’m not sure what you mean by the “Top Tab Recipe”. If your theme is adding a custom post type, then you need to register that post type in order for it to populate the activity stream, and the user profile activity. BP should do exactly what you are looking to do once you do that: https://codex.buddypress.org/plugindev/post-types-activities/ Maybe your theme is doing this for you already if you are seeing activity generated when you post a recipe in the custom post type area.

    Your alternative idea in the last paragraph would also certainly work. You don’t need multisite for that. Make every member of your community an Author on the main site: everything they publish will appear in the Custom Post Type “Recipes” archive, along with all the posts appearing on each users profile: this is their customized space, particularly once header profile images launch in BP 2.4. This would also give you more control over the experience. You could create a publishing checklist to make sure all the recipes are categories and tagged appropriately: https://github.com/danielbachhuber/Post-Checklist

    #246079
    konberg
    Participant

    Gee, guys, thanks for not helping at all.

    The name of the element is exactly what I am trying to figure out. If my registration form looks like thisL

    WHAT IS YOUR GENDER
    [] MALE
    [] FEMALE

    I am trying to change words MALE and FEMALE to lowercase. I went through ALL CSS files in my theme, and tried replacing text-transform: uppercase with text-transform: none but it did not help at all!

    So more specifically, my questions are:

    1) what exactly controls the lowercase/uppercase of profile field answer options. Something like this:
    #buddypress .standard-form #basic-details-section – but what the hell exactly and how

    and
    2) where to find it

    Thank you!

    #246078
    shanebp
    Moderator

    Members need to be logged in before they can send a PM.
    If you’d like to provide a user / pw, somebody might take a closer look.

    You’re using a custom theme – does its member-header.php include
    do_action( 'template_notices' ); ?
    If not, the feedback messages will not appear.

    #246059
    shanebp
    Moderator

    i’ve discussed this with the theme creators and was told it was an issue with the plugin.

    Try switching to a WP theme like 2015.
    Do the warnings stop appearing?
    If so, then the problem is caused by something in your preferred theme.

    #246058
    Fobulis
    Participant

    Yes, i’ve discussed this with the theme creators and was told it was an issue with the plugin. However, I cannot seem to isolate the problem. I imported the theme using the .zip file and activated it. Then activated the associated plugins after that, including BP. But BP cannot be deactivated and keeps mass producing these error logs.

    #246050
    mc9625
    Participant

    Thanks for your reply.

    Actually what I miss is the custom post type “share” between the main site and the sub blog. I’ve installed Social Chef (I well known theme for foodblogger community). It let’s you write a custom post type “Recipe”. Actually I’ve installed the same theme for all sub blogs and I expected to see, in the member activity stream every recipe added in the blogs (Actually they are shown but not counted, I mean in the top tab “recipe” the count for the user is always 0, even if he had just posted a recipe in his blog, I can even see it in the stream). Is there something I miss?

    Basically what I want to achieve is to let every single post (or custom post) be present in the main site, in order to search for it globally, and at the same time to be shown in the member’s blog.

    Or, from another point of view, I could let every member publish their post from the main site, and then simply “group” every post from a specific user in a kind of “customised” view, like if it where his own blog, with custom background, colours, ecc.

    Does it make any sense?

    #246048

    In reply to: Login page

    Rimon Habib
    Participant

    If you want to redirect all users(admin,subscriber,all roles) to homepage after login, just use this line at your theme functions.php file
    add_filter( 'login_redirect', create_function( '$url,$query,$user', 'return home_url();' ), 30, 3 );

    Or if you filter a bit, like Admin users will redirected to dashboard, and all others to home page, you can place this code instead of that

    function wp_bp_custom_login_redirect( $redirect_to, $request, $user ) {
    	global $user;
    	if ( isset( $user->roles ) && is_array( $user->roles ) ) {
    		if ( in_array( 'administrator', $user->roles ) ) {
    			return $redirect_to;
    		} else {
    			return home_url();
    		}
    	} else {
    		return $redirect_to;
    	}
    }
    
    add_filter( 'login_redirect', 'wp_bp_custom_login_redirect', 30, 3 );
    #246042
    mrjarbenne
    Participant

    It doesn’t work like that. In a multisite instance, your users can all have their own blogs (think wordpress.com). What BuddyPress does is allow you to see all of the activity from those subsites in one Activity feed (among other things).

    I have set up the categories in the main site, and I expected to see the same categories on every site, but it doesn’t work.

    Although this isn’t a BP feature, there is a plugin that does this. It hasn’t been updated in a while, but you could test it out, or purchase support from Brajesh and request a fix if you run into issues:
    http://buddydev.com/plugins/mu-global-terms/. There’s a write-up on the plugin here: http://wptavern.com/wordpress-multisite-global-terms-plugin-share-taxonomies-across-a-network

    Also in the user activity stream I cannot see the posts the user has written in his own blog.

    That SHOULD work. You mention a custom post type though: is that the activity you are hoping to see? By default BP only shows posts and comments, not custom post types. You can register custom post types: https://codex.buddypress.org/plugindev/post-types-activities/

    If the subsite that you are hoping registers activity is set to discourage search engines in Settings/Reading then it won’t register on the main site.

    You may also want to try one of the default themes (twentyxx) to see if it’s your theme screwing things up. Many themes that tout themselves as BuddyPress-Ready, are doing some funky things best left to plugins in their functions.php file.

Viewing 25 results - 5,226 through 5,250 (of 31,073 total)
Skip to toolbar