Search Results for 'theme'
-
AuthorSearch Results
-
January 27, 2017 at 1:16 pm #263213
In reply to: delete user profile fields
bsreverman
ParticipantThat’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.
January 26, 2017 at 4:24 pm #263197In reply to: tinymce post-form missing “post update” button
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; }); })January 24, 2017 at 6:46 pm #263151Topic: Hide members
in forum How-to & Troubleshootingbeforeplastic
ParticipantHello,
How do I hide members from the member directory?
Use-case: For WordPress theme support I have created logins for plugin and theme support as well as dev. I would like to hide these “users” from the membership page in BuddyPress.Thank you for your assistance!
January 24, 2017 at 8:42 am #263142danbp
ParticipantI 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
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.
January 24, 2017 at 8:38 am #263141In reply to: Bug after install
danbp
ParticipantDeactivate 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).
January 24, 2017 at 1:51 am #263133In reply to: Hide Emails Menu
Alex Stine
ParticipantOK, 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.
January 23, 2017 at 4:23 pm #263122In reply to: Remove meta/archives buddypress pages
danbp
ParticipantWas 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.
January 23, 2017 at 11:57 am #263109In reply to: Custom Search/Filter based on custom field
mdrabble
ParticipantI 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.
January 22, 2017 at 9:59 am #263079In reply to: Template hierarchy for edit.php page??
danbp
ParticipantHi,
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_sidebarwhich 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:
https://codex.wordpress.org/Function_Reference/dynamic_sidebarJanuary 22, 2017 at 9:25 am #263077In reply to: search members how to set it ?
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
January 21, 2017 at 8:55 am #263064In reply to: Favorite without loading page
danbp
ParticipantJanuary 21, 2017 at 8:29 am #263061In reply to: BuddyPress not PHP 7.1 compatible – Broke my site
danbp
ParticipantA 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.
January 21, 2017 at 7:18 am #263057In reply to: BuddyPress not PHP 7.1 compatible – Broke my site
beforeplastic
ParticipantThank 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!January 20, 2017 at 7:05 pm #263048shanebp
ModeratorNot 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?January 20, 2017 at 10:07 am #263043Leofitz
ParticipantThanks 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 !)
ThanksJanuary 20, 2017 at 9:00 am #263041In reply to: How to remove columns from member directory
danbp
ParticipantTable 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).
January 20, 2017 at 5:21 am #263033In reply to: profile image not changing on mobile/ipad
bcanr2d2
ParticipantMy 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.January 19, 2017 at 4:58 pm #263017In reply to: How to display the content on member page
danbp
ParticipantThat’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.
January 19, 2017 at 4:44 pm #263016danbp
ParticipantThe function used to show @ mention is
bp_displayed_user_mentionnamein 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.
January 18, 2017 at 12:23 pm #262990In reply to: profile image not changing on mobile/ipad
danbp
ParticipantSuch 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.
January 18, 2017 at 9:39 am #262982danbp
ParticipantAs 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.
January 17, 2017 at 4:23 pm #262961In reply to: Zebra striping for ajax message reply not working
learntodesign
ParticipantMaybe 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.
January 17, 2017 at 3:53 pm #262959In reply to: Zebra striping for ajax message reply not working
learntodesign
ParticipantHi, it is the theme. In which file is this function called for the ajax reply so I can check it out?
January 17, 2017 at 3:01 pm #262958In reply to: Zebra striping for ajax message reply not working
Henry Wright
ModeratorIs 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.
January 17, 2017 at 4:10 am #262949In reply to: Wont let me accept or apply to groups
gprovostjr
Participant1. 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.39. 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?
-
AuthorSearch Results
