Search Results for 'wordpress'
-
AuthorSearch Results
-
August 2, 2016 at 9:04 am #257170
In 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.
July 27, 2016 at 2:04 pm #257060In reply to: Setting up BuddyPress in a multisite enviroment
Paul Wong-Gibbs
KeymasterThe member filtering isn’t going to work like that by default. You’d need to write some code, though I think it’d work.
The bigger question for you is to decide how you want the BuddyPress/social data to behave across all these sites. You either want to activate BuddyPress network-wide in WordPress, or consider enabling multiblog mode: https://codex.buddypress.org/getting-started/customizing/bp_enable_multiblog/
July 27, 2016 at 4:54 am #257048sharmavishal
Participant“heavy traffic sites WordPress and plugins will struggle with a bottle neck being caused”
Kindly explain the above in detail as to how your external php developer reached to this conclusion? If he can specify the bottlenecks would help
PS: i do run couple of BP+WC enabled sites and it does have tangible traffic and i dont find it slow or sluggish
July 25, 2016 at 11:04 am #257008In reply to: How to modify extended profile picture by HTML form
buddycore
ParticipantYou can create a multitype form with html and process it with PHP, or an existing WordPress function.
https://codex.wordpress.org/Function_Reference/wp_handle_upload
You would need to modify the database to store your file upload paths also.
July 25, 2016 at 10:58 am #257007In reply to: Public posts
buddycore
ParticipantSounds like you’re using a theme that’s stopping this or when you publish a post you have it set to private.
It’s more for WordPress forums given posts are a WordPress feature and not a BuddyPress one.
Look at your theme files, index.php and look for anything that looks like it’s making those posts only accessible to logged in users. Something like
is_user_logged_in().July 24, 2016 at 6:02 pm #256995In reply to: Profile Print
r-a-y
KeymasterYou’d have to add a custom “Print” button in your template. Or perhaps you could use a WordPress plugin.
If you go the custom code route, here’s an article that might help:
http://stackoverflow.com/questions/16894683/how-to-print-html-content-on-click-of-a-button-but-not-the-pageJuly 24, 2016 at 5:47 pm #256991r-a-y
KeymasterThe login page is not handled by BuddyPress.
Please post your issue on the WordPress support forums:
It’s most likely a plugin conflict somewhere.
July 24, 2016 at 9:24 am #256978In reply to: Login and registration on one page
Slava Abakumov
ModeratorBuddyPress registration page is quite big, it has a lot of inputs.
You can install a widget, called(BuddyPress) Log in. Here is info about it.
If you use Jetpack, there is a module there, that gives ability to define widgets visibility. Here are other plugins: one, two & etc.
Thus you will have ability to define, that this widget should be displayed only on Registration page in sidebar (or any widget zone that is defined in your theme).Or you can manually edit BuddyPress template files and include a shortcode or PHP code to display a login form in any place of your registration page. See docs for that.
July 23, 2016 at 5:02 pm #256974In reply to: New templates??
shanebp
ModeratorThere is a project re new templates. You can join the effort. More info…
July 22, 2016 at 10:10 pm #256956r-a-y
Keymaster@tutorbe @mongmuon @kinstahosting – Thanks for testing on HHVM. I’ve confirmed the bug and have a patch ready:
https://buddypress.trac.wordpress.org/attachment/ticket/7197/7197.01.patchPlease test and let me know if it works for you.
July 22, 2016 at 9:48 pm #256950In reply to: Error after update to 2.6.1.1
danbp
ParticipantMay be a forgotten custom function in child theme or bp-custom.php ? May be a role or a membership plugin ? Who knows ?
You have to debug !July 22, 2016 at 12:43 pm #256926In reply to: Buddypress not sending activation emails
skitzpress
ParticipantThanks for the reply @danbp
I have not built the site and I also have very little technical and coding knowledge (sorry!) I will update WordPress later but wasn’t sure how to back everything up?
There is a lot of plugins installed:Admin Menu Editor, Advanced Custom Fields,Advanced Custom Fields PRO, bbPress,BuddyPress, DropBox Folder Share, Easy FancyBox, Gravity Forms, Gravity Forms + Custom Post Types, Gravity Forms CSS Ready Class Selector, Gravity Forms Remove Entries, jonradio Multiple Themes, Login Security, Members, No Page Comment, OPcache Dashboard,Page Specific Menu Items, PHP Code For Posts, Post Types Order, Social Media Feather, Styles with Shortcodes for WordPress,
TAO Schedule Update, WordPress Importer, WP Google Maps, WP Google Maps – Pro Add-on, wp_mail return-pathAre any of these know to conflict with BuddyPress?
Not sure on the custom functions as far as I know… I’m not confident enough to debug and the site it is also live so not sure what to do?
Think I will update WordPress then disable all plugins except BuddyPress and try on a twenty theme but if that doesn’t work, which seems like the case in other past posts, I’m not sure need help!
Thanks again
July 22, 2016 at 7:00 am #256912danbp
Participantguess you have to follow instructions belonging to the actual WP/BP version… Haven’t you seen this notice ?
***The following pertains to administrators using WordPress 3.0 in network mode)***BP should be on the same site where WP is installed.
Follow Codex from here and note that:
One site of the Network
C. BuddyPress Activated in Main Site only
D. BuddyPress Activated in Secondary Site only
Posts, comments, or activities of the users in sites other than where you activated BuddyPress won’t be recorded in the Activity Streams when you install BuddyPress in only one site of the network.July 21, 2016 at 9:05 pm #256902In reply to: Poor Avatar quality
3T_MJ
Participantwell, I did that already. The original pic is a jpg taken with a proper DSLR. But doing the same crop via buddypress and my image editing programme makes a notable difference, it’s set to 72 dpi when editing. Not sure what compression buddypress uses (0.9 or lower?) when storing the image but it seems bad. It seems worse compared to ste crop wordpress does when uploading pics. And to make it worse, the buddypress crop file size is larger compared to doing the same crop with the image editing programme – and that with lower quality. I’m devastated.
July 21, 2016 at 5:39 pm #256897In reply to: Disabling “About BuddyPress” in Dashboard
danbp
ParticipantAdd this snippet to bp-custom.php and comment/remove what you don’t need
function bpex_admin_bar_remove() { global $wp_admin_bar; // Remove the whole WP logo menu // $wp_admin_bar->remove_node( 'wp-logo' ); // remove only About BuddyPress $wp_admin_bar->remove_node( 'bp-about' ); // remove only About bbPress // $wp_admin_bar->remove_node( 'bbp-about' ); } add_action( 'wp_before_admin_bar_render', 'bpex_admin_bar_remove' );Related BP 2.6.1.1 admin menu reference: bp-core/classes/class-bp-admin.php:485
Related WP function: https://codex.wordpress.org/Plugin_API/Action_Reference/wp_before_admin_bar_render
July 21, 2016 at 2:35 pm #256889In reply to: Buddypress not sending activation emails
skitzpress
ParticipantI am having this issue with BuddyPress 2.6.1.1 & bbPress 2.5.10 plugins installed
I have used the BuddyPress repair tool but it didn’t work?
Running WordPress 4.4.4 and the Sparkling theme
Any ideas as this seems to be a common issue looking back through older topics
Irony is when I forgot my password to this forum it sent an email instantly!!!
Thanks in advance
July 21, 2016 at 7:01 am #256876In reply to: Members display name
danbp
ParticipantTry this plugin:
https://wordpress.org/plugins/buddypress-usernames-only/
(old but still working)July 20, 2016 at 10:57 pm #256862In reply to: Private Messaging Questions
shanebp
Moderator1. Yes – If a site admin, on your profile > Messages > Compose… [checkbox] This is a notice to all users.
2. Yes with https://wordpress.org/plugins/crowdmentions/
3. No
4. Yes – per user setting on whether they want such emails: Profile > Settings > Email
-
AuthorSearch Results