Search Results for 'buddypress'
-
AuthorSearch Results
-
April 5, 2010 at 9:32 pm #71889
In reply to: Override BuddyPress Template Pack CSS
ruthlessbookie
Memberalthough, when I did that, the admin bar went away again
April 5, 2010 at 9:29 pm #71888In reply to: Override BuddyPress Template Pack CSS
ruthlessbookie
Memberthanks. that did the trick…no idea how I missed that option the first time.
April 5, 2010 at 9:22 pm #718853sixty
ParticipantI’d recommend downloading BP 1.2.3 and doing a local search on the files, especially if you plan on doing any more customization – this will save you a lot of time.
That said, bp-core-templatetags.php probably has most of the functions related to this…
April 5, 2010 at 9:18 pm #71883jordashtalon
MemberThanks 3sixty, that worked perfect, and I found the code to find a users profile URL here is my full code:
<div class=”userAvatar”>“><?php bp_loggedin_user_avatar(‘width=50&height=50’) ?></div> Welcome Back, <b>“><?php echo bp_get_loggedin_user_fullname() ?></b>
Where exactly do I go to find the BP Functions?
I looked here:
https://codex.buddypress.org/developer-discussions/buddypress-template-tags/
but alot of the functions don’t work.
April 5, 2010 at 9:15 pm #71882In reply to: bp_setup_nav not firing
Jeff Sayre
ParticipantOkay, within BP, the plugins_loaded hook is added to nine times. I’m not positive on how WP searches for actions that are added to a given hook once fired, but I assume it is a standard directory search pattern–meaning top down, alphabetical. (Although I have not looked at function do_action to see if my assumption is correct.)
This means that for all activated plugins, once the plugins_loaded event is triggered, WP will first find the added actions to this hook in BuddyPress/bp-activity.php, then /bp-core.php, then finally bp-loader.php. After that, it will begin searching all BP subdirectories beginning with the BuddyPress//bp-activity/ directory.
What does this mean? It means that the single add_action to the plugins_loaded event in /bp-activity.php will be fired first, then the six added actions in /bp-core.php, and finally the single added action in bp-loader.php. This might be the root of the problem.
Since any added actions to the plugins_loaded event will be triggered no matter where they are (assuming a given plugin is activated), it causes an issue if crucial supporting code to a given function is not fired before. There is no reason for the plugins_loaded event to be referenced more than once within BP. The single occurrence of that in function bp_loaded is sufficient. From there all other added actions to the plugins_loaded event should be replaced with bp_init.
Also, no BP-dependent plugin should reference the plugins_loaded event because it will cause a conflict if BuddyPress is deactivated but for some reason that BP-dependent plugin is still active.
Instead, BP-dependent plugins should either reference the bp_init hook, or create their own custom hook.
Refactoring the aforementioned added actions in BP to fire on bp-init instead of plugins_loaded will more than likely not only solve the issue of the bp-set-nav hook not working, but also the bp_setup_root_components hook and the bp_setup_globals hook, and possibly any other hooks that we have not yet discovered are not working.
I also would recommend that priorities be set on all bp-init actions within BP core so as they are fired in the proper sequence and so that any future BP-dependent plugin that comes before “buddypress” alphabetically does not have any of its actions that are added to bp-init fire before others with in BP.
April 5, 2010 at 9:11 pm #10391Topic: Can’t Browse to Setting Page
in forum How-to & Troubleshootingharounkola
ParticipantHi
I’m using WordPress 2.9.2, and BuddyPress 1.2.3, my site’s at http://teach-me-internet-marketing.com
When I try to browse any of the “My Account” links, for example,
http://teach-me-internet-marketing.com/members/Haroun%20Kola/profile/edit/
To edit my profile, the site simple reverts back to the home page, ie. http://teach-me-internet-marketing.com
Any ideas on what I’ve done wrong?
Thanks
Haroun
April 5, 2010 at 9:07 pm #71880In reply to: Override BuddyPress Template Pack CSS
Gianfranco
Participant1 .Keep hte BP template pack active.
2. Go to Apperance / BP Compatibility and select “Disable BP Template Pack CSS”
Now, you can use your own stylesheet.
I suggest you copy the “bp.css” from the “bp-template-pack plugin” into your theme, and modify it, if you don’t want to override it.
That’s what I did.
Hope it helps.
April 5, 2010 at 9:00 pm #71879In reply to: [New Plugin] BuddyPress Group Forum Extras
rich! @ etiviti
ParticipantSomeone had asked about pulling in Activity Stream items on the blog comments.
I came up with a simple solution that just replaces the WP Comments with the Activity stream entirely. This may not be for everyone; won’t include any sort of pre-activity-comment support, no more comment moderation, requires being logged in (obviously)
see it in action:
http://etivite.com/2010/04/what-does-it-mean/#activity-stream
I still have some work left but will release it as a new plugin later in the week.
April 5, 2010 at 8:55 pm #718783sixty
ParticipantHere’s how I do it:
Print out the Username:
echo bp_get_loggedin_user_fullname()There is also a related function that avoids the need to ‘echo’ that function. Search your bp files for this function and it’s immediately above or below that one.
Print out a URL to their Profile page:
echo bp_core_get_userlink( bp_loggedin_user_id() )Although I think that gives you a hyperlinked userlink – if you review that function you should be able to figure out a way to output the raw url, if that’s what you are looking for.
April 5, 2010 at 8:49 pm #71876rich! @ etiviti
Participantare you trying to display the recent activity in the group directory, underneath their info?
I just wrote a Quick Tip about this on my demo site
includes the source code and the call to feed_item_title()
with the method i outlined you can add in the new_forum_posts to only show that activity
April 5, 2010 at 8:46 pm #71874harounkola
ParticipantIn the past, and luckily I’m hosting with TMD hosting who did a free installation of BuddyPress if I wanted it, but being a newbie to WordPress meant that I was on a steep learning curve to tweak wordpress mu and the newness of BuddyPress plugin.
Thanks for the welcome and the great work Andy and the whole Open Source team. I hope to create many beautiful BuddyPress sites connecting people
April 5, 2010 at 8:46 pm #71873cocomozlo
MemberHey, thanx Etiviti. However, I’m not the sharpest knife in the drawer, how should I add it exactly? I’ve replaced bp_has_activities() with bp_activity_feed_item_title() but didn’t get anything. I have this code:
<?php if ( bp_activity_feed_item_title() ) : ?>
<ul id="groups-list" class="item-list">
<?php while ( bp_groups() ) : bp_the_group(); ?>
<li>
<div class="item">
<div class="item-title"><a>"><?php bp_group_name() ?></a></div>
<div class="item-desc"><?php bp_group_description_excerpt() ?></div>
<?php do_action( 'bp_directory_groups_item' ) ?>
</div>
<div class="clear"></div>
</li>
<?php endwhile; ?>
<?php do_action( 'bp_after_groups_loop' ) ?>
<?php else: ?>
<div id="message" class="info">
<p><?php _e( 'There were no groups found.', 'buddypress' ) ?></p>
</div>
<?php endif; ?>April 5, 2010 at 8:43 pm #10390Topic: Override BuddyPress Template Pack CSS
in forum Creating & Extendingruthlessbookie
MemberI’m in the process of converting an existing wp theme for BP. I used the BuddyPress Template Pack, but it seems to be overriding my style.css settings. I make changes, nothing happens. So, what I tried was:
1. copied BuddyPress Template Pack CSS into my stylesheet, then disabled the BuddyPress Template Pack. This worked, but I lost the admin bar.
2. restored BuddyPress Template Pack, and tried adding
! important
to my CSS – nothing happened.
What am I missing here?
Thanks in advance!
April 5, 2010 at 8:38 pm #71871jordashtalon
MemberHey Thanks, the is_user_logged_in() detected the logged in state, and the bp_loggedin_user_avatar() displayed the image. Now I need to be able to print out the Username, as well as be able to print out a URL to their Profile page (so I can link the image to their profile.)
Where is a list of functions I can use in BuddyPress?
Thanks
April 5, 2010 at 8:01 pm #71863In reply to: exclude admin in activitystream
3sixty
ParticipantMy aforementioned Privacy Component will offer fine-grained filtering of any activity stream content–that is as long as the plugin developer made sure to register all the activity stream actions for their component. No need for fancy bp-custom.php functions, core hacks, and the like.
wow… nice!! Another great plugin to melt our heads.
April 5, 2010 at 7:56 pm #71862In reply to: Most effective/stable events plugin?
kunalb
ParticipantUPDATE:
Based on a lot of feedback I’ve received, my proposal’s undergone some drastic changes — mainly support for WP without BP, and enhanced behaviour in Buddypress.
April 5, 2010 at 7:52 pm #71861In reply to: Buddypress gifts component
deities1
MemberAny gifts sent to me (admin) or this one specific user don’t show under gifts.
We still receive gift notification … and it shows that the gift was sent but under our gift screen it still says no gifts have been received.
April 5, 2010 at 7:26 pm #71856In reply to: BuddyPress and WordPress 3.0
Robert
MemberI’ve installed the WP 3.0 Beta 1 and BP 1.2.3.
Besides the avatar’s issue everything seems to work fine and I’ve noticed that everything loads faster.
Created a child theme, blogs, users, groups, forums and a few plugins and found no major issues.
While there isn’t a solution for the avatars I’ve changed the “mystery man” pic to something more related with the site theme and I’m launching it.
WP 3.0 with BP 1.3 will be unbeatable.
April 5, 2010 at 7:23 pm #10388cocomozlo
MemberI’m using bp_has_activities() http://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop to display latest forum posts. At first I wasn’t sure it was right, but when I tried the widget, it displayed exactly the same info, so I guess I was right on it. However, it returns A LOT of info, and I need only the title. How do I change that output to get only the title or maybe a very short excerpt, just not that incredible amount of info?
Many thanx in advance
April 5, 2010 at 7:21 pm #10387Topic: Redirect a function call via functions.php?
in forum Creating & Extendingpeterverkooijen
ParticipantI need to make an edit in a WP core function. The function is part of a whole cluster of other functions; a needs b needs c need d etc. Turning the entire cluster into a custom version in functions.php is the only way I know to bring it into the theme.
Is it possible to put something in functions.php that “catches” any calls to only that particular function, redirect them to a custom function in functions.php and then send the returned data back to the regular WP process?
I need it for this case, but I often run into this problem.
April 5, 2010 at 7:18 pm #71854In reply to: exclude admin in activitystream
3sixty
ParticipantI figured out a clean way to exclude blog post comments and forum replies from the main activity stream by essentially editing the bp-activity-classes.php file (not ideal, but it’s a start)
It’s a little off topic so I’ll continue the discussion on the previous thread where this came up:
https://buddypress.org/forums/topic/excluding-blog-post-comments-from-activity-stream-page
April 5, 2010 at 6:49 pm #71851In reply to: how to totally disable User-Blogs ?
r-a-y
KeymasterLogin to the WPMU backend, navigate to “BuddyPress > Component Setup”, disable blog tracking.
Then disable blog registration.
Navigate to “Site Admin > Options”. Under “Allow new registrations”, select “Only user account can be created”.
April 5, 2010 at 6:42 pm #71848In reply to: Modifiying Group Homepage
r-a-y
KeymasterYou have two options:
1) Use a child theme to override the group header
Copy “/bp-themes/bp-default/groups/single/group-header.php” to your child theme’s directory keeping the directory structure intact.
Make your modifications there.
If you don’t know what a child theme is, read up here:
https://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/
Stick with this method if you’re unfamiliar with WP’s actions and hooks.
2) Use BP hooks to add content to the group header
There are multiple hooks in the group header template that you could inject your content with.
The following two are probably what you’re after:
-bp_before_group_header_meta
-bp_group_header_meta
You could create your own functions and hook into these actions from your child theme’s functions.php.
If what I’m saying is completely foreign to you, read up on this:
April 5, 2010 at 6:40 pm #71847Andy Peatling
KeymasterInstalling and using BP has certainly become a lot easier since the 1.0 days, hopefully it will continue to get easier with each release.
April 5, 2010 at 6:38 pm #71846In reply to: BuddyPress and WordPress 3.0
Andy Peatling
KeymasterThere will be a 1.2 point release hopefully on the same day that 3.0 is released to fix any compatibility issues. 1.3 won’t be finished in time for 3.0. You can use the 1.2 branch to keep up to date with the fixes as they happen.
-
AuthorSearch Results