Search Results for 'wordpress'
-
AuthorSearch Results
-
August 8, 2016 at 3:46 pm #257358
In reply to: How to create a dynamic link to “my friends”
Paul Wong-Gibbs
KeymasterNot quite! In BuddyPress 2.6, we added support for dynamic links for user profiles.
In your template/blog post/wherever, if you wanted a link to go to the logged-in user’s activity stream (for example), create the link to
<a href=http://example.com/members/me/activity">my activity stream</a>.See https://buddypress.trac.wordpress.org/changeset/10791 for the change.
August 8, 2016 at 2:57 pm #257355In reply to: Chinese Translation
danbp
ParticipantGet in touch with the chinese translation team:
You don’t need to download GlotPress, you can translate BP online. Just go to https://translate.wordpress.org/projects/wp-plugins/buddypress/stable/zh-cn/default and log-in.
And read the translators handbook to learn more about translating WordPress, plugins and themes.
If you prefer to read in chinese, see here: https://cn.wordpress.org/
August 7, 2016 at 9:09 pm #257323In reply to: [Resolved] auto-embed with in stream
danbp
ParticipantHave you tried to adjust the size via child theme’s CSS ?
Some examples here: https://en.support.wordpress.com/custom-design/custom-css-media-queries/August 7, 2016 at 7:02 am #257306Topic: How to create a dynamic link to “my friends”
in forum How-to & TroubleshootingKristian Yngve
ParticipantInitial details:
WordPress 4.5.3 running.
BP Press: Version 2.5.10.
WordPress as a directory, it in root.
I have custom functions in a child bp-custom.php.
I’m running bbPress (standalone), ersion 2.5.10.
NOTE: Everything all works great – just this doesn’t seem to…
______________________________________________Now, I’ve seen many of the ‘[Resolved] How to create a dynamic link to “my profile”‘ forums but I need it as an image-link (in page, so not a widget), to the user’s “my friends”.
My best guess was: having the url of the image being:-
http://taipeiexpats.org/members/MEMBER_NAME/friends/
and, having this code in my bp-custom.php (I’ve also tried my child theme functions):-
add_filter( ‘bp_core_enable_root_profiles’, ‘__return_true’ );
}
This would allow the MEMBER_NAME (I tried adding the %username% and etc…)
None of this works.
Any ideas upon what I got to do?
August 6, 2016 at 4:58 pm #257295In reply to: Problem with cover in profile member
shanebp
ModeratorYou should ask the plugin author. Post your question on the support forum for BuddyPress Cover Photo.
If you are using BP v. 2.4 or greater, you don’t need that plugin – profile cover photos are part of BP.
August 5, 2016 at 6:48 pm #257282Earl_D
Participant@rvnamb if you aren’t looking to do programming you may want to check out some of the plugins here. https://wordpress.org/plugins/tags/recipes Some of them seem to integrate with Buddypress
August 5, 2016 at 4:46 pm #257279mrjarbenne
ParticipantIf you want to keep the activity updates, and add a separate form for recipes, you will probably need to explore Custom Post Types. You’ll need to register a post type called Recipes.
These might help:
https://codex.wordpress.org/Function_Reference/register_post_type
http://www.wpbeginner.com/wp-tutorials/how-to-create-custom-post-types-in-wordpress/August 3, 2016 at 11:27 pm #257222In reply to: Conflicts with BuddyPress and Pemanent Links
mrjarbenne
ParticipantAs you have established that this is a WordPress issue, and not a BuddyPress one, you might be better to create a ticket over on wordpress.org, where there are more eyes looking at your ticket.
August 3, 2016 at 11:25 pm #257221In reply to: [Resolved] Check if on profile of an admin?
mrjarbenne
ParticipantIf I’ve read this wrong and you are just trying to sort out who an admin is, the best way to check for a role is via user capabilities (https://codex.wordpress.org/Roles_and_Capabilities). So checking to see if the users can “activate_plugins” will let you identify whether they have the admin role or not.
August 3, 2016 at 8:01 pm #257215In reply to: [Resolved] Check if on profile of an admin?
mrjarbenne
ParticipantYou could use something like this to add a badge to admin/verified users.
August 3, 2016 at 7:30 pm #257212In reply to: Conflicts with BuddyPress and Pemanent Links
mrjarbenne
ParticipantYour htaccess file should be set to 644: https://codex.wordpress.org/Changing_File_Permissions
August 3, 2016 at 7:18 pm #257209In reply to: Featured Member Plugin
mrjarbenne
ParticipantI would suggest checking out this one, which will work for members, but can also be leveraged to feature other content as well:
August 3, 2016 at 5:14 pm #257205In reply to: BuddyPress REST API Question
modemlooper
ModeratorThis would be a lot of custom development. Read this post about consuming external API in WordPress http://ben.lobaugh.net/blog/46117/wordpress-interacting-with-external-apis
August 3, 2016 at 5:10 pm #257202In reply to: Some profile tabs won’t translate
r-a-y
KeymasterThe
Notifications %sstring looks like it is available:
https://plugins.svn.wordpress.org/buddypress/tags/2.6.1.1/buddypress.potIf you’re using a custom translation from a previous version, you need to merge your language files together. Here’s a quick tutorial I found on Google:
http://www.marketpressthemes.com/blog/how-to-merge-two-po-files-using-poedit/You might also benefit from a translation that is already available here:
https://translate.wordpress.org/projects/wp-plugins/buddypressAugust 3, 2016 at 5:43 am #257192In reply to: Conflicts with BuddyPress and Pemanent Links
delfindelfin
ParticipantHow do I know if my server is able to write to the
.htaccessfile? The content of the file is:Options +FollowSymlinks # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPressStill I have the same error. I think you are right, it’s a WordPress issue
August 2, 2016 at 5:24 pm #257180In reply to: Conflicts with BuddyPress and Pemanent Links
r-a-y
KeymasterI don’t believe this is a BuddyPress issue. When you change your permalinks, are you able to visit a regular WP post permalink? If not, it’s a WordPress issue.
I would say make sure your server is able to write to the
.htaccessfile.Also, you might have to alter your
.htaccessfile to add the following to the top of the file:Options +FollowSymlinksAugust 2, 2016 at 9:07 am #257171In reply to: Duplicate xProfile Field on Edit Profile Page
Paul Wong-Gibbs
KeymasterYes. There’s some sort of bug in the W3 Total Cache’s object cache file. Last time a few of us looked into it, we didn’t figure out what the problem was. However, we tested several other object cache loaders (I think https://github.com/tollmanz/wordpress-pecl-memcached-object-cache and https://wordpress.org/plugins/wp-redis/) and the problem did not exist. i.e. it’s a problem with W3TC.
I don’t have any advice other than the unhelpful “don’t use W3TC for object caching”. 🙁
August 2, 2016 at 9:04 am #257170In reply to: Conflicts with BuddyPress and Pemanent Links
Paul Wong-Gibbs
KeymasterIf you set permalinks to something not-default, and then visit a wordpress blog post on your site, does it work?
August 1, 2016 at 3:04 am #257144In reply to: how to add new members to groups automatically?
buddycore
ParticipantFirst you are creating a custom function called
automatic_group_membership()this takes one parameter$user_id.This function terminates if there is no
$user_idprovided, meaning you don’t run rogue code and your site is more optimised.When a
$user_idis present thegroups_accept_invite()function is run. This function is a BuddyPress core function you can find it inwp-content/plugins/buddypress/bp-groups/bp-groups-functions.phpon line 1400.It accepts two parameters a
$user_idand a$group_id. You need both in order to create the relationship.This function is “hooked” with
add_action()which is a WordPress core function. This functionadd_action()has many hooks available for various situations. You can read more about hooks here https://codex.wordpress.org/Plugin_API/Hooks.Essentially it’s an opportunity to run your own code against WordPress core, or in this case BuddyPress core. BuddyPress provides the hook and we use them to achieve cool things.
So the hook in this case is
bp_core_activated_userand the code we want to run when this hook is available would be the customer functionautomatic_group_membershipwhich is passed as a second parameter.I’m not sure where the
$user_idgets populated along the way here, nor the$group_idmaybe someone can help?Otherwise, I would do this not on activation but when a user has logged in for the first time.
Then we have access to
global $bpwhich contains aloggedin_user->idwhich can be used with this function and you could manually set the$group_idin bp-custom.phpJuly 29, 2016 at 6:02 am #257105In reply to: Login Redirect
coffeywebdev
ParticipantYou could try using the WordPress API, there is a function called
login_redirect()/** * Redirect user after successful login. * * @param string $redirect_to URL to redirect to. * @param string $request URL the user is coming from. * @param object $user Logged user's data. * @return string */ function my_login_redirect( $redirect_to, $request, $user ) { //is there a user to check? if ( isset( $user->roles ) && is_array( $user->roles ) ) { //check for admins if ( in_array( 'administrator', $user->roles ) ) { // redirect them to the default place return $redirect_to; } else { return home_url(); } } else { return $redirect_to; } } add_filter( 'login_redirect', 'my_login_redirect', 10, 3 );You need to add something like the code above your child theme functions.php file, or you can create a plugin and add this code to it.
https://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect
July 28, 2016 at 10:24 pm #257101Henry Wright
ModeratorI haven’t read that article but I mean using a complete WordPress install as a testing environment. It’s important to have something separate from your live website.
July 28, 2016 at 3:10 pm #257093SophieVerlinden
ParticipantThanks for your quick reply.
Is this what you mean? https://codex.wordpress.org/Test_Driving_WordPressCould there also be another solution, something I didn’t mention already?
July 28, 2016 at 2:41 am #257076buddycore
ParticipantI use a shared hosting environment and performance is sluggish at best and I’ve taken a lot of time to develop a theme that is barebones with regard to what WordPress and BuddyPress both give you.
So, you may want to setup in an environment where you can be provisioned for more hardware resources or better hardware.
Like Paul says though, there are many successful sites out there. I’d do your research and speak with the host.
I’m not savvy in this area, only speaking from experience,
July 27, 2016 at 3:53 pm #257067In reply to: [Resolved] Create new Post on updating Activities
Henry Wright
ModeratorThe
bp_activity_addaction fires at the end of adding a new activity item. So you can hook a custom function to that and add your custom post within that. Here’s an example:add_action( 'bp_activity_add', function( $r ) { // Insert a new post. wp_insert_post( array( 'post_type' => 'activitfeed', 'post_title' => __( 'Hello world', 'text-domain' ), 'post_content' => $r['content'], 'post_status' => 'publish' ) ); } );Ref: https://developer.wordpress.org/reference/functions/wp_insert_post/
July 27, 2016 at 2:14 pm #257062Paul Wong-Gibbs
Keymaster> Whats the maximum visitors you can have on a site using your plugin and wordpress
There is no easy answer for this. WordPress runs well on a variety of small to extremely large sites. Scalability comes down to the exact code being run on the site, the amount of traffic and user interaction, and the infrastructure supporting the site.
Using a metric such as “number of visitors” isn’t particularly useful when it comes to community or e-commerce sites, because those require lots of user interaction, and that impacts performance differently to “read-only” sites. By that, I mean like newspapers, where visitors just read articles.
-
AuthorSearch Results