Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 14,501 through 14,525 (of 22,680 total)
  • Author
    Search Results
  • Hector100
    Member

    Am using buddypress and the page is a php page. i need to reference the current user in these page but it is not working out

    #116231
    Andreas Karsten
    Participant

    Found it. As per the discussion here:

    https://core.trac.wordpress.org/ticket/17239

    dots in usernames are not allowed in WordPress 3.2.(1). I have changed that now in my install by modifying the function wpmu_validate_user_signup in /wp-includes/ms-functions.php in line 524 from

    preg_match( ‘/[a-z0-9]+/’, $user_name, $maybe );

    to

    preg_match( ‘/[a-z0-9.]+/’, $user_name, $maybe );

    I don’t like having to modify a core file, but I like even less that in ticket #17239 it was just decided to disallow dots in usernames. For network sites, which often are associated with username databases, which in turn are often associated with firstname.surname server accounts and email addresses, the dot is an importanrt feature!

    Hugo Ashmore
    Participant

    You are asking about WP functions on a support forum for BP :)

    What are you actually trying to do? There may be BP method.

    The function is failing as you likely haven’t called the global variable $current_user or get_currentuserinfo#()
    but you should read the WP codex on how to access this data.

    All the info you need is in the codex pages:
    https://codex.wordpress.org/Function_Reference/wp_get_current_user

    #116223
    ig0r74
    Member

    WordPress 3.2 and BuddyPress 1.2.9

    #116221
    @mercime
    Participant

    Do you mean blog posts? Because blogroll has a special mean in WP sites https://codex.wordpress.org/Glossary#Blogroll

    Are you referring to post thumbnails or featured images in posts? Did you check if your theme supports post thumbnails?

    Hugo Ashmore
    Participant

    So enthused with that fact, Boone stated it twice :)

    Boone Gorges
    Keymaster

    This feature is coming in BuddyPress 1.3, which is coming quite soon.

    Boone Gorges
    Keymaster

    This feature is coming in BuddyPress 1.3, which is coming quite soon.

    #116196
    dude
    Member

    I’m bumping this because there must be a way to mimic this sites activity page : http://swapbbm.com/
    the method above totally hides the whole of the activity..I don’t want to settle for this because there has been a decline in sign-ups to my site lately partly due to not being able to see anything going on inside.

    they must know something we don’t on this other site, it’s a wordpress/buddypress combo as well !

    #116195
    aces
    Participant

    Some hosts require an extra plugin for wordpress email to work….

    I have used https://wordpress.org/extend/plugins/wp-mail-smtp/ successfully, but thereare others…

    #116190

    In reply to: Activity not working

    4colourprogress
    Participant

    Well I think that Elgg is probably more suited for what you’re trying to achieve. The other option is to completely move across to wordpress & buddypress and convert your current site. Not sure how much work would be involved though, depends on how big the site is I guess.

    #116188

    In reply to: Activity not working

    4colourprogress
    Participant

    If you’re website doesn’t currently run off wordpress I think you maybe over complicating this somewhat.

    There are a number of social networking solutions available for php that have activity streams and such and would probably be easier to implement.

    Try checking out Elgg http://www.elgg.org/features.php
    It’s open source too.

    #116184
    thinkluke
    Member

    Roger, This is the code I have thus far….

    add_filter(“gform_post_submission_1”, “set_post_thumbnail_as”, 10, 2);
    function set_post_thumbnail_as($entry, $form){

    //getting first image associated with the post
    $post_id = $entry[“post_id”];
    $attachments = get_posts(array(‘numberposts’ => ‘1’, ‘post_parent’ => $post_id, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘order’ => ‘ASC’));
    if(sizeof($attachments) == 0)
    return; //no images attached to the post

    //setting first image as the thumbnail for this post
    update_post_meta( $post_id, ‘_thumbnail_id’, $attachments[0]->ID);

    // update bp activty stream content.
    $activity_id = bp_activity_add( array( ‘id’ => $post_id, ‘content’ => ‘$attachments’ ));
    }

    I understand the activity post id is different from the wordpress post id? How can I get this activity post id. Also is it okay I am using the post-submission gf filter? Is it just this simple with the correct activity add code?

    Can you please help me? I’m really stuck and almost thinking of scrapping the project just because I suck at buddypress and PHP.

    #116177

    In reply to: Custom HTML in posts

    Paul Wong-Gibbs
    Keymaster

    Please would you clarify what exactly you mean by “[posts] in BuddyPress”? When I read that, I immediately think of writing blog posts, which is part of WordPress core.

    jf0
    Member

    better late than never

    How can I make wordpress shortcodes work anywhere in buddypress?

    #116160

    In reply to: Invite Tool

    Boone Gorges
    Keymaster

    https://wordpress.org/extend/plugins/invite-anyone/ has nice email support. I haven’t built Facebook or Twitter integration, though it’s something I’d like to do in the future.

    #116157
    aces
    Participant

    I had the same problem with the wordpress admin menus in ie9 and online (linux) sites but not on local (vista) sites. Once I viewed and played with the menus in firefox they worked as expected in ie9…. I hope others using the same sites would not have to go through the same process…

    Also the buddypress upgrade didn’t show up unless I ran add new plugins first….

    #116142
    thinkluke
    Member

    Hi Roger, I jumped to a solution then, when in fact it does not work correctly, sorry…

    I have used your code from page 1 to display featured image on the bp activity stream. However I have a gravity form that lets user upload posts from their, I have used this simple snipet of code to make the upload image a featured image.

    add_filter(“gform_post_submission”, “set_post_thumbnail_as”, 10, 2);
    function set_post_thumbnail_as($entry, $form){
    //getting first image associated with the post
    $post_id = $entry[“post_id”];
    $attachments = get_posts(array(‘numberposts’ => ‘1’, ‘post_parent’ => $post_id, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘order’ => ‘ASC’));
    if(sizeof($attachments) == 0)
    return; //no images attached to the post
    //setting first image as the thumbnail for this post
    update_post_meta( $post_id, ‘_thumbnail_id’, $attachments[0]->ID);
    }

    This works perfectly for wordpress and displays the featured image correctly. However the featured image does not appear in the buddypress activity stream until I manually go to that post and hit update in the backend… really defeats the purpose of publishing the post… pulled my hair out for days on this.. Do you have any suggestions? I believe it is something to do with the way bp saves posts… Maybe bp_activity_post_update would work

    #116141
    James
    Participant

    thank you Paul, already found an issue. It was some conflict of divs/classes in my child theme, which, somehow, appearead only after update.

    thanks again.

    #116136
    Paul Wong-Gibbs
    Keymaster

    No — see https://codex.buddypress.org/theme-development/bp-default-theme-changelog/

    (ignore all the property changes, those are irrelevant)

    #116133
    James
    Participant

    spent few hours and no success.
    I do see that in bp-default 1.2.9 reveal is working (help section with question sign in profile header), but why after update it stoped working in my child theme?
    tried to switch off all plugins, removed functions.php, member-header.php etc.

    were there any changes to default.css in 1.2.9?

    thanks.

    #116125
    James
    Participant

    thanks Paul, I had to write that these are two separate questions.
    First one is still opened.

    #116124
    Paul Wong-Gibbs
    Keymaster

    BuddyPress.org is being worked on, and is unrelated to the 1.2.9 release.

    #116123
    thinkluke
    Member

    I have found a solution if you are using gravity forms… I just need to know who to add the post id into the form submission function because atm it just uploads the image to the actually form page :-(

    add_action(“gform_pre_submission_2”, “gform_registration”);

    function gform_registration( $form_meta ){

    // $post_id gets set here by some code I have removed for clarity

    // If there is a logo, attach that file and make it the post featured image

    if($_FILES) {

    //WordPress Administration API required for the media_handle_upload() function

    require_once(ABSPATH . ‘wp-admin/includes/file.php’);

    require_once(ABSPATH . ‘wp-admin/includes/image.php’);

    require_once(ABSPATH . ‘wp-admin/includes/media.php’);

    $media_id = media_handle_upload(‘input_3’, $post_id);

    my_set_post_thumbnail( $post_id, $media_id);

    }

    }

    // This function will be obsolete once WP 3.1 is release since that includes

    // an identical function name set_post_thumbnail

    function my_set_post_thumbnail( $post, $thumbnail_id ) {

    $post = get_post( $post );

    $thumbnail_id = absint( $thumbnail_id );

    if ( $post && $thumbnail_id && get_post( $thumbnail_id ) ) {

    $thumbnail_html = wp_get_attachment_image( $thumbnail_id, ‘thumbnail’ );

    if ( ! empty( $thumbnail_html ) ) {

    update_post_meta( $post->ID, ‘_thumbnail_id’, $thumbnail_id );

    return true;

    }

    }

    return false;

    }

    #116122
    James
    Participant

    does anyone have same issue in BP 1.2.9, that help section in member’s header (after @username) does not reveal anymore?

    what is happening to buddypress.org? I cannot search, do not see updates in single view. Support topics don’t have pagination anymore, cannot edit/delete topics etc.

    thanks.

Viewing 25 results - 14,501 through 14,525 (of 22,680 total)
Skip to toolbar