Search Results for 'buddypress'
-
AuthorSearch Results
-
May 7, 2010 at 11:05 pm #77138
In reply to: Regular wp theme to a buddypress theme?
r-a-y
KeymasterYou only need to create a child theme if you’re making changes to the default BP theme.
If you’re using an existing WordPress theme, then only use the BuddyPress Template Pack plugin with your WordPress theme:
https://wordpress.org/extend/plugins/bp-template-pack/May 7, 2010 at 11:04 pm #77137In reply to: fyi: WP-reCAPTCHA works fine with BuddyPress
Peter Kirn
ParticipantHi Ray,
Thanks for that help! That’s great; now much clearer to me. Huge help!I did email the author. I haven’t heard back yet. I’m not intending to release a fork without permission.
In fact, on the contrary, my main goal here is just to learn a bit about BP development before we move on, and to make sure there’s some kind of solution – even as a stopgap – to allow switching on BP blogs without a torrent of spam. That’s made our registration system effectively unusable. I was unaware of some of the other options, but to be perfectly frank, I think it’s unacceptable that there isn’t at least some option in core. (It’s the situation that had been Akismet in the 1.x days of WP.)
But that, and since you’ve posted a lot of good info in the forum, happy to go through it and through the eyes of someone to whom this is new, try to format it in a way that could be friendlier to developers.
I’m in absolute agreement that releasing a zillion forks is not a good idea. I’ll keep testing here and document my experience but will refrain from releasing anything until I hear back from the author.
I think that’d be the next question, whether this conditional code gets rolled into the main wp-recaptcha plug-in. In that case you’d leave the WPMU and “legacy” WP checks so you’d have one recaptcha plug-in to rule them all, which is probably best.
Peter
May 7, 2010 at 11:01 pm #77136In reply to: Regular wp theme to a buddypress theme?
Josh
ParticipantOk, i just created a child theme….but it doesn’t work, how do i customize the code so it works right? I figured the first import line out, but i don’t know about the second one…..
May 7, 2010 at 10:48 pm #77134In reply to: fyi: WP-reCAPTCHA works fine with BuddyPress
r-a-y
KeymasterForgot to mention that you’re missing a do_action in your display_recaptcha_bp() function.
Based on the code you’re using, that code is:
do_action( 'bp_captcha_errors' );You should also remove the WPMU check since BP works on standard WP circa v1.2.
I’ve amended your code here:
http://pastebin.com/QCbxXvhh (untested)Also, Peter, did you ask the original author of the plugin for permission before attempting to fork it? It’s just a courtesy thing.
If I did what you did, I could have released a thousand plugins by now! Okay maybe not a thousand but you get my point!
May 7, 2010 at 10:22 pm #77132In reply to: fyi: WP-reCAPTCHA works fine with BuddyPress
Peter Kirn
ParticipantPS, I think now based on your other posts I can help with that wiki documentation; it’d be my pleasure — I just have to understand what I’m doing *before* I document it, not the other way around.
(and then happy to have you tech edit it to see if I’ve gotten it right)May 7, 2010 at 10:20 pm #77131In reply to: fyi: WP-reCAPTCHA works fine with BuddyPress
Peter Kirn
ParticipantHere we go, here’s the issue: I understand how to hook in now, and I’m correctly writing errors to $bp->signup->errors. I’m just unclear on how to accurately display those errors for the ‘captcha’ field. Right now, my signup is validating properly and even recording the correct errors; I just can’t display the errors on the actual form. (Doh!)
Here’s my display code:
http://pastebin.com/QcMXCTGzHere’s how I’m recording errors (which is in fact working):
if (empty($_POST) || $_POST == ”) {
$bp->signup->errors = __( ‘Please fill in the reCAPTCHA form.’, ‘buddypress’);
}And for context, the whole plug-in, though most of it’s the old wp-recaptcha code (I’ll clean this up and put it on GitHub shortly)
http://pastebin.com/urNP96NzMay 7, 2010 at 10:08 pm #77130In reply to: Spam despite disabled registrations and Askimet
jwordsmith
MemberAnyone know how to turn off registrations in Buddypress forums, as recommended here? Can’t find a way…
May 7, 2010 at 9:55 pm #77129In reply to: Here come the spammers!!!
jwordsmith
Member@foxly I love this. It’s what I’ve been looking for and I am really looking forward to Part II. Wait, did that sound like a spam comment. Damn, they’ve getting to me!
May 7, 2010 at 9:29 pm #77126Paul Wong-Gibbs
KeymasterDo not bump your own posts after 2 hours. Wait a day or so, and if you haven’t had a reply, you are welcome to bump then.
May 7, 2010 at 9:18 pm #77124In reply to: Link Directly to Blogs' Author Posts
Nahum
Participant@r-a-y is similar because it seems that all links take me to the main blog author template which is cool. but I’d like to keep things as is and be selective with what links i send to the author page so instead, from my profile home, add ‘quicklinks’ to the various subblogs i’ve authored on not only the main blog.
I was able to link to the individual blogs users are admin on, by using bp_has_blogs(‘user_id=’ . $bp->displayed_user->id == $bp->loggedin_user->id) but i guess that only works for being an admin of a blog. what if user has contributed to another blog on the system, how to link over to the author posts template for that user, is the thing
May 7, 2010 at 8:54 pm #77123In reply to: Link Directly to Blogs' Author Posts
r-a-y
Keymaster@nahummadrid – Is this thread similar to what you’re looking for?
May 7, 2010 at 8:39 pm #77122In reply to: fyi: WP-reCAPTCHA works fine with BuddyPress
r-a-y
KeymasterHey Peter, didn’t see your post until just now.
You’re right that documentation is sparse, but that’s up to users like you and me to add it to the BuddyPress codex.
BuddyPress uses a different method to validate that’s why you can’t just hook in the WPMU validation function that WP-reCAPTCHA uses.
Like I stated above, look for clues in /buddypress/bp-core-signup.php. Check out the global $bp variable, especially $bp->signup->errors. This is what you have to use in place of what the check_recaptcha_wpmu() function uses.
FYI, I’m not using WP-reCAPTCHA.
Might I suggest using a math challenge plugin? It’s more user-friendly than a captcha plugin.
https://wordpress.org/extend/plugins/wpmu-block-spam-by-math/[EDIT]
Here’s another captcha plugin that supports BP:
https://wordpress.org/extend/plugins/super-capcha/May 7, 2010 at 8:35 pm #77121In reply to: Splash Start
r-a-y
Keymaster@ElaineSkapetis – you actually don’t need the “do_action( ’sh_walled_garden’ )” line in header.php!
Glad you figured it out.
May 7, 2010 at 8:29 pm #77117May 7, 2010 at 8:24 pm #77113r-a-y
KeymasterMay 7, 2010 at 8:21 pm #77112r-a-y
Keymaster@holgria – Are you using a WordPress theme or a BuddyPress theme?
If you want to use an existing WordPress theme, use the BuddyPress Template Pack plugin:
https://wordpress.org/extend/plugins/bp-template-pack/Then do what techguy stated – modify “registration/register.php” in your WP theme’s folder.
May 7, 2010 at 8:19 pm #77111r-a-y
KeymasterI’m just listing a possible solution.
If you’re not satisfied, please post a new enhancement ticket on Trac:
https://trac.buddypress.org/newticketLogin with the same credentials you use here on bp.org.
Or you can also contact Andy Peatling (author of the BuddyPress Template Pack plugin):
https://buddypress.org/community/members/apeatling/May 7, 2010 at 8:00 pm #77109drifter0658
MemberLOL…ty Mercime…I found that out, but now I have a bigger problem….
May 7, 2010 at 8:00 pm #77108techguy
ParticipantJust make a child theme: https://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/ The file you’ll want to edit in your child theme is in the default theme folder under registration/register.php
You may also want to look at this thread which will redirect people to the register page if they go to one of your other pages directly: https://buddypress.org/community/groups/miscellaneous/forum/topic/splash-start/
May 7, 2010 at 7:38 pm #77104r-a-y
KeymasterDid you add a “buddypress” tag to your theme’s stylesheet?
eg.
/*
Theme Name: BuddyPress Dusk
Theme URI: http://example.org/themes/dusk/
Description: Dark theme for BuddyPress.
Version: 1.0
Author: John Doe
Author URI: http://example.org/
Template: bp-default
Tags: buddypress, two-column, grey, dark
*/Notice the “buddypress” tag.
May 7, 2010 at 7:36 pm #77103In reply to: Buddy Press disables gallery – how do I fix?
May 7, 2010 at 6:49 pm #77102In reply to: Remove “are now friends” from activity stream
Mark
ParticipantNobody is forcing you to do anything

* For clarity’s sake – everyone is completely free to learn to write PHP code and work with the WP / BP code. All it takes is a little time and focus.
* If it were for sale their would be a fixed price… but there is no fixed price, because it’s not for sale. Read the GPL license for clarity.
* I find it interesting that some people (not indicating you @hnla) will trot right over to Starbucks or some other coffee shop one or more times a day and dump $5 to $7 on a cup of caffeine, but they won’t drop a dime on software that furthers their own special interests.
May 7, 2010 at 6:45 pm #77101emiline220
MemberI figured out the problem was because I was using the file based caching that the BP developers recommended here: https://codex.buddypress.org/getting-started/improving-performance/. They might want to rethink recommending something that creates such a big problem! Unless you are going to turn off private messaging, you can’t use that. I’ve gone back to WP-Super Cache (with caching turned off for logged in users) and that seems to work OK.
May 7, 2010 at 6:34 pm #77100In reply to: fyi: WP-reCAPTCHA works fine with BuddyPress
Peter Kirn
ParticipantOkay, very nearly there. I now have registration working – unless you don’t enter the captcha correctly, in which case I get a page not found (curiously, still for /register) Any sense why this might happen when porting code from WPMU to BP?
So obviously more work to do. But it’s at least part way there.
May 7, 2010 at 6:00 pm #77098czajna
MemberDid you solve this problem?
-
AuthorSearch Results