Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 6,701 through 6,725 (of 32,561 total)
  • Author
    Search Results
  • #246408
    shanebp
    Moderator

    How are you creating the custom taxonomy pages?

    re: ‘We get this annoying error’ – yes it is annoying.
    It also indicates that something is calling BuddyPress or a WP user function too early in the load process – usually via a hook.
    Unfortunately, many themes and plugins do that and there is no warning – but BP will issue the warning.
    Tracking down the culprit can be difficult.

    That warning notice will not appear if you are only using WP and BP with a standard WP theme like 2015.

    #246375
    mushroominternet
    Participant

    I have a Buddypress installation on a WP multi-site. Everythings working great but the Groups. I currently have 8 groups, however when I try to create a new one something strange is going on.

    Once I’ve choosen a group name and description the next step seems to be missing (See image below)
    http://i0.simplest-image-hosting.net/picture/group-fail.png

    After I click Finish I get taken to this screen confirming ‘Are you sure you want to do this?’ (See image below)
    Are you sure message

    The starnge thing is that once I click try again the group gets added but seems to remove another group in it’s place. This means everytime I try to add a new group one get’s removed. The groups are all in the database but for some reason Buddypress only ever shows 8 groups.

    I’m running a custom built theme built on top of the default 2012 theme. I have tried disabling all plugins but Buddypress, and reverting to the default theme with no luck. I have also uninstalled Buddypress and reinstalled it but that didn’t work either.

    Any help would be greatly appreciated.

    #246369

    In reply to: Custom Hook Help

    shanebp
    Moderator

    I just tested it and it works properly. [ Don’t use an ‘exit’. ]

    function test() {
        echo "<br>test worked!<br>";
    }
    add_action('bp_after_registration_confirmed', 'test');

    Are you using a custom register page?
    If so, does it have the do_action hook you’re trying to use?

    Also try it with a standard WP theme like 2015.

    #246354
    danbp
    Participant

    Hi,

    this can be done by template overload and a child-theme.

    #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.

Viewing 25 results - 6,701 through 6,725 (of 32,561 total)
Skip to toolbar