Search Results for 'buddypress'
-
AuthorSearch Results
-
August 20, 2014 at 10:18 pm #187628
danbp
ParticipantDo you think that I have to add my modified bp-legacy files to my parent theme as well?
For sure. If you don’t, the next BP update will overide this folder. Golden rule: never touch/modify any of the original plugin files.
Any change you make is to do in the child-theme, including the legacy files you added to it.You could also revert back, and try this function ( add it to child-theme’s functions.php)
function bpfr_filtering_activity( $retval ) { // activities to filter on, comma separated $retval['object'] = 'status'; return $retval; } add_filter( 'bp_before_has_activities_parse_args', 'bpfr_filtering_activity' );Read here for more details.
August 20, 2014 at 9:19 pm #187384Christian Freeman (codelion)
ParticipantHi @danbp,
Thanks for helping me out with this. I’m not so worried about the css issue right now, I’m going to get that squared away after I can get this content filter to work. Do you think that I have to add my modified bp-legacy files to my parent theme as well?The only file that I’ve changed in the
bp-legacy/buddypress/activityfolder is activity-loop.php, and I only changed line 3 to the following:<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ).'&object=status' ) ) : ?>August 20, 2014 at 8:11 pm #187288In reply to: [Resolved] No show in members list
danbp
ParticipantDid you discovered them in the Pending Registration Tab ?
Maybe related:
https://buddypress.org/support/topic/exclude-pending-users-in-alphabetical-listing/
https://buddypress.org/support/topic/resolved-why-does-it-show-i-have-more-members-than-shown/#post-137800August 20, 2014 at 7:18 pm #187273In reply to: BuddyPress integration with Aweber
SAPinfoASAP
ParticipantHi,
Unfortunately that doesn’t work as I intended. It creates a widget on the side (that is somewhat buggy), however it doesn’t automatically subscribe people to aweber when they register for an account in my forum.
I have done a lot of digging and have found that gravity forms can integrate with aweber, though I’m not sure how this would work with buddypress. Can you use gravity forms to replace the buddypress default registration page?
August 20, 2014 at 6:21 pm #187271danbp
Participanthi @stingray1972,
How to get different infos in 21 group sidebars for Dummies.
TIP-OFF: we won’t built 21 sidebars, but only 21 different informations useable from within 21 groups.
We assume you have a theme with at least one sidebar and that this sidebar is visible when you’re on a group page.
We assume also that you have a child-theme, because we’re going to add some modification to it. And this must be done in a child or you loose any changes at the next theme update.Now that we have set the stage, let’s go further.
1) we have a sidebar
2) we need a place to set our extra information
3) we need a function to insert the info at the right placeYou follow ? Not to hard ? Ok, let’s continue…
– Make a copy of the original sidebar.php of your theme into the child-theme folder.
– open the copy and search in the code something like this:dynamic_sidebar( 'sidebar' )
– underneath you paste this:<?php if ( bp_is_groups_component() ) : do_action( 'xtragroup' ); endif; ?>– save the file.
Bravo ! You have installed a new placeholder in the widget area.
The result should look like this:
<div id="tertiary" class="sidebar-container" role="complementary"> <div class="sidebar-inner"> <div class="widget-area"> <?php dynamic_sidebar( 'sidebar-2' ); ?> <?php if ( bp_is_groups_component() ) : do_action( 'xtragroup' ); endif; ?> </div><!-- .widget-area --> </div><!-- .sidebar-inner --> </div><!-- #tertiary -->(example shows the code of the Twentythirteen widget area)
– open the child-theme functions.php (if not exist you have to create it)
– add the following snippet and save the file.
function xtra_group_sidebar() { // conditionnal - group name (slug format) - item if(bp_is_groups_component() && 'kill-bill' == bp_current_item() ): // your content echo 'what time is it Bill ? ' ; $my_date = date('H:i'); echo $my_date; endif; if(bp_is_groups_component() && 'groupe-2014' == bp_current_item() ): echo 'who knows ?'; endif; if(bp_is_groups_component() && 'rrrrrrrr' == bp_current_item() ): echo 'Groaaaar...'; endif; } add_action( 'xtragroup', 'xtra_group_sidebar' );– Be carefull: the snippet handles only 3 group.
– You have to add 18 more and change the names to those you use.
– Simply replicate for each the if (bp_is_groups_component(), the echo (or anything else) and the endif
– upload to the server and enjoy !EFD (end for dummies)
August 20, 2014 at 6:21 pm #187270In reply to: How can I get the parent component of a page?
jreeve
ParticipantIn case anyone else runs into this issue, I’ve created issue #5827 here: https://buddypress.trac.wordpress.org/ticket/5827#ticket
August 20, 2014 at 4:30 pm #187264In reply to: widget for displaying forum posts?
danbp
ParticipantAugust 20, 2014 at 4:13 pm #187262In reply to: widget for displaying forum posts?
heatherkirk
ParticipantActually, I have buddypress installed, rather than bbpress :-). I had a look for buddypress associated widgets, but did not find what I was looking for.
August 20, 2014 at 3:22 pm #187257Henry Wright
ModeratorHi @laxmanvel
This functionality isn’t available in BuddyPress by default. You may have some luck searching the WP plugin repo although I haven’t seen anything like this myself. Let us know if you find anything!
August 20, 2014 at 3:04 pm #187254In reply to: [Resolved] Editing User "Homepage"
danbp
ParticipantI need a pages for members that will let them send each other messages
if you enable BP’s Private message component, the built-in message system will let each user send message to other members.
https://codex.buddypress.org/buddypress-components-and-features/messages/Except if i misunderstood you, i don’t see the utility to add an extra page for this.
Depending of which plugin you use to manage events, a subscribe to event page is most probably included in the plugin.
If messaging and event are your only need, you’re going overcomplicated for the moment. The only thing you have to do, i think, is to install correctly a theme and to check that BP is showing properly on it.
Once done, you can eventually customize the theme. But only if it doesn’t fit exactly with a event plugin. For the messages, if BP is ok, messages will be also ok.
Foundation first. The house after and the wallpaper at the end of the end !
August 20, 2014 at 2:06 pm #187253In reply to: [Resolved] Editing User "Homepage"
MrMarkG
ParticipantHenry – thanks for spotting that. I’ll fix it.
DanBP – maybe if I explain what I am trying to do, you can explain whether I am veering of course or not.
Basically I am creating a paid membership site. I will have 4-5 pages outside of BP (that I am currently using regular WP for) that will advertise the site, then I need a pages for members that will let them send each other messages and also sign up for events. If I understand what you are saying, I would then have one page called “buddypress.php” that would manage this functionality?
Many thanks for your help. I’ll read the links you sent me and I’m also working my way through BuddyPress Theme Development as I have a Safari Account via work.
Regards,
Mark
August 20, 2014 at 1:25 pm #187251In reply to: register.php
sachin550
ParticipantThank you @mercime for you reply !! i have modified both the files with my custom text but still getting the same default message !!
Registering for this site is easy, just fill in the fields below and we’ll get a new account set up for you in no time.
plugins/buddypress/bp-themes/bp-default/registration/register.php
bp-templates/bp-legacy/buddypress/members/register.phpthank you
August 20, 2014 at 8:27 am #187243In reply to: register.php
@mercime
ParticipantFor this i have modified /wp-content/plugins/buddypress/bp-themes/bp-default/registration/register.php
@sachin550 Are you using the BP Default theme or a child theme of BP Default? If not, then you should not modify that file. Instead, create a child theme of your WP theme of choice, create a folder namedbuddypressin that child theme folder and copy over https://buddypress.trac.wordpress.org/browser/trunk/src/bp-templates/bp-legacy/buddypress/members/register.php following the directory structure and revise it.August 20, 2014 at 6:57 am #187242In reply to: register.php
sachin550
ParticipantThank you for your reply !! i have tried with both files
plugins/buddypress/bp-themes/bp-default/registration/register.php
bp-templates/bp-legacy/buddypress/members/register.phpBut still i am getting same
Registering for this site is easy, just fill in the fields below and we’ll get a new account set up for you in no time.
Where this line are calling from ?
August 20, 2014 at 4:45 am #187239In reply to: Edit BP Pages
@mercime
ParticipantHow can I modify BP pages such as removing profile sidebar ??
@osamanuman https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/August 20, 2014 at 4:37 am #187238@mercime
Participantbut that doesn’t work right
@gregfielding What exactly doesn’t work right? No styles or a blank page or error? Have you checked out the articles listed at https://codex.buddypress.org/themes/theme-compatibility-1-7/?August 19, 2014 at 9:20 pm #187232In reply to: [Resolved] Editing User "Homepage"
danbp
ParticipantI guess the top right name is made with
echo $user->display_name;As you added an ELSE clause after the UL end tag, it would probably be better to hide the whole UL to avoid html errors to not logged visitors.
Invert
<ul class="nav navbar-nav navbar-right"> <?php if ( is_user_logged_in()) :to this
<?php if ( is_user_logged_in()) : <ul class="nav navbar-nav navbar-right">You have a page.php in the wordpress themes (2012, 2013, 2014).
You make a copy and rename it buddypress.php and load it into your custom theme.
If not already done, i recommend you to read attentively this on WP codex:
https://codex.wordpress.org/Theme_Development
and also thisAugust 19, 2014 at 8:53 pm #187229In reply to: register.php
aces
ParticipantThat Line is in https://buddypress.trac.wordpress.org/browser/tags/2.0.2/buddypress.pot#L6005
Have a look at https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/ to customise.
August 19, 2014 at 7:34 pm #187225In reply to: [Resolved] Editing User "Homepage"
MrMarkG
ParticipantIs there an example page.php or buddypress.php in the BP install that I could copy into my theme? I didn’t see one.
The name on the top right comes from my own toolbar which uses bootstrap styles:
<nav class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse navbar-inverse navbar-fixed-top" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <?php wp_list_pages(array('title_li' => '')); ?> </ul> <ul class="nav navbar-nav navbar-right"> <?php if ( is_user_logged_in()) : // get the currently logged-in user $user = wp_get_current_user(); ?> <li><a href="<?php echo bp_loggedin_user_domain(); ?>""> <button type="button" class="btn btn-info"> <span class="glyphicon glyphicon-envelope"></span> <span class="badge"><?php bp_total_unread_messages_count() ?></span> </button> <?php // echo the user's display_name echo $user->display_name; ?> </a> </li> </ul> <?php else: ?> <form class="navbar-form" role="login"> <div class="form-group"> <input type="text" class="form-control" placeholder="User Name"> <input type="text" class="form-control" placeholder="Password"> </div> <button type="submit" class="btn btn-default">Login</button> </form> </ul> <?php endif; ?>Again, if I’m doing the toolbar wrong, let me know, but I have a very particular style guide I need to use.
Thanks very much!
Mark
August 19, 2014 at 2:06 pm #187210In reply to: Extending ajax parameters
Cyril Batillat
ParticipantThanks @henrywright
I have managed to add additional fields on comment form. Now my goal is to pass the values of these new fields in the ajax call, to be able to use some hooks like ‘bp_activity_comment_posted’ and more…
That’s why I’m asking the best way to pass additional data.Thanks you for directing me on Trac, I created a new ticket.
August 19, 2014 at 1:47 pm #187209In reply to: Extending ajax parameters
Henry Wright
ModeratorWhat data were you planning on passing?
I don’t want to modify the core of BuddyPress, so is there an other way to do this ?
No but you could try asking the guys over at Trac if they could extend what data can be passed. If they agree, the changes usually take a minor version or two to make it into core but until then you could apply the patch to your own installation.
August 19, 2014 at 12:09 pm #187204Henry Wright
ModeratorIf you’re using BuddyPress 2.0.2 with WordPress 3.9.2 with no plugins activated or even installed in the plugin folder and the Twenty Fourteen theme enabled then everything should work fine as this is a tried and tested combo. The only variables left are a) your server and b) your database.
Perhaps try rolling back your database? And also make sure there has been no changes on your server since you noticed the issue.
August 19, 2014 at 11:52 am #187202Henry Wright
Moderator@micasuh humm. Perhaps try grabbing a fresh copy of the BP plugin code? https://wordpress.org/plugins/buddypress/
Something may have become corrupted in the actual plugin.
August 19, 2014 at 11:30 am #187200Henry Wright
Moderator@micasuh the .mo file is most likely being loaded from your theme’s functions.php file. Alternatively, it may be loaded from a plugin. Or, maybe even bp-custom.php (if you have one of those).
Look for something such as the following and try removing it to see if it resolves the issue:
if ( file_exists( WP_LANG_DIR . '/buddypress-en_US.mo' ) ) { load_textdomain( 'buddypress', WP_LANG_DIR . '/buddypress-en_US.mo' ); }If it doesn’t resolve the problem then we know your translation file is OK.
If you still believe the issue is a virus in your database then you could try rolling back. Do you keep database backups? But, to be honest, I’m more inclined to think this is occurring as a result of some rogue theme or plugin code.
August 19, 2014 at 8:14 am #1871931a-spielwiese
ParticipantI don’t know, whether this is possible in the administration area.
But may you can adapt this for your purposes:
https://buddypress.org/support/topic/add-profile-field-to-order-by-drop-down-menu/
I guess, to order the members due to a certain field implies to see, whether it is filled in or not.
-
AuthorSearch Results