Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 8,601 through 8,625 (of 22,672 total)
  • Author
    Search Results
  • RiGoRmOrTiS_UK
    Participant

    Wow, 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)

    #173393

    In reply to: Flat Portal theme

    Squirrel
    Participant

    I 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.

    #173391
    Vernon Fowler
    Participant

    Embedly plugin was conflicting.

    #173379
    saulcoz
    Participant

    damn 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');
    
    ?>
    
    #173378
    saulcoz
    Participant

    Well 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 username
    

    Plugin 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 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’);

    
    

    ?>

    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.

    #173371
    danbp
    Participant

    hi @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

    #173361
    @mercime
    Participant
    #173357
    @mercime
    Participant

    I’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.

    #173352
    tse11
    Participant
    #173346
    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.

    #173330

    In reply to: No login box

    ulises2010
    Participant

    Thanks 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.

    #173307

    In reply to: javascript precedence

    Paul Wong-Gibbs
    Keymaster

    We 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!

    #173293
    modemlooper
    Moderator

    https://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;
    }

    #173282

    In reply to: strong passwords

    cwjordan
    Participant

    Yes, 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.

    #173274

    In 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.

    #173235
    mizzinc
    Participant

    Wow, 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?

    #173208

    In reply to: javascript precedence

    Henry
    Member

    @bassjobsen

    You 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 );

    #173196
    uabassguy
    Participant

    Here’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.

    #173163

    In reply to: BP Columns download

    modemlooper
    Moderator

    bp columns will not work well with current BuddyPress, you can now use any 3 column WordPress theme.

    #173142
    Robert
    Participant

    But won’t WordPress USERS, who are not showing up as BuddyPress MEMBERS, be activated as MEMBERS once they login for the first time?

    #173141
    Robert
    Participant

    THanks 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!

    #173138
    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/

    #173118
    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.1

    #173106
    aces
    Participant

    @husdom

    You 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.

    #173091
    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!

Viewing 25 results - 8,601 through 8,625 (of 22,672 total)
Skip to toolbar