-
Chris Clayton replied to the forum topic Bartending Community in the group Gallery 12 years, 7 months ago
@flair1 – Nice site. Just a quick mention though, the Buddybar seems to be covering the site description on some monitors. You might want to either switch to the WordPress toolbar with
`define ( […] -
Chris Clayton replied to the forum topic How to override core function? in the group How-To and Troubleshooting 12 years, 7 months ago
BTW. If you’d like to read more about filters – this one’s a great one. While it’s focused on themes, it’s the exact same theory 🙂
Using Filter Hooks in WordPress Child Themes -
@ChrisClayton replied to the topic How to override core function? in the forum How-to & Troubleshooting 12 years, 7 months ago
This line’s controlling it.
$ending = apply_filters( 'bp_excerpt_append_text', $ending );
So, we want to use
function cc_excerpt_append_text() {
return 'Stop Reading';
}
add_filter( 'bp_excerpt_append_text', 'cc_excerpt_append_text' );Again, just change ‘Stop Reading’ to whatever you want to replace it.
-
Chris Clayton replied to the forum topic How to override core function? in the group How-To and Troubleshooting 12 years, 7 months ago
This line’s controlling it.
$ending = apply_filters( 'bp_excerpt_append_text', $ending );
So, we want to use
`function cc_excerpt_append_text() {
return ‘Stop Reading’;
}
add_filter( […] -
@ChrisClayton replied to the topic How to override core function? in the forum How-to & Troubleshooting 12 years, 7 months ago
So, you want to change the 358?
you can do that with something like thisfunction cc_custom_excerpt_length() {
return '20';
}
add_filter( 'bp_activity_excerpt_length', 'cc_custom_excerpt_length' );Using that will change the activity excerpt length to 20.
Disclaimer: i am not a professional and this is not advice.
-
Chris Clayton replied to the forum topic How to override core function? in the group How-To and Troubleshooting 12 years, 7 months ago
So, you want to change the 358?
you can do that with something like this`function cc_custom_excerpt_length() {
return ’20’;
}
add_filter( ‘bp_activity_excerpt_length’, ‘cc_custom_excerpt_length’ […] -
Chris Clayton replied to the forum topic Current URL in the group How-To and Troubleshooting 12 years, 7 months ago
@djpaul – i was actually thinking the same thing after i wrote the above, just testing a patch before adding it to trac for feedback.
BTW, we need to be more consistant… why do we use displayed_user for the […]
-
Chris Clayton replied to the forum topic Front Side Toolbar? in the group How-To and Troubleshooting 12 years, 7 months ago
@aboveNbelow Sorry, missed your reply. What’s your definition of “main nav bar”, i thought you where referring to the site navigation, for example on this site where it has the home, about, blog etc links and […]
-
Chris Clayton replied to the forum topic Current URL in the group How-To and Troubleshooting 12 years, 7 months ago
BuddyPress uses different functions for different components,
will echo the current (displayed) profile’s url (used in your example)
-
Chris Clayton replied to the forum topic BuddyPress Profile Page Tabs in the group Creating & Extending 12 years, 7 months ago
@Tfazlani – It’s possible. It would consist of using bp_core_new_nav_item();
https://codex.buddypress.org/developer-docs/functions/core/bp_core_new_nav_item/Basically, create a screen function (what displays […]
-
Chris Clayton replied to the forum topic Non-members in the group Creating & Extending 12 years, 7 months ago
@ktrojan
Non-members of a group?
or
Non-members of the site?Nonetheless, That feature isn’t provided out of the box.
Is using bbpress site-wide forums out of the question for the functionality you […]
-
Chris Clayton replied to the forum topic Confused a little about WP and BP. in the group How-To and Troubleshooting 12 years, 7 months ago
@o4tuna – to follow on from @mrjarbenne‘s replies – BuddyPress doesn’t kill anything that WordPress does, WordPress by default allows you to move the blog to a sub-page (as done on this site) or on your homepage […]
-
Chris Clayton replied to the forum topic Remove the buddybar.css from loading in the group How-To and Troubleshooting 12 years, 7 months ago
remove_action( ‘bp_init’, ‘bp_core_load_buddybar_css’ );
https://buddypress.trac.wordpress.org/browser/trunk/bp-core/bp-core-buddybar.php#L671You could also filter it.
-
Chris Clayton replied to the forum topic Enable Capital Letters in Usernames in the group How-To and Troubleshooting 12 years, 7 months ago
This has been fixed in the currently unreleased 1.6.
https://buddypress.trac.wordpress.org/ticket/2207 -
Chris Clayton replied to the forum topic Buddypress & Thesis in the group Installing BuddyPress 12 years, 7 months ago
@coxis123 Their site states “The Thesis Theme framework is a premium template system for WordPress that is designed to serve as the rock-solid foundation beneath any kind of website.”
With “any” […]
-
Chris Clayton replied to the forum topic Front Side Toolbar? in the group How-To and Troubleshooting 12 years, 7 months ago
Put define ( ‘BP_DISABLE_ADMIN_BAR’, true ); into your bp-custom.php file to turn the bar off.
SEE: https://codex.buddypress.org/extending-buddypress/changing-internal-configuration-settings/With your other […]
-
Chris Clayton replied to the forum topic 404 The requested URL not found on this server 🙁 in the group Installing BuddyPress 12 years, 7 months ago
@kosarr it could be any number of a hundred things and without more information about your server etc, we can only guess.
Anyways, have you tried this? http://www.404-error.org/buddypress-404-file-not-found-fix/
-
Chris Clayton replied to the forum topic How to fix BP-admin bar width and characteristics in the group How-To and Troubleshooting 12 years, 7 months ago
body#bp-default #wp-admin-bar .padder {
min-width: 100%;
max-width: 100%;
}or just change it to whatever width you want.
-
Chris Clayton replied to the forum topic Profile Fields becomes URL link in the group How-To and Troubleshooting 12 years, 7 months ago
fix? It’s like that by design, it allows a user to search for other .users with similar interests..
However, if you want more control – Their’s a plugin for that. (we should seriously steal apples “theirs an […]
-
Chris Clayton replied to the forum topic SPAM ON ACTIVITY PAGE! in the group Requests & Feedback 12 years, 7 months ago
“The most important plugin (imho) which is not available is new user moderation…”
In 1.6 the core devs have been doing some work on user capability stuff to make user moderation easier and mentioned that some […]
- Load More
@chrisclayton
Active 4 years, 7 months ago