Forum Replies Created
-
In reply to: Thanks for everything, Sam!
Thanks, Sam, and good luck !!
In reply to: Forwarding bbPress logins to WPMU login page.I use this on my site to login via wpmu and get redirected to bbpress:
add_action('bb_init', 'bp_redirect_registration');
function bp_redirect_registration() {
if (strpos($_SERVER['REQUEST_URI'], 'bb-login.php') !== false) {
$ref = wp_get_referer();
wp_redirect('http://ryuuko.cl/wp-login.php?redirect_to=' . urlencode($ref));
}
if (strpos($_SERVER['REQUEST_URI'], 'register.php') !== false)
wp_redirect('http://ryuuko.cl/register');
if (strpos($_SERVER['REQUEST_URI'], 'profile.php') !== false) {
if (bb_is_user_logged_in() && isset($_GET['id']) && isset($_GET['tab'])) {
$user = bb_get_current_user();
if ($_GET['tab'] == 'edit' && $_GET['id'] == $user->ID)
wp_redirect('http://ryuuko.cl/members/' . $user->user_login . '/profile/edit');
//TODO: see how to handle moderators editing user profiles
}
}
}of course, it’s not complete yet (check out the TODO). But it works OK.
I have the same problem, I solved it by filtering the display names:
add_filter( 'get_user_display_name', 'rk_display_name' );
function rk_display_name($name, $ID = 0) {
if ( !seems_utf8( $name ) )
return utf8_encode( $name );
return $name;
}Put this inside a plugin.
In reply to: Sneak peek at bbPress.org 2.0I like it, it’s beautiful
In reply to: Custom ThemeHi,
I see you use the Thesis theme. I have a matching bbPress theme here: http://ryuuko.cl/foros
If you are interested contact me through a private message here: https://buddypress.org/developers/detective
In reply to: Ajax Quote (or “Quote Extended”):Did you upload the plugin into the folder my-plugins ? Check your Javascript console…
In reply to: Ajax Quote (or “Quote Extended”):Yes, it’s down, I’m setting up a new site.
But you can get it here… https://bbpress.org/plugins/topic/ajaxed-quote/
In reply to: Ajax Quote (or “Quote Extended”):New version 1.2.
Now it doesn’t require template edits
function gs_get_topic_last_poster_profile_link() {
global $topic;
if ($topic)
return sprintf('<a href="%s">%s</a>', get_user_profile_link($topic->topic_last_poster), get_topic_last_poster($topic->topic_id));
return false;
}In reply to: Adding tags every time you commentLet’s see… testing :p I’m tagging “tagform”.
edit: it was added as topic tag.
In reply to: A WPMU tipHere’s another tip:
I mentioned in another thread that I had problems logging in WordPress. If someone logged inside WordPress, the cookies were valid in both WP and BB but the user was unable to post in BB. The problem was that BB was authenticating the username in the cookie against a lowercase version of the user_login value. I manually changed all user logins in the database to their lowercased version and everything worked correctly
In reply to: theme without table ?http://bbshowcase.org/forums/?bbtheme=genealogias-bb
I’ll upload a new version in a few weeks if you’re interested. Right now I have it installed in http://foros.ryuuko.cl (but adapted for the Thesis theme in WordPress).
In reply to: List of Plugins that work on RC3Ajaxed Quote works ok con RC3.
In reply to: bbPress Integration plugin for WPMUNow I get an odd behavior:
– if the user logs in inside WP, he appears logged in in both WP and BB, but he can’t post in BB. If he has admin rights, he can’t see bb-admin.
– if the user logs in inside BB, everything works ok in both WP and BB.
So I redirected all logins to BB.
In mu-plugins I added the following:
function rk_login_redirect() {
if (strpos($_SERVER['REQUEST_URI'], 'wp-login.php') !== false && $_GET['action'] != 'logout' ) {
$url = 'http://foros.ryuuko.cl/bb-login.php';
$redirect = urlencode(wp_get_referer());
$url = add_query_arg('redirect_to', $redirect, $url);
wp_redirect($url);
}
}
add_action('init', 'rk_login_redirect');In a plugin in my-plugins I added:
add_filter('wp_redirect', 'rk_redirect_location');
function rk_redirect_location($location, $status = 302) {
$arr = array();
$ref = wp_get_referer();
$url_array = parse_url($ref);
parse_str($url_array['query'], $arr);
if (isset($arr['redirect_to']) && !empty($arr['redirect_to'])) {
$url = urldecode($arr['redirect_to']);
$url_array = parse_url($url);
if (strpos($url_array['host'], 'ryuuko.cl') !== false)
$location = $url;
}
return $location;
}In reply to: Best way to prevent SPAM registration?The .htaccess code redirects all POST requests to register.php to another url if the request doesn’t have a referer from my own forum.
The code is originally from here: http://wpmututorials.com/how-to/spam-blogs-and-buddypress/
In reply to: Best way to prevent SPAM registration?I also have this in my .htaccess:
# BEGIN ANTISPAMBLOG REGISTRATION
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .register.php*
RewriteCond %{HTTP_REFERER} !.*ryuuko.cl.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) http://www.dii.uchile.cl/ [R=301,L]
# END ANTISPAMBLOG REGISTRATIONThe dii.uchile.cl url is an internal joke
In reply to: Foros Ryuuko — my bbPress installationI just updated this site. Now using WPMU 2.7.1, bbPress 1.0 RC3 and BuddyPress 1.0.1. I have cookie problems, but apart from that, everything works great.
There are many things to tweak, but those are small details …
http://ryuuko.cl – main site
http://foros.ryuuko.cl – forums
In reply to: bbPress Integration plugin for WPMUThe plugin doesn’t work right out the box in my installation. I’ve configured the settings and added the needed lines to my wp-config.php file, but after doing that I can’t even login in WP (after entering user & pass I just get the same login screen with my username already filled).
However, if i change the defined ‘SITECOOKIEPATH’ from ‘/wp-admin’ to ‘/’ it works good. I don’t know it this is the right thing. Is it ?
edit: i have WPMU 2.7.1, BuddyPress 1.0 and bbPress 1.0 RC1.
In reply to: Overwriting Template functionsThe only functions that you can replace are the pluggable functions defined in pluggable.php. What i do to replace a core function is to copy them to a functions.php file in my template, rename the function from “core_function” to “my_core_function”, and then replace the function call in the templates. It’s not very elegant but it works.
I’m interested (in a complete rewrite). I was going to wait for 1.0 beta to start a “private discussions” plugin. But seeing the current situation i’ll try to start sooner.
I’ll fix the modded plugin this weekend (i also plan to rewrite some things). Thanks for the fix.
That’s really sad. I suppose i was too naive when i modded the plugin. In fact, looking at the code now, it really screams “hack me”. There are almost no validations in some critical operations.
No, i’m not the owner nor the original developer, i just made a few modifications i needed for my users and released it some time ago.
Also, thanks for the welcome, ck! I do more theme customizations for WP but usually do it all the quick and dirty way, cramming things into function.php file rather than packaging it up nicely, and I often just hack features into other plugins to get it all working the way I want. Right now as far as bbPress is concerned on my to-do list is to find a good solution for manually marking spam posts, work email notification into the pm plugin, and set up the post notification to send email by default. Just haven’t had time to look into all that yet… if there are any existing solutions/patches, please let me know! Otherwise I’ll probably look into it at some point and contribute what I can (if anyone else is interested).
Great! I was going to work on that in a few weeks
In reply to: Let ask again …Some thoughts…
– An employee only has to report his results to his employer. So, it doesn’t matter if Sam works for Automattic or not. In this context is that bbPress is open source: if you need anything (that can’t be done on a plugin), you are free to fork bbPress and add what you need. It’s just simple as that.
– “code uploads” aren’t needed on a daily basis, specially when you are the only developer.
– If you wanted only Sam to reply, then you should have used a less public medium, don’t you think?