Search Results for 'wordpress'
-
AuthorSearch Results
-
July 13, 2011 at 8:57 pm #116252
Hector100
MemberAm 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
July 13, 2011 at 8:13 am #116231In reply to: Usernames with dots don’t work anymore
Andreas Karsten
ParticipantFound 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!
July 13, 2011 at 7:51 am #116230Hugo Ashmore
ParticipantYou 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_userJuly 13, 2011 at 5:05 am #116223In reply to: Dont work “Load more” in Activity
ig0r74
MemberWordPress 3.2 and BuddyPress 1.2.9
July 13, 2011 at 2:56 am #116221In reply to: Images in the blogroll are not visible, please help!
@mercime
ParticipantDo 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?
July 12, 2011 at 8:00 pm #116202Hugo Ashmore
ParticipantSo enthused with that fact, Boone stated it twice
July 12, 2011 at 5:35 pm #116198Boone Gorges
KeymasterThis feature is coming in BuddyPress 1.3, which is coming quite soon.
July 12, 2011 at 5:34 pm #116197Boone Gorges
KeymasterThis feature is coming in BuddyPress 1.3, which is coming quite soon.
July 12, 2011 at 5:10 pm #116196In reply to: Restrict site activity post viewing..
dude
MemberI’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 !
July 12, 2011 at 4:08 pm #116195In reply to: My users are not getting their e-mail notifications.
aces
ParticipantSome 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…
July 12, 2011 at 1:37 pm #116190In reply to: Activity not working
4colourprogress
ParticipantWell 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.
July 12, 2011 at 1:27 pm #116188In reply to: Activity not working
4colourprogress
ParticipantIf 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.July 12, 2011 at 8:44 am #116184thinkluke
MemberRoger, 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.
July 12, 2011 at 6:29 am #116177In reply to: Custom HTML in posts
Paul Wong-Gibbs
KeymasterPlease 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.
July 12, 2011 at 2:27 am #116170jf0
Memberbetter late than never
How can I make wordpress shortcodes work anywhere in buddypress?
July 11, 2011 at 9:54 pm #116160In reply to: Invite Tool
Boone Gorges
Keymasterhttps://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.
July 11, 2011 at 8:42 pm #116157In reply to: How to upgrade from 1.2.8 to 1.2.9
aces
ParticipantI 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….
July 11, 2011 at 3:03 pm #116142thinkluke
MemberHi 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
July 11, 2011 at 1:01 pm #116141In reply to: A quick note about WordPress 3.2
James
Participantthank 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.
July 11, 2011 at 12:35 pm #116136In reply to: A quick note about WordPress 3.2
Paul Wong-Gibbs
KeymasterNo — see https://codex.buddypress.org/theme-development/bp-default-theme-changelog/
(ignore all the property changes, those are irrelevant)
July 11, 2011 at 11:37 am #116133In reply to: A quick note about WordPress 3.2
James
Participantspent 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.
July 11, 2011 at 8:48 am #116125In reply to: A quick note about WordPress 3.2
James
Participantthanks Paul, I had to write that these are two separate questions.
First one is still opened.July 11, 2011 at 8:44 am #116124In reply to: A quick note about WordPress 3.2
Paul Wong-Gibbs
KeymasterBuddyPress.org is being worked on, and is unrelated to the 1.2.9 release.
July 11, 2011 at 8:10 am #116123thinkluke
MemberI 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;
}
July 11, 2011 at 7:51 am #116122In reply to: A quick note about WordPress 3.2
James
Participantdoes 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.
-
AuthorSearch Results