Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 4,101 through 4,125 (of 31,071 total)
  • Author
    Search Results
  • #258170

    In reply to: Edit profil page

    Corke420
    Participant

    I have trying to overload

    home.php in buddypress\bp-templates\bp-legacy\buddypress\members\single\

    I use avada Child theme so I should create my new file home.php in : Avada child/buddypress/members/single/home.php

    This what I try but not working.

    #258141
    lil_bugga
    Participant

    I copied the entire directory with all of it’s components, with the intention of deleting any file that remained unchanged. My thinking was this way I was not messing with the core files but a copy of them so I could always revert back should I need to.

    In order to change the Site-Wide Activity title on a page where would I start if not the core files? I searched for each file that contained the phrase “Site-Wide Activity” and those were the instances I’d found.

    I can’t modify page.php in my theme when BuddyPress seems to insert it’s own content during the page load.

    When I installed BuddyPress I was expecting unique pages that could be duplicated and modified to include/exclude the elements wanted within the page and to style those pages with ease, a bit more like a standard theme I guess.

    What do I do now, my guess is start of by deleting my duplicated directory.

    #258140

    In reply to: Edit profil page

    shanebp
    Moderator

    You will find all those templates in the BP plugin in this directory:
    buddypress\bp-templates\bp-legacy\buddypress\members\single\

    If you want to change a file, you should create a template overload.

    danbp
    Participant

    Perhaps a CSS adjustment to do ?
    But first, revert to a twenty theme as it work’s now.
    If you see the button with Twenty, you have a theme issue.

    Reactivate your theme and check the page source code in your browser and verify that the button exist in the code.
    (../members/USRNAME/profile/change-cover-image/)

    This button is in a drag’n’drop area inside a script.
    If you see the code but don’t see the button displayed, you have to work your CSS to get it.
    Meanwhile you can try to add a picture by drag’n’drop even if you don’t see the button (it is only usefull in case drag’n’drop doesn’t work – ie when JS is deactivated).

    Can’t say more…

    Codex reference (in case of)

    danbp
    Participant

    You can download the modified js file (trunk:10207) here:
    https://buddypress.trac.wordpress.org/browser/trunk/src/bp-core/js/bp-plupload.js?rev=10207

    If it doesn’t work, revert back to original plupload.js and debug elsewhere.

    Youl’ll probably have to ask your theme support in that case.
    Activate also wp_debug in wp-config to eventl. get some other error msg.

    #258128
    danbp
    Participant

    I can’t read the codex at your place but if you really did this:

    I’ve copied the entire BuddyPress plugin directory into my theme

    you started on the wrong side.

    BP Plugin directory ? Really ? Or bp-templates/bp-legacy/buddypress/ directory ?
    Also you already hacked core files. This is not recommended at all anyway, and on a CMS, the form (template) is separated from the content (core)….

    BuddyPress Theme Development

    danbp
    Participant

    Sorry but we can’t bring assistance for premium themes.
    that said it may be a JS conflict generated by BP in some exotic JS situation…
    Read here: https://buddypress.trac.wordpress.org/ticket/6574

    #258125
    danbp
    Participant

    The ultimate tutorial to add wp_editor to What’s New textarea (on Site, Members and Group Activities pages).

    Warning
    The What’s New feature was never intended to publish posts or formatted text. It was imagined for brief announcement or instant conversation. That’s why this textarea is texturized and doesn’t allow much HTML tags. It is also ajaxified and need the original BP ID to work.
    You will use it at your own risk.

    The following trick will let you remove the existing textarea from the template and replace it with a custom wp_editor. And it will be very customized ! For example, you will not have the visual tab, but only his HTML version, similar to the one you see on this forum for example.

    Required:
    BuddyPress activated
    a working child theme
    some understanding of HTML and php grammar

    This trick was succesfully tested on a single install with WP 4.6, BP 2.6.2 and a Twenty Sixteen child theme.

    Start !
    Read from here how to remove the textarea in post-form.php

    The code to remove is line 40 and looks like this:

    <textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10"
    	<?php if ( bp_is_group() ) : ?>data-suggestions-group-id="<?php echo esc_attr( (int) bp_get_current_group_id() ); ?>" <?php endif; ?>
    ><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif; ?></textarea>

    You replace it by:

    <?php
    $content = '';
    $editor_id = 'whats-new';
    wp_editor( $content, $editor_id );
    ?>

    As the visual edit tab doesn’t work, you must deactivate it. In your child-theme functions.php, add this:
    add_filter( 'user_can_richedit' , '__return_false', 50 );

    And that’s it !

    If you want also rich edit for activity comments, which i didn’t recommand for sites who have many comments, you can use the same technique as above, with some more settings. Note that each comment has is own ID and that each comment editor should also have an unique ID.

    First, you need to remove the textarea from (child-theme/buddypress/)activity/entry.php
    You remove this:
    <textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input bp-suggestions" name="ac_input_<?php bp_activity_id(); ?>"></textarea>
    and replace it by

    <?php
    $id             = bp_get_activity_id();
    $content	= '';
    $editor_id	= 'ac-input-'. $id;
    $settings	= array( 
    			'textarea_name'	=> 'ac_input_'. $id,
    			'editor_class'	=> 'ac-input bp-suggestions'
    		);
    wp_editor( $content, $editor_id, $settings );
    ?>

    With Twenty Sixteen, i first couldn’t see the Post Update button and the option selector. I got it with this little CSS adjustment (in child-theme/style.css).

    div#whats-new-options { display: block!important;}

    Function reference: wp_editor.

    dekoningalex
    Participant

    Hi,

    Users can’t upload cover/profile pictures for their profile. If one clicks on the button to select a picture to upload, you can select a file, but when you choose a file nothing happens. The following error shows up: Uncaught TypeError: Cannot read property ‘add’ of undefined bp-plupload.min.js?ver=2.6.2:1

    When i use a buddypress compatible theme (e.g. twentyeleven) the issue doesn’t occur so it is a custom theme issue. I have asked my theme developer for help but that has gotten me nowhere…

    1. Which version of WordPress are you running? 4.6

    2. Did you install WordPress as a directory or subdomain install? root

    3. If a directory install, is it in root or in a subdirectory? root

    4. Did you upgrade from a previous version of WordPress? If so, from which version? The one before 4.6

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. Yes

    6. Which version of BP are you running? 2.6.2

    7. Did you upgraded from a previous version of BP? If so, from which version? Yes, the one before

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones? Yes, but none of these plugins cause issues as i turned them all off, and the problem still persisted.

    9. Are you using the standard WordPress theme or customized theme? Customized theme (Bronx by Fuelthemes)

    10. Have you modified the core files in any way? No

    11. Do you have any custom functions in bp-custom.php? No

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? 2.5.10

    13. Please provide a list of any errors in your server’s log files. Don’t know how

    14. Which company provides your hosting? Transip

    15. Is your server running Windows, or if Linux; Apache, nginx or something else? Linux (Ubuntu)

    Thank you so much in advance, any help is very much appreciated.

    #258112
    danbp
    Participant

    Add the snippet to your child-theme functions.php
    If it doesn’t work from there, remove it and put it into bp-custom.php

    You may also give details about the theme you use and what you did “exactly” on a template.

    #258054
    psenechal
    Participant

    Yes…I loaded the Twenty Sixteen theme and the notification still appears.

    When I logged in this morning, the notification had disappeared finally, so I tried updating my profile again and the notification is appearing and not going away again.

    If I logout of my account and view my profile as a user who is not logged in, I STILL see the notification.

    If I access the website from a different browser, however, the notification is not present. If I login with that different browser, the notification is also not present. If I modify my profile on that browser and save the changes, the notification becomes stuck on that browser as well.

    Emptying the browser cache doesn’t appear to have any affect. If I look at the cookies, there is a bp-message entry that is set to “Changes+saved.” and one named bp-message-type that is set to “success”. If I delete both of those from the cookie, the message disappears. Looks like this is a cookie issue.

    Since this is occurring in 2 different themes, does it look it might be a BP issue, or is there possibly something going on with my installation where cookies aren’t getting expired properly?

    #258047
    idichoo
    Participant

    Hi,

    I have another problem, i tried to save the changes to style.css in child nothing happend.

    .label {
    display: inline-block;
    font-family: “Helvetica Neue”,Helvetica,Roboto,Arial,sans-serif;
    font-weight: normal;
    line-height: 1;
    margin-bottom: auto;
    position: relative;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.25rem 0.5rem 0.25rem;
    font-size: 0.9rem;
    background-color: #ececec;
    color: #000;
    }

    This was paste into sytle.css file, i see no changes to the child theme.
    I changes front size and color but background-color remain, i guess cannot be changed.

    Can some help me thanks.

    #258046
    danbp
    Participant

    That’s a Firebug question, but not important anyway. Also, there is no need to use all rules, as they are handled by the original CSS. You declare only the part you want to modify for .label

    Open /child-theme/style.css and add only this: (#xyz123 is the color hex you want to use)

    #buddypress table.profile-fields tr td.label,{
       background-color: #xyz123!important;
       color: #xyz123!important;
    }
    #258042
    danbp
    Participant

    Do you get the same behave while using another theme ?

    #258040

    In reply to: Redirect does not work

    Paul Wong-Gibbs
    Keymaster

    I think you need to disable all your plugins (and any other code tweaks), while running a default WP theme, until you figure out what’s causing the behaviour.

    #258035

    In reply to: Redirect does not work

    fail2reap
    Participant

    @djpaul – Thanks for getting back to me with these additional steps. I have tested this now with removing the plugin iThemes Security and Welcome Pack. I also set a default WordPress theme.

    Unfortunately it did not resolve the issue as the user still get’s directed back to the home screen after the submit the register page.

    Any other ideas?

    #258018

    In reply to: Fatal Error

    danbp
    Participant

    Please don’t double post on this forum.

    You activated BuddyPress Custom Profile Menu plugin and got a fatal error. Remove it or rename his folder via FTP, so you can access your dashboard again.

    Then contact the plugin author.
    Since 2.6, BP use a new navigation API. Maybe the plugin isn’t updated for that or there is another conflict with your theme.

    You have to debug.
    And read also here please.

    #257452
    mrjarbenne
    Participant

    You could completely customize the Admin-bar. This snippet should help, put in either the functions.php file of your theme, or in the bp-custom.php file. It should give you a good idea of what is possible. I’m hiding the W menu. You could probably hide the Site dropdown altogether and then craft your own dropdown with links to different items. Particularly if this is a single install of BP, and not a Network/Multisite install, there really isn’t any reason for your users to see the Site dropdown:

    	/**
    	 * Adds custom "Home" menu to WP Adminbar.
    	 *
    	 * Also removes the "WP logo" menu.
    	 *
    	 * @param object $wp_admin_bar The WP Admin Bar object
    	 */
    	public function add_custom_parent_menu( $wp_admin_bar ) {
    
    		/**
    		 * Removing the "W" menu
    		 */
    		$wp_admin_bar->remove_menu( 'wp-logo' );
    
    		/**
    		 * Create a "Home" menu.
    		 *
    		 * First, just create the parent menu item.
    		 */
    		$wp_admin_bar->add_menu( array(
    			'id' => 'commonlinks',
    			'parent' => '0', //puts it on the left-hand side
    			'title' => 'Home',
    			'href' => ('http://domain.com/activity')
    		) );
    
    		/**
    		 * Add submenu items to "Home" menu.
    		 */
    		// Only show the following for logged-in users
    		if ( current_user_can( 'read' ) ) {
    			// Support link
    			$wp_admin_bar->add_menu( array(
    				'id' => 'support',
    				'parent' => 'commonlinks',
    				'title' => 'Support',
    				'href' => ('http://domain.com/support')
    			) );
    
    			// Blog request form
    			$wp_admin_bar->add_menu( array(
    				'id' => 'blogrequest',
    				'parent' => 'commonlinks',
    				'title' => 'Feedback',
    				'href' => ('http://domain.com/feedback' )
    			) );
    
    			// Developers blog
    			$wp_admin_bar->add_menu( array(
    				'id' => 'developments',
    				'parent' => 'commonlinks',
    				'title' => 'Developments',
    				'href' => ('http://domain.com/developments' )
    			) );
    
    		}
    
    	}
    #257938
    inzerat
    Participant
    #257917
    Henry Wright
    Moderator

    Hi buddycore,

    I think the theme is looking good! Will you be accepting pull requests on GitHub?

    #257910

    In reply to: Status

    danbp
    Participant

    To restrict the usage of the What’s New form to only admins and editors…

    Copy post-form.php from (bp-templates/bp-legacy/buddypress/activity/ ) to (/your-child-theme/buddypress/activity/).

    In the copy, add if ( bp_current_user_can( 'editor' ) ) : above the form tab and add endif; right after the closing form tag, at the end of the file and you’re done.
    Note to take care of the existing php tags.

    danbp
    Participant
    idichoo
    Participant

    Hi,

    As there a video on how to set a child theme.

    Best Regards

    idichoo
    Participant

    Hi,

    WEll.. i have the same problem as this person posted.

    i have a similar problem as the above link.
    i tired to understand install child theme but it does not work.
    Thru this link

    Building a Child Theme of the BP Default Theme


    But i have quite complicated is there any video you can provide me.
    Btw I am not using FTP, I am using cloudways to bulid the site.

    #257888
    danbp
    Participant

    Annoying to work on a site where you’re not allowed to access the child-theme!
    As you can see in index.php, there is no action hook for these buttons.

    The only other way i know is a dirty trick using directly gettext.
    Add this to bp-custom.php

    
    function abcd_gettext( $translated, $original_text, $domain ) {
    
        if ( 'buddypress' !== $domain )  
               return $translated;
    
        switch ( $original_text ) {
            case 'All Members %s':
                return 'All Buddies %s';
    
    		case 'My Friends %s':
                return 'My Amigos %s';
    
            default:
                return $translated;
        }
    }
    add_filter( 'gettext', 'abcd_gettext', 10, 3 );

    More about that trick here:
    https://buddypress.org/support/topic/how-do-i-change-the-title-of-the-create-an-account-page/#post-254772

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