Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 13,801 through 13,825 (of 32,688 total)
  • Author
    Search Results
  • #165785

    In reply to: [Resolved] Admin Bar

    martinm92
    Participant

    I have one other problem, how do I echo an error when people get a wrong username or password? At the moment it re-directs to the default wordpress login, which doesn’t look great..

    #165767
    ldjautobody
    Participant

    @bphelp, Wow and thank you for the awesome tutorial. This is perfect! I was actually using the original site I put up as a tempsite until I had the whole Buddy Press and bbpress thing figured out. I am in the process now of building our new site which will up be and running shortly.

    The information you sent me is great. The register and log-in pages are wonderful. I am probably going to have to make some changes to our WP theme as I found out just recently that they have published a bbpress child theme which works great with the original WP theme. In fact, I’ll even give them a little plug here…Mysitemyway.com has some awesome premium wordpress themes that are definitely work a “look see” by anyone that is light on WP coding and wants a truly beautiful theme! So there guys…there’s your “plug’o the day!” from LDJ! LOL

    Since learning a bunch of new things playing with the old temp site, the new site is going to be formatted completely different. I owe it to everyone here for their help during this learning curve and thank you everybody for all your great advice.

    I’ll put up the new url as soon as I get the stuff up and running and I know I’ll be back here to get more help as we move forward with our forum site.

    Thanks again for all your help!

    Denise (@ldjautobody) 🙂

    #165759
    mangtimo
    Participant

    I’m getting this error every time I activate Site Tracking on buddypress.
    Warning: Missing argument 2 for wpdb::prepare() called in E:\dev\sites\wordpress\site.com\wp-content\plugins\buddypress\bp-blogs\bp-blogs-functions.php on line 52 and defined in E:\dev\sites\wordpress\site.com\wp-includes\wp-db.php on line 990

    I am currently using this setup:
    Local Server using WAMP
    Multisite setup
    Wordpress 3.6-beta3
    Buddypress 1.7.2
    BBpress 2.3.2

    This happened on a fresh install.
    I could’ve sworn this was not happening before with the same setup.
    Not sure if this is only a beta thing, I haven’t tried it on WP 3.5.1

    tribblehunter
    Participant

    Hi. New to the wordpress world and programming in general.

    Set up wordpress using microsoft webmatrix as I need to learn on local system (no internet at home)
    When I attempt to edit profile page 404 throws up.
    Latest wordpress and buddypress

    Page address http://localhost:18423/members/admin/profile/edit/
    Page title in tab IIS 8.0 detailed error-404.0- not found

    Any help greatly appreciated

    #165748
    @mercime
    Participant

    No I didnt try deactivating plugins since I was not sure which plugin is actually causing this error.

    Having links showing up twice in Posts when you only posted it once is not normal for any BuddyPress or regular WordPress installation. It’s basic troubleshooting to deactivate plugins either one by one or by batch or all together (except BuddyPress) to find out which plugin is causing the error. Btw, you didn’t mention what theme you are using.

    If I click on “add links” , it shows me add link here and then a preview button.

    Is that “add links” coming from a plugin? What exactly do you preview after you click “add link”?

    #165747
    Asynaptic
    Participant

    Spammers have hit the BP dev blog (check out comments/responses):

    Last call for BP 1.8 patches The major…

    #165740
    @mercime
    Participant
    @mercime
    Participant

    @thebuded something you should report in Trac https://buddypress.trac.wordpress.org/newticket
    Log in using WP/BP username and password. Please include more info about your installation including from what version you upgraded, plugins used, etc.

    Asynaptic
    Participant

    Thanks @derdzi – can someone please confirm this? also, can you share it with the Yoast SEO wordpress forum so they can respond?

    https://wordpress.org/support/plugin/wordpress-seo

    #165720
    martinm92
    Participant

    Im sorry for having to create a new topic on the admin bar I have been searching everywhere and everyone has given the same answer however it isn’t working for me.

    WordPress 3.5.1
    Buddypress Version 1.7.2

    The problem is I have got rid of the admin bar but I have been left with the 25px space. However it isn’t empty white space, it has just pushed my content down, my background still remains there. I have tried body { padding-top: 0px !important; } that didn’t work, I have tried #wp-admin-bar { height: 0 !important; } that also hasn’t worked.. I have a screenshot below, my site is currently being worked on locally.

    Any help is appreciated!

    #165716
    danbp
    Participant

    The author answer means that the plugin works only with group forums ?!!!

    So you have to search another rating widget who works with bbPress or create it yourself or to configure your buddypress to use group forums instead of a standalone forum.

    But as bbP is fully post typed, have you tried to use the plugin’s shortcode ?
    https://wordpress.org/support/topic/ratings-in-custom-post-types

    #165706
    Nate
    Participant

    Here’s the plugin: https://wordpress.org/plugins/rating-widget/

    The developer said: “seems like you are using the standalone version of bbPress … we only support BuddyPress’es bbPress forums.”

    I don’t have any group forums, as they’re not necessary. Using most recent version of WP & BP under Woo’s Canvas theme. Thanks!

    Emily Barney
    Participant

    I have been having the same issue and it looks like I might have a solution – I’ll at least post what steps I’ve taken and what documentation I based them on. I am running WordPress 3.5.1 as a multisite subdirectory installation on a WIMP server.

    I read over this page of documentation that seems to apply to the situation, and I added the
    define ( ‘BP_ROOT_BLOG’, # ) line to the wp-config.php file in the root directory.
    https://codex.buddypress.org/user/install-buddypress-on-a-secondary-blog/

    That didn’t solve it, so I went back to read over this page:
    https://codex.buddypress.org/developer/customizing/changing-internal-configuration-settings/
    I find the references to WPMU kind of confusing, since that hasn’t been used since before 3.0, I thought. And when I looked for the “bp-custom.php” file, I don’t see it anywhere in the recent installation. I found some of the same lines in the bp-loader.php file, but changes to that file didn’t change anything, since it seemed to be looking for a multiblog setting fist.

    So I went to this page and read through it:
    https://codex.buddypress.org/bp_enable_multiblog/
    That lead me to add this line to my wp-config.php file:
    define ( ‘BP_ENABLE_MULTIBLOG’, true );

    I removed the changes I’d made to the bp-loader.php file to be sure there wouldn’t be problems later.

    With both lines added to the wp-config.php file, I was finally able to go to this page and see the pages that belonged to the subsite rather than the root blog: {websiteurl}wp-admin/admin.php?page=bp-page-settings. I will need to check to see what changes this makes to the rest of my blogs, but at least we have a test site running Buddypress now.

    Also, is there any chance these codex pages could get updated? There are all kinds of references to multisite or network or WMPU that are not entirely clear and, as I mention above, there are instructions to open files in the buddypress install that don’t exist by those names anymore.

    tosen
    Participant

    The wordpress post thumnbnail does not appear in the buddypress activity stream, only the title appears. how can i make it display wordpress thumnbnail together with buddpress on same activity streams

    #165685
    Kubrix
    Participant

    When logging into my wp site users gets logged out automatically for some reason. This a new issue and I can’t locate the fault.
    There is no problem logging in to my site as a user, but navigating around the menus causes the site to lose/forget that the user was logged in.

    I’ve updated buddy press and wordpress to newest releases. My site is http://www.sportsdans.org

    Thanks

    #165682
    bp-help
    Participant

    @ldjautobody
    You can use the procedures from this tutorial:
    http://wpmu.org/how-to-build-a-facebook-style-members-only-wordpress-buddypress-site/
    You could have a different logged out menu in which you could include the register link.

    #165678

    In reply to: video plugin wp 3.5.1

    bp-help
    Participant

    @jimahrens
    These two plugins handle video different so make sure to read the descriptions and choose the one that best fits your requirement.
    https://wordpress.org/plugins/buddypress-media/
    https://wordpress.org/plugins/buddypress-activity-plus/

    Hellen83
    Participant

    Hello,
    i just created my WordPress website with buddypress plugin (both latest versions). I use ˝WildCommunity˝ theme. My site is http://blingez.com/
    Groups are working good, but there is a problem.
    If i create a group without forum, i still get ˝/forum/˝ at the end of my URL… and page group won´t load( i get error that can´t be found),
    but if i remove ˝forum˝ from the end of my URL i can see the page of my group.
    (In backend if i go on groups, and view one without forum, i´ll be directed to valid link, but if i press on group title on home page it will generate wrong link( one with the forum at the end))
    Is this a group modul problem or something else?
    Thank you,
    Helena

    #165664
    Kitefr
    Participant

    Hi everyone !

    I struggled some time with that so i’m finally asking for help ^^

    I want to modify the menu inside the members, groups etc… to add the submenu direclty within it !
    So basicaly to go to that :
    Version of the menu i got now

    To that :
    To that possibility !

    I currently copy the bp_get_displayed_user_nav() function into my theme’s functions.php but i don’t know if i’m doing in wrong…

    Wordpress version : 3.5.1
    Buddypress version : 1.7.2

    Thank you in advance ^^

    #165654
    P
    Participant

    The problem is I need to modify the core files and add a plugin at the same time so a user can change the Throttling settings in his WordPress backend.

    I really tried to simple write a plugin and skip the core files modifications, but it’s just not working out. Maybe you can help out here, I will post the 3 core file functions which I modified as well as the plugin code which I wrote. If you can figure out a way for me to not modify the core files and still get Throttling to work, share your code.

    Modified files:

    1- bp-activity\bp-activity-functions.php

    function bp_activity_post_update( $args = '' ) {
    	global $bp;
    
    	$defaults = array(
    		'content' => false,
    		'user_id' => bp_loggedin_user_id()
    	);
    	$r = wp_parse_args( $args, $defaults );
    	extract( $r, EXTR_SKIP );
    
    	if ( empty( $content ) || !strlen( trim( $content ) ) )
    		return false;
    
    	if ( bp_is_user_inactive( $user_id ) )
    		return false;
    
    	<strong>$floodTest = bp_core_check_for_flood ($user_id);
    	
    	if (!$floodTest)
    		return "flood";</strong>
    
    	// Record this on the user's profile
    	$from_user_link   = bp_core_get_userlink( $user_id );
    	$activity_action  = sprintf( __( '%s posted an update', 'buddypress' ), $from_user_link );
    	$activity_content = $content;
    	$primary_link     = bp_core_get_userlink( $user_id, false, true );
    
    	// Now write the values
    	$activity_id = bp_activity_add( array(
    		'user_id'      => $user_id,
    		'action'       => apply_filters( 'bp_activity_new_update_action', $activity_action ),
    		'content'      => apply_filters( 'bp_activity_new_update_content', $activity_content ),
    		'primary_link' => apply_filters( 'bp_activity_new_update_primary_link', $primary_link ),
    		'component'    => $bp->activity->id,
    		'type'         => 'activity_update'
    	) );
    
    	$activity_content = apply_filters( 'bp_activity_latest_update_content', $content );
    
    	// Add this update to the "latest update" usermeta so it can be fetched anywhere.
    	bp_update_user_meta( bp_loggedin_user_id(), 'bp_latest_update', array( 'id' => $activity_id, 'content' => $content ) );
    
    	do_action( 'bp_activity_posted_update', $content, $user_id, $activity_id );
    
    	return $activity_id;
    }
    

    2- bp-core\bp-core-moderation.php

    function bp_core_check_for_flood( $user_id = 0 )
    {	
    	<strong>// Option disabled. No flood checks.
    	if ( !$throttle_time = bp_get_option( 'bt_activity_time' ) )
    		return false;
    	
    	// Bail if no user ID passed
    	if ( !$user_id )
    		return false;
    
    	$last_posted = get_user_meta( $user_id, '_bp_last_posted', true );
    	
    	if ( !$last_posted )
    	{		
    		$last_posted = time();
    		add_user_meta( $user_id, '_bp_last_posted', $last_posted);
    		return true;
    	}
    	else
    	{	
    		if ( ( time() < ( $last_posted + $throttle_time ) ) && !current_user_can( 'throttle' ) )
    		{
    			update_user_meta($user_id,'_bp_last_posted',time());
    			return false;
    		}
    		else
    		{
    			update_user_meta($user_id,'_bp_last_posted',time());
    			return true;
    		}
    	}</strong>
    }

    3- bp-themes\bp-default\_inc\ajax.php

    function bp_dtheme_post_update() {
    	// Bail if not a POST action
    	if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    		return;
    
    	// Check the nonce
    	check_admin_referer( 'post_update', '_wpnonce_post_update' );
    
    	if ( ! is_user_logged_in() )
    		exit( '-1' );
    
    	if ( empty( $_POST['content'] ) )
    		exit( '-1<div id="message" class="error"><p>' . __( 'Please enter some content to post.', 'buddypress' ) . '</p></div>' );
    
    	$activity_id = 0;
    	if ( empty( $_POST['object'] ) && bp_is_active( 'activity' ) ) {
    		$activity_id = bp_activity_post_update( array( 'content' => $_POST['content'] ) );
    
    	} elseif ( $_POST['object'] == 'groups' ) {
    		if ( ! empty( $_POST['item_id'] ) && bp_is_active( 'groups' ) )
    			$activity_id = groups_post_update( array( 'content' => $_POST['content'], 'group_id' => $_POST['item_id'] ) );
    
    	} else {
    		$activity_id = apply_filters( 'bp_activity_custom_update', $_POST['object'], $_POST['item_id'], $_POST['content'] );
    	}
    
    	if ($activity_id == "flood")
    	{
    		$bt_activity_throttle_time = bp_get_option ('bt_activity_time');
    		$bt_activity_message = bp_get_option( "bt_activity_message" );
    		
    		$msg = ( $bt_activity_message ) ? $bt_activity_message : "You have to wait to post again";
    		
    		exit( '-1<div id="message" class="error"><p>' . __( $msg, 'buddypress' ) . '</p></div>' );
    	}
    
    	if ( empty( $activity_id ) )
    		exit( '-1<div id="message" class="error"><p>' . __( 'There was a problem posting your update, please try again.', 'buddypress' ) . '</p></div>' );
    
    	if ( bp_has_activities ( 'include=' . $activity_id ) ) {
    		while ( bp_activities() ) {
    			bp_the_activity();
    			locate_template( array( 'activity/entry.php' ), true );
    		}
    	}
    
    	exit;
    }

    4- The Buddypress Throttling Plugin Code

    <?php
    add_action( 'admin_menu', 'plugin_menu' );
    
    function plugin_menu() {
    	// add_options_page( $page_title, $menu_title, $capability, $menu_slug, $function);
    	add_options_page( 'Buddypress Throttling | Settings', 'Buddypress Throttling', 'manage_options', 'buddypress_throttling', 'buddypress_throttling_options' );
    }
    
    function buddypress_throttling_options() {
    
        //must check that the user has the required capability 
        if (!current_user_can('manage_options')) {
         	WP_die( __('You do not have sufficient permissions to access this page.') );
        }
    
        // variables for the field and option names 
        $hidden_field_name = 'submit_hidden';
    
        // See if the user has posted us some information
        // If they did, this hidden field will be set to 'Y'
        if( isset($_POST[ $hidden_field_name ]) && $_POST[ $hidden_field_name ] == 'Y' ) 
    	{
    		// Activity
    		$bp_activity_time_val =  ( intval($_POST["bt_activity_time"]) <= 0 ) ? 0 : $_POST ["bt_activity_time"];
    		update_option( "bt_activity_time", $bp_activity_time_val );
    		
    		$bp_activity_message_val =  ( isset($_POST["bt_activity_message"]) && $_POST["bt_activity_message"] != "" ) ? $_POST["bt_activity_message"] : "Please wait before posting again";
    		update_option( "bt_activity_message", $bp_activity_message_val );
    		?>
    		
    		<div class="updated"><p><strong><?php _e('Settings saved.', 'menu-test' ); ?></strong></p></div>
    		<?php
    	}
    	
    	// Activity read values
    	$bt_activity_time = get_option( "bt_activity_time" );
    	$bt_activity_time = (intval($bt_activity_time) <= 0) ? 0 : $bt_activity_time;
    	$bt_activity_message = get_option( "bt_activity_message" );
    	$bt_activity_message = ($bt_activity_message) ? $bt_activity_message : "Please wait before posting again";
    	
    	echo '<div class="wrap">';
    		echo "<h2>" . __( 'Buddypress Throttling Settings', 'menu-test' ) . "</h2>";
    		?>
    	
    		<form name="form1" method="post" action="">
    			<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">	
    			<div class="bt-plugin">
    				<style>
    					.bt-plugin span { display: inline-block; width: 120px; margin-left: 20px }
    					.bt-plugin textarea {width: 400px}
    				</style>
    				<h3><?php _e("On Activity Page: ", 'menu-test' ); ?></h3>
    				<p><span>Throttling Time:</span><input type="text" name="bt_activity_time" value="<?php echo $bt_activity_time; ?>" size="20"> (in seconds)</p>
    				<p><span>Message:</span><textarea name="bt_activity_message" rows="3"><?php echo $bt_activity_message; ?></textarea></p>
    			</div>
    			<p class="submit">
    			<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
    			</p>
    		</form>
    	</div>
    <?php
    }

    Test it out locally, just replace the specified functions in these files with the functions I wrote, add the plugin code in a php file and save it under your Plugins directory (and activate it in the backend). The Plugin code will allow you to set the number of seconds for throttling as well as the message the user will see when he’s flooding.

    Put this puzzle pieces together and you got Flooding control (for the activity page for now), which can easily be done for friend requests @bphelp).

    #165629
    @mercime
    Participant

    Members page is not visible in the top menu bar

    @waterfiend check out http://wpmu.org/how-to-build-a-facebook-style-members-only-wordpress-buddypress-site/ or have a look at different solutions posted for a private BP site at https://buddypress.org/support/topic/protecting-buddypress-pages-from-non-logged-in-users/

    #165626
    @mercime
    Participant

    @tudmak This is the file you should be adding the HTML/CSS to https://buddypress.trac.wordpress.org/browser/tags/1.7.2/bp-templates/bp-legacy/buddypress/members/single/member-header.php
    or you can use bp_before_member_header() or bp_after_member_header() to add the HTML and position the item where you want it in your stylesheet

    #165604
    bp-help
    Participant

    @synaptic
    BuddyPress Registration Options is similar to this idea but it only allows a user to fill out their profile and upload an avatar until the admin approves their account. It doesn’t allow posting to the activity stream however. IMHO if a user doesn’t take the time to fill out their profile then it is a good indicator that they are a spammer but I can see the value in your idea and would I would like to see this functionality in a plugin.
    https://wordpress.org/plugins/bp-registration-options/

    FeedMyPopHeart
    Participant

    Wordpress Version: 3.5.1
    Buddypress Version: 1.7.2
    Site (specifically with the example of what I’m talking about): http://feedmypopheart.net/members/the-little-monster/profile/public/

    Basically, I have a HUGE amount of pages that will continue to grow. And on many pages, especially the profile page, each page that I have authored/created showed up and it is making page load times and the length of said pages HUGE. Any help on how to get rid of them/keep them from showing up? Thanks!

    #165574

    In reply to: Remove profile links

    Yukon Cornelius
    Participant

    I was having the same problem, and it wouldn’t work for me with any of the suggested hacks in bp-custom.php

    I found a thread in the WordPress forum on the same topic which worked. Just put:

    remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9);

    in your theme functions.php

    Hope that helps.

Viewing 25 results - 13,801 through 13,825 (of 32,688 total)
Skip to toolbar