Search Results for 'theme'
-
AuthorSearch Results
-
November 15, 2016 at 9:32 pm #261048
In reply to: First time Buddy Press User and Look Bad on Mobile
shanebp
ModeratorIt is doubtful that anyone will fix your premium theme for you.
Your best bet is to contact the theme creators and explain the issue.November 15, 2016 at 2:26 pm #261030In reply to: How To Activate Existing Members
danbp
ParticipantDeactivate https://fr.wordpress.org/plugins/smart-countdown-fx/, activate 2016 theme and give a try
It seems that this plugin throws an error.
You may also deactivate all plugins, but BP and search for an issue by reactivating them one by one.
And if nothing found for plugins, you have to debug the theme.https://buddypress.org/support/topic/when-asking-for-support-2/
November 15, 2016 at 10:08 am #261018In reply to: Group header file problems
jaumearagay
ParticipantI have:
a.- Updated to BP 2.7.2. <– Still same problems but warnings hidden by my code.
b.- Removed the buddypress folder in my theme with edited files and checked. <– Still same problems: Warnings (as my code did not hide them), “Moderators” tag and “no mods” string.
c.- Downloaded and activated Twenty Sixteen theme. <– Same as in previous step.
And I get the same warning explained in the first entry in this post so it’s not about my modified files and it’s not about a theme problem.
There are still two problems:
1.- The warning points to get_group_moderator_ids( $group_id ) in /wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-member.php
I don’t have (or have had) moderators in any group so, “Creating default object from empty value” <– What default object from what empty value?
2.- The problem is somewhere else: In line 33 of the group-header.php file (in groups/single/ ) we find this line:
if ( bp_group_has_moderators() ) :where “bp_group_has_moderators()” is giving a false “true” value as I don’t have moderators in any group so it should not execute in the first place. And after the Moderators tag it says “no mods”, so it on a later step recognizes there are no moderators!!!
Has the bp_group_has_moderators() function or get_group_moderator_ids( $group_id ) function been altered? Or the data about mods and/or admins in the groups?
Because one of them creates two warnings (one before listing the admins and one before listing the mods) that were not there before and also shows a “Moderators” tag that did not appear as the
if ( bp_group_has_moderators() )returned the FALSE value my no-mods groups “deserve” (which it later recognizes when adding the “no mods” string) that now returns this “buggy” TRUE value and shows the tag.November 15, 2016 at 6:36 am #261013In reply to: Regarding about custom field display
zxbchris
ParticipantHi,
Thanks for your prompt response.
Do you mean that, as I know where does the theme call it, which i found it :
<div class=”gdlr-post-author-inner”>
<div class=”post-author-avartar”><?php echo get_avatar(get_the_author_meta(‘ID’), 90); ?></div>
<div class=”post-author-content”>
<h4 class=”post-author”><?php the_author_posts_link(); ?></h4><?php echo get_the_author_meta(‘description‘); ?>
</div>
<div class=”clear”></div>
</div>the ‘description’ is the place where it called the default wordpress User description.
So now I will like to replace it with the custom field that I created, which i think its called field_2, do I need to create one php in the theme with this function:
$user_id = get_the_author_meta( ‘ID’ );
$bio = xprofile_get_field_data( ‘field_2’, $user_id );
echo $bio;
and use the bio created here to replace with the description above?
Sorry that my php knowledge is quite limited, Hope you can help me in this 🙂
Thanks!
November 15, 2016 at 5:38 am #261010In reply to: Group header file problems
danbp
Participantdid you check your templates ? Have you tried to use 2016, to ensure that it is/or not a theme issue ?
If it appears to be a theme issue, you have to contact seventhqueen, as we can’t assist you for premium themes.November 14, 2016 at 10:26 pm #261004In reply to: Group header file problems
padykule
ParticipantHiya. I too have this error since updating to 2.7.2. We haven’t made any other changes in a while. It appears on each group page. I’m running Sweetdate theme also by seventhqueen. The error appears on the master theme preview, not just the active child theme.
November 14, 2016 at 8:18 am #260982In reply to: How to make Buddypress support my Theme completely
danbp
ParticipantHi @vickievik,
the right question here would be how to make my theme compatible with buddypress.
The thing to understand is that BP use dynamic content for its page and that these page are NOT ordinaty WP pages.
For each content, BP fires a so called template-part.
Lets take as example a profile pageThe slug is /members/ which exist as “page” on wp’s page list. This wp page has no content and also no model or template. It’s just a “slug” in the wp ecosystem.
When you’re on a profile you have the page(aka /members/) but also many template parts, depending what you’re doing on that profile. Aside the common parts header – content – footer, you’ll find also personnal activity, frineds, groups, mentions, notifications, messages and not the worst, profile settings. All this on the same “page”.
Most theme mistakes are at this point. People try to design the page, instead to work the template parts.
When you design a theme, you usually design something for a page, independantly from any plugin. This structure is used by any Twenty Theme and you can follow them as model, because these themes are bullet proof and systematically used by all wp devs when building (in our case) BuddyPress
BP can be used with almost any existing theme, so far this theme is respecting WP’s coding standarts.
If you have brocken elements, and specially thoose using JS, it could be due to missing ID or class or even more simple, some missing instructions/conditionnals in your theme.
BP’s template parts are designed to fit with a majority of themes. The best to do, at least while creating your first theme, is to use BP “as is” and build your theme around thoose existing parts and not to remove/modifying BP arts to fit your creation.
November 13, 2016 at 9:54 pm #260972In reply to: How to make Buddypress support my Theme completely
Earl_D
ParticipantThis might be a good place to start if you looked at it already?
November 12, 2016 at 4:37 pm #260956In reply to: [Resolved] Has BP 2.7.2 eliminated cover images?
danbp
ParticipantHi,
no of course ! Read 2.7.2 changelog.
If you use a child theme or a third party theme, ensure it is updated for BP 2.7+: verify the templates.
November 11, 2016 at 10:43 pm #260947In reply to: Create a custom page for different roles
shanebp
ModeratorPlease do not call out people directly unless they have already responded to your thread.
You’re using a premium theme and one, maybe two, premium plugins.
Your questions should be directed to the support provided by your purchases.
You might find somebody here willing to help you.
And you have a better chance of getting help if you show what you’ve already tried.
( Please use a service like gist when sharing code. )November 11, 2016 at 4:51 pm #260941In reply to: Mutual Friends Online status Display
danbp
ParticipantHave you tested with a twenty theme ? To ensure that the profile hook is working, add this snippet directly to kleo’s functions.php. If it shows TEST, it’s ok and you can remove this snippet.
Do the same from within bp-custom, should be ok too. If not, yo have to search what goes wrong.Activate also wp-debug in wp-config while testing.
function swiftblack_test() { echo '<h2>TEST</h2>'; } add_action( 'bp_profile_header_meta', 'swiftblack_test' );November 10, 2016 at 9:18 pm #260928In reply to: Register button nearly unreadable
notoriouspyro
ParticipantYeah, you’re right. A little digging and it turns out to be the theme.
November 10, 2016 at 9:03 pm #260927In reply to: Register button nearly unreadable
Venutius
ModeratorIt looks like a theme issue to me
November 10, 2016 at 7:48 pm #260924In reply to: Profile header image size
modemlooper
ModeratorYou can find this information in the codex https://codex.buddypress.org/themes/buddypress-cover-images/
November 10, 2016 at 4:37 pm #260909Topic: Resctrict private messages
in forum How-to & Troubleshootingtalvasconcelos
ParticipantHi guys, need a little help with some custom action. I need to restrict private messages to paying members only, or if the message (thread) comes first from a paying user.
I use Paid Membership Pro to manage the membership. I tried including this function in the theme’s function file:
function message_from_non_premium($message_info) { $user = get_current_user_id(); $premium = pmpro_hasMembershipLevel('1', $user); if(!$premium) { if(!thread_id) { unset( $message_info->recipients ); return false; } } } add_action('messages_message_before_save', 'message_from_non_premium');but when testing, users can still send private messages, even without the required membership to do so. I used info from the forum and the pmp website: https://www.paidmembershipspro.com/documentation/content-controls/require-membership-function/
November 10, 2016 at 4:24 pm #260907valleev
ParticipantWell it works when I disable the theme. Somehow I doubt the theme developer will do a fix though. Is there some way I can troubleshoot this myself?
thanks
November 10, 2016 at 3:47 pm #260905Venutius
ModeratorThis has got to be plugin conflict or theme related issue since avatar and cover image uploads work when BuddyPress is running standalone. I’d try deactivating all other plugins and if that does not work then switching to the 2016 theme to check
November 10, 2016 at 12:09 pm #260900In reply to: Please Change your direction dude !
michel4534
ParticipantBonjour Dan 🙂
Excuse me, I used to write “répertoires” but the link is already localhost/repertoires-des-members/members/%name% and I would to change it for a simple link like : localhost/profile/%name%
I read your link.
Should I change for a Child theme ?I wainting for your answers,
Thank’s you for your help
Best regards
November 10, 2016 at 11:31 am #260899In reply to: Group header file problems
jaumearagay
Participant@manueldo, I’m using a child theme for Canvas from Woo.
I’m so busy this week with something else… I’ll update to 2.7.2. probably on the weekend. I’ll keep you posted! 😉November 10, 2016 at 5:17 am #260891In reply to: Regarding about custom field display
danbp
ParticipantHI,
basically when outside of the members loop, you call a profile field value with
xprofile_get_field_data()function.Positionning that information below a blog post depends of the theme (you’re using a premium one – so i ignore his code and can’t help). Usually, the post template has some action hooks where you can hook the bp function. If not, you create one via child-theme…
And finally, assuming the field is called “Biography”, you have to write your own function containing at least something like:
$user_id = get_the_author_meta( 'ID' ); $bio = xprofile_get_field_data( 'Biography', $user_id ); echo $bio;November 9, 2016 at 9:46 pm #260884In reply to: Group header file problems
danbp
ParticipantNovember 9, 2016 at 7:41 pm #260879In reply to: Group header file problems
manueldo
ParticipantI have the same error. What theme are you using? I am using Kleo.
November 8, 2016 at 9:01 pm #260856In reply to: “Create Group” button not showing
claudiosinopoli
ParticipantDear danbp,
first of all tank you for killing the discussion with your silence.
Almost two months ago I asked you for help, without success.After a while I realized that I can perform a supposedly so simple task myself.
I’m writing now to inform other people that want the “create a group” button in the single member’s “groups” page or somewhere else in a buddypress template page.After reading some buddypress documentation I replicated in my child theme the buddypress templates and css folders structure.
Looking into the group-related php files I noticed that the function for the button “create a group” is called bp_groups_directory_group_filter.
The “groups” page for the single member is generate by the file located in the following folder in my child theme: my_child_theme/buddypress/members/single/groups.php
It is starting with the following code
<?php /** * BuddyPress - Users Groups * * @package BuddyPress * @subpackage bp-legacy */ ?> <div class="item-list-tabs no-ajax" id="subnav" role="navigation"> <ul> <?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?> <?php if ( !bp_is_current_action( 'invites' ) ) : ?> <li id="groups-order-select" class="last filter"> <label for="groups-order-by"><?php _e( 'Order by:', 'buddypress' ); ?></label> <select id="groups-order-by"> <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>It’s enough to add the line
<?php do_action( 'bp_groups_directory_group_filter' ); ?>
after line 12
<?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?>
and you do the trick.Now in the single member’s “groups” page there will be the following buttons:
Memberships | Invitations | Create a groupIn the same way you can add this button to any other template page, taking care that the function it’s placed in the right position in the code.
Thank you again danbp: your silence was not very professional but perhaps stimulating in order to take initiative, learn something and solve a problem by myself.
November 8, 2016 at 6:52 pm #260848In reply to: BP and AMP
Earl_D
ParticipantI understand that responsiveness in terms of themes screen displays and the speed of page loads with AMP are different. However they are both about enhanced user experience on mobile devices right? I use the AMP plugin you link on another of my WP sites which is what prompted the question about the value for my BP site.
Since so much of a user experience in BP is dynamically generated I am just wondering how useful AMP is in that context. Particularly since as you point out it isn’t built into WP core so it means adding another plugin. We are still in the early day yet and early adopters share different results.
So just throwing the question out there to see if anyone has implemented on their BP and what they are seeing in terms of users on mobile devices.
Are you running AMP on your BP site(s)
November 7, 2016 at 5:41 pm #260822In reply to: bp_get_total_site_member_count() not working?
shanebp
ModeratorThis works for me when pasted in either theme/functions.php or bp-custom.php
And using the short code on a post or page.function sbp_show_number_of_members( $atts ){ $count_members = bp_get_total_site_member_count(); return $count_members; } function sbp_register_shortcodes() { add_shortcode('member-count', 'sbp_show_number_of_members'); } add_action('init', 'sbp_register_shortcodes'); -
AuthorSearch Results