Forum Replies Created
-
I am aiming at persons over 60, who don’t know diddly squat about social networking. … Get your parents onto Facebook and watch confusion reign
Why then use a social networking script? Why ask Buddypress to be like a forum?
I use this bit of javascript. The example is for blogname (url) from Blog Title, but you can also use it for username from Full Name – or the other way around.
In reply to: Group Blog + P2 or PosthasteAdding switch_to_blog(‘2’) to js.php produces weird, unproductive, but interesting effects. var latestPermalink correctly gets the last post of the group blog, but ajax goes haywire and makes it impossible to test if posts now end up on the right blog.
To be continued…
In reply to: Group Blog + P2 or PosthastePosthaste experiments go nowhere. I’m closer to a solution with P2, with the theme integrated directly into the bp-groupblog plugin (old version for 1.1.3…).
I’ve boiled the problem down to this: I need to tell the p2.js file which blog it is operating in. Without a blogid it assumes it’s working on the main blog.
The solution is probably in here somewhere: Get blog_id in external files. Also mentions the switch_to_blog function that Marius Ooms pointed out to me in bp-groupblog.
How can I turn that into a line of javascript that I can add at the top of p2.js? ‘var something = something;’?
Or should I add something to functions.php? It has functions like this:
function latest_post_permalink() {
global $wpdb;
$sql = "SELECT ID FROM {$wpdb->posts} WHERE post_type = 'post' AND post_status = 'publish' ORDER BY post_date DESC LIMIT 1";
$last_post_id = $wpdb->get_var($sql);
$permalink = get_permalink($last_post_id);
return $permalink;
}What should I add to a function like this to tell it from which blog to get the last post permalink? Or can I add $blogid as global or something like that?
In reply to: Group Blog for BP1.2 is now availableIs there a template tag you can use to put a link back to the group home page in the group blog’s theme?
In reply to: Group Blog for BP1.2 is now availableThanks for the suggestions Marius Ooms. P2 also has is_page() etc. in the code, but haven’t figured out what to do with it. If I can get P2 to work on a /sub/subpage I should be able to get it to work on a group home page, right? I’ll look into that as soon as I have time.
In reply to: Group Blog for BP1.2 is now availableI will be making a child theme for P2. From there you can set that theme as the default group blog theme, wish will enable frontend posting.
That is not the same as frontend posting on the group home page. You can already use P2 as the group blog theme now.
Also note that in 1.1.3 group blog defaults are overridden by the blog defaults plugin. Haven’t yet tested if that is different in bp-groupblog for 1.2, but for my site I don’t want another category of blogs that looks and behaves different from the other blogs.
For me the groups and blogs serve different purposes; the blogs are for “individual expression”, the groups are for interaction, collaboration, community, etc. I don’t want to mix and confuse those functions.
The group home in my site should become a collaborative space. Front-end posting is a first requirement, so I’ll continue to bang my head against the wall trying to figure that out.
In reply to: Adding custom usermeta to RegistrationIs user_register the same point in the process as wpmu_activate_user?
I’m still on BP 1.1.3, still have to upgrade to 1.2…
In reply to: Group Blog for BP1.2 is now availableExcellent! Congrats! This is one of the most essential plugins.

I need to upgrade to from 1.1.3 to 1.2…

Does the group home now have front end posting? Still struggling with that… I don’t see it on sandbox.ywamcloud.com, but perhaps you have to be logged-in?
Why don’t you just use WPMU + BBpress as your starting point?
Buddypress is next generation social networking. It offers features that end-users have come to expect via Facebook, LinkedIn, etc. Groups are an integral part of that; forums are an awkward add-on imho.
In reply to: Favorites — expanding capabilitiesAren’t there loads of plugins for these types of features?
All these feature request threads start to get on my nerves – I should cut back on coffee… – when I’m still wasting way too much time trying to fix basic core management and usability issues in my sites.
And forums shouldn’t even be in Buddypress at all imho. It’s an older generation web community format that clashes with the new social networking paradigms. BP should focus on groups and (micro)blogging and turn that into a solid and coherent platform, not get sidetracked by forums and all these generic feature requests.
In reply to: Group Blog@avatarrocks, integrating P2 into a blog theme or using P2 as the blog theme is relatively straightforward. Just make sure you get all the required links to js and css etc. right. That’s not really what I need though; I want to keep all blogs looking like traditional blogs.
I’m trying to get a P2 post-form on the group homepage, via the blog-latest.php file in the bp-groupblog plugin. That’s where I get in trouble; P2 can’t find the right blog/post ID’s, posts end up on the default blog instead of the group blog, Ajax doesn’t function correctly, etc.
My problem probably has something to do with URL mismatch between blog home (site.com/groupblog) and group home (site.com/groups/testgroup). The key could be the switch_to_blog function in bp-groupblog. Haven’t figured it out yet…
In reply to: Plugin Release: Default Blog OptionsExcellent Svenl77! Just what I needed. I need to install this asap in my sites.
Tyler Regas, totally agree with your criticism.
I believe the problem is BP/WPMU is entirely programmer-driven. There are no usability experts or project managers involved who look at it from a business requirement perspective, so new interesting features always seem to get priority over boring and difficult things like security/privacy.
Flame away regulars! Just my 2 cents. Don’t blame Tyler, who went out his way not to offend.
In reply to: Plugin Release: Default Blog OptionsSo this sets defaults for plugins in WPMU blogs? Including for example Google API keys etc.? That would actually be very useful. As long as it doesn’t clash with cets_blog_defaults. Does it?
Will try when I have time…
In reply to: Adding custom usermeta to RegistrationAs far as I know wpmu_activate_user is a plugin action hook. Also mentioned here. It works for my function. Not sure what you need exactly.
In reply to: Adding custom usermeta to RegistrationI use a function with something like this:
function example_wp_usermeta($user_id, $password, $meta) {
global $bp, $wpdb;
$uid = get_userdata($user_id);
$email = $uid->user_email;
$fullname = $meta[field_1];
...
update_usermeta( $user_id, 'nickname', $fullname );
...
}
add_action( 'wpmu_activate_user', 'synchro_wp_usermeta', 10, 3);Why would a user have a @ in their username?!
I’m very much in favor of using the email address as username, but there are better ways to deal with the member slug.
In reply to: bp_the_topic_post_poster_link() displays wrong linkHaving the member’s email address in their profile link looks like a very bad idea. How did that happen?
In reply to: Group Blog + P2 or PosthasteThanks for the comments and suggestions Mariusooms and D Cartwright. Lots of new leads to explore!
I need to pull myself away from this for a few days though. Day job deadline…
In reply to: Group Blog + P2 or PosthasteMarius Ooms posted an update about the bp-groupblog plugin here.
Per definition what works within your blog should also work on your groupblog. All you need is the blog id that belongs to the group. If you look at the template files you’ll see how we set the blog id and use switch blog to change blog id’s.
That’s probably what I should focus on to fix my problem!
Looking ahead we are even going further and reversing the concept of pulling in specific blog content into the group, but let the blog be the group and pull in buddypress information to the blog itself. … The main group slug would just forward to the blog home page.
I had thought about that as possible solution to the referrer check mismatch problem; just make the blog homepage, where P2 does work, the group homepage.
But I think it would create more confusion. In my theme I want to keep blogs looking like blogs and turn the group homepages into the centers for social networking activity.
So the group blog homepage would display the same posts as on the group homepage, but in a traditional blog view. Most users would see the group blog posts on the group home page or in the single.php view.
Forwarding the group slug to a blog and then make the blog look like a group home page breaks the logic of the site.
EDIT:
I still think that, atm, posting from the front-end is not developed far enough yet … It is fine for micro-blogging, but I don’t think there are option to include image/video/media uploading, tagging, and categories
There is in P2, leveraging WordPress media buttons. It’s very slick, with lightbox etc. (I see they’re missing from the version I had in my zip…)
In my setup I’m trying to get simple, stripped down microblogging front-end posting on the group homepage, with a traditional blog view on the blog homepage. So more advanced users can still go from the regular blog homepage into the wp-admin backend if they want to do more complicated post editing.
P2 has different tabs for Status Update and Blog Post on the post-form. I’d like to have those options in the group homepage if I can get it to work, but the stripped down Status Update would be priority there.
In reply to: Group BlogWere these changes adopted by the plugin? Are they an improvement? Should I replace my bp-groupblog.php file?
Boone Gorges: Streamlining Group Blogs
Modified bp-groupblog.php
Will try this when I have time…
In reply to: Group Blog + P2 or Posthasteare you spending all this effort integrating P2 into a 1.1.3 Groups home page?
Yes, I need it for active sites based on 1.1.3 and a heavily customized theme. I’ll probably upgrade to 1.2 during the slow Summer months, but will still keep my own theme and structure. The group blog plugin is from a user with an active site who’s probably on a similar upgrade cycle a little behind the curve. Does 1.2 have P2/front-end posting on the group home page? Will 1.3 have it?
In reply to: Group Blog + P2 or Posthaste@Noel and Mike Pratt, it’s relatively easy to integrate P2, Posthaste etc. into BP themes. They work fine, as long as you use them what they were developed for, on blog index/home pages.
The problem that is the subject of this thread is that P2, Posthaste etc. break when you use them on a group home page, in combination with the group blog plugin. BTW, that’s the only place where I want front-end posting, so I’m not even that interested in how P2 is or will be integrated in BP’s default theme.
The zip I posted is NOT my theme; it’s the bp-groupblog plugin with P2 integrated, for as far as I could figure it out. I plan to post a zip with my bp-groupblog+posthaste attempt later. I have no idea what a diff is.
I have done more than a little investigation and reported here and at the top of this thread in some detail what isn’t happening and my attempts to figure out why.
In the P2 case the problem must be in the javascript somewhere and may have something to do with referrer check. Anyway, when you turn on the javascript, P2 gets the wrong blog and post IDs. I have no idea why, how to fix it or even what to focus on.
Noel’s answer was basically “Buddypress is awesome and does everything you need”. I don’t pay Noel and Noel owes me nothing, so that sounds like a dead end to me. I do appreciate he even bothered to return my email.
I posted my zip in case anyone agrees this would be a useful feature to have and wants to take a stab at it. If not, fine also. See if I care.
I’ll return to this probably in a week from now, after a day job deadline.
In reply to: Upgrade from BP 1.1.3 to BP 1.2.1Is there a list of function name changes between 1.1.3 and 1.2.1?
I assume the backwards compatibility plugin takes care of that, but at some point I should update my messy custom theme.