Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 3,426 through 3,450 (of 31,071 total)
  • Author
    Search Results
  • #266291
    r-a-y
    Keymaster

    Graphene Mobile Neo is a premium addon so it is hard for us to test it. What happens when you disable that addon? Does the uploader work? If not, you’ll have to look into debugging iOS Safari.

    If you can duplicate this issue on a free theme, let us know.

    #266288
    ketzita
    Participant

    You were correct. I switched to Twenty Seventeen, and it worked.

    I’m using the Graphene theme, along with its special “Graphene Mobile Neo” theme for mobile.

    Can I correct this problem by putting !important in front of some properties in avatar.min.css?
    If so, which properties should I add that to?

    Or if that’s not the solution, is there a better way to solve this besides switching to a different theme?

    Thank you!

    #266287
    r-a-y
    Keymaster

    Can you try changing your theme to something like Twenty Seventeen?

    Sometimes the current theme has CSS that conflicts with BuddyPress functionality.

    What theme are you using?

    shirleyddsn
    Participant

    Another Update:

    Ok, I was finally able to create a change in the file I was trying to edit. For some reason, I wasn’t able to insert code in the exact place I was trying to last time, but I WAS able to add code elsewhere in the document.

    Also, I noticed the name of the hook started with “bp”, so I moved my cover-image code to my bp-custom.php file in my child theme. But it didn’t work there either. I feel like there’s something else I’m supposed to do with $settings['callback']. Or maybe I’m supposed to plug some more code in elsewhere. I could really use some help with this.

    Also, while playing with the profile templates, I noticed there were a few hooks (which I’m learning are the ‘actions’ I’m adding to) that don’t really seem to do anything but sit there. Do they exist only for me to add code to through my bp-custom.php? If so, why wouldn’t I just hard-code something into the template file?

    For example: do_action( 'bp_member_header_actions' ); sits between the @username and last-activity. But it’s empty. When the profile page loads, there’s nothing there. So that would make it an empty hook for me to plug stuff into, right? bp_profile_header_meta is also empty. Are all hooks like that? Or do any of them have their own code/functions?

    I would still like to know where these actions are declared, and what possible functions lie inside them. Is there any way to find that information out? People create their own BP themes and plugins all the time so there has to be a way to figure this stuff out . . .

    #266207
    shirleyddsn
    Participant

    UPDATE: I found this topic -> Editing BuddyPress Core Files Within Child theme That suggested that I should have a buddypress folder inside my child theme directory, and that all my copied files should go in THERE! I made the change, but I still can’t update any of the actual files. I tried my PIZZA HUT test again, but this time nothing flashed on the screen. So I guess that’s not it?

    BTW – I’m just going to keep posting updates as I go so that when someone shows up, they’ll have current information on what I’ve tried. Maybe save some time that way.

    #266206
    shirleyddsn
    Participant

    Side Note:
    I dont know if I can/should ask this here, or if it should be a different post, but I’m trying to make changes to the buddypress templates in my child theme, and it seems that I’m not allowed (?!) to make changes to the actual templates?

    For example, I was trying to make changes to cover-image-header.php just to see if I can. I wanted to add “Last Active:” just before the function that lists when the member was last active. Just to see if I could. When I refreshed the page, I thought I saw for a brief second that it did in fact say “Last Active:”, before it disappeared and just showed the original content again. To make sure it was actually my code and not a glitch, I repeated the process but replaced LAST ACTIVE with PIZZA HUT. Just to make sure it was actually me. Refresh -> Pizza Hut flashed. Yup, it was me. But why wont the code stick? Could it be my child theme document tree isn’t right? Or do I need to add some code somewhere so that changes in my child folder override files in the original buddypress folders?

    When I copied my files over, I group selected the folders in plugins/buddypress/bp-templates/bp-legacy/buddypress and copied them all over to themes/my-theme/buddypress. Am I missing a folder or something?

    Also: I figured out the concept behind add_action tacking on instructions to a do_action function. But where do the DO_ACTION functions live? And am I able to modify those? I would like to add some font-awesome icons to the front of my profile menu links the way we have here, but I can’t find the code that spits out the information.

    r-a-y
    Keymaster

    I’ve noticed similar things myself.

    Can you see if the following helps?

    Add this code-snippet to wp-content/plugins/bp-custom.php file?

    remove_filter( 'bp_email_get_property', 'bp_core_deprecated_email_filters', 20, 4 );

    remove_action( 'bp_send_email_success', 'bp_core_deprecated_email_actions', 20, 2 );

    #266104
    lordmatt
    Participant

    Can you recommend a single free theme I can download and dissect? All I need is one good example, of things being used to work from.

    #266039
    threwthenevr
    Participant

    I forgot to mention to comment out line 28-38 in the home.php
    I use a child theme .php may differ for others.

    Should look like this

    <?php /**
                  
                    If the cover image feature is enabled, use a specific header
                   
                  if ( version_compare( BP_VERSION, '2.4', '>=' ) && bp_displayed_user_use_cover_image_header() ) :
                      bp_get_template_part( 'members/single/cover-image-header' );
                  else :
                      bp_get_template_part( 'members/single/member-header' );               
                  endif;
                  
              */    ?>

    If not commented out u will get blank page.

    #266037
    Slava Abakumov
    Moderator

    BuddyPress Newsletter #31 – tips and tricks, bbPress, new theme and other things!

    https://www.getrevue.co/profile/bpmail/issues/31-by-slava-tips-and-tricks-new-theme-and-other-things-56258

    #266025
    Henry Wright
    Moderator

    The easiest way to do this is to edit the home.php file. You’ll need to comment out bp_get_displayed_user_nav() and the related markup.

    Ref: your-child-theme/buddypress/members/single/home.php

    #266011
    David Cavins
    Keymaster

    I think I finally understand what is going wrong here. If you pass a bad group object to bp_group_has_moderators() or don’t pass a group object and the global $groups_template->group isn’t set, this error can occur.

    If you’ve had this problem, can you please respond telling me what theme you’re using? Furthermore, look in your theme where bp_group_has_moderators() is called, and tell me if it’s being called with a $group argument (like bp_group_has_moderators( $group_object ) ) or without an argument (like bp_group_has_moderators() ).

    Do you also see an entry in your error log like the following or not?
    Trying to get property of non-object in /Users/dcavins/Sites/develop.git.wordpress.org/src/wp-content/plugins/buddypress/src/bp-groups/bp-groups-template.php on line 2576

    Thanks for your help,

    -David

    #266007
    @mercime
    Participant

    @vanessenstudio Given the screenshot, I can only guess that your theme’s stylesheet is missing lines 601 through 614 which are necessary to move the notice to the top of the page.

    #265995
    vanessenstudio
    Participant

    I would check out https://themeforest.net/search?term=buddypress
    This will show all the premium themes that are made for buddypress.

    I’ve had some good experience with buddyboss.

    #265990
    ripulkr
    Participant

    BuddyPress themes are basically WordPress themes. Technically all themes “should” be compatible with BuddyPress.
    If you’re looking more into template overriding then check the documentation link above.

    Try this : https://themeforest.net/item/kleo-pro-community-focused-multipurpose-buddypress-theme/6776630, https://themeforest.net/item/wplms-learning-management-system/6780226 , https://themeforest.net/category/wordpress/buddypress

    Regarding your question :
    Check existing topics in this forums, this has been answered several times.

    Add tab to user profile from plugin

    #265989
    Henry Wright
    Moderator

    You can get the value of an xProfile field in BuddyPress quite easily but you will need to use code. Take a look at this article to get started:

    Displaying Extended Profile Fields on Member Profiles

    #265961
    thejameshardy
    Participant

    Hi thanks for your reply much appreciate it. The themes main header.php Im using the html5 blankslate theme and enclosing it in an a simple if statement

    if ( function_exists('bp_is_active') )

    #265942
    Henry Wright
    Moderator

    You can check if either of these two directories exist inside the theme:

    • buddypress
    • community

    If either of these exist, the content inside is specific to BuddyPress and will likely be custom.

    #265938
    manm0untain
    Participant

    Extended Buddypress profile fields demands an additional name / username field. This is the case whether you are using Buddypress Usernames Only plugin or not.

    This is only relevant if you require extended profile fields. If you don’t, then go into Buddypress settings and turn off extended profiles. That will remove the requirement for a second name on the registration / profile area.

    If you want to use extended profile fields on BP, but you don’t want the second username / name field uglying up your registration flow, you can do the following.

    You have to be careful with this, because if you hack it, remove the second required name / username field, or any of a dozen other solutions I’ve found – the registration will break down. You will get 500 errors, missing confirmation emails etc.

    The solution I used for this is as follows.

    1. Assuming you just want to use a singular Username for your site – install the Buddypress Usernames Only plugin. It says the plugin is old but it is still working as of WP version 4.7.4 (for me at least). This deals with the display / access of various username / name / fullname / nickname issues throughout the WP / Buddypress install.

    2. Next you’ll need to hide the extra name / username field on the registration area, and the BP profile area. Stick this CSS into your theme custom CSS under Appearance > Customize:

    #profile-edit-form .field_1 { display: none;}
    #signup_form .field_1 { display: none;}

    (I have seen a 3rd line of CSS on other solutions – #register-page p { display: none;} – all this did for me was to hide the confirmation message after the user registers. You probably want that so I’d leave that line out).

    3. The fields should now be hidden, but the system still requires that information to process properly. So next create a file in notepad and save it as name_remove.js

    In that file put the following javascript:

    document.getElementById("signup_username").onchange = function() {myFunction()};
    function myFunction() {
     var x = document.getElementById("signup_username");
    document.getElementById("field_1") .value = x.value
    }

    Save that file and upload it to your theme folder (same folder as functions.php etc). This javascript automatically populates the hidden field with the username, so the system does not complain or fall over.

    4. Finally you need WordPress to pick this javascript file up. You can do that with a function, using file enqueing. Copy and paste this function into your themes functions.php file Appearance > Editor

    function wpb_adding_scripts() {
    wp_register_script('name_field_remove', get_stylesheet_directory_uri() . '/name_remove.js', array('jquery'),'1.1', true);
    wp_enqueue_script('name_field_remove');
    }
    
    add_action( 'wp_enqueue_scripts', 'wpb_adding_scripts' );

    You have to be careful about the path. If it’s not working at this point, you can view the page source of your register page, and search for “name_remove.js” – look at the path on that script line. If the path is wrong, tweak it in the function above (you might need to change the get_stylesheet_directory_uri() part, or the path part after it. You can check if the path is correct by clicking the link to the .js file in the page source. If the path is wrong, you will get a 404 error. If the path is right, you should see the script code contained in the js file. Fiddle around with the path until it’s correct.

    At that point, you have hidden the fields with CSS, and populated the second hidden username / name field automatically with javascript. Test your registration / confirmation email etc to make sure everything is working. But you should be good to go.

    Hope that helps someone. Thanks to the folks I cobbled this solution together from.

    #265927
    lordmatt
    Participant

    I have BuddyPress installed on a network and I am using the customizr theme. I have set the “members” page to no sidebar. This works for the members list but for some reason /members/someuser still has the sidebar.

    What do I need to do to get that sidebar to vanish?

    #265906
    Henry Wright
    Moderator

    @cameronjonesweb

    Why are you unhooking the reg form from the content? I think the BuddyPress template hierarchy can help you here.

    Template Hierarchy

    You can just nuke the reg form from your-child-theme/buddypress/members/register.php and then add your custom form.

    #265889

    In reply to: Profile Page Layout

    r-a-y
    Keymaster

    You’ll want to look at our template hierarchy codex page:
    https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/
    https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/#single-member-pages

    Then, you could customize the layout of your member profile pages by adding a sidebar or whatever only on member profile pages.

    #265841
    shanebp
    Moderator

    You need to find out which theme template your My Profile page is using – maybe single.php.
    You may need to make a custom template and remove the comments call from it.

    zsauce
    Participant

    After much research through many old threads, using the combination of a few, I figured out how to remove the “All Members” view of the Activity feed.

    I originally tried a solution posted by paulhastings0 on the page https://buddypress.org/support/topic/change-the-default-activity-tab/

    However, as a member in that thread posted a few comments later, this only changes the default selection of the tab, it does not in fact change the feed that is loaded. So the tab said “My Friends” (or whatever tab you set as selected), but the feed that loaded was still the “All Members” feed.

    The second option I found (which I can’t find again to link to while writing this) only removed the “All Members” tab option, but simply left the tab as a blank space, while still loading the “All Members” feed.

    If you combine the two solutions however, it works like a charm!

    So, here’s the solution:

    You should be working in the BP Child theme.
    1) Copy the index.php file from ../wp-content/themes/boss/buddypress/activity
    2) Paste the index.php into your ../wp-content/themes/boss-child/buddypress/activity directory (it doesn’t exist, so you’ll have to create it)
    3) Use the first solution by paulhastings0 in the old thread to change which tab is default selected by removing class="selected" from the <li class="selected" id="activity-all"><a href="<?php bp_activity_directory_permalink(); ?>" title="<?php esc_attr_e( 'The public activity for everyone on this site.', 'boss' ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'boss' ), bp_get_total_member_count() ); ?></a></li> line (on line 24) and add class="selected" to the new tab you want selected (I chose the “My Friends” tab, so for me it was <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/'; ?>" title="<?php esc_attr_e( 'The activity of my friends only.', 'boss' ); ?>"><?php printf( __( 'My Friends <span>%s</span>', 'boss' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></a></li> on line 34.
    4) Now, delete the <li id="activity-all"><a href="<?php bp_activity_directory_permalink(); ?>" title="<?php esc_attr_e( 'The public activity for everyone on this site.', 'boss' ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'boss' ), bp_get_total_member_count() ); ?></a></li> code from line 24.

    Hope this saves someone from hours of searching like I did!

    #265707
    Henry Wright
    Moderator

    In your child theme, you’ll have a style.css file. If you don’t then you can create one so your folder structure will look like this:

    wp-content/themes/your-child-theme/style.css

Viewing 25 results - 3,426 through 3,450 (of 31,071 total)
Skip to toolbar