Search Results for 'buddypress'
-
AuthorSearch Results
-
July 25, 2015 at 8:55 pm #242418
In reply to: Using a theme just for BuddyPress
djsteveb
Participant@kjgbriggs – setting up a child theme is just a way to essentially make a new theme – using another “parent” as your template. When you activate, it’s just ONE theme that it handling everything for your wp/bp site.
You do no provide enough details about your theme names, and what you like about the main one and the one that ‘looks better with buddyprees’ – however, if you just like the layout of the bp components with he second theme more, then yes I believe you could make a child theme from your primary theme, and then go into your secondary theme and start to pull some of the layout code for the bp specific components and add those to your main theme.
If it’s overall colors and such you are trying to mix, like have a red header for your main site and a blue header for your bp pages – that is not going to be so easy..
it’s easy to learn about child themes here: https://codex.wordpress.org/Child_Themes
and a little more digging to learn about bp specif pages and components here:
for minor changes you can keep things simple by activating your second theme that you like with the bp looking better, go to the bp pages where you like the layout, right click on the element that looks good and click inspect elements – this will give you the css rules that are working the way you like.. things like alignment properties, bold, colors perhaps – copy those – put them into your new child theme styles and such..
of course some things can be more tricky if your second theme has fancy functions.php, java and all that included.
July 25, 2015 at 8:43 pm #242416In reply to: Cannot Deactivate BuddyPress
djsteveb
Participant@chetbutikofer – I have not run into that exact thing – but you can go into your site via ftp or file mananger, under wp-content / plugins and simply delete the buddypress folder. That will usually deactivate just about any wp plugin.
July 24, 2015 at 11:13 pm #242224In reply to: Buddypress on multisite
valuser
ParticipantSuggestions in this post MAY be of some help.
https://buddypress.org/support/topic/multi-communities-in-one-website/July 24, 2015 at 10:58 pm #242220In reply to: Secret code necessary for registering
djsteveb
Participantnote sure if these work or not – never used them:
https://wordpress.org/plugins/wp-invites/https://wordpress.org/plugins/buddypress-private-community/
Let me know if you try them and they fail or work!
July 24, 2015 at 9:53 pm #242218In reply to: Buddypress on multisite
djsteveb
Participant@mattfl850 – this info will help with that journey:
bottom of the page: https://codex.buddypress.org/getting-started/installation-in-wordpress-multisite/I am sure this is possible, it’s not the way I would do it… might also want to consider some of the info here: http://halfelf.org/2011/dont-use-wordpress-multisite/ (updated may 2015 😉
Others may agree or disagree, and you may be keeping your server tuned like a well oiled machine – hidden from the SE spiders and brute force attackers and all that.
Of course I am not an expert, or a bp dev or anything – just another user who has tried a few different setups and spent many hours trying to do what it “possible” and should be “simple” – and pulled my hair out trying to make things like that work well :))
Not sure if anything is changed in recent updates, but I will mention that when I did this kind of conversion; I had to install the role scoper plugin (now called press permit) – in order to hide people’s private pics they uploaded – as they were visible in the media gallery for other bp users on my sites who had signed up for a “blog” (not called “site” in multi-site) – that was a painful thing to find out the hard way – maybe things have changed with that and other issues – not sure.
Have fun with that and let me know how it works out for ya!
July 24, 2015 at 7:46 pm #242213In reply to: Have a problem with login
djsteveb
Participant@ajay25 – maybe the wp plugin “good question” ( https://wordpress.org/plugins/good-question/ ) will do what you are asking (?)
Maybe “buddypress humanity”I imagine there are other similar ones in the wp repo these days
July 24, 2015 at 6:55 pm #242212In reply to: activity stream
blogook
ParticipantThanks so far.
I am using latest version of WordPress and Latest of Buddypress
Lets forget about css for now, I think I need to redo how activity stream is generating the html. If I want to get done as in my example (1st post) then I need to generate my own HTML. I am considering writing my own plugin to make it do what I want..
What buddypress filter can I use to adjust the html below?
<div class="activity-inner"> <p>Si quicquam extra virtutem habeatur in bonis. Qua ex cognitione facilior facta est investigatio rerum occultissimarum. Tum ille timide vel potius verecunde: Facio, inquit.</p> <p>Videmus igitur ut conquiescere ne […]<img src="http://somewebsite/wannabe/wordpress/wp-content/uploads/2015/07/Unknown.jpg"></p> </div>July 24, 2015 at 1:58 pm #242207In reply to: Template look and feel issues
Easy Web Scripts
ParticipantI am not using a buddypress template.
July 24, 2015 at 10:08 am #242203In reply to: Template look and feel issues
Henry Wright
ModeratorTake a look at the BuddyPress Template Hierarchy article. If your theme uses BuddyPress templates then you’ll be able to override them.
July 24, 2015 at 9:13 am #242199In reply to: activity stream
djsteveb
Participant@jgob – The simple answer would be sure, there is a way, edit the css.
there is no real way to answer your question I don’t think – there are no details. What is messed up? What is cleaner? Who decides these things?
What you are asking is highly dependent on which theme you are using.
As is suggested here: https://buddypress.org/support/topic/when-asking-for-support-2/
Best to have the info so people may take a look.
Without that info – right click on your pictures, inspect elemment, go to your css and change things is all I can tell ya.
July 24, 2015 at 12:08 am #242191In reply to: BP_Group_Member_Query type alphabetical
Garrett Hyder
ParticipantHi @shanebp,
Sorry for the confusion, I’ve created a bp_group_list_managers that’s a merge of bp_group_list_admins and bp_group_list_mods to provide a single consolidated listing.
function bp_group_list_managers($group=false) { global $groups_template; if(empty($group)) { $group =& $groups_template->group; } // fetch group admins if 'populate_extras' flag is false if (empty($group->args['populate_extras']) || true) { $query = new BP_Group_Member_Query(array( 'group_id' => $group->id, 'group_role' => 'admin', 'type' => 'alphabetical', )); if (!empty($query->results)) { $group->admins = $query->results; } } // fetch group mods if 'populate_extras' flag is false if (empty($group->args['populate_extras']) || true) { $query = new BP_Group_Member_Query(array( 'group_id' => $group->id, 'group_role' => 'mod', 'type' => 'alphabetical', )); if (!empty($query->results)) { $group->mods = $query->results; } } $admins = (array)$group->admins; $mods = (array)$group->mods; usort($admins, 'bp_group_member_sort'); usort($mods, 'bp_group_member_sort'); $group->managers = array_merge($admins, $mods); if (!empty($group->managers)) { ?> <ul id="group-managers"> <?php foreach((array)$group->managers as $manager) { ?> <li> <a href="<?php echo bp_core_get_user_domain($manager->user_id, $manager->user_nicename, $manager->user_login); ?>"><?php echo bp_core_fetch_avatar(array('item_id' => $manager->user_id, 'email' => $manager->user_email, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname($manager->user_id)))) ?></a> </li> <?php } ?> </ul> <?php } else { ?> <span class="activity"><?php _e( 'No Managers', 'buddypress' ) ?></span> <?php } }As you can see I set the type here to alphabetical and was first confused why it did nothing then I realized the BP_Group_Member_Query’s were never even called as I guess populate_extras was set so not empty. This meant that the $group->admins and $group->mods came from the global $group_template->group which wasn’t ordered. I’m curious how to make that global $group_template->group admin/mod lists could be alphabetically ordered by default.
For now I just amended my method to simply force the BP_Group_Member_Query’s to be used instead which has allowed for the alphabetical ordering.
Hope that clears things up.
Thanks
July 23, 2015 at 11:32 pm #242188In reply to: BP_Group_Member_Query type alphabetical
shanebp
ModeratorBP_Group_Member_Query is a class extension of BP_User_Query
Take a look at the code examples here:July 23, 2015 at 5:40 pm #242171In reply to: Accessing Original $wp_query
shanebp
ModeratorDid you read: https://codex.buddypress.org/developer/the-bp-global/
July 23, 2015 at 5:05 pm #242168In reply to: Accessing Original $wp_query
WTHeel
ParticipantI just did, but it did not work. I looked at the function, saw $groups_template, and added the following inside and outside of the loop:
var_dump($groups_template);Here’s the code from buddypress.php:
<? /* Template Name: BuddyPress */ get_header(); $plp_user_check = plp_user_check($current_user); var_dump($groups_template); echo "<br>Course Path: " . bp_get_group_slug(); include("forums-header.php"); ?> <? if( have_posts() ): ?> <? while( have_posts() ): the_post(); var_dump($groups_template); echo "<br>Course Path: " . bp_get_group_slug(); the_content(); endwhile; ?> <? else: ?> <div id="post-404" class="noposts"> <p><? _e('None found.','example'); ?></p> </div><!-- /#post-404 --> <? endif; wp_reset_query(); ?> </div><!-- /#bodyContainer <? get_footer(); ?>The first var dump just returned “NULL”. The second one returned:
object(stdClass)#644 (1) { ["group"]=> NULL }July 23, 2015 at 2:24 am #242153In reply to: Activating Memberships
djsteveb
Participantjessy
ParticipantI think I should solve problem if you implement this patch into next release:
https://buddypress.trac.wordpress.org/attachment/ticket/5202/5202.02.patch
https://buddypress.trac.wordpress.org/ticket/5202jessy
ParticipantHow to customize “profile/change-avatar/” page?
I have used “index-action-change-avatar.php” template, but javascript is not loaded and you can not crop image by your needs. I have copied all the content from /profile/change-avatar.php default buddypress template directory.
Thank you.
July 22, 2015 at 11:23 am #242125In reply to: Problems with german translations of buddypress
Whiskyharry
Participantin an older installation I did the same (I hope so) and it works fine.
Yesterday I had some issues with the profile header and I reinstalled buddypress. Now, some translations are missing…July 22, 2015 at 11:06 am #242122In reply to: activate Sidebar for all-members and all-groups page
Whiskyharry
ParticipantIn my the7.2-Theme I have several templates for using them for pages and the blog.
But I do not really unerstand the concept behind buddypress:- I have to create a page and then I assign it to members/groups/activity… but as I create the PAGE, there is a sidebar. WHy doesn’t buddypress use/show this sidebar?
- It’s the same issue with the footer widget area (ok, it’s the same as a siebar)
- Why do I have to extend the functions.php to be able to use the sidebars?
- And what are these functions (posted above) do?
July 22, 2015 at 10:33 am #242120In reply to: activate Sidebar for all-members and all-groups page
Whiskyharry
Participantoh sorry:
I’m using the7.2 from themeforrest.They’ve sent me some snippets to include in the themes functions.php, but I don’t know if I’ve included them correctly. But after including them, I had the sidebar on several pages (e.g. the member-subpages), but still missing on
- all groups
- single group
- members list (first page)
- group list (first page)
- activity list (first page)
They said it was a kind of “blueprint”, so I added the lines – without really understanding what I’m doing. As a result, it seems to work on some pages – but not on all:
function dt_bbypress_template_config1()
{
if( is_bbpress() )
{
$pagid = 35615; //sidebar, footer settings of the page id given will be applied to user profiles
$config = presscore_get_config( );
presscore_config_base_init( $pagid );}
}
add_action( ‘get_header’, ‘dt_bbypress_template_config1’, 10 );function dt_buddypress_template_config2()
{
if( bbp_is_single_user() ){
$pagid = 35615; //sidebar, footer settings of the page id given will be applied to user profiles
$config = presscore_get_config( );
presscore_config_base_init( $pagid );
}
}add_action( ‘get_header’, ‘dt_buddypress_template_config2’, 10 );
function dt_bbypress_template_config3()
{
if( is_bbpress() )
{
$pagid = 35609; //sidebar, footer settings of the page id given will be applied to user profiles
$config = presscore_get_config( );
presscore_config_base_init( $pagid );}
}
add_action( ‘get_header’, ‘dt_bbypress_template_config3’, 10 );function dt_buddypress_template_config4()
{
if( bbp_is_single_user() ){
$pagid = 35609; //sidebar, footer settings of the page id given will be applied to user profiles
$config = presscore_get_config( );
presscore_config_base_init( $pagid );
}
}add_action( ‘get_header’, ‘dt_buddypress_template_config4’, 10 );
July 22, 2015 at 2:11 am #242108In reply to: Check if page is visible to user
djsteveb
Participant@ronz – have you poked around https://codex.buddypress.org/themes/ ?
I am would not bet things are as up to date as they could be, but I think there is some useful info there.
what do you mean “page is visible” to user logged in?
July 22, 2015 at 2:07 am #242107In reply to: cannot send private messages BP 2.3.2.1
5high
ParticipantI know this is a VERY old thread but it’s exactly the same problem: https://buddypress.org/support/topic/error-composing-messages/ – may be helpful if you’re well versed in BP?
July 22, 2015 at 2:01 am #242106In reply to: activate Sidebar for all-members and all-groups page
djsteveb
Participant@whiskyharry – what theme are you using?
with all of my buddypress sites I have the same sidebar on all pages.
July 21, 2015 at 4:59 pm #242091In reply to: Check if page is visible to user
ronz
ParticipantIs there a website where buddypress functions are listed ?
July 21, 2015 at 4:33 pm #242088In reply to: Hide the whole Base profile field group
shanebp
ModeratorTry this…
Make a template overload of this file:
bp-templates\bp-legacy\buddypress\members\single\profile\profile-loop.phpIn that new file, change this:
<?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>to this, assuming the id of your base group is 1
<?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?> <?php if( bp_get_the_profile_group_id() != 1 ) : ?>And add an
<?php endif; ?>before the<?php endwhile; ?>near the bottom of the page.Do the same for:
bp-templates\bp-legacy\buddypress\members\single\profile\edit.php -
AuthorSearch Results