Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 9,451 through 9,475 (of 22,677 total)
  • Author
    Search Results
  • #164640
    Hugo Ashmore
    Participant

    Shouldn’t really call people specifically 🙂

    However, perhaps you want to try using the WP login function over the BP login for ( if that’s what you’re using?) I have a reworked enhanced version of the older sidebar me login:
    https://github.com/hnla/hnla-bp-sidebar-me

    Logged out it uses the form as existed in the old sidebar.php with minor tweaks but essentially the same and it redirects to the front page. As an experiment I replaced it with the base WP function without any args passed to it i.e:
    wp_login_form()

    Now that logs me in at whatever page I’m on which is it’s default behaviour, and seems to work without any issues for BP as such (not sure about the cookie setting in the BP form though)

    https://codex.wordpress.org/Function_Reference/wp_login_form

    #164613

    In reply to: Login Redirect Problem

    codegene
    Participant
    #164588
    Hugo Ashmore
    Participant

    You can prevent theme compatibility running by simply overloading those BP files as you did before in your theme root using full bp templates – in 1.8 we are looking to introduce the ability to overload templates in theme compatibility mode with files such as index-activity.php, index-component-profile.php etc:
    https://buddypress.trac.wordpress.org/ticket/4639

    #164586
    P
    Participant

    @Chouf1, that’s my blog you’re linking to. I am not sure if they added Throttling to the new Buddypress version. I opened a ticket months ago, the milestone has been set to: version 1.7 to Future Release https://buddypress.trac.wordpress.org/ticket/3732. This is a bit frustrating since Throttling makes for great spam control.


    @tifire
    Go to /bp-friends/bp-friends-functions.php in your Buddypress installation and change the friends_add_friend function to the following:

    function friends_add_friend( $initiator_userid, $friend_userid, $force_accept = false ) {
    	global $bp;
    
    	$friendship = new BP_Friends_Friendship;
    
    	if ( (int) $friendship->is_confirmed )
    		return true;
    
    	$friendship->initiator_user_id = $initiator_userid;
    	$friendship->friend_user_id    = $friend_userid;
    	$friendship->is_confirmed      = 0;
    	$friendship->is_limited        = 0;
    	$friendship->date_created      = bp_core_current_time();
    	
    	/**
    	 * BuddyPress Friend Request Throttling
    	 *
    	 * Set a throttle period for user friendship requests
    	 *
    	 * @author Patrick Saad
    	*/
    	
    	global $wpdb;
    	$qry = "SELECT date_created FROM wp_bp_friends where initiator_user_id = '".$initiator_userid."' order by date_created desc limit 1";
        $user_friend_requests = $wpdb->get_results( $qry );
    	
    	if ($user_friend_requests)
    	{
    		$latest_user_request = strtotime($user_friend_requests[0]->date_created, time());
    		$time_since_latest_request = time() - $latest_user_request;
    		
    		// that's 2 minutes
    		$throttle_period = 60 * 2;
    		
    		// if the last request was over 5 minutes ago, allow it
    		
    		if ($time_since_latest_request < $throttle_period)
    			return false;
    	}
    	// End of BuddyPress Friend Request Throttling //
    
    	if ( $force_accept )
    		$friendship->is_confirmed = 1;
    
    	if ( $friendship->save() ) {
    
    		if ( !$force_accept ) {
    			// Add the on screen notification
    			bp_core_add_notification( $friendship->initiator_user_id, $friendship->friend_user_id, $bp->friends->id, 'friendship_request' );
    
    			// Send the email notification
    			friends_notification_new_request( $friendship->id, $friendship->initiator_user_id, $friendship->friend_user_id );
    
    			do_action( 'friends_friendship_requested', $friendship->id, $friendship->initiator_user_id, $friendship->friend_user_id );
    		} else {
    			// Update friend totals
    			friends_update_friend_totals( $friendship->initiator_user_id, $friendship->friend_user_id, 'add' );
    
    			do_action( 'friends_friendship_accepted', $friendship->id, $friendship->initiator_user_id, $friendship->friend_user_id );
    		}
    
    		return true;
    	}
    
    	return false;
    }

    This will prevent a user from sending a friendship request to someone if their recent friendship request date was less than, say 2 minutes (change the $throttle_period variable to modify this time)

    Just gave this a fresh test, works in Buddypress 1.7.2. This same concept can be applied to comments, groups, etc, you just have to find the functions and play around.

    #164580

    In reply to: Lost password function

    moritz.fischer
    Participant

    thank you for your reply. now i understand. the “forget password” function is the same as the wordpress. i was confused about that part.

    thank you

    Moritz

    #164579

    In reply to: Lost password function

    bp-help
    Participant
    #164574
    hiboy
    Participant

    @mercime Thank you for replying again

    Settings > forums , i only got the following option , no buddypress

    Main Settings

    Main forum settings for enabling features and setting time limits
    Disallow editing after minutes
    Throttle posting every seconds
    Revisions Allow topic and reply revision logging
    Favorites Allow users to mark topics as favorites
    Subscriptions Allow users to subscribe to topics
    Topic tags Allow topics to have tags
    Anonymous posting Allow guest users without accounts to create topics and replies
    Default user role
    Auto role Automatically assign default role to new, registered users upon visiting the site.
    Fancy editor Use the fancy WordPress editor to create and edit topics and replies
    Auto-embed links Embed media (YouTube, Twitter, Flickr, etc…) directly into topics and replies
    Per Page

    How many topics and replies to show per page
    Topics per page
    Replies per page
    Per RSS Page

    How many topics and replies to show per RSS page
    Topics per page
    Replies per page
    Archive Slugs

    Custom root slugs to prefix your forums and topics with. These can be partnered with WordPress pages to allow more flexibility.
    Forums base
    Topics base
    Single Slugs

    Custom slugs for single forums, topics, replies, tags, users, and views here. If you change these, existing permalinks will also change.
    Forum Prefix Prefix your forum area with the Forum Base slug (Recommended)
    Forum slug
    Topic slug
    Topic tag slug
    Reply slug
    User slug
    Topic view slug
    Search slug

    Sorry i couldnt upload images

    #164572
    @mercime
    Participant

    @hiboy just to be clear, did you upgrade from previous BuddyPress version with the old group forum installed OR is this a new install on WP 3.5.1 and BP 1.7.2? If this is a new install, then just go to admin dashboard menu Settings > Forums and go to the bottom of that page and uncheck “Enable Group Forums”

    #164571
    hiboy
    Participant

    @mercime Thank you thank you of replying me , yes is a typo,
    my wordpress is 3.5.1
    bp is 1.7.1

    I would like to remove the option 3. Forum, cause i also have bbpress installed, i want user to use 1 forum as global, secondly it also causing a issue, when they create a group forum , the thread is shown in bbpress forum too.

    I think to remove this is edit through buddypress plugin, but i unsure how.

    #164569
    @mercime
    Participant

    There’s https://wordpress.org/plugins/external-group-blogs/ but not sure if it’s working on latest BP. If you’re going to hire a programmer, might as well have them work on updating/customizing the external group blogs plugin, up to you though.

    #164556
    bp-help
    Participant
    #164547

    In reply to: Capabilities Editor

    Ben Hansen
    Participant

    the problem is that the capabilities do not actually exist like they do for bbpress and wordpress maybe you should try to ask your questions after the next devchat. @jjj mentioned that they do want to add them at some point in the future perhaps you can pitch in if you are eager to make it happen.

    devchat info here:

    https://buddypress.org/support/topic/buddypress-dev-chat/

    #164544
    bp-help
    Participant
    #164540
    @mercime
    Participant

    i running wordpress 3.4.2 with buddypress 1.7.1.


    @hiboy
    Please clarify, do you have a typo above? Makes a difference.
    WP 3.4.2 is compatible with BP 1.6.1
    BP 1.7.1 is compatible with WP 3.5.1

    angelladesigns
    Participant

    You want to go to Settings>>General

    Where it says WordPress Address (URL) and Site Address (URL) you will want to change that to reflect the lowercase folder. I recommend doing this before you change the file name via ftp or you could get locked out. If you do get locked out just change the file name back via ftp to what it was and make the change to lowercase.

    bp-help
    Participant

    @johnjamesjacoby
    Matter of fact the change was made 7 to 8 minutes before my last post above. The link below will reflect that fact. Thanks again sir!
    https://plugins.trac.wordpress.org/browser/atcontent/#trunk/assets

    bp-help
    Participant

    @johnjamesjacoby
    Hi John!
    I just noticed the plugin author somehow manipulated the placement of the plugin obviously because I politely asked them to refrain from this. I hope I am not speaking out of place but this author has consistently updated their readme.txt in an effort to have the top spot on the plugins page. I had to request more than once for this to stop because I don’t believe it is supposed to be a ranking on how many downloads you have, but instead about new or updated legitimate plugin releases. If you look at the reviews I was not the only one that addressed this practice. If I am wrong on this, then I stand corrected. I just think that type of practice is unethical and makes users re-download a plugin that has no legitimate update because they may have seen it at the top, and failed to see the plugin versions and change-log hadn’t changed. Hence the author gets a lot of downloads without legitimate updates but the actual number of downloads does not accurately reflect how many users are actually using that plugin because of the readme.txt file manipulation. Thank you for looking over this John! Here is a link to where the plugin resides now:
    https://wordpress.org/plugins/atcontent/

    #164484
    @mercime
    Participant
    #164478
    NewbieSteve
    Participant

    Hi Rishraj,

    I ran into the same issue this week and I have resolved it on my end. If you’re having the same issue, I hope this helps you.

    My exact issue:
    * My scenario: WordPress + buddypress, trying to log on from the main page through the Buddypress default theme sidebar login.
    * When served off local machine with Xampp: Works
    * When served off professionally hosted remote server: Doesn’t work (408 timeout). However, login directly through wp-login.php did work

    Solution:
    In bp-themes\bp-default\sidebar.php, you will see the code:`<?php do_action( 'bp_sidebar_login_form' ); ?>
    <input type=”submit” name=”wp-submit” id=”sidebar-wp-submit” value=”<?php _e( 'Log In', 'buddypress' ); ?>” tabindex=”100″ />`

    Swap these two lines:`<input type=”submit” name=”wp-submit” id=”sidebar-wp-submit” value=”<?php _e( 'Log In', 'buddypress' ); ?>” tabindex=”100″ />
    <?php do_action( 'bp_sidebar_login_form' ); ?>`

    What I did:
    I used firebug to compare the HTTP POST messages being sent when I log in through the sidebar or directly through wp-login.php. The only difference I saw between the two was:

    Sidebar login order of parameters (broken): login, password, redirect, wp-submit, testcookie
    wp-login.php login order of parameters: login, password, wp-submit, redirect, testcookie

    I don’t know why they’re swapped in the sidebar code. I also don’t know how or why swapping them could result in working in some environments and timing out in others. Can anyone else chime in here?

    #164475

    In reply to: THE LINK IS MISSING

    @mercime
    Participant

    Can anyone PLEASE explain how to get this link back?

    The create group link is in line 21 of this file https://buddypress.trac.wordpress.org/browser/tags/1.7.2/bp-themes/bp-default/groups/index.php – you might have deleted that in your child theme’s /group/index.php

    #164442
    Ben Hansen
    Participant

    thats where bugs feature suggestions and the like are kept track of:

    https://buddypress.trac.wordpress.org/

    @mercime
    Participant
    #164406
    @mercime
    Participant

    @lorimercer re groups in admin area the issue is being addressed in trac starting with this ticket https://buddypress.trac.wordpress.org/ticket/4977

    #164381
    lorimercer
    Participant

    I’m using mingle but this is in the wordpress admin area so why would the theme matter there?

    #164374
    @mercime
    Participant

    but I can’t get the “Create Group” button to show


    @gebgem
    the page title is missing as well. Looking at the Sample Page of your site, there was no page title added to the theme’s page.php file at all.

    BuddyPress will provide another link/way for users to easily create a group/blog via user account menu in admin/toolbar in next version https://buddypress.trac.wordpress.org/changeset/7062 but the page title issue should be fixed by theme developer.

Viewing 25 results - 9,451 through 9,475 (of 22,677 total)
Skip to toolbar