Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 6,751 through 6,775 (of 22,649 total)
  • Author
    Search Results
  • shanebp
    Moderator

    Perhaps the 3rd comment here will solve your problem.

    #229721
    Henry Wright
    Moderator

    Yeah, all BuddyPress sites will have the wp_users and wp_usermeta tables. See here for a description of the WordPress database and here for the BuddyPress one.

    #229704
    shanebp
    Moderator

    No offense, but your code is a real mess.
    And you should be using wpdb instead of mysql_query.
    Please consider hiring a developer. You can post a job here.

    #229545

    In reply to: BudyPress Activation ?

    Eustache44
    Participant

    Hello Henrywright,

    Thanks you for your response.
    I tried what you advise me, nothing works 🙁

    When I sent with WP-Mail-SMTP, it’s what I have. Maybe that can give you more informations:

    The result was:
    bool(true)
    The full debugging output is shown below:

    object(PHPMailer)#5937 (69) {
      ["Version"]=>
      string(5) "5.2.7"
      ["Priority"]=>
      int(3)
      ["CharSet"]=>
      string(5) "UTF-8"
      ["ContentType"]=>
      string(10) "text/plain"
      ["Encoding"]=>
      string(4) "8bit"
      ["ErrorInfo"]=>
      string(0) ""
      ["From"]=>
      string(19) "club@ufpcyclisme.fr"
      ["FromName"]=>UFP Cyclisme"
      ["Sender"]=>
      string(0) ""
      ["ReturnPath"]=>
      string(0) ""
      ["Subject"]=>
      string(45) "WP Mail SMTP: Test mail to k44@gmail.com"
      ["Body"]=>
      string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin."
      ["AltBody"]=>
      string(0) ""
      ["Ical"]=>
      string(0) ""
      ["MIMEBody":protected]=>
      string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin.
    "
      ["MIMEHeader":protected]=>
      string(349) "Date: Tue, 25 Nov 2014 15:21:33 +0000
    Return-Path: 
    From: UFP Cyclisme 
    Message-ID: 
    X-Priority: 3
    X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/)
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    "
      ["mailHeader":protected]=>
      string(78) "To: k44@gmail.com
    Subject: WP Mail SMTP: Test mail to k44@gmail.com
    "
      ["WordWrap"]=>
      int(0)
      ["Mailer"]=>
      string(4) "mail"
      ["Sendmail"]=>
      string(18) "/usr/sbin/sendmail"
      ["UseSendmailOptions"]=>
      bool(true)
      ["PluginDir"]=>
      string(0) ""
      ["ConfirmReadingTo"]=>
      string(0) ""
      ["Hostname"]=>
      string(0) ""
      ["MessageID"]=>
      string(0) ""
      ["MessageDate"]=>
      string(0) ""
      ["Host"]=>
      string(9) "localhost"
      ["Port"]=>
      int(25)
      ["Helo"]=>
      string(0) ""
      ["SMTPSecure"]=>
      string(0) ""
      ["SMTPAuth"]=>
      bool(false)
      ["Username"]=>
      string(0) ""
      ["Password"]=>
      string(0) ""
      ["AuthType"]=>
      string(0) ""
      ["Realm"]=>
      string(0) ""
      ["Workstation"]=>
      string(0) ""
      ["Timeout"]=>
      int(10)
      ["SMTPDebug"]=>
      bool(true)
      ["Debugoutput"]=>
      string(4) "echo"
      ["SMTPKeepAlive"]=>
      bool(false)
      ["SingleTo"]=>
      bool(false)
      ["SingleToArray"]=>
      array(0) {
      }
      ["do_verp"]=>
      bool(false)
      ["AllowEmpty"]=>
      bool(false)
      ["LE"]=>
      string(1) "
    "
      ["DKIM_selector"]=>
      string(0) ""
      ["DKIM_identity"]=>
      string(0) ""
      ["DKIM_passphrase"]=>
      string(0) ""
      ["DKIM_domain"]=>
      string(0) ""
      ["DKIM_private"]=>
      string(0) ""
      ["action_function"]=>
      string(0) ""
      ["XMailer"]=>
      string(0) ""
      ["smtp":protected]=>
      NULL
      ["to":protected]=>
      array(1) {
        [0]=>
        array(2) {
          [0]=>
          string(18) "kgodin44@gmail.com"
          [1]=>
          string(0) ""
        }
      }
      ["cc":protected]=>
      array(0) {
      }
      ["bcc":protected]=>
      array(0) {
      }
      ["ReplyTo":protected]=>
      array(0) {
      }
      ["all_recipients":protected]=>
      array(1) {
        ["k44@gmail.com"]=>
        bool(true)
      }
      ["attachment":protected]=>
      array(0) {
      }
      ["CustomHeader":protected]=>
      array(0) {
      }
      ["lastMessageID":protected]=>
      string(50) ""
      ["message_type":protected]=>
      string(5) "plain"
      ["boundary":protected]=>
      array(3) {
        [1]=>
        string(35) "b1_c85d5f49caeb8fcb01e07b2d5aa70e6f"
        [2]=>
        string(35) "b2_c85d5f49caeb8fcb01e07b2d5aa70e6f"
        [3]=>
        string(35) "b3_c85d5f49caeb8fcb01e07b2d5aa70e6f"
      }
      ["language":protected]=>
      array(0) {
      }
      ["error_count":protected]=>
      int(0)
      ["sign_cert_file":protected]=>
      string(0) ""
      ["sign_key_file":protected]=>
      string(0) ""
      ["sign_key_pass":protected]=>
      string(0) ""
      ["exceptions":protected]=>
      bool(true)
    }
    #229499
    Henry Wright
    Moderator

    It wouldn’t be BuddyPress documentation you’d need, rather, WordPress documentation. Take a look at the articles on user meta, specifically look at the get_user_meta() and update_user_meta() functions.

    The general idea would be to increment a user’s share count each time something is shared by that user.

    Refs:

    https://codex.wordpress.org/Function_Reference/update_user_meta
    https://codex.wordpress.org/Function_Reference/get_user_meta

    #229496
    djsteveb
    Participant

    @mika909 – I do not think anyone at the buddypress forums is going to help you with this. When trying to get a particular plugin to work with BP it is best to read the instructions with that plugin ( wordpress . org/plugins/paid-memberships-pro/faq/ )

    or ask in the support forums for said plugin ( https://wordpress.org/support/plugin/paid-memberships-pro )

    Although the FAQ for this plugin links to the premium plugin site – which basically says figure it out on your own.. or register there free to get access to extra documentation, or pay $297 to get extra help and up to one hour of consultation / help in setting this plugin up.

    This is really not a buddypress how to / troubleshooting thing. If there is a way to mark this thread as resolved you should do that.

    #229495
    Henry Wright
    Moderator

    Hi @lbpp

    It’s definitely possible but will need some custom code (unless you can find a plugin in the Plugin Directory?)

    #229484
    djsteveb
    Participant

    I use a similar thing.. plugin is called “good question” (I think) – it does not have radio buttons last I checked.. but can do multiple questions and answers I think.
    https://wordpress.org/plugins/good-question/

    Cartographer
    Participant

    Hi again,

    I just found the problem and wasn’t the 4.0.1 version of WordPress.

    Just for your info see here: https://bbpress.org/forums/topic/wp-search-engine-visibility-causes-issue-in-displaying-bbpress-in-bp-activity/

    Thank you!

    #229460
    djsteveb
    Participant

    Might want to consider axing the s2 member if you are never going to charge and look at press permit for the restrictions. ( http://presspermit.com/press-permit-overview/ (also in the wordpress plugin repo)

    I have played with both s2member and press permit on a couple of sites. I found that s2member is not needed for my free site.

    #229451
    aaronkine
    Participant

    I used a plugin called WordPress User Frontend Pro and their Buddypress addon. I also used this plugin to create new User Roles “Capability Manager Enhanced”

    Cartographer
    Participant

    Thank you @shanebp for checking it

    In my case the problem occurred after updating WordPress to the 4.0.1. Everything was ok before that.

    I didn’t change anything (e.g. plugins).

    Any advice about what I could check?

    #229432

    In reply to: Language

    danbp
    Participant
    Niels Pilon
    Participant

    Lol, probs for knowing many Dutch soccer players.

    Well actually, the site I’m working on has 127 members and many of them have ‘van’, ‘de’, or ‘van der’ in their last name and the sorting is almost all fine. There are a few mis matches but that’s probably our own fault due to incorrect registration in the WordPress backend.

    It also goes wrong when members have a double first name but I guess that also depends on the registration in the backend. But I still have to check this.

    Niels Pilon
    Participant

    Nope, it returns an error that there are no members to display. I guess that I could replace ‘Robin van Persie’ with something blank like this

    substr( strstr( ' ', ' ' ), 1 )

    Just to clarify, this is the full code in my functions.php to sort the members:

     function alphabetize_by_last_name( $bp_user_query ) {
        if ( 'alphabetical' == $bp_user_query->query_vars['type'] )
            $bp_user_query->uid_clauses['orderby'] = "ORDER BY substring_index(u.display_name, ' ', -1)";
    }
    add_action ( 'bp_pre_user_query', 'alphabetize_by_last_name' );
     
    // To reflect the alphabetical sorting of the member directory, you
    // could also format the names to show the last name first. Here is
    // a helper function to format names as follows: Last, First Middle
    // Etc.
    //
    // To use this function every time a user's name is shown or queried,
    // simply add it as a filter:
    //
    // <code>add_filter ('bp_get_member_name', 'format_last_name_first' );</code>
    //
    // To only reformat the name in the member directory, change your
    // members/members-loop.php file in your (child)theme. Look for
    // <code>bp_member_name()</code>
    // and replace it with
    // <code>echo format_last_name_first ( bp_get_member_name() );</code>
     
    /**
     * Helper function for formatting a name: Last, First Middle Etc.
     *
     * @param string $name
     * @return string Formatted name
    **/
    
    function format_last_name_first( $name ) {
        if ( $first_space = strrpos( $name, " ") )
            $name = substr( $name, $first_space + 1 ) . ", " . substr( $name, 0, $first_space );
        return $name;
    }
     
    // BONUS: To make alphabetical sorting the default sorting, use the
    // function below. 
    //
    // In order for this to work properly, <code><option value=&quot;alphabetical&quot;></code>
    // must be the first option for the members-order-select in
    // members/index.php.
     
    function sort_members_alphabetically( $qs = '', $object = false ) {
        if( $object != 'members' ) //for members only
            return $qs;
     
        if ( empty( $qs ) || ! strpos( $qs, "type=" ) ) {
            $args = wp_parse_args($qs);
            $args['type'] = 'alphabetical';
            $args['action'] = 'alphabetical';
     
            $qs = build_query( $args );
        }
     
        return $qs;
    }
    add_action( 'bp_ajax_querystring', 'sort_members_alphabetically', 11, 2 );

    I guess that members are sorted by the default WordPress first and last name fields right? Just because we’ve added some custom fields to the member profile pages to split their names in first name, ‘surname prefix (it’s for words like ‘van’ ‘de’) and last name. Not all members have a surname prefix though.

    #229279
    MaWe4585
    Participant

    i think i found my problem.

    in bp-core-functions.php there is this part:

    // Nonce check failed
    if ( empty( $result ) || empty( $action ) || ( strpos( $matched_url, $home_url ) !== 0 ) ) {
    $result = false;
    }

    i wrote $matched_url and $home_url to the log-file and TADAA
    $matched_url = http://localhost:40080:40080/wordpress
    $home_url = http://localhost:40080/wordpress

    Yes, twice the port in matched_url.
    This seems odd to me, can anyone say if it is correct this way, or if it is a bug?

    #229237
    shanebp
    Moderator

    This will require good coding skills. You may need to hire a developer. Or maybe somebody will be willing to create the code for you.

    To any devs: BP 2.2 will include ‘BP_XProfile_Query‘ to make these kinds of tasks much easier !!!

    #229223
    Hugo Ashmore
    Participant

    At this stage we can’t help as you provide no idea of what sort of issue you are having; this plugin author you contacted replied to you thusly You might want to contact one of the developers of the plugin that is causing the problem and send them the information in your console no information though!

    Not sure why you have arrived at the conclusion BuddyPress is the issue here though, BP is coded very tightly to WP standards and is less a plugin and more an extension of WP functionality.

    You actually list a number of fairly complex plugins that you consider cause the issue and seem to have posted this question on bbPress forum their response is going to be the same as ours at this stage without much more information, but frankly if one states a number of plugins appear to cause an issue on an individual basis then the one common denominator would likely be the problem and in this case that’s the bol.com plugin, but that’s not pointing the finger so to speak at bol but the resolution will lie with bol rather than bbPress or BuddyPress.
    https://wordpress.org/support/topic/produktlink-doesnt-work

    #229209
    Security
    Participant

    Hi i think i know whats happening here i was working on status theme to make it work with the latest versions of both buddypress and wordpress and i faced the similar issue so this is what i did to resolve it goto wp-content>>themes>>yourthemename>>members folder>>single>>home.php and add these lines of code there

    elseif ( bp_is_user_notifications() ) :
    					locate_template( array( 'members/single/notifications.php' ), true );	
    

    just before this kinda statement // If nothing sticks, load a generic template
    next create a file named notifications.php in wp-content>>themes>>yourthemename>>members folder>>single folder and add these lines to it

    <?php
    
    /**
     * BuddyPress - Users Notifications
     *
     * @package BuddyPress
     * @subpackage bp-legacy
     */
    
    ?>
    
    <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    	<ul>
    		<?php bp_get_options_nav(); ?>
    
    		<li id="forums-order-select" class="last filter">
    			<?php bp_notifications_sort_order_form(); ?>
    		</li>
    	</ul>
    </div>
    
    <?php
    switch ( bp_current_action() ) :
    
    	// Unread
    	case 'unread' :
    		bp_get_template_part( 'members/single/notifications/unread' );
    		break;
    
    	// Read
    	case 'read' :
    		bp_get_template_part( 'members/single/notifications/read' );
    		break;
    
    	// Any other
    	default :
    		bp_get_template_part( 'members/single/plugins' );
    		break;
    endswitch;

    and try to reload your site now your problem should be solved.
    Note: only create notifications.php if its not already there and please backup your site before making these changes

    #229207
    shanebp
    Moderator

    Re: 2. Importing s2member custom fields to buddypress fields
    Instead of, for now, editing the codex page, please note the args parameter for add_action.

    So the ‘2’ here is the arguments parameter. add_action('wp_login','s2_profile_field_update',10,2);
    So the hook provides 2 arguments – very handy & useful.
    But your example doesn’t use them in the function s2_profile_field_update.
    You can use the $user arg instead of $current_user and thereby get rid of that global.
    Use this to see the data in $user:

    function hook_arg_display( $user_login, $user ) { 
       var_dump( $user ); 
    }
    add_action('wp_login','hook_arg_display',10,2);

    imo: There is no Option 1.

    #229196
    Security
    Participant

    Hi @icaroferreira try theme my login plugin to bring the login process to front end then use custom admin bar plugin to remoove or add links on your admin bar https://wordpress.org/plugins/custom-admin-bar/screenshots/

    #229156
    shanebp
    Moderator

    I wrote a function that would check a users information when they login.

    Your function runs on every page load.
    You could use this hook instead to run only on login. Note that the hook provides all the WP_User info that you need in the $user parameter.

    For the user_id gathering, bp_parse_args is the way to go.

    An s2member codex page would be very useful. It will be editable.

    #229153

    In reply to: Invalid activation key

    telatabi
    Participant

    I found a temporary solution for this problem.
    https://wordpress.org/plugins/bp-disable-activation-reloaded/

    This plugin provides “disable activation e-mail”. User registers the form and directly go to main page. Activation code is not necessary.

    But I hope, someone find real solution. I looked all forum the same problems, but there isn’t any solve.

    #229144
    Hugo Ashmore
    Participant

    @myg0t Thanks for sharing that with the community, S2 Member has wide use so this ought to be useful to people.

    One point though it’s best not to advise that people edit a core file /buddypress/bp-templates/bp-legacy/..etc BP has a fairly well defined template hierarchy overload allowing files to be copied to the theme or child theme, those are the copies one should edit.

    Another minor point rather than have to edit & pass the arguments in the template could bp_parse_args() perhaps work for this?
    Using bp_parse_args() to filter BuddyPress template loops

    In respect of the profile data would not setting the user visibility options on the profile field/s in the backend not work to provide the privacy for address fields, just a thought but I may have missed the point of this aspect.

    Lastly this could make a nice user example guide for the BP codex if you’d care to post it there and we’ll slot it under a section appropriate.

    #229134

    In reply to: buddypress rtl

    Henry Wright
    Moderator

    Hi @zemenik

    Have you tried searching the WordPress Themes Directory? Perhaps search for something like “rtl language support” or just “rtl” and look through the results retuned for themes that are compatible with BuddyPress.

Viewing 25 results - 6,751 through 6,775 (of 22,649 total)
Skip to toolbar