Search Results for 'buddypress'
-
AuthorSearch Results
-
September 23, 2012 at 7:05 am #142300
In reply to: Buddyvents special forum style with form
@mercime
Participant@farandhigh you should be posting this at this in forums of buddyvents plugin author. I’ve added Buddyvents to the title of this post just in case someone who uses the plugin could help you.
September 23, 2012 at 6:59 am #142299In reply to: NOT A DOUBLE BUT I got a problem with my site header
@mercime
Participant@raminjan open up your theme’s header.php and post in pastebin.com then post the generated URL here.
September 23, 2012 at 6:16 am #142298In reply to: Multiple Account Types
infocoolsms
Participant@dtay1984 This is the perfect solution may be
http://wpbpshop.com/buddypress-user-account-type-proSeptember 23, 2012 at 4:42 am #142297In reply to: BuddyPress wipes out WordPress cache?
Henry
ParticipantPutting in my request for this. The workaround isn’t working for me and this keeps happening. Using 1.5
Edit: Because I can’t add a new post – a request for a solution that works. Obviously. But thanks a lot for your helpful reply.
September 23, 2012 at 3:07 am #142294In reply to: New to BuddyPress
clamoreaux
ParticipantOne more question — how do I add profile fields that can only be seen by the user that is setting it up? For example, I want the Name field hidden and the user known on the site by their username only. Right now it is showing as seen by Anyone. I can’t have that on the type of site I am building.
And can fields be searched on?
September 22, 2012 at 9:46 pm #142285calumac
MemberSorry, can’t help but I’m experiencing similar problems having managed to get masonry to work with the Groups DIrectory I hit the tag & get nothing displayed, although I suspect that this is down to my css still being messy.
Is it possible to write some sort of override function/ action for group-tags that also calls masonry reload (as you suggest) & put it into bp-custom.php which sits in your site’s plugin folder?
Unfortunately I’m not familiar enough with Buddypress/ coding to know if this is possible – I guess it depends on whether it’s loaded before the group-tags plugin.
September 22, 2012 at 7:35 pm #142280In reply to: custom post type in buddypress activity
Eric Langley
ParticipantIf you need help with custom coding for your site you might want to check out https://buddypress.org/community/groups/bp-jobs-board/
September 22, 2012 at 4:44 pm #142278In reply to: Table of Contents in BuddyPress Codex
modemlooper
ModeratorI think it’s just a sidebar widget containing page hierarchy.
September 22, 2012 at 3:14 pm #142276In reply to: Set Excerpt Length of Group Description
Quint
ParticipantThanks. That does work to produce the excerpt at the right spot. However, it does not properly handle not cutting words in the middle nor putting the […] at the end. The following function in the core file (mentioned in my first comment) does that:
`function bp_create_excerpt( $text, $length = 225, $options = array() ) {
// Backward compatibility. The third argument used to be a boolean $filter_shortcodes
$filter_shortcodes_default = is_bool( $options ) ? $options : true;$defaults = array(
‘ending’ => __( ‘ […]’, ‘buddypress’ ),
‘exact’ => false,
‘html’ => true,
‘filter_shortcodes’ => $filter_shortcodes_default
);
$r = wp_parse_args( $options, $defaults );
extract( $r );// Save the original text, to be passed along to the filter
$original_text = $text;// Allow plugins to modify these values globally
$length = apply_filters( ‘bp_excerpt_length’, $length );
$ending = apply_filters( ‘bp_excerpt_append_text’, $ending );// Remove shortcodes if necessary
if ( !empty( $filter_shortcodes ) )
$text = strip_shortcodes( $text );// When $html is true, the excerpt should be created without including HTML tags in the
// excerpt length
if ( !empty( $html ) ) {
// The text is short enough. No need to truncate
if ( mb_strlen( preg_replace( ‘//’, ”, $text ) ) <= $length ) {
return $text;
}$totalLength = mb_strlen( strip_tags( $ending ) );
$openTags = array();
$truncate = ”;// Find all the tags and put them in a stack for later use
preg_match_all( ‘/(]*>)?([^]*)/’, $text, $tags, PREG_SET_ORDER );
foreach ( $tags as $tag ) {
// Process tags that need to be closed
if ( !preg_match( ‘/img|br|input|hr|area|base|basefont|col|frame|isindex|link|meta|param/s’, $tag[2] ) ) {
if ( preg_match( ‘/]*>/s’, $tag[0] ) ) {
array_unshift( $openTags, $tag[2] );
} else if ( preg_match(‘/]*>/s’, $tag[0], $closeTag ) ) {
$pos = array_search( $closeTag[1], $openTags );
if ( $pos !== false ) {
array_splice( $openTags, $pos, 1 );
}
}
}
$truncate .= $tag[1];$contentLength = mb_strlen( preg_replace( ‘/&[0-9a-z]{2,8};|&#[0-9]{1,7};|&#x[0-9a-f]{1,6};/i’, ‘ ‘, $tag[3] ) );
if ( $contentLength + $totalLength > $length ) {
$left = $length – $totalLength;
$entitiesLength = 0;
if ( preg_match_all( ‘/&[0-9a-z]{2,8};|&#[0-9]{1,7};|&#x[0-9a-f]{1,6};/i’, $tag[3], $entities, PREG_OFFSET_CAPTURE ) ) {
foreach ( $entities[0] as $entity ) {
if ( $entity[1] + 1 – $entitiesLength <= $left ) {
$left–;
$entitiesLength += mb_strlen( $entity[0] );
} else {
break;
}
}
}$truncate .= mb_substr( $tag[3], 0 , $left + $entitiesLength );
break;
} else {
$truncate .= $tag[3];
$totalLength += $contentLength;
}
if ( $totalLength >= $length ) {
break;
}
}
} else {
if ( mb_strlen( $text ) <= $length ) {
return $text;
} else {
$truncate = mb_substr( $text, 0, $length – mb_strlen( $ending ) );
}
}// If $exact is false, we can’t break on words
if ( empty( $exact ) ) {
$spacepos = mb_strrpos( $truncate, ‘ ‘ );
if ( isset( $spacepos ) ) {
if ( $html ) {
$bits = mb_substr( $truncate, $spacepos );
preg_match_all( ‘//’, $bits, $droppedTags, PREG_SET_ORDER );
if ( !empty( $droppedTags ) ) {
foreach ( $droppedTags as $closingTag ) {
if ( !in_array( $closingTag[1], $openTags ) ) {
array_unshift( $openTags, $closingTag[1] );
}
}
}
}
$truncate = mb_substr( $truncate, 0, $spacepos );
}
}
$truncate .= $ending;if ( $html ) {
foreach ( $openTags as $tag ) {
$truncate .= ”;
}
}return apply_filters( ‘bp_create_excerpt’, $truncate, $original_text, $length, $options );
}
add_filter( ‘bp_create_excerpt’, ‘stripslashes_deep’ );
add_filter( ‘bp_create_excerpt’, ‘force_balance_tags’ );
`So, using that function in functions.php in the following does not work (I think it’s similar to a circular reference error in Excel):
add_filter( ‘bp_get_group_description_excerpt’, ‘bp_create_excerpt’);
This results in the white screen of death, though it’s probably close. Anyway, thanks for your help.
September 22, 2012 at 11:48 am #142275In reply to: Set Excerpt Length of Group Description
meg@info
Participanthi @qrahaman , try this,
function bp_excerpt_group_description( $description ) {
// your exceprt code
$length = 30;
$description = substr($description,0,$length);
return $description;
}add_filter( ‘bp_get_group_description_excerpt’, ‘bp_excerpt_group_description’);
September 22, 2012 at 11:43 am #142274meg@info
Participanthi @farandhigh,
with this code, you can create a private community, just logged members, can access to buddypress page.
/**
* Privacy
* @return [type] [description]
*/
function restrict_access(){
global $bp, $bp_unfiltered_uri;// If user is not logged in and
if (!is_user_logged_in() &&
// The current page is not register or activation
!bp_is_register_page() &&
!bp_is_activation_page() &&
// The current pas is not blog page
!bp_is_blog_page() )
// Redirect to registration page. Change /register to your register page slug
bp_core_redirect( get_option('home') . '/register' );
}// here, you can add som config paramt to check if private community is enabled
add_action( 'wp', 'restrict_access', 3 );September 22, 2012 at 8:35 am #142273In reply to: custom post type in buddypress activity
Ttemplate
Participanttunelessly, i don’t have enough knowledge in PHP.
i tried a lot, but nothing came out of it.i don’t know where is the exact function.php that i need to edit, where to insert the code, and where to change to code so he will fit my post types name.
help? anyone? :}
September 22, 2012 at 7:27 am #142268infocoolsms
ParticipantHi,
it can be a solution
https://wordpress.org/extend/plugins/buddypress-user-account-type-lite/September 22, 2012 at 7:24 am #142267In reply to: Interactive Profile Fields During Registration
infocoolsms
ParticipantI think here is a good solution,
https://wordpress.org/extend/plugins/buddypress-user-account-type-lite/September 22, 2012 at 6:41 am #142266In reply to: An FAQ for new members to our buddypress site?
Prince Abiola Ogundipe
Participant@rhondaramsey,Use a good faq or q and a plugin, create a new page add the faq short code provided by the plugin and write your q and a accordingly. then redirect your user there at their first login.
Thats what i did on one of my website.
Regards
September 22, 2012 at 5:58 am #142265In reply to: NOT A DOUBLE BUT I got a problem with my site header
raminjan
Participant@mercime what I want is that i want to make my site logo like facebook’s so that each member can go back to their own activity page even when they click on the site’s logo. and No i don’t think I have multisite installed.
September 22, 2012 at 3:12 am #142261In reply to: Registration Key not working in Buddypress
@mercime
ParticipantIf you deactivate s2member plugin and change to bp-default theme, does regular registration work?
September 22, 2012 at 3:11 am #142260In reply to: NOT A DOUBLE BUT I got a problem with my site header
@mercime
Participant@raminjan Multisite installation? Open up your theme’s header.php file and check if the site homepage URL was hardcoded on the logo
September 22, 2012 at 2:59 am #142259In reply to: New to BuddyPress
@mercime
Participant== It was installed with Fantastico. Is that a problem for BuddyPress? ==
@clamoreaux There have been issues using a webhost script with BuddyPress https://codex.buddypress.org/getting-started/before-installing/#system-and-server-requirements
== Do I have to use WPMU to use BuddyPress? ==
No. You can install BuddyPress on single WP installation since BP 1.2
== Is there any good documentation that walks one through setting up and using BuddyPress? ==
The BuddyPress Codex is your friend
– https://codex.buddypress.org/getting-started/before-installing/
– https://codex.buddypress.org/getting-started/setting-up-a-new-installation/installation-wizard/
– https://codex.buddypress.org/getting-started/configure-buddypress-components/
– https://codex.buddypress.org/getting-started/installing-group-and-sitewide-forums/September 22, 2012 at 12:44 am #142257In reply to: custom post type in buddypress activity
shanebp
ModeratorHere’s some info, but it requires php skills to implement:
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/display-custom-post-types-in-activity-feed/September 22, 2012 at 12:28 am #142256In reply to: custom post type in buddypress activity
4ella
ParticipantSomebody already wrote that, but I don’t remember who and where and forum searching doesn’t work and if I am trying to publish that code here for you it says : It looks like you’ve already said that!
September 21, 2012 at 10:49 pm #142255In reply to: Get User Field Function
John
MemberWas able to track down the Buddy Press Function list which defines a function that may function for me.
http://phpxref.ftwr.co.uk/buddypress/nav.html?_functions/index.html – line 264.`bp_has_members( $args = ” )` & the ‘meta_value’ argument
September 21, 2012 at 9:55 pm #142253In reply to: New to BuddyPress
clamoreaux
ParticipantIs there any good documentation that walks one through setting up and using BuddyPress?
September 21, 2012 at 6:59 pm #142246In reply to: Set Excerpt Length of Group Description
Quint
ParticipantSorry, I most certainly wasn’t clear. What you provided works in the Group’s main page where the description length is fine (which is good, since I may want to modify that later).
What I wanted to do was specify the length of excerpt on the group directory page. So, given what you laid out, is there a hook that could be applied for that location? The groups loop is calling bp_group_description_excerpt().
Hopefully, that’s clearer. Thanks again.
September 21, 2012 at 6:14 pm #142242In reply to: Set Excerpt Length of Group Description
meg@info
ParticipantHi @qrahaman,
i dont understand exactly what you want,if you want to excerpt of the description of group in the group page. this code work fine :
function bp_excerpt_group_description( $description ) {// your exceprt code
$length = 30;
$description = substr($description,0,$length);
return $description;
}add_filter( 'bp_get_group_description', 'bp_excerpt_group_description');
-
AuthorSearch Results