Search Results for 'buddypress'
-
AuthorSearch Results
-
February 21, 2009 at 7:36 pm #38492
In reply to: after login redirect to another page
Alex
ParticipantThere’s a quick five-line plugin to do that in this thread:
https://buddypress.org/forums/topic.php?id=1095
Just change:
$redirect_to = bp_core_get_userurl($user->ID);to whatever URL you want the user to be redirected to.
February 21, 2009 at 7:14 pm #38490In reply to: BuddyPress Showoff: Post your links
modemlooper
Moderatora social site for twitter fan fic characters.
February 21, 2009 at 6:04 pm #38484In reply to: finding out user_level
Burt Adsit
ParticipantThere’s this function in the bp admin bar:
// return a string indicating user’s role in that blog
function get_blog_role_for_user( $user, $blog ) {
// If the user is a site admin, just display admin.
if ( is_site_admin() )
return __( ‘Admin’, ‘buddypress’);
$roles = get_usermeta( $user, ‘wp_’ . $blog . ‘_capabilities’ );
if ( isset( $roles ) )
$role = __( ‘Subscriber’, ‘buddypress’ );
elseif ( isset( $roles ) )
$role = __( ‘Contributor’, ‘buddypress’ );
elseif ( isset( $roles ) )
$role = __( ‘Author’, ‘buddypress’ );
elseif ( isset( $roles ) )
$role = __( ‘Editor’, ‘buddypress’ );
elseif ( isset( $roles ) )
$role = __( ‘Admin’, ‘buddypress’ );
else
return false;
return $role;
}
It determines the user’s role. That what you need?
You might just be missing the current user in that function you created. Gotta remember the global vars.
global $current_user;
The info that bp tracks for a user is what bp needs to know about the user. The rest is provided by wpmu.
February 21, 2009 at 5:12 pm #38481In reply to: finding out user_level
jahshaka
Memberhelp mplease how hard can this be??? i would think that buddypress should be giving access to all core user data?
February 21, 2009 at 4:35 pm #38479In reply to: plugin-template.php using member theme?
tekanji
MemberWell, personally I consider the member and blog directories to belong to the same “type” of page as the profile and other pages that use the member theme.
But, more to the point, the problem I’m having is that plugin-template.php relies heavily on proprietary BuddyPress functions which makes it hard to integrate into themes with layouts that are different than the basic BuddyPress layout. Since the member theme is designed specifically for BuddyPress I figured it would be easier to have the pages that use the plugin-template.php use that theme rather than writing code that changes the way the blog themes display just for that one page.
I mean, it should be possible to have the “members” and “blogs” directories use the members theme rather than the main theme since “members/username” uses the member theme. I was hoping that there would be an easy way to do it (like bp_get_member_header() or something like that). Oh well.
February 21, 2009 at 4:24 pm #38478In reply to: Only one blog for user
Burt Adsit
ParticipantOK people this seems to work. This requires modifying the member theme since I didn’t find any actions in bp to hook this into so here goes:
In the member theme the file:
/buddypress-member/blogs/create.php
There is this chunk of code:
<?php if ( bp_blog_signup_enabled() ) : ?>
..(some other stuff here)..
<?php else: ?>
<div id=”message” class=”info”>
<p><?php _e( ‘Blog registration is currently disabled’, ‘buddypress’ ); ?></p>
</div>
<?php endif; ?>
Replace the ..(some other stuff here).. with this:
<?php
global $bp;
$blogs = bp_blogs_get_blogs_for_user($bp->loggedin_user->id);
if (!$blogs)
{
bp_show_blog_signup_form();
}
else
{
?>
<div id=”message” class=”info”>
<p><?php _e( ‘Limit one Blog per member’, ‘buddypress’ ); ?></p>
</div>
<?php
}
?>
This is the entire little create.php file in pastie: http://pastie.org/396083
This was a: “quick ya we should have that and I’ve got to get to the store and get some boxes because I’m moving from Michigan where we have a snow storm today and Virginia where I’m moving to comes to a screeching halt when they get 1″ of snow and I gotta run now” solution.
When I get back from the store I’ll help clean up the damage this might cause. This does work for me in a quick test.
February 21, 2009 at 3:19 pm #38473In reply to: plugin-template.php using member theme?
Burt Adsit
ParticipantThe purpose of that is to allow WP themes to run the bp directories such as member, groups and blogs. It has nothing to do with the member theme at all.
What the themes are for:
https://codex.buddypress.org/getting-started/using-the-buddypress-themes/
February 21, 2009 at 3:06 pm #38471In reply to: BuddyPress Showoff: Post your links
February 21, 2009 at 1:14 pm #38470In reply to: Announcement: BuddyPress RC-1
Joss Winn
ParticipantThanks burtadsit. I had looked in Tract but couldn’t find anything at the time of reporting. Appreciate your update.
February 21, 2009 at 7:25 am #38466In reply to: bbpress profile vs. buddypress profile
John James Jacoby
KeymasterI’m also on my way to totally eliminating the bbPress profile at http://delsolownersclub.com. If only there was a “Favorites” function inside BuddyPress. Hmm…
February 21, 2009 at 5:53 am #38465In reply to: bp_login_bar() + redirect_to : in rc1
Burt Adsit
Participantoldskoo1, see this thread here for info about that: https://buddypress.org/forums/topic.php?id=1095
Buried in there is a little 5 line plugin that allows you to redirect on login.
February 21, 2009 at 5:44 am #38464In reply to: bbpress profile vs. buddypress profile
Burt Adsit
ParticipantDon’t really think so. People will want different levels of ‘integration’ for those two products. This is really a theme related issue. If the theme developer decides to do that then it gets done. I’m doing that on a theme I’m working on for bbpress. I want to have as much bp functionality as possible in bbpress.
You can see the current state of chaos here: http://ourcommoninterest.org/bbpress
login credentials for test user:
username – hellome
password – hellome
The way I have it setup now is that when viewing a thread the user info block for each post has the bp avatar, user full name and underneath the bbpress title. The user full name takes you to the bp profile and the title takes you to the bbpress profile. Just fooling around with some ideas.
February 21, 2009 at 2:30 am #38460In reply to: Announcement: BuddyPress RC-1
hardcoded
ParticipantOk So I had a blog that was doing pretty good and I wanted to get all the fantastic features of buddypress. I went ahead an migrated over, but what I am seeing is that my once very full looking blog is looking like a fresh brand new site, and rightfully so.
What I would like to propose is maybe a group of us could get together and help each other out by taking the time to help each other make their sites look a little more flush by registering as new users, creating some groups, etc. I think it would help us get more signups if our sites don’t look like something we just put up there two days ago.
Any thoughts on this. My site is http://www.beergogglehell.com I am not 100% done with it, but close.
February 21, 2009 at 2:00 am #38457In reply to: Widget Ajax Members Group Problem
modemlooper
Moderatorwell i’m fine moving it here. Everything on site works great except the ajax not refreshing. Oh and the email sign up link bug. Other than that Buddypress rocks!
February 21, 2009 at 1:54 am #38455In reply to: links to main blog redirecting to admin profile page
Burt Adsit
ParticipantFrom this thread: https://buddypress.org/forums/topic.php?id=1223
– If you upgrade from a previous version and are using your own custom theme, you will need to copy over the functions.php from the latest buddypress-home theme.
Try that Keith. It may be the problem. That is an issue for *all* wp themes that take the place of bp’s home theme.
February 21, 2009 at 1:52 am #38454In reply to: Announcement: BuddyPress RC-1
Burt Adsit
Participant@josswin, this is a known, recent issue with bp’s usage of a wpmu security mechanism.
February 21, 2009 at 1:33 am #38452In reply to: Add Friend – not adding
modemlooper
ModeratorThat didnt work…I really have done nothing to the code the only thing I have modified is the css to make it look different. The only bp addons are the flickr and youtube plugins.
Wp plugins are share this and thats it. This did not work from the first time I installed buddypress so it could not have been something I did.
February 20, 2009 at 7:54 pm #38439In reply to: BuddyPress Showoff: Post your links
Meerblickzimmer
Participanthttp://teamjaren.no – its a cycle-club.
February 20, 2009 at 6:58 pm #38437In reply to: BuddyPress Showoff: Post your links
questformillions
MemberNew music site.
February 20, 2009 at 5:29 pm #38432In reply to: bp_login_bar() + redirect_to : in rc1
night815
MemberI found the bp_login_bar() in the file /bp-core/bp-core-templatetags.php on line 489. You could just edit this directly or add an optional parameter to this function.
Maybe this could be added as a feature of BuddyPress?
February 20, 2009 at 3:06 pm #38428In reply to: RSS Feeds Broken
markmeeus
MemberIn the mu-plugins folder you find the buddypress activity plugin.
It has a subfolder called feeds.
Al three of them use
header(‘status: 200 OK’);
But it should be
header(‘http/1.1 200 OK);
It worked for me
February 20, 2009 at 2:37 pm #38422In reply to: Announcement: BuddyPress RC-1
Joss Winn
ParticipantYes, when I click on a link in an email to accept a friend, I get the “Are you sure you want to do this?” message. The link in the email looks like this:
Accept the friendship request:
https://blogs.example.com/members/auser/friends/requests/accept/22?_wpnonce=8b608e4a0d
February 20, 2009 at 5:40 am #38409In reply to: BuddyPress Showoff: Post your links
voodoobanshee
MemberFairly new site
February 20, 2009 at 5:25 am #38406terryjsmith
ParticipantSee my response here: https://buddypress.org/forums/topic.php?id=1152 for a solution as well.
February 20, 2009 at 5:24 am #38405In reply to: BuddyPress Showoff: Post your links
infonatr
MemberMike
-
AuthorSearch Results