Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 6,726 through 6,750 (of 32,561 total)
  • Author
    Search Results
  • #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.

    #246035
    Henry Wright
    Moderator

    I’ve recently installed Buddypress to my WP theme

    Can you explain exactly the steps you took?

    #246032
    Venutius
    Moderator

    Have you tried raising this with your theme’s creators, this seems more like a theme problem than a BuddyPress issue.

    #246027
    life5000
    Participant

    Thank you so much @henrywright and everyone too. Henry’s solution worked great for me. I do have a custom css in the design setting of my theme that allows customization without having to create a child theme. I added Henry’s code to the custom css section.

    I now have a challenge of hiding some of the tabs on my buddypress profile page; like notification tab and forum tab. I’d like to hide those tabs without having to deactivate the plugins. I would so appreciate a solution.

    Thanks so much again.

    #246001
    Henry Wright
    Moderator

    Which theme is that? BuddyPress doesn’t ask for 2 usernames. The WordPress username and the BuddyPress username are one and the same. It looks as though your theme is asking for it twice

    #245988

    In reply to: Registration process

    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 );
    #245987
    Rimon Habib
    Participant

    Frankly saying, This is something concern of theme, not plugin, as plugin developer won’t know theme structure and styling users are using, unless they use BuddPress default template parts. I did that thing actually in one of my other plugin, BuddyPress User Account Type, It wasn’t good as I said, Its theme dependent.

    But It is a nice feature to have actually, I am considering to develop a separate plugin soon for this feature, tho I need to see the feasibility first.

    #245985
    Henry Wright
    Moderator

    Sorry @life5000, I noticed that earlier in this post I mentioned you should add the snippet to your theme’s functions.php. That’s not right. It should go into your theme’s (or child theme’s) style.css file.

    I’ve just updated it so it has the right info.

    #245981
    William
    Participant

    My opinion: For simplicity, Let the user figure out that he/she needs a child theme. Period.

    #245980
    Paul Bursnall
    Participant

    @venutius Good advice yeah. From WP admin – plugins > add new, search for ‘child theme creator’. Plenty of options that will do the job.

    #245979
    Venutius
    Moderator

    I’ve not tested it myself but there are plugins such as “One Click Childtheme” available, maybe for newbies we should be recommending that?

    #245978
    Paul Bursnall
    Participant

    Themes which make use of option panels may allow you to only use the parent theme. If you can cover the changes you need by using that panel. But if you need make custom changes to css or add additional functionality, save yourself potentially big headaches and use a child theme. They don’t exist for fun.

    #245977
    Paul Bursnall
    Participant

    The ‘active’ theme should always be the child theme. That’s not my opinion, that’s fact. And you don’t need to be a developer to use, or create one. Most premium themes are packaged with a child theme, and if you don’t have one, just add a plugin and create one. Then activate it. You will find no WordPress developer that doesn’t recommend the use of a child theme.

    Maybe this will help – https://www.elegantthemes.com/blog/resources/wordpress-child-theme-tutorial

    #245974
    William
    Participant

    By the way @henrywright is one of the BuddyPress Core developers who joined team recently but look at where he said that the code should be put. He actually meant “style.css” not “function.php”. What do you say about this @style960? Even the core developer himself is not recommending the child theme!

    #245972
    William
    Participant

    I know @style960. Look, probably not all members are using default themes such 2015 which get updated every now and then OK? Some themes will never get updated anyway. Some people just want to get the work done as soon as possible and once they realize that they are loosing the changes with updates then they can find a solution to that. What’s the use of giving these people lengthy tutorials that are going to get them frustrated and they quit half way? They should start small then improve on that. If you’re a programmer at all, you first started by writing a very simple program that says “Hello World!” not a super complicated program. This is what I’m doing here!

    #245971
    Paul Bursnall
    Participant

    @william_oneb Please stop giving members advice to edit their active theme. All changes of this nature should always be made in a child theme. Check the codex – https://codex.wordpress.org/Child_Themes

    #245967

    In reply to: Bps_display shortcode

    William
    Participant

    @bennyhoang

    Paste this code in your theme’s functions.php

    function bennyhoang ($atts) {
             // Start by checking if the user if logged in
              if ( is_user_logged_in() ) {
             // Let's grab the user id
             $user_id = bp_loggedin_user_id();
             // Let's find a field called name. (REPLACE "NAME" WITH THE NAME OF THE FIELD YOU WANT)
             $Name = xprofile_get_field_data( 'Name' ,$user_id);
             // Let's output that field
             return $Name;
       } 
    }
    
    add_shortcode( 'benny', 'bennyhoang' ); 

    [benny] is your shortcode! Use it your pages/posts!

    #245961
    William
    Participant

    @life5000, Please find a file called style.css in your active theme, put this code there, save the file and reupload that file. Of course 300% is way too large but hey, I want you to see that your changes are actually working. Please adjust that size accordingly e.g 140%

    #activity-stream p {
        font-size: 300%;
    }
    shanebp
    Moderator

    Scenario 1 is easy:

    Create a template overload of this file:
    \buddypress\bp-templates\bp-legacy\buddypress\members\single\profile\profile-loop.php

    Use bp_get_the_profile_field_name() to determine of the current user should be able to see the field – based on the current member’s PMP level.

    #245924
    Paul Bursnall
    Participant

    That is incorrect. Always use a child theme for such changes, whether in style or amended/additional functionality.

    The advice above will mean css changes you have made will be lost when your theme is updated. Make all edits in a child theme, every time.

    #245910
    William
    Participant

    You don’t really need a child theme. You can just “inspect element” with your web browser and find the class or element you want to modify with CSS. Once you find it, go to your active theme’s style.css and write new code to change the appearance.

    If I’m not wrong, you need the child theme if you just want to modify the registration form layout or template. Hope that points you in the right direction.

    #245904

    In reply to: Problems with TopBar

    flopfeil
    Participant

    i ask there weeks ago. the only comment i got was look if your theme is updated.

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