Search Results for 'buddypress'
-
AuthorSearch Results
-
September 22, 2015 at 3:32 pm #244688
In reply to: Customizing Members Profile Link Structure
danbp
ParticipantSee here:
About
bp_get_displayed_user_nav_As you see, there is a a final undescore
This is a dynamic function name which need to be completed, depending the place you want it to be modified.
bp_get_displayed_user_nav_<css_id>.See a working example here, to understand how to use it
https://buddypress.org/support/topic/how-to-remove-sub-nav-only-for-displayed-user/#post-234852September 22, 2015 at 11:25 am #244674In reply to: Home URL redirects to Members page
Henry Wright
ModeratorThe Theme My Login plugin is useful in handling redirection. Taken from the plugin’s feature list:
Redirect users upon log in and log out based upon their role
I’ve done this myself using the plugin and can confirm it works quite well with BuddyPress installed.
September 22, 2015 at 8:36 am #244663In reply to: Blank pop-up screen in change avatar link
danbp
ParticipantHi,
you need to track down the issue,perhaps a JS conflict in backend. Or have you the same problem on front end too ?
Follow instructions from here:
September 22, 2015 at 3:01 am #244658In reply to: Error when delete activity stream comment on post
buddywhatshisname
ParticipantHere’s a backtrace:
[22-Sep-2015 02:59:19 UTC] bp_blogs_sync_delete_from_activity_comment::Started with $activity_id=14062 [22-Sep-2015 02:59:19 UTC] bp_blogs_sync_delete_from_activity_comment::Done - about to return false [22-Sep-2015 02:59:19 UTC] bp_blogs_sync_delete_from_activity_comment::backtrace=Array ( [0] => Array ( [function] => bp_blogs_sync_delete_from_activity_comment [args] => Array ( [0] => 1 [1] => 14043 [2] => 14062 ) ) [1] => Array ( [file] => /wp-includes/plugin.php [line] => 213 [function] => call_user_func_array [args] => Array ( [0] => bp_blogs_sync_delete_from_activity_comment [1] => Array ( [0] => 1 [1] => 14043 [2] => 14062 ) ) ) [2] => Array ( [file] => /wp-content/plugins/buddypress/bp-activity/bp-activity-functions.php [line] => 2468 [function] => apply_filters [args] => Array ( [0] => bp_activity_delete_comment_pre [1] => 1 [2] => 14043 [3] => 14062 ) ) [3] => Array ( [file] => /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress-functions.php [line] => 1115 [function] => bp_activity_delete_comment [args] => Array ( [0] => 14043 [1] => 14062 ) ) [4] => Array ( [function] => bp_legacy_theme_delete_activity_comment [args] => Array ( [0] => ) ) [5] => Array ( [file] => /wp-includes/plugin.php [line] => 508 [function] => call_user_func_array [args] => Array ( [0] => bp_legacy_theme_delete_activity_comment [1] => Array ( [0] => ) ) ) [6] => Array ( [file] => /wp-admin/admin-ajax.php [line] => 91 [function] => do_action [args] => Array ( [0] => wp_ajax_delete_activity_comment ) ) ) [22-Sep-2015 02:59:19 UTC] bp_activity_delete_comment::Quit after apply_filtersSeptember 21, 2015 at 9:45 pm #244654In reply to: Registration and Activation pages
danbp
ParticipantSeptember 21, 2015 at 9:36 pm #244653In reply to: Featured image for directories (page ID)
danbp
ParticipantSeptember 21, 2015 at 9:26 pm #244651Henry Wright
ModeratorTo the best of my knowledge, @-mentions in BuddyPress require the activity component to be active.
September 21, 2015 at 9:26 pm #244650In reply to: Featured image for directories (page ID)
danbp
ParticipantBuddyPress use 3 pages by default: members, groups and activity and a small bunch of templates depending the context.
These 3 pages are not used as ordinary WP pages, and exist for internal usage with WordPress, as slug placeholder only. These pages must stay empty and independant of any template or model.The best way to add featured images, is to hook into an existing function/filter or action. There’s no need for a static page.
For more complex addition, you can use plugin.php template file which exist in /single/ directory of members and groups component template.
See get_posts and get_the_post_thumbnail on WP Codex
Post type of featured image isattachementRead also about BuddyPress:
or a working example similar to what you try to do (if i understand you correctly).
https://buddypress.org/support/topic/my-contributions-tab-with-subtabs/#post-244609September 21, 2015 at 6:28 pm #244642In reply to: Why bpthumb == bpfull ?
DAM
Participant@henrywright Buddypress is the only plugin
September 21, 2015 at 4:07 pm #244633In reply to: Removal of html from all message boxes
shanebp
ModeratorPlease don’t double post.
The answer to your question is similar to the answer in the same thread where you also asked this question.
https://buddypress.org/support/topic/how-to-disable-html-in-buddypress-private-message/There is no global filter for message boxes.
You have to find the filter hook as in the thread referred to above.September 21, 2015 at 9:11 am #244621In reply to: menu logged out list
danbp
ParticipantSeptember 20, 2015 at 10:56 pm #244614In reply to: Can’t register user through front end
MvdO79
ParticipantHi, I have the same issues:
– the buddypress register page is not creating users, after submit it shows the register page again and the passwords are gone.
– there are no users displayed in the backend
– there are no pending users
i have followed all directions found online and on this forum, fresh install of wp with fresh install of bp, no other plugins active etc…
Should I use an older version of bp? Do I have to create manual pages as the default bp theme is not active anymore?
September 19, 2015 at 6:57 pm #244594In reply to: I Cannot Create Groups
shanebp
Moderatorhttp://acadayear.com/home/groups/ is also not found.
Do you have User Groups enabled here?
…/wp-admin/admin.php?page=bp-componentsHave you assigned a page to Groups here?
…/wp-admin/admin.php?page=bp-page-settingsHave you read this?
September 19, 2015 at 10:04 am #244585Henry Wright
ModeratorI am currently testing my buddypress install on one of my servers with nginx
Are you using Nginx with php-fpm? I’ve been tempted to do that for BuddyPress. It’d mean moving all of my .htaccess directives to Nginx server blocks but I think the effort would be worth it for the performance improvements.
September 19, 2015 at 3:44 am #244580mcpeanut
Participant@ch1n3s3b0y Hi there, im gonna chime in on this as im starting to believe that buddypress can most definately scale vary well (even though its not been proven yet to scale to say a million users+ i think its quite possible), as henry may remember from previous threads i have commented in i have decided to look into the ultimate server configurations to try and find the best way to actually move forward into my own buddypress build.
This has meant concentrating and learning about lots of different server configurations for the past couple of years in-between my other projects.
Do you think Buddypress can support hundreds of thousands, if not millions of users?
Lets just switch this notion right on its head, rather than ask yourself if buddypress can scale to a millon users start asking yourself if your server setup and configuration can scale to a million concurrent users instead.
The key to success on a buddypress active and busy site becomes more of a server and administration task rather than how you have buddypress setup on a basic server config (before long you will bottleneck somewhere if you do not setup for expansion).
I know it seems daunting to think about all of this rather than install it build it and launch it and expect it to scale! But to me doing something half hearted isnt the way forward with a serious build on any project. If you prepare and understand the potential problems before you have that killer network built with 100s of thousand of concurrent users its much better to be prepared than to sit back and go NOW WHAT! when you finally grind to a halt and noone can use your site anymore and you dont know how to fix and expand it. Proactive is the way forward.
I am currently testing my buddypress install on one of my servers with nginx and HHVM (hip hop virtual machine) that was created by and is used by facebook instead of standard php, this speeds up the PHP execution speed PHP code is translated into C++ compiled into a binary and run as an executable to really speed up the way php works, therefore making everying load much much much much faster! I have only just started messing around with HHVM and will keep you updated. is anyone else actually running HHVM? if so please do share with me your finding, to me this seems the way forward with any buddypress installed website.
Also as i have stated before once i have decided on my final server configurations and im 100 percent happy with exactly how my setups work with wordpress/buddypress to scale to massive amounts of users i will create a post and guide on how i have it all set up, but still will take me more time yet. and also as stated before if anyone else does want to give there 2 cents on it feel free because on these forums there is not much talk about actual configs that people are using, even though i do realize this is server tech department, i also believe it is a valid issue for buddypress because instead of questions about scalability there could also be a few answers which is my ultimate goal. 😉
September 18, 2015 at 9:29 pm #244575In reply to: [Resolved] Create Menu Link for Subnav Page
danbp
ParticipantHi @qurgh,
use
bp_loggedin_user_domainfunction andwp_nav_menu_itemsfilter to add the item to an existing menu, like this:bp_loggedin_user_domain( 'kag/ship/' )See here for a working example:
https://buddypress.org/support/topic/url-for-menu-to-logged-in-users-profile-page/WordPress reference:
https://codex.wordpress.org/Navigation_MenusBuddyPress reference
September 18, 2015 at 8:49 pm #244571In reply to: [Resolved] period or special characters in username
alpha2
ParticipantYes it is. But rather than using a plugin (for this project i am nearly at 53 active plugins…too much) maybe its better to use a function.
i use this thread to ask you another question, some users (registered before i applied this plugin) named their account with a period: john.doe . Actually it’s not a big deal because buddypress (or wordpress natively) transform this dot into hyphen in each link.On one specific page template, I have special function i created with the help of a dev to display all users by a custom taxonomy (ranks)
Only mater is that every hyperlink that link to account like john.doe are display like this http://www.website.com/members/john.doe and not http://www.website.com/members/john-doe
I search into the code and found this:
<div><?php $user = get_user_by('id', $gold ); ?><a href="<?php echo site_url();?>/members/<?php echo $user->user_login;?>/buddyblog/"><?php echo bp_core_fetch_avatar( array( 'item_id' => $gold, 'type' => 'full' ) ); ?></a><a href="<?php echo site_url();?>/members/<?php echo $user->user_login;?>/buddyblog/"><?php echo $user->user_login; ?></a>Performances: <?php echo count_user_posts( $gold ); ?></div>I must change how is display the username.
Thank you for your time and your help!
September 18, 2015 at 2:49 pm #244556In reply to: How to send a notification with email.
shanebp
ModeratorTry adding a call to wp_mail.
There are several examples of that in codebase.
For example, seefunction bp_activity_at_message_notification
inbuddypress\bp-activity\bp-activity-notifications.phpSeptember 18, 2015 at 12:03 pm #244549JECPFG
ParticipantHi djsteveb, I appreciate that but it’s been several days since I asked on the wpmudev’s support forums and they haven’t replied yet, so I’m anticipating the “you’ll need to ask BuddyPress” response. I figure if I ask in both forums, one side may have an answer.
And since this is a function of the BuddyPress Profile Fields, I assumed I might have a better chance of getting a response here anyway. I know this isn’t overly complex for someone who knows the answer, I’m just hoping to find someone who does.
September 18, 2015 at 11:21 am #244547In reply to: Option to sort inbox msgs new to old
danbp
Participant– which is especially torturous on mobile devices..
hahahaha, but in return, you have very thumb muscled mobile devices users. 💪
Googled for buddypress reverse messages order and found this:
https://gist.github.com/bappi-d-great/be10c2e096f0e6936b43Untested and waiting now for feedback. 👂 🙂
September 18, 2015 at 11:13 am #244546In reply to: Setting full-width template for groups
danbp
Participanti wrote: To make it work with BP, you add a copy of the original page.php of 2014 and rename it buddypress.php. And you add the condition into that copy.
I’m not a 2014 specialist and never liked that theme with BuddyPress. The’re so many other out to discover, easy to use and configure, that i wouldn’t loose my (at least) time with it.
2015 is already avaible and 2016 too, though 2014 is a dynosaur now. Beat’em ! 😉September 18, 2015 at 7:20 am #244543In reply to: Setting full-width template for groups
djsteveb
Participantyou could (although this theme is quite tricky with the various sizing things, and I am NOT an expert with this theme or css – so make backups, use child themes – all that jazz)
you could try changing (or overwriting with child theme / enque an overlap style sheet)
@media screen and (min-width: 1218px) { .site-content, .site-main .widecolumn { margin-left: 222px; } }to:
@media screen and (min-width: 1218px) { .site-content, .site-main .widecolumn { margin-left: 90px; } }and..
.buddypress .site-content article .entry-content, .buddypress .site-content article .entry-header { max-width: 100%; padding: 0px 10% 5%; }change to
.buddypress .site-content article .entry-content, .buddypress .site-content article .entry-header { padding: 0px 1% 5%; }– now of course how these settings affect the groups page is one thing this could cause ill effects on other pages – (ones with double sidebars) – and at different screen sizes.. this 2014 thing gets pretty picky..
especially with 2014 doing one thing, and the bp-addon style thing doing some other things.. one percentage change here looks good – but a different page at a difference screen size – grrr.. you have to test a lot with this mix (come to find out the hard way here the past couple weeks!)
This will add a lot more space, which is what I guess you are going for in general – but not remove all sidebars..
and
That does not get rid of the left sidebar, which is I guess what you were meaning to ask in the first place with this thread (and I think everyone else was assuming you wanted to get rid of the right sidebar, as our understanding of the term “full width page” – err template in my mind is just that.. looks like you really want a “no sidebars at all page template” for groups page?September 18, 2015 at 7:02 am #244541In reply to: “Walled Garden” mode
YesPapa
Participant@djsteveb I know this solutions. I am just telling that included this function in the box would be great.
If BuddyPress want to also be a Entreprise Social Network solution, I am thinking this feature has to be included. Other ESNs provide it.
Best.
September 18, 2015 at 5:02 am #244538In reply to: Setting full-width template for groups
djsteveb
Participant@danbp –
am I to understand – that you would make a buddypress.php and have just like:
<?php if( !bp_is_groups_component() ) { get_sidebar( 'content' ); } ?>or maybe copy the page.php code and put it all into a new file buddypress.php – and add the code
if( !bp_is_groups_component() ) { get_sidebar( 'content' ); }to buddypress.php maybe in the head of it?
BP’s content comes full-width on 2014
Actually with my 2014 themed bp site I get a left and right sidebar on large monitor, it does not get into bp stuff taking full side space width until the screen shrinks to.. I dunno 1008 pix or so (one of those media queries)
So I think this code you are suggesting would indeed be useful with 2014 as well.
I have been looking a couple of plugins like ‘dynamic sidebars’ (maybe it was dynamic widgets) – and ‘content aware sidebars’ – one of these I saw recently says is plays well with BP – and I was thinking one of these may be able to solve some common problems that bp peeps run into in regards to wanting to change content on the various psueodo pages.. however I am not sure that any of those plugins would remove all widgets from the sidebar on some pages, and if they DID.. would that make theme X go full width for that area anyhow? not likely, but it’s a nice dream.
Anyhow thanks for the info I might test this out a bit not that I am digging deeper into 2014 and bp..
September 18, 2015 at 2:05 am #244537In reply to: Setting full-width template for groups
danbp
ParticipantA child theme contain usually
style.css
functions.phpTo make it work with BP, you add a copy of the original
page.phpof 2014 and rename itbuddypress.php2014 comes also with a full-width template which is in page-templates folder.
If you compare both files, you will see that the only difference is at line 40 of page.php
get_sidebar( 'content' );To get what you want, you simply add a conditionnal to this part.
if( !bp_is_groups_component() ) { get_sidebar( 'content' ); }That said, i think it’s not necessary, as with or without this hack, BP’s content comes full-width on 2014. At least and by default, in the whole white zone, right of the left black sidebar. Also remind that 2014 is a left aligned theme, which can let think that you have a lot of space on the right, specially on a large desktop screen.
With 2012, it’s a bit different, as this theme use a class called full-width, directly in the html. To use the same technique, we have to echo the div to get the condition to work properly.
And 2013 doesn’t use a full-width template.<?php if( !bp_is_groups_component() ) { echo '<div id="content" role="main">'; } else { echo '<div id="content" class="full-width" role="main">'; } ?> -
AuthorSearch Results