Search Results for 'buddypress'
-
AuthorSearch Results
-
March 30, 2010 at 9:29 am #70788
In reply to: Only List Blogs that User is a Member of
scroobyfe
MemberI’ve managed to resolve my issue. For anyone who is looking to do something similar, this is what I did.
I was going to resort to creating a custom database query for retrieiving all the users blogs until I dug into the BuddyPress plugin and found the function that is used within the admin area that lists all the blogs that each user is a member of.
I used the ‘get_blogs_of_user’ function found in ms-functions.php:
<br />
<?php<br />
global $bp;<br />
$userID = $bp->loggedin_user->id;<br />
$blogs = get_blogs_of_user( $userID, true );
// Check if blogs have been returned
if(!empty($blogs)){
?>
<ul id="blogs-list" class="item-list">
<?php
if ( is_array( $blogs ) ) {
foreach ( (array) $blogs as $key => $val ) {
if($val->userblog_id == 1){ continue; }
$blogLink = "http://".$val->domain . $val->path;
$blogName = $val->blogname;
?>
<li>
<div class="item">
<div class="item-title"><a>"><?php echo $blogName; ?> Videos</a></div>
<div class="generic-button blog-button visit">
<a>" class="visit" title="<?php _e( 'View Videos', 'buddypress' ) ?>"><?php _e( 'View Videos', 'buddypress' ) ?></a>
</div>
</div>
<div class="action">
<?php do_action( 'bp_directory_blogs_actions' ) ?>
</div>
<div class="clear"></div>
</li>
<?php
} // End loop
} // End if
?>
<?php do_action( 'bp_after_directory_blogs_list' ) ?>
<?php bp_blog_hidden_fields() ?>
<?php } else { // If no blogs have been returned ?>
<div id="message" class="info">
<?php _e( 'Sorry, there were no blogs found.', 'buddypress' ) ?>
</div>
<?php } // End if ?>This code will list all of the blogs that the current logged in user is a member of, no matter what role the user has, admin, editor, subscriber etc.
March 30, 2010 at 8:39 am #70786Dainismichel
ParticipantMarch 30, 2010 at 8:38 am #70785Dainismichel
ParticipantPosted the job here, I’d like to end this year-long saga of trying to configure BuddyPress with success…can you help?
Maybe someone could just post the code, or reply here:
http://www.elance.com/php/bid/main/proposalList.php?jobid=19531591
March 30, 2010 at 8:14 am #10214Jon Henwood
ParticipantHi
Busy setting up a Buddypress site for a client and I need to put the Login area in the content area on the home page (no sidebar). The problem is that the login form fills the assigned div but once logged on the avatar, name and “logout” button don’t. This leaves a big white hole.
Is it possible to display a summary / list of notifications (or the “no new notifications” text) as well as the “whats new” text (or the update text box), when logged in under the avatar, name and logout button?
If you could respond with a how to or direct me to a how to with the php code I would need to put in my theme.
Thanks
Jon
March 30, 2010 at 7:55 am #70783In reply to: New Code: show forum posts since last visit
andrew_s1
Participant3sixty, I’d strongly recommend not doing it that way. ISTM that it’s far better if you store this info server-side, not client-side: it’s information that’s specific to the logged-in user, not to the browser they’re logged in from. I wouldn’t want to see posts marked as new, that I’d already read, just because I was using a different browser or a different machine. Big cookies harm browser-side performance, too.
Yes, I’m interested in working on extending buddypress’s forum capabilities. Here’s my work in progress: http://andrewsinlondon.wordpress.com/
March 30, 2010 at 7:38 am #70782In reply to: BuddyPress Multilingual
Mariusooms
ParticipantYes jozik, it would be great to have a “default language” setting in the user profile settings page. Could you not stor a language id in the usermeta of that user? When logging in it would read out the language id and set the redirect accordingly? Just brainstorming here.
How do social network sites like Facebook do this? They have their language selector at the bottom of the page, is that cookie based you think? It is important to us, so we could sponsor this, at least some of it.
March 30, 2010 at 6:36 am #70779raynerlim36
ParticipantSorry, Bowe, but I couldn’t get yours to work.
I think I forgot to mention that I wanted to use the original CSS to create a drop down menu.
Here is my CSS:
/* > Navigation
*/
ul#nav {
margin: 0;
padding: 6px 0;
position: absolute;
list-style: none;
bottom: 0;
display: block;
width: 100%;
background: #232323;
border-bottom: 1px solid #637d1b;
}
body.activity-permalink ul#nav { display: none; }
ul#nav li {
float: left;
margin: 0;
}
ul#nav li a {
color: #aaa;
text-decoration: none;
padding: 8px 15px;
background: #232323;
}
ul#nav li.selected a {
background: #232323 url(../images/pointer.gif) bottom center no-repeat;
color: #fff;
}I really need help doing this. I’m a novice at CSS.
Thanks!
March 30, 2010 at 6:28 am #70778In reply to: Profile Syncing?
Paul Wong-Gibbs
KeymasterIf you have a suggestion for what further data could be syncd to the WordPress profile, submit an enhancement ticket to trac.buddypress.org.
March 30, 2010 at 4:00 am #70770In reply to: BuddyPress Restrict Group Creation
mrjarbenne
ParticipantI should also note that I’m running the newest version of your plugin, and it seemed to coincide with the latest update.
March 30, 2010 at 3:55 am #70769In reply to: BuddyPress Restrict Group Creation
mrjarbenne
ParticipantI’m having the same problem as Anointed. Plugin is activated, but the panel that should be in the Buddypress area of the dashboard doesn’t appear. I’m running WPMU 2.9.2 and BP 1.2.3. Not sure what’s changed. It used to be there.
March 30, 2010 at 2:09 am #70764In reply to: Sidebar displaying twice
Will
MemberI forgot to mention that the unwanted sidebar only appears on the buddypress pages, so I don’t think it’s my theme
March 30, 2010 at 1:37 am #70755In reply to: New Code: show forum posts since last visit
3sixty
Participantheh… well, turns out the groups as set up here on buddypress.org don’t actually have forum or activity stream options… pretty much all you can do right now is join, so that renders all this hand-wringing a moot point.

In terms of the “new posts since last visit” code I need to find a way to expire each serialized cookie at 60 days, and then it’s pretty much ready to go.
March 30, 2010 at 12:14 am #70736In reply to: [New Plugin] BuddyPress Group Forum Extras
stwc
Participantno theme edit but it traverses the dom tree on the bp-default themeExcellent, and thanks. I’ll be having a look, because that will make my clumsy attempts to do the same thing to get a quote-selected-text modification working a bit easier, I hope.
March 30, 2010 at 12:07 am #70735In reply to: Avatar Upload Issues
deities1
MemberDoh! I forgot to disable BuddyPress before doing it. I think that caused my problem.
I’m now able to upload avatars AND still have a workable Media Library.
Here’s my steps:
– Disable Buddy Press
– In Dashboard > Settings > Miscellaneous :
Store uploads in this foler: wp-content/uploads
Full URL path to files: http://yoursite.com/wordpressfolder/wp-content/uploads
– Make the already mentioned edits in bp-core-avatars.php
– Activate BuddyPress
Both avatars and media library worked for me.
March 30, 2010 at 12:03 am #70732In reply to: New Code: show forum posts since last visit
stwc
ParticipantI am very interested in building up functionality in the bbPress Forums component of BP — weak forum functionality will be the dealbreaker in a new deployment I’m working on for an existing community. The fact that the bbPress community is quite moribund (and the tendency in discussing it here tends to be to direct people there, despite the fact that there’s an even greater paucity of documentation and resources ‘there’), and we need to rewrite or create new extensions for stuff within BP anyway makes things a little difficult for dilettante coders like myself!
Not a complaint or a derail — just saying that I’m happy to see other people thinking about beefing up bbPress within BP. I figured what the heck, and created a group, here: https://buddypress.org/groups/extending-bbpress-within-buddypress
Please, do share, and join the group if you’re interested!
March 29, 2010 at 11:19 pm #70731In reply to: Avatar Upload Issues
deities1
MemberThis was working when I did an automated install from my server host … then upgraded wordpress through the dash.
I was having issue so I did a manual install of the latest WordPress / BuddyPress. When doing it this way my site no longer becomes viewable right after modifying and uploading the new bp-core-avatar file.
Site just goes to blank screen with not even a hint of an html header. Weird thing as well …. the bp-core-avatar file seems to expand! It keeps getting larger and larger.
I then have to delete and re-copy the BuddyPress folder in order for the site to show again.
March 29, 2010 at 11:11 pm #10209calvin_42
ParticipantHi there.
I think I have discovered 2 bugs in bp_core.php and since I couldn’t log to TRAC, I post here.
Version : all / trunk
See http://trac.buddypress.org/browser/trunk/bp-core.php
Function bp_core_new_subnav_item – Line 740
Bug : $screen_function is not saved in the tab bp_options_nav.
Patch : see below
function bp_core_new_subnav_item( $args = '' ) {
global $bp;
$defaults = array(
'name' => false, // Display name for the nav item
'slug' => false, // URL slug for the nav item
'parent_slug' => false, // URL slug of the parent nav item
'parent_url' => false, // URL of the parent item
'item_css_id' => false, // The CSS ID to apply to the HTML of the nav item
'user_has_access' => true, // Can the logged in user see this nav item?
'site_admin_only' => false, // Can only site admins see this nav item?
'position' => 90, // Index of where this nav item should be positioned
'screen_function' => false // The name of the function to run when clicked
);
$r = wp_parse_args( $args, $defaults );
extract( $r, EXTR_SKIP );
/* If we don't have the required info we need, don't create this subnav item */
if ( empty($name) || empty($slug) || empty($parent_slug) || empty($parent_url) || empty($screen_function) )
return false;
/* If this is for site admins only and the user is not one, don't create the subnav item */
if ( $site_admin_only && !is_site_admin() )
return false;
if ( empty( $item_css_id ) )
$item_css_id = $slug;
$bp->bp_options_nav[$parent_slug][$slug] = array(
'name' => $name,
'link' => $parent_url . $slug . '/',
'slug' => $slug,
'css_id' => $item_css_id,
'position' => $position,
'user_has_access' => $user_has_access,
'screen_function' => $screen_function
);
if ( ( $bp->current_action == $slug && $bp->current_component == $parent_slug ) && $user_has_access ) {
if ( !is_object( $screen_function[0] ) )
add_action( 'wp', $screen_function, 3 );
else
add_action( 'wp', array( &$screen_function[0], $screen_function[1] ), 3 );
}
}
Function bp_core_remove_subnav_item – Line 847
Bug : $function variable has to be replaced by $screen_function variable instead
Patch : see below
function bp_core_remove_subnav_item( $parent_id, $slug ) {
global $bp;
$screen_function = $bp->bp_options_nav[$parent_id][$slug]['screen_function'];
if ( $screen_function ) {
if ( !is_object( $screen_function[0] ) )
remove_action( 'wp', $screen_function, 3 );
else
remove_action( 'wp', array( &$screen_function[0], $screen_function[1] ), 3 );
}
unset( $bp->bp_options_nav[$parent_id][$slug] );
if ( !count( $bp->bp_options_nav[$parent_id] ) )
unset($bp->bp_options_nav[$parent_id]);
}Thanks.
March 29, 2010 at 10:36 pm #70728In reply to: WP-FB connect profile.
peterverkooijen
Participant@Bowe, I think jimcale wants to pull in additional data from the Facebook profile to fill out the profile on Buddypress. Out of the box the plugin does the basics very nicely – I have it live on three sites with integration to my mailing lists.
But theoretically you can do much more with it. Haven’t had time to really look into that yet – my day job is not in web development.
March 29, 2010 at 10:31 pm #70727In reply to: [New Plugin] BuddyPress Group Forum Extras
rich! @ etiviti
ParticipantUpdated development version to 0.1.9b3
https://wordpress.org/extend/plugins/buddypress-group-forum-extras/download/
Added Topic Preview – Hover over topic title link, inserts a new table row beneath the title with the first post post_content.
uses jquery hoverintent (default settings)
no theme edit but it traverses the dom tree on the bp-default theme – so you may have to edit the .js file to account for a different forum-loop.php structure.
no ajax – the first post_content is stored in html under a hidden div (i’ll add an option in the future to select full post or excerpt)
March 29, 2010 at 10:17 pm #70724In reply to: WP-FB connect profile.
peterverkooijen
ParticipantApparently there are hooks, actions, filters and other mysterious things you can use to add your own functions to get more data or do stuff – see Buddypress.php in the plugin folder. I have no clue how that works. You’ll have to search through the thread on the plugin page or be real nice to the developers.
March 29, 2010 at 9:41 pm #70721dwcouch
ParticipantFrom the Plug-In:
You will need to change the HTML structure in the BuddyPress templates that you copied into your theme to match the structure in your page.php or index.php file. The files that you need to edit are as follows (leave out any folders you have not copied over in step two):
* /activity/index.php
* /blogs/index.php
* /forums/index.php
* /groups/index.php
* /groups/create.php
* /groups/single/home.php
* /groups/single/plugins.php
* /members/index.php
* /members/single/home.php
* /members/single/plugins.php
* /registration/register.php
* /blogs/create.php
* /registration/activate.php
March 29, 2010 at 8:46 pm #70713In reply to: WP-FB connect profile.
Bowe
ParticipantCheck the settings page of wp-fb connect, you should tick a box which enables some buddypress stuff and fixes the problem with usernames.
March 29, 2010 at 7:54 pm #70706In reply to: BP Groups – Admin leaves or demotes self
r-a-y
KeymasterAre you using the latest version of BP?
There was a ticket about this:
https://trac.buddypress.org/ticket/1753
If this problem still persists, please reopen the ticket.
You can login to Trac with the same login credentials you use here on bp.org.
March 29, 2010 at 7:43 pm #70703In reply to: Tweetstream (twitter plugin) Beta testers needed!
Peter Hofman
ParticipantNew version! Version 1.2.2 just released.
Grab it over here: https://wordpress.org/extend/plugins/tweetstream/
* Removed wordpress cron, and replaces with own cron code
* Performance fixed
SUPPORT: http://faboo.nl/bugs/tweetstream/
Not all bugs are fixed yet but this release had to be done to prevent buddypress upgrading issues and facestream issues.
March 29, 2010 at 7:37 pm #70702In reply to: [Resolved] CubePoints and BuddyPress Intregration?
-
AuthorSearch Results