Search Results for 'wordpress'
-
AuthorSearch Results
-
October 26, 2013 at 8:29 pm #173407
RiGoRmOrTiS_UK
ParticipantWow, I typed that like I have a head injury.. sorry
I have a hidden group setup with its own discussion forum; the forum works fine but any topic posted in it is listed in the bbpress “recent topics” widget even though they are hidden/private.
Is there a way to fix this? I’ve tried running the repair tools located at:
http://……/wp-admin/tools.php?page=bbp-repair
“Repair BuddyPress Group Forum relationships”However this says nothing has been repaired or changed and the problem remains.
I’m running WordPress 3.5.1, bbpress 2.3.2 and buddypress 1.8.1 (problem happened in 1.7 as well)
October 26, 2013 at 2:10 pm #173393In reply to: Flat Portal theme
Squirrel
ParticipantI made a video for the theme here: you tube flat portal WordPress theme.
http://youtu.be/yGfkvnv1N-Y
The theme is now available as a digital download in my shop for $25.
Flat Portal WordPress Theme.October 26, 2013 at 1:14 pm #173391In reply to: oembed for soundcloud via bbPress in group forum
Vernon Fowler
ParticipantEmbedly plugin was conflicting.
October 25, 2013 at 9:58 pm #173379saulcoz
Participantdamn it – badly formated the code – try this:
<?php /* Plugin Name: XProfile to username Plugin URI: http:// Description: Created for a specific project, this plugin copies a field from the user's Xprofile to their username, ensuring first that it is unique by adding a digit to te end Version: 0.1 Author: Saul Cozens Author URI: http://saulcozens.co.uk/wordpress */ function xprofile_to_username($xp) { global $wpdb; $field_id = BP_XProfile_Field::get_id_from_name('Name/Company Name'); if(!$field_id || $xp==null) { return; } if($field_id == $xp->field_id) { // cover me, I'm going in $new_username=strtolower(preg_replace('/[^\w\d]/','-', $xp->value)); $existing_user_by_that_username=get_user_by('login', $new_username); if($existing_user_by_that_username && ($existing_user_by_that_username->ID !== $xp->user_id )) { // another user already has that login $i=1; while(get_user_by('login', $new_username."-$i")) { $i+=1; } $new_username.="-$i"; } $wpdb->update($wpdb->users, array('user_login' => $new_username), array('ID' => $xp->user_id)); return; } } add_action('xprofile_data_after_save','xprofile_to_username'); ?>October 25, 2013 at 9:57 pm #173378saulcoz
ParticipantWell I have a plugin – except that I can’t be arsed to release it as a plugin at the moment so I’ll just cut&paste the code here.
2 things:
1. it doesn’t replace the wp-email-login plugin or the login for hack above – it adds to them by simply forcing the username to be the same a field pulled from the Xprofile.
2. It’s hardwired to a specific field name in @applegateian’s project. You’ll need to edit the code to use your own field name because, like I say, I haven’t got time to turn it into a proper plugin. When I find the enthusiasm to do it properly I’ll create a plugin settings menu and stuff.<?php/*
Plugin Name: XProfile to usernamePlugin URI: http://
Description: Created for a specific project, this plugin copies a field from the user's Xprofile totheir username, ensuring first that it is unique by adding a digit to te endVersion: 0.1Author: Saul Cozens
Author URI: http://saulcozens.co.uk/wordpress*/function xprofile_to_username($xp) {global $wpdb;
$field_id = BP_XProfile_Field::get_id_from_name(‘Name/Company Name’);
if(!$field_id || $xp==null) {return;
}if($field_id == $xp->field_id) { // cover me, I’m going in
$new_username=strtolower(preg_replace('/[^\w\d]/','-', $xp->value));$existing_user_by_that_username=get_user_by(‘login’, $new_username);
if($existing_user_by_that_username && ($existing_user_by_that_username->ID !== $xp->user_id )) { // another user already has that login$i=1;
while(get_user_by('login', $new_username."-$i")) {$i+=1;
}$new_username.=”-$i”;
}$wpdb->update($wpdb->users, array(‘user_login’ => $new_username), array(‘ID’ => $xp->user_id));
return;}
}add_action(‘xprofile_data_after_save’,’xprofile_to_username’);
?>
Just put this is a file called xprofile-to-username.php in a folder called xprofile-to-username, activate it and Bob’s your uncle. Every time the user’s profile gets updated, their username will mirror the xprofile field (with hyphen instead of funny characters and numbers to remove any duplicates).
Enjoy.
October 25, 2013 at 6:38 pm #173371danbp
Participanthi @jaxdestroyer,
play with these example snippets (goes into theme’s functions.php) and see what you can do with it.
Good luck!
/* remove the comment menu */ function bpfr_admin_bar_render() { global $wp_admin_bar; $wp_admin_bar->remove_menu('comments'); // change to your need } add_action( 'wp_before_admin_bar_render', 'bpfr_admin_bar_render' ); */ /* add links/menus to the admin bar */ function bpfr_admin_bar_render() { global $wp_admin_bar; $wp_admin_bar->add_menu( array( 'parent' => 'new-content', // use 'false' for a root menu, or pass the ID of the parent menu 'id' => 'new_media', // link ID, defaults to a sanitized title value 'title' => __('Media'), // link title 'href' => admin_url( 'media-new.php') // name of file 'meta' => false // array of any of the following options: array( 'html' => '', 'class' => '', 'onclick' => '', target => '', title => '' ); )); } add_action( 'wp_before_admin_bar_render', 'bpfr_admin_bar_render' ); /* another example */ function bpfr_custom_myaccount_nav( $wp_admin_bar ) { global $bp; // remove the Settings item and the attached sub menu $wp_admin_bar->remove_node('my-account-settings'); // add My notifications settings as separate item $args = array( 'id' => 'my-account-settings-notifications', 'title' => 'Notifications Settings', // 'parent' => 'my-account', 'parent' => 'my-account-messages', // 'meta' => array('class' => 'menupop') 'meta' => array('class' => 'ab_sub_wrapper') ); $wp_admin_bar->add_node($args); } add_action('admin_bar_menu', 'bpfr_custom_myaccount_nav',100 );Some other examples here
October 25, 2013 at 2:30 pm #173361In reply to: [Resolved] Register Page as Homepage redirect issue
@mercime
ParticipantOctober 25, 2013 at 2:04 pm #173357In reply to: HTTP Error 500 on Topics within "Group" Forums
@mercime
ParticipantI’ve noticed under permalinks wordpress is complaining about access to the .htaccess file
@rigormortis_uk Did you change to a new theme or add any new plugins recently? Revert to old theme or Twenty Twelve theme and deactivate all other plugins except BuddyPress and bbPress then run Settings > Permalinks again.October 25, 2013 at 8:58 am #173352In reply to: Making Buddypress Private.
tse11
Participant@synaptic There is a great tutorial on this here:
http://wpmu.org/how-to-build-a-facebook-style-members-only-wordpress-buddypress-site/
October 25, 2013 at 5:02 am #173346In reply to: Combine /user & /user/profile pages?
binutz
Participant@kvschwartz
I had a similar requriement and adding the above specified code in bp-custom.php caused login &log out problem with admin user. As an alternative step,I added the same code in wordpress/wp-config.php – in the bottom of the page, just below the following line:-
/*that’s all,stop editing!Happy blogging.*/
Hope this helps.October 24, 2013 at 9:36 pm #173330In reply to: No login box
ulises2010
ParticipantThanks again Hugo, I looking for information and I found how to make a widget.
I do it, but now, my problem (maybe my first problem 😉 is when you logged yo go directly to the dashboard of wordpress, and I want to be separetly the budypress users (users of my page) and the wordpress users (users can edit thigs in the web), and I want when the budypress users login go to his profile page and no to the dashboard.
October 24, 2013 at 10:28 am #173307In reply to: javascript precedence
Paul Wong-Gibbs
KeymasterWe saw your bug report and left an initial response on the ticket at https://buddypress.trac.wordpress.org/ticket/5208.
We need a bit more information to work on this issue. Thanks!
October 23, 2013 at 7:31 pm #173293In reply to: Cannot get Buddypress working in Expound
modemlooper
Moderatorhttps://plugins.svn.wordpress.org/buddypress/tags/1.8/bp-themes/bp-default/_inc/css/default.css
Only use the css from below 6.0 BuddyPress. Before using it place #buddypress before each style declaration. This ensures it will only effect BuddyPress specific HTML. You may still need to edit or remove styles because this is based on BP-default and not the new template files.
#activity-stream {
margin-top: -5px;
}becomes
#buddypress #activity-stream {
margin-top: -5px;
}October 23, 2013 at 3:10 pm #173282In reply to: strong passwords
cwjordan
ParticipantYes, however since that is a WordPress page, the existing WordPress plugins for enforcing strong passwords should handle that case. I have checked the “enforce strong passwords” plugin and it does enforce strong passwords for the password reset page. It just doesn’t know about the Buddypress “General Settings” page.
So what I’d like to know is if there are any strong password plugins, or other solutions, that work well with Buddypress.
October 23, 2013 at 10:52 am #173274In reply to: javascript precedence
bassjobsen
Participant@henrywright-1 i will write on plugin only, see: https://wordpress.org/plugins/wp-defer-loading/. This plugin require the theme and other installed plugins enqueue their scripts with enqueue_scripts() and dependency right.
Buddy press breaks my plugin now.October 22, 2013 at 8:41 pm #173235In reply to: [Resolved] Buddypress Pages Post ID
mizzinc
ParticipantWow, fast response.
Hi Hugo, I require the post ID when viewing a page to access post_meta information. This works when accessing a WordPress page. When accessing the default ‘Activity, Groups or Members’ page the post ID returns ‘0’, why?
October 22, 2013 at 12:42 pm #173208In reply to: javascript precedence
Henry
MemberYou can use Trac if you need to report a bug in BP core:
https://buddypress.trac.wordpress.org/With reference to (2), you could always remove the action then enqueue the script you want.
remove_action( 'wp_head', bp_core_confirmation_js', 100 );October 22, 2013 at 1:41 am #173196In reply to: Adding buddypress support to a normal theme?
uabassguy
ParticipantHere’s the theme: http://themeforest.net/item/troller-mobile-retina-wordpress-version/3845484
I have it installed on a dev server and I can’t provide a URI without prior approval, but what isn’t working is Geo My Wp and it’s functioning perfectly fine with the default buddypress theme. Maybe some of the js functions aren’t binding because of classes on div elements? I’m really not sure.October 21, 2013 at 5:47 am #173163In reply to: BP Columns download
modemlooper
Moderatorbp columns will not work well with current BuddyPress, you can now use any 3 column WordPress theme.
October 20, 2013 at 9:25 pm #173142In reply to: phpMyAdmin user status activate members
Robert
ParticipantBut won’t WordPress USERS, who are not showing up as BuddyPress MEMBERS, be activated as MEMBERS once they login for the first time?
October 20, 2013 at 9:18 pm #173141In reply to: phpMyAdmin user status activate members
Robert
ParticipantTHanks for the link!
I’ve installed it but my WordPress users are not listed as “pending”. They only show up under the ‘users’ tab in the admin dashboard.
Is there a way to change them to “pending’?
Thanks!
October 20, 2013 at 8:44 pm #173138In reply to: phpMyAdmin user status activate members
bp-help
Participant@fel3000 @robg48
You can activate users using that method. However I would advise backing up the database before doing these edits. Even after activating a user this way they still will not show up in the members directory until they login the first time. Instead of fiddling around in the database why not just use a plugin to activate users:
https://wordpress.org/plugins/buddypress-pending-activations/October 20, 2013 at 8:05 am #173118In reply to: Modifying / Customising the registration process
ayushpratap
Participant@boonebgorges How can I show “username not available” message on mouse out from the field instead of clicking submit button and then check.
– Registration page(website.com/register.php), BP-Default child theme, Buddypress 1.8, wordpress 3.6.1October 19, 2013 at 8:12 pm #173106In reply to: Change Background Color
aces
ParticipantYou don’t need the
media="all"bit.Also it is better not to repeat properties that stay the same so:
#buddypress div.item-list-tabs#subnav { background: #0E0C0C; }Should work.
It certainly works in chrome on your website. Do you see it in chrome?
I don’t know what you mean by your ‘theme css box’? If you mean that your theme has an option to add ‘raw’ css then it may be added before other style sheets / rules and therefore over-ridden, but I can’t diagnose that from here.
This should go at the end of your child theme’s style.css file – To over-rule earlier properties. If your theme doesn’t enable child theme’s then it should go at the end of the theme’s style.css but that is sub-optimal.
Unless it has been disabled you should be able to add this in the editor area of your WordPress’ admin’s appearance section although it would be better done in a text editor and the style.css uploaded via ftp.
October 19, 2013 at 3:46 am #173091In reply to: Users Register On Front Page
bp-help
Participant@marketingnate
You can probably get some useful info from the below tutorial:
http://wpmu.org/how-to-build-a-facebook-style-members-only-wordpress-buddypress-site/
Just take the parts you need from it. Good luck! -
AuthorSearch Results