Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 3,626 through 3,650 (of 31,072 total)
  • Author
    Search Results
  • #263213
    bsreverman
    Participant

    That’s the problem – when I try to delete the field from my admin dashboard>users>xprofile fields than the situation I described in the initial post is what is happening. The developers of my theme said they had encountered this as a buddypress issue before and asked me to contact you. As this happens in twenty-fourteen as well I’m assuming it is not a theme issue.

    #263197
    phucitol
    Participant

    @meebovn Just saw your post. Here is the code I was using. I just load it from it’s own JS file in my functions.php. IIRC most of it is copy-pasta from a buddypress file with w/e tweaking I needed to get it working. It’s not pretty though.

    
    jQuery(document).ready(function($) {
    	
    	/* necessary to get the custom post-form working */
      	//Deregister buddypress built in actions
      	$('#whats-new').off("focus");
      	$('#whats-new-form').off("focusout");
      	$('#whats-new-options').show();
      	$('#aw-whats-new-submit').off('click');
    
      	/* New posts */
    	$('#aw-whats-new-submit').on( 'click', function() {
    		var editor = tinymce.get('whats-new');
    		editor.save();
    
    		var last_date_recorded = 0,
    			button = $(this),
    			form   = button.closest('form#whats-new-form'),
    			inputs = {}, post_data;
    
    		// Get all inputs and organize them into an object {name: value}
    		$.each( form.serializeArray(), function( key, input ) {
    			// Only include public extra data
    			if ( '_' !== input.name.substr( 0, 1 ) && 'whats-new' !== input.name.substr( 0, 9 ) ) {
    				if ( ! inputs[ input.name ] ) {
    					inputs[ input.name ] = input.value;
    				} else {
    					// Checkboxes/dropdown list can have multiple selected value
    					if ( ! $.isArray( inputs[ input.name ] ) ) {
    						inputs[ input.name ] = new Array( inputs[ input.name ], input.value );
    					} else {
    						inputs[ input.name ].push( input.value );
    					}
    				}
    			}
    		} );
    
    		form.find( '*' ).each( function() {
    			if ( $.nodeName( this, 'textarea' ) || $.nodeName( this, 'input' ) ) {
    				$(this).prop( 'disabled', true );
    			}
    		} );
    
    		/* Remove any errors */
    		$('div.error').remove();
    		button.addClass('loading');
    		button.prop('disabled', true);
    		form.addClass('submitted');
    
    		/* Default POST values */
    		object = '';
    		item_id = $('#whats-new-post-in').val();
    		content = $('#whats-new').val();
    		firstrow = $( '#buddypress ul.activity-list li' ).first();
    		activity_row = firstrow;
    		timestamp = null;
    
    		// Checks if at least one activity exists
    		if ( firstrow.length ) {
    
    			if ( activity_row.hasClass( 'load-newest' ) ) {
    				activity_row = firstrow.next();
    			}
    
    			timestamp = activity_row.prop( 'class' ).match( /date-recorded-([0-9]+)/ );
    		}
    
    		if ( timestamp ) {
    			last_date_recorded = timestamp[1];
    		}
    
    		/* Set object for non-profile posts */
    		if ( item_id > 0 ) {
    			object = $('#whats-new-post-object').val();
    		}
    
    		post_data = $.extend( {
    			action: 'post_update',
    			'cookie': bp_get_cookies(),
    			'_wpnonce_post_update': $('#_wpnonce_post_update').val(),
    			'content': content,
    			'object': object,
    			'item_id': item_id,
    			'since': last_date_recorded,
    			'_bp_as_nonce': $('#_bp_as_nonce').val() || ''
    		}, inputs );
    
    		$.post( ajaxurl, post_data, function( response ) {
    			form.find( '*' ).each( function() {
    				if ( $.nodeName( this, 'textarea' ) || $.nodeName( this, 'input' ) ) {
    					$(this).prop( 'disabled', false );
    				}
    			});
    
    			/* Check for errors and append if found. */
    			if ( response[0] + response[1] === '-1' ) {
    				form.prepend( response.substr( 2, response.length ) );
    				$( '#' + form.attr('id') + ' div.error').hide().fadeIn( 200 );
    			} else {
    				if ( 0 === $('ul.activity-list').length ) {
    					$('div.error').slideUp(100).remove();
    					$('#message').slideUp(100).remove();
    					$('div.activity').append( '<ul id="activity-stream" class="activity-list item-list">' );
    				}
    
    				if ( firstrow.hasClass( 'load-newest' ) ) {
    					firstrow.remove();
    				}
    
    				$('#activity-stream').prepend(response);
    
    				if ( ! last_date_recorded ) {
    					$('#activity-stream li:first').addClass('new-update just-posted');
    				}
    
    				if ( 0 !== $('#latest-update').length ) {
    					var l   = $('#activity-stream li.new-update .activity-content .activity-inner p').html(),
    						v     = $('#activity-stream li.new-update .activity-content .activity-header p a.view').attr('href'),
    						ltext = $('#activity-stream li.new-update .activity-content .activity-inner p').text(),
    						u     = '';
    
    					if ( ltext !== '' ) {
    						u = l + ' ';
    					}
    
    					u += '<a href="' + v + '" rel="nofollow">' + BP_DTheme.view + '</a>';
    
    					$('#latest-update').slideUp(300,function(){
    						$('#latest-update').html( u );
    						$('#latest-update').slideDown(300);
    					});
    				}
    
    				$('li.new-update').hide().slideDown( 300 );
    				$('li.new-update').removeClass( 'new-update' );
    				$('#whats-new').val('');
    				form.get(0).reset();
    
    				// reset vars to get newest activities
    				newest_activities = '';
    				activity_last_recorded  = 0;
    			}
    
    			//$('#whats-new-options').slideUp();
    			$('#whats-new-form textarea').animate({
    				height:'2.2em'
    			});
    			$('#aw-whats-new-submit').removeClass('loading');
    			$( '#whats-new-content' ).removeClass( 'active' );
    		});
    
    		return false;
    	});
    })
    #263151
    #263142
    danbp
    Participant

    I have looked everywhere and tried everything!

    If so, what could we do more for you ? You’re asking for help for a page question. Pages are part of WordPress and fortunately, WordPress has a codex, where “page” is a well documented department.

    https://codex.wordpress.org/Pages

    Page Templates

    Concerning BP pages, that documentation is much shorter, because BP doesn’t use page like WP and when it use a page it is internally only, and only for one of his component, not to allow users to write a page.

    #263141

    In reply to: Bug after install

    danbp
    Participant

    Deactivate all plugins before activating BP.
    Activate a Twenty theme.
    Then activate BP. If your admin remains blank again, remove BP from the server – there may be corrupted files – and upload a fresh copy by FTP.

    If still trouble, contact your host and see if you have minimum requirements to install BP (including enough php memory (at least 64 mo)

    As apparently you never have to debug your install, read here for more recommendation (to follow if possible).

    #263133

    In reply to: Hide Emails Menu

    Alex Stine
    Participant

    OK, if anyone else was wondering how to do this, it’s simple. Just add this code to functions.php or a mu-plugin and the BuddyPress items disappear.

    function remove_admin_menu_items() {
    /*Remove Emails from Appearance.*/
    	remove_submenu_page( 'themes.php', 'bp-emails-customizer-redirect' );
    /*Remove Manage Signups*/
    	remove_submenu_page( 'users.php', 'bp-signups' );
    }
    add_action( 'admin_menu', 'remove_admin_menu_items' );

    Hope that helps someone else. 🙂 Thanks.

    #263122
    danbp
    Participant

    Was explained somehow:

    You can do that by CSS from within your child-theme style.css
    As it is not only BuddyPress css, but also dependent of your theme, you have to check for the correct classes and id’s to use.

    completed by:
    On each BP page is a page-id-{number}. You need it to define the style for this page only.

    Sorry, i can’t do more for you. It is to you to learn and understand what is explained. Or to hire a dev if it is too difficult.

    #263109
    mdrabble
    Participant

    I found and added this code to my functions.php within my theme folder – this allows you to sort the members by lastname.

    function alphabetize_by_last_name( $bp_user_query ) {
        if ( 'alphabetical' == $bp_user_query->query_vars['type'] )
            $bp_user_query->uid_clauses['orderby'] = "ORDER BY substring_index(u.display_name, ' ', -1)";
    }
    add_action ( 'bp_pre_user_query', 'alphabetize_by_last_name' );

    I then created a custom page template within my theme and pasted the membersloop.php code into that page and made some formatting changes as I only wanted it to affect this one page.

    On the line:
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>

    I added ‘&populate_extras&type=alphabetical’

    so the line now shows as:
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) . '&populate_extras&type=alphabetical' ) ) : ?>

    Hope that helps.

    #263079
    danbp
    Participant

    Hi,

    sidebar is part of your theme. The edit.php (members/single/profile/edit.php) template file doesn’t contain a sidebar, but a form. And this form goes into any theme who has a place for “content” (usually it is the main content).

    If you don’t want a sidebar on the member page or on the profile, you can add a conditionnal on your (child)theme sidebar.php or around the call to sidebar you can find in almost all your theme files.

    The thing to search is get_sidebar which calls the sidebar template.

    Note that BP use mostly to “page.php”, so if your theme has such a file, it is where to start. You already know the way to BP’s template doc. More about this on WP codex:

    get_sidebar()


    https://codex.wordpress.org/Function_Reference/dynamic_sidebar

    #263077
    djsteveb
    Participant


    @johanna75
    – looks like an interesting plugin – not sure if it’s a free plugin with paid extensions, or a premium plugin altogether – or how it works- you are best off asking those plugin makers more than likely. I see they have 2 premium add on extensions that seem to fit in with what you are asking about though: the geo members directory and the xprofile fields extensioons – which seem to be priced from $29 – $130 each.

    again, not sure how any of the plugin is working for you – it kind of sounds like there is some info that has been added to your member’s profiles.. and if it that’s the case – you may have some luck with adding the “bp profile search” plugin – which is free. There some quick docs on how to get it up and running on a page or wdiget with certain features -> http://dontdream.it/

    That may be all you need… if not, I would cough up the money for the premium addon and ask the author of the main plugin – sounds like it’ll be faster and easier to get working..

    the buddypress forums are likely going to leave you hanging with no answers if you ask about anything like plugins, themes, custom mods that are premium / aka costs money.

    I’d love to know if your plugin maker there has a way to turn off the “google maps” part – I mean it sounds nice on the features page – but I’m pretty sure html5 has a geo location feature that can be tapped into without using google maps.. and if I was to use a plugin like that, I would certainly not be sacrificing my user’s privacy by using something that depended on the big G to get their data. Surely there are other ways / other options.

    my 2cents.. your situations may be different

    #263064
    danbp
    Participant

    That’s how it works with JS. No idea if you can modify easely this behave between BP/theme and client side… personnally, i can’t help you with that.

    And the codex is not very verbose about favorites.

    If interest to study code, see here.

    #263061
    danbp
    Participant

    A brief check for wp-content/themes/rehub/buddypress/groups/single/index.php indicates that you use a wrong file.

    There is no index.php file in the original template directory of /groups/single/…

    So it may by interesting for you to review the group page install – evtl. register permalinks again and to check how you implemented “/buddypress” into your theme. About theme, do you use a child theme ?

    Perhaps read the template doc if it is a bit unclear.

    Add BuddyPress Styles to a Theme

    #263057
    beforeplastic
    Participant

    Thank you. FYI I am still having issues:

    See ticket I just submitted to my hosting company and their response.
    You
    Posted On 21 Jan, 2017 00:55 CST
    Hello,

    I am getting this error:

    Warning: include(): Filename cannot be empty in /home/mysite/public_html/wp-content/themes/rehub/buddypress/groups/single/index.php on line 14

    Warning: include(): Failed opening ” for inclusion (include_path=’.:/usr/local/php56/pear’) in /home/mysite/public_html/wp-content/themes/rehub/buddypress/groups/single/index.php on line 14

    on this page https://www.beforeplastic.com/groups/shop-owners/

    Wondering if this is connected to the support ticket submitted yesterday.

    Thanks so much

    Support GuruPosts: 5856Posted On 21 Jan, 2017 01:10 CST
    Hello,

    Thank you for contacting our Help Desk center!

    Indeed, this is caused by changing the PHP version as it was done in the previous ticket. It seems that by solving one problem another one arises and this might mean that something in your website is misconfigured. I recommend you to seek the assistance of a professional developer to find the weak link in the coding of BuddyPress.

    If you need further assistance, do not hesitate to contact us again.

    ——

    My hope is that the BuddyPress developers are already working on a fix to this problem.
    Thanks so much!

    shanebp
    Moderator

    Not activating the Groups and Messages components should not create an issue.
    There is no need to delete those tables in the database – it does not help.

    Perhaps the issue is in your theme.
    Have you tried testing with a WP theme like 2015? To see if register is still slow?

    #263043
    Leofitz
    Participant

    Thanks for your reply. After making sure the BP version was the latest I switched off the child theme. Then the sliders worked with BP on. I’ve created a new child theme and all seems to run AOK !)
    Thanks

    #263041
    danbp
    Participant

    Table layout with staff directory is not part of BP. You have to search in your theme.

    Yes you can use CSS, but to remove role and such, you have perhaps some custom function somewhere who add them to your directory…it would be better you remove theme or use the reverse solution instead of a CSS trick like display:none;

    Yes you better have to use a child theme if you want to COMPLETELY modify a bp template. For example changing div into td… but it is not recommended, at least if you don’t exactly know what you do (and be able to adjust all the JS behind the bp scene).

    #263033
    bcanr2d2
    Participant

    My experience on an iPad with BuddyPress and the change profile photo is as follows:

    Safari (custom theme) – same as above, hard to find the right spot to get the iOS menu to appear
    Chrome (custome theme) – worked perfectly, the touch zone matched the physically drawn button on screen.
    Safari (Twenty theme) – different site, but worked without an issue straight away.

    There is something with some of the themes (I am using one from Template Monster that has this issue, and another from them does not have an issue at all.
    About to see if they can provide a fix for this. It seems odd it’s only a Safari issue, and only on some themes.

    #263017
    danbp
    Participant

    That’s what i expected, but you’re wrong and can’t get any content from there.

    Members is a BuddyPress page which should stay empty. This page (like the other BP pages) exist for internal purpose only. WP create the slug and BP need that slug to fire dynamic content into the “members” page.

    To resume, the page called “members” is mandatory, and depending the context, will show different things.

    your-site/members/ -> the members list
    your-site/members/seb/ -> Seb’s profile
    your-site/members/seb/notifications -> Seb’s notification
    etc….

    You’re always on the same permalink/page, but with very different content.

    If you need to add some content to the member page, you can do that by using the action hooks you’ll get on the different contextual templates.

    Or a little more complex, by hardcoding something yours into a template, with help of a child theme.

    Or even much better, specially if you want to reuse your work on another site, with a plugin. But whatever, you have to use the template parts, not the page itself, or the “page editor”, which is to write static content.

    danbp
    Participant

    The function used to show @ mention is bp_displayed_user_mentionname in this template context:

    <h2 class="user-nicename">@<?php bp_displayed_user_mentionname(); ?></h2>

    Above the profile header you have the fullname, which use this function: bp_displayed_user_fullname.

    To replace the mention by the fullname, you can use this snippet (goes to bp-custom.php):

    function bpfr_user_fullname() {
            // uncomment below if you want this only for logged in users.
    	//if ( !is_user_logged_in() )
    		//return false;
    
    	echo bp_displayed_user_fullname();
    	
    }
    add_filter( 'bp_get_displayed_user_mentionname', 'bpfr_user_fullname' );

    To remove the existing fullname, you use something like:

    function bpfr_remove_fullname_from_profile() {	
    global $bp;
    	
    	if ( bp_is_active( 'xprofile' ) )
    
    	if( bp_is_user() && ! bp_get_member_user_id() ) {
            $user_id = 'displayed: '. bp_displayed_user_id();
        } else {
            $user_id = 'get_member_user: '. bp_get_member_user_id();
        }
    
    	remove_filter( 'bp_displayed_user_fullname', isset( $bp->displayed_user->fullname ) ? $bp->displayed_user->fullname : '' );
    	
    }
    add_filter( 'bp_displayed_user_fullname', 'bpfr_remove_fullname_from_profile' );

    And in case of you want to modify the @ sign, it is hardcoded in the template. You have to remove it manually via a child-theme.

    Many other related topics on the forum.

    Function reference.

    #262990
    danbp
    Participant

    Such issue could be theme related…

    Have you tested out with one of WP’s Twenty theme ? Have you tested with another device as “an old iPad” ?
    iPad older as 15 days are anyway banned in year 2017. Use the new method.

    danbp
    Participant

    As you know that it is your plugin who generate the redirection, it is on their support that you have to ask for a solution.

    This forum is related to BuddyPress and maintained by volonteers. We can’t offer support for third party or premium plugins and themes.

    #262961
    learntodesign
    Participant

    Maybe it is a different problem but the striping function doesn’t get applied until the page is refreshed. In the 2015 theme, this happens right away.

    #262959
    learntodesign
    Participant

    Hi, it is the theme. In which file is this function called for the ajax reply so I can check it out?

    #262958
    Henry Wright
    Moderator

    Is this a known issue or could this be specific to my theme?

    It could be theme-related. Try using Twenty Fifteen to test. Once you’ve ruled out your theme, try deactivating plugins in case they are conflicting.

    #262949
    gprovostjr
    Participant

    1. Which version of WordPress are you running? 4.7.1

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

    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? no

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

    7. Did you upgraded from a previous version of BP? If so, from which version? no

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones? YES
    Analytics Cat 1.0.1
    bbPress 2.5.12
    Photo Gallery 1.3.26
    Ultimate Social Media PLUS 2.5.1
    User Role Editor 4.31.1
    WP Discord 0.2.3

    9. Are you using the standard WordPress theme or customized theme? Standard

    10. Which theme do you use ? 2017

    11. Have you modified the core files in any way? no

    12. Do you have any custom functions in bp-custom.php? no

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

    14. Please provide a list of any errors in your server’s log files.

    15. Which company provides your hosting? ipage

    16. Is your server running Windows, or if Linux; Apache, nginx or something else?

Viewing 25 results - 3,626 through 3,650 (of 31,072 total)
Skip to toolbar