Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 5,976 through 6,000 (of 22,683 total)
  • Author
    Search Results
  • #238269
    Henry Wright
    Moderator

    Hey @danbp,

    WordPress provides a function for that. Check out wp_filter_nohtml_kses(). It strips all HTML from the string you provide so there’s no need to use preg_replace().

    function hellowed_remove_html_private_messages( $message ) {
    
        $message = wp_filter_nohtml_kses( $message );
        return $message;
    }
    add_filter( 'messages_message_content_before_save', 'hellowed_remove_html_private_messages' );
    #238266
    paixaofileto
    Participant

    gave the following error:

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘: 1)’ at line 1]
    SELECT id, user_id, field_id, value, last_updated FROM wp_bp_xprofile_data WHERE field_id = 2 AND user_id IN (displayed: 1)

    Read on the internet that I must pass the id as parameter for bp_core_fetch_avatar:

    <?php
    $userid = bp_loggedin_user_id();
    echo bp_core_fetch_avatar( array( ‘item_id’ => $userid) );
    ?>

    But do not know where I have to put this code or how to implement in my code. Can you help me?

    #238251
    danbp
    Participant

    @fugu78,

    you are using joomla on the mainsite and WordPress on the subdomain.
    Question is: is WP sharing the same DB as joomla or have you a complete separate install (db & cms) for your WP/BP site ?
    Which type of WP install do you use ? Single or network ? (more about)
    Are mainsite users and wp site users the same people ?

    BuddyBoss has his own support forum. You probably have better to ask there directly.

    #238248
    fab_pj
    Participant

    Hi Dan,
    I tried all the above, and nothing seems to be working. Now, as you will understand for ‘BuddyPress Support’ Theme I find it odd to have such a big bug after having re-activated and everything. I am resistant at completely reinstalling unless it’s the last straw, but I am also quite demotivated as the theme just sent me this answer:

    “This is not a theme issue, as you have updated only the wordpress. Also updating wordpress will not delete any records in your DB. Please contact buddpress support team regarding the issue.”

    Hence, it’s not them or the theme, but it’s something within BuddyPress. I’d rather not have to change plugin options with 400+ users on my platform, as I really like the flexibility BuddyPress gives me. Hope you understand.

    Best,
    Fab

    #238206
    danbp
    Participant

    Hi @medianp,

    just tested the plugin on a local network install and it works.

    There is just a little count error (missing arg 2) in one of the file.
    To solve this, add $count at the end of line 107 in bp-community-stats.php
    $count = $wpdb->get_var( $wpdb->prepare( "SELECT count(a.id) FROM {$bp->activity->table_name} a WHERE type = 'activity_update' AND a.component = '{$bp->activity->id}'", $count ) );

    Plugin author warned: Total Posts and Comments not support in multisite/network mode

    Search the WP plugin repo to get the missing stats.

    #238199
    leanneoleary
    Participant

    Hi, I had seen that article but then couldn’t find the plugin within wordpress so was unsure of using it. I will give it a go though if that’s the only solution available, thanks.

    UPDATE
    ——-
    Just tried uploading it to wordpress but get errors and looking at the comments on the page of the plugin looks like it hasn’t worked since 2012/13. 🙁

    Henry Wright
    Moderator

    Hi @winnergirl

    Does BuddyPress require its own independent WP site?

    No. BuddyPress works just like any other plugin you might install on your WordPress website. You should just be able to click ‘activate’.

    zeesh49
    Participant

    @quaelibet and @danbp can you provide details of how you setup a vhost? I googled and have been able to setup a vhost but it only access the xampp page and not the wordpress page.

    My host file contains the following:
    127.0.0.1 buddypress.local
    ::1 buddypress.local

    My httpd-vhosts.conf file contains the following:
    <VirtualHost *:80>
    DocumentRoot c:/xampp/htdocs
    ServerName localhost
    </VirtualHost>
    <VirtualHost *:80>
    DocumentRoot c:/xampp/htdocs
    #DocumentRoot c:/vhosts/buddypress.local
    ServerName buddypress.local
    </VirtualHost>

    when i run the URL: http://buddypress.local, it resolves to http://buddypress.local/xampp/ page
    but when I run the URL http://buddypress.local/wp (my wordpress folder name is ‘WP’) it says page cannot be displayed. this is in internet explorer.

    kindly help.

    #238157
    leanneoleary
    Participant

    I am using Cinematix (http://themeforest.net/item/cinematix-buddypress-theme/4959387) and haven’t customised it in any way.

    I have found the default HINT for wordpress is the following:

    <?php _e(‘Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! ” ? $ % ^ & ).’); ?>

    I assume this is what is being used? If so I can just add this password hint but what file do I need to edit?

    Many thanks for your help.

    caniwigirl
    Participant

    I am running the current versions of everything as of today’s date… BuddyPress 2.2.3, bbPress 2.5.7 on WordPress 4.1.1

    The problem I am having is that, for the most part, I only want either Public or Hidden groups with their associated forums.

    The directory listing only displays the public groups and the forums only display the public forums.

    As a Site Admin and Keymaster, I can’t even see the hidden groups (although the count increases to show the additional number of hidden groups). In fact, none of the hidden groups show under the ‘My Groups’ tab for me or any user who is a member of a particular hidden group (although the count indicates that they area member of this non-visible group that they can’t get access to). I can see the forums, however.

    Essentially, the Hidden function appears to not be working for groups and forums as neither admins nor members of them can gain access without being provided with the URL.

    #238098
    danbp
    Participant

    Thnak you.
    Have you a test site or a local install where you can make some test ?

    https://buddypress.org/support/topic/when-asking-for-support-2/

    I tried to change role and other fields in new members, but nothing happened.

    On a single regular install, all BuddyPress members have the default role you assigned to new users in WP settings > general. There is nothing to change at this level when they don’t show up on member’s directory.

    If you need some fake BuddyPress users and content, i suggest you to use BuddyPress Default Data, which is great to control if anything is working correctly.

    Deactivate your theme and all other plugins except BP and use Twenty Fifteen while testing.
    Activate also wp_debug in wp-config, and see if you get somme php errors.

    #238095
    danbp
    Participant

    hum… difficult to say at t he moment, as you use 2 different site apparently.

    hxxp://www.anadercategori.org/ and hxxp://pallavoloromana.it/anadercategori/squadre/test7/

    Which site belongs your members to ? Where is buddyPress installed ?

    BuddyPress does not work on installations where you give WordPress its own directory.
    Read here: https://codex.buddypress.org/getting-started/

    #238087
    danbp
    Participant
    #238086
    danbp
    Participant

    BP Reshare is a BuddyPress plugin to allow members to reshare their activities !

    It wasn’t made to reshare views.


    @imath
    is working on many other porjects, including BuddyPress. So he’s very busy and this plugin is now “old” and need probably some refactoring.
    Sorry for you, but don’t expect much at this time.

    Consider
    https://wordpress.org/plugins/social-articles/

    #238085
    danbp
    Participant

    First off, all active BP components should have a assigned page. (mandatory)
    This page must be blank, without any template model or parent page.

    As you use Twenty Eleven via a child theme, read here:
    https://codex.buddypress.org/themes/bp-theme-compatibility-and-the-wordpress-default-themes/twenty-eleven-theme/ How to get the sidebar is explained there.

    Where is WP installed ?
    Site url is vatpt1.thevillageblog.com/
    Blog seems to be in /villageatthepark/

    #238083
    gremelle
    Participant

    I’m looking for the same functionality.

    This is what I’ve found so far: https://github.com/imath/bp-reshare

    It’s from this post: https://buddypress.org/support/topic/user-activity-share-plugin-for-wordpress-buddypress/

    Let’s hope this functionality will get more attention, and implemented.

    #238082
    danbp
    Participant

    Have you changed your tables prefix or do you use the default wp_ ?
    Do you have a site admin account with “admin” as username ? If yes to both, change this.

    https://codex.wordpress.org/Hardening_WordPress

    #238047
    danbp
    Participant

    Shouldn’t a User promoted to Group Moderator be able to moderate content in that Group, regardless of their WP Role and capabilities?

    Sounds logic, but No. See documentation in bp-core/bp-core-caps.php for the “why”. 😉

    Since BP 1.6, group moderators can only delete, move, spam group forum content.

    External reference.

    #238039
    shanebp
    Moderator

    Are you sure you’ve translated this label: Friends <span class="%s">%s</span>

    Did you include this Sources Keyword when creating the translation .mo in poEdit: _x()

    The Friends label is generated by __() and _x(), depending on the context.

    More info re keywords: http://www.cssigniter.com/ignite/wordpress-poedit-translation-secrets/

    #238027
    Henry Wright
    Moderator

    Sure!

    See here for where your filter will be applied. Here is documentation on apply_filters_ref_array() (it’s almost identical to apply_filters()). And you’ll need to use add_filter() to hook your filter function to the hook.

    If you’re new to filter hooks, try searching for some tutorials, there’s so much info available already. Hope this info helps!

    #238024
    Henry Wright
    Moderator

    Was my suggestion any use?

    Basically, I would like to call the activity stream of an author of a page.

    I understood that to mean “Output an activity loop on a WordPress page limited to activity items belonging to the page author”.

    If my understanding is wrong, then please let me know.

    #238008

    In reply to: Where are loops put?

    @mcuk
    Participant

    Hi @danbp,

    Thanks for reply. Yeah i know about those. I meant where would I put custom loops with my own filters etc. The wordpress codex says to put them in index.php. I assume that for Buddypress that would be:

    bp-legacy>buddypress>activity>index.php

    Then call it within bp-custom.php?

    #237997
    @mcuk
    Participant

    haha, I’ll take your 2 days and raise you another 3!

    If i get anywhere I will defo post it here. Haven’t found anything on the forums that’s helped so far (at least anything that I recognise as being a solution). I’m fairly new to php. Been through the plugin files and found a number of functions which are likely being used (not 100%), but just not able to call them to the new tab I’ve created.

    Currently working through reading Henry’s links above on the WordPress Codex and will have a fiddle around.

    #237987
    Henry Wright
    Moderator

    Hi @urbanfix

    Here’s the standard loop taken from here.

    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
        <?php while ( bp_activities() ) : bp_the_activity(); ?>
     
            <?php locate_template( array( 'activity/entry.php' ), true, false ); ?>
     
        <?php endwhile; ?>
    <?php endif; ?>

    If you scroll down the page and take a look at filtering options, you’ll see user_id. So your loop will look something like this:

    $post = get_post( get_the_ID() );
    $filter = '&user_id=' . $post->post_author;
    
    if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . $filter ) ) :
        while ( bp_activities() ) : bp_the_activity();
            locate_template( array( 'activity/entry.php' ), true, false );
        endwhile;
    endif;

    Note: I haven’t tested.

    Caveat: This must be used within The Loop.

    #237980
    Ben Hansen
    Participant

    sorry i don’t know any plugins or how to hack it but i think that would make a great feature suggestion for core if you can please add it to trac here:

    https://buddypress.trac.wordpress.org

    if not let me know and i’ll add it.

    🙂

Viewing 25 results - 5,976 through 6,000 (of 22,683 total)
Skip to toolbar