Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 3,226 through 3,250 (of 22,614 total)
  • Author
    Search Results
  • #269331
    HDcms
    Participant

    Hello Gorges
    And thank you 🙂

    In fact, I want to hide these tabs to everyone except for a wordpress role and the super admin
    It works (a priori) but do not hesitate to suggest an improvement.
    I am not sure of my code!

    Regards

    add_action('wp_head', 'HD_maj_activite');
    function HD_maj_activite() {
    	$bp_loggedin_user_id = bp_loggedin_user_id();
    	$user_info = get_userdata($bp_loggedin_user_id);
    	$user_roles = $user_info->roles;
    	if (is_super_admin() || in_array('membre2', $user_roles)) 
     	return ;
    	$output .= '<style type="text/css">body.activity.directory #activity-friends {display: none;}</style>';
    	$output .= '<style type="text/css">body.activity.directory #activity-groups {display: none;}</style>';
       echo $output; // 
    }
    #269328
    Boone Gorges
    Keymaster

    You could try using a different plugin for switching the login page. https://wordpress.org/plugins/search/login+page/ The one I’ve seen in use before is Theme My Login. Maybe it will work better with your setup.

    #269306

    In reply to: Organic Square theme

    peter-hamilton
    Participant

    I am aiming to make this a modern fully functional forum website that does offer the same if not more functions then most commercially available alternatives and prove that BBpress is capable of providing everything we need to create a full-fledged forum.

    As I am not a programmer I have been cutting and pasting for so long that I now start to get a basic understanding of php, but still only cutting pasting and making minor adjustments.

    I am almost ready incorporating all features I need, as soon as that is done I will once again rewrite all code to tidy it up and try to make it into a theme for others to use.

    I hope my effort shows those looking for software to make a forum that BBPress is capable and with wordpress in the background potentially better then anything you can buy.

    Peter Hamilton
    i-am-peter.com

    Kookidooki
    Participant

    Hello Boone,

    Thank you for your input.

    I’ve checked permission status of uploads: 755.

    Cleared all caches, Cloudflare, and pauzed SSL but still no luck with the posting of updates or uploading of images in posts, activity stream or in Media Library (shows a blank page, no thumbnails, etc.).

    But on top of this I’ve found other (probably related) problems:

    1. Even our administrators couldn’t create new user accounts or update existing accounts. All we see is an avatar, no name, email, no edit,etc. See image below:

    users

    2. Database error:
    WordPress database error: [Duplicate entry ‘0’ for key ‘PRIMARY’] 
INSERT INTO kuyrsd79sdn_bp_activity ( user_id, component, type, action, content, primary_link, date_recorded, item_id, secondary_item_id, hide_sitewide, is_spam ) VALUES ( 82, ‘activity’, ‘activity_update’,

    MySQL said:
    #1062 – Duplicate entry ‘0’ for key ‘PRIMARY’

    3 SQL query:


    — Indexes for table kuyrsd79sdn_options

    ALTER TABLE kuyrsd79sdn_options
    ADD PRIMARY KEY (option_id),
    ADD UNIQUE KEY option_name (option_name),
    ADD KEY wpe_autoload_options_index (autoload)

    Any idea how to fix this?

    #269276
    Boone Gorges
    Keymaster

    Oy, this is not a good piece of advice from the Avada support folks. You cannot put PHP into a text widget. I gave you a snippet of PHP with the understanding that it’d have to be added through code somehow.

    If you haven’t got the resources to build a proper custom widget (no worries if not, it is a bit cumbersome to do), you may try a plugin like https://wordpress.org/plugins/php-code-widget/. You should be able to paste the text in question into one of those widgets and have it work.

    Widget-friendly shortcodes for BP content is a good idea for a future enhancement. I’ve added a comment to an existing ticket we have to track a related idea. https://buddypress.trac.wordpress.org/ticket/7159#comment:2

    Boone Gorges
    Keymaster

    The fact that both of these items are happening suggests that there might be a problem with folder permissions for WP uploads. Test to see whether it’s possible to upload an item through Dashboard > Media. If not, you may want to look through a resource like this https://codex.wordpress.org/Changing_File_Permissions to see whether anything has changed on your upload directories.

    #269274
    Boone Gorges
    Keymaster

    Very interesting question.

    It’s not currently possible to do this through the regular activity API. We’ve hardcoded ASC into the comment query: https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-activity/classes/class-bp-activity-activity.php?marks=1510#L1509

    I think that it would be a good enhancement request to add something to the query API that allows for these items to be reversed. If you’re interested, I encourage you to open a ticket at https://buddypress.trac.wordpress.org.

    In the meantime, here’s a clunky workaround:

    
    add_filter( 'bp_has_activities', function( $has ) {
    	global $activities_template;
    
    	foreach ( $activities_template->activities as &$a ) {
    		$a->children = array_reverse( $a->children );
    	}
    
    	return $has;
    } );
    

    This will only affect top-level comments; you’d need something recursive to do deeper levels. And you may want to limit this to front-end queries, or in the main activity directory, or something like that. But it’s a basic technique that should give you a sense of how to solve this in the short term.

    #269258
    Arize Nnonyelu
    Participant

    Rename wp-login. Well, its a community site where everybody is logging in, generation community sites comes with Login, not wp-admin. And worse amateurs will know that you are running WP and think there is nothing different from your big website and their blog.

    #269252
    plumbingsuperstore
    Participant

    Boone howzit bud! 🙂 Thanks for the reply! Much appreciated!!!

    I went into my cpanel, fortunately these guys I’m hosting with have auto saves on and I could restore my site to a previous time. WHOOOOHOOOO!!!!! So happy I chose them as my host provider!!!!

    There is the fear though that this might occur again!… so running the neglected back up on my side will occur before every plugin installed or major settings change…. discipline is the way forward!

    Ok prevention is better than cure right!?

    So here goes the story as good as I can explain in my no programmer/developer language…

    I was in wordpress… Installing Buddypress… I opened a second browser tab so I can view all the changes etc. that I made tweaking and installing Buddyp. (..aaand gloating cause I actually followed instructions to the letter and it all worked out just peachy!) Buddypress installed even downloaded the fake content plugin to see the end result in all it’s glory.. 🙂

    I had to take it just one step further to satisfy this little voice in my head!

    To test Buddyp. as a potential new register.

    I logged out as admin….

    Unknowingly
    all Sh*t broke loose just then….

    I created a new account as a new user… completed in the registration form with a fresh email account… Buddyp. sent me the verify link to my email account.

    Clicking on the verify email account link… gave me a – page not found – and re-directed be back to the login up page, once there telling me in red highlight – there is no account with those details…

    Frantically entering the new registration details just kept me in the same loop…

    Then deciding ok… to use my admin credentials to get back into either Buddyp. or my site backend…

    To no avail… admin credentials did not do the trick… I was locked out completely…!

    My std WordPress email credentials meant squat!

    My main concern is, I need to to fix this…
    I a new user register with my site the same think will occur to them…

    Being redirected back to the login and password block after clicking and confirming their email address….

    I am not sure how to fix this!

    I hope this makes sense… ?

    Once again… thank you for the response to help out… would you know how to fix said issue?

    Regards

    W

    #269246
    Boone Gorges
    Keymaster

    Hi @ovizii – Changing to a separate theme just because of a single styling issue is a pretty big step. If you’re generally happy with the way your site looks and works, it may be worth putting a bit of time into solving the specific issue, rather than looking for a larger switch.

    If you do want to change, BuddyPress now supports a feature called “theme compatibility”, which means that it works well in most WordPress themes – whether or not they have specific support for BuddyPress. A nice place to start is the WP default themes (Twenty Sixteen, etc), some of which are particularly well suited to running a BuddyPress site.

    margmacd
    Participant

    Many thanks for this helpful reply. Presumably, creating a plugin for the code (http://webcraft.tools/how-to-create-a-simple-wordpress-plugin/) would work just as well, assuming that there are no errors.

    #269242
    Boone Gorges
    Keymaster

    Group descriptions are filtered at the time of saving, via wp_filter_kses(), and at the time of display using bp_groups_filter_kses(). https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-groups/bp-groups-filters.php#L35

    It seems like a bug that we do different things at the time of save vs the time of display, but there you have it.

    I’d suggest removing the groups_group_description_before_save filter, replacing with bp_groups_filter_kses, and then filtering bp_groups_filter_kses to add allowed tags (as @r-a-y describes above). https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-groups/bp-groups-filters.php?marks=117#L87

    #269210
    Boone Gorges
    Keymaster

    Hi @Sander – Thanks for reporting this. It looks like a legitimate bug. I’ve opened a ticket to track it: https://buddypress.trac.wordpress.org/ticket/7631

    While we try to figure out a way to make this work better, you can work around the issue by disabling autolink for the field in question. Dashboard > Users > Profile Fields > Edit, and look for the Autolink metabox at the right.

    #269209
    Boone Gorges
    Keymaster

    Thanks for the report, @onedevstudios. This sounds like it’s probably a bug. Could you please open a ticket at https://buddypress.trac.wordpress.org with detailed instructions to reproduce? Thanks!

    #269200
    Boone Gorges
    Keymaster

    I’m unable to test with the proprietary Magnum theme, but with the free version of Optimizer, I’m unable to reproduce the problem. Group member searches are working as expected: https://postimg.org/image/axag5nsjr/

    Here’s the relevant part of BP’s JavaScript: https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-templates/bp-legacy/js/buddypress.js?marks=863#L848 The first thing to check is that your theme is actually requiring buddypress.js (or buddypress.min.js) out of the buddypress theme directory; if not, it’s possible you’re running an out-of-date version bundled with a theme or something. Then, you may need to deminimize (or set define( 'SCRIPT_DEBUG', true );) to debug. Then, check to see whether this bit of script is actually able to find the search_terms element. It’s possible that your theme, or some other plugin, is modifying the markup so that the selectors or the element hierarchy has changed.

    naomibuch
    Participant

    Hi Again,

    This is a list of all my plugins:

    WP Mail SMTP
    WP Crontrol
    WP All Import Pro
    WordPress Mass Email to users
    WordPress Importer
    W3 Total Cache
    tagDiv Social Counter
    tagDiv Composer
    SiteOrigin Widgets Bundle
    Shortcodes Ultimate
    rtMedia for WordPress, BuddyPress and bbPress
    RSS Importer
    Remove Dashboard Access
    PushLive – Staging Site to Live Site in One Click
    Page Builder by SiteOrigin
    Newsletter
    Knowledge Base for Documents and FAQs
    Invite Anyone, by Boones 🙂
    iframe
    Hide This
    Hide Admin Bar
    Easy Affiliate Links
    Contact Form 7
    Buddypress Shortcodes
    Buddypress Friend of a Friend (FOAF)
    BuddyPress Follow
    BuddyPress Extended Friendship Request
    BuddyPress Edit Activity
    BuddyPress Block Activity Stream Types
    BuddyPress Activity ShortCode
    BuddyPress Activity Privacy
    BuddyPress Activity Filter
    BuddyPress Activity Autoloader
    BuddyPress
    BP Show Friends
    Amazon Auto Links
    All In One SEO Pack Pro
    Akismet Anti-Spam
    Advanced Profiles Plugin 2.0 for BuddyPress
    Activity Reactions For Buddypress

    #269191
    wordplus
    Participant

    Hi there to all!

    For those who searching for the messaging plugin, checkout this:

    BP Better Messages

    #269187

    In reply to: Armember badges

    Boone Gorges
    Keymaster

    I don’t have access to the proprietary ARMember plugin, so I can’t say anything about that.

    Here’s one way to show arbitrary content in a BP user’s profile header:

    
    add_action( 'bp_before_member_header_meta', function() {
    	$user_id = bp_displayed_user_id();
    	echo 'Here is the badge for user ' . $user_id;
    } );
    

    You’ll need to use the $user_id to fetch the ARMember badge and display it.

    See https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-templates/bp-legacy/buddypress/members/single/member-header.php for other hooks you could use instead of bp_before_member_header_meta.

    #269184
    Boone Gorges
    Keymaster

    It looks, at a glance, like the LH Private BuddyPress plugin ought to be doing what you’re asking for. https://plugins.trac.wordpress.org/browser/lh-private-buddypress/trunk/lh-private-buddypress.php#L101

    If it’s not working, it’s either because of an error in the plugin logic, or because something on your server or WP setup is interfering with the redirect_to parameter.

    Can you share the format of the URL at various points of the process? For example, when visiting example.com/groups/my-private-group as a logged-out user, you should be redirected to:

    example.com/wp-login.php?redirect_to=/groups/my-private-group

    If, after login, you’re being redirected back to wp-login.php, what is the format of the URL then?

    What is the URL format of your BP/WP installation? Are you installed at the top level of a domain example.com or in a subdirectory example.com/buddypress/?

    Boone Gorges
    Keymaster

    What theme are you using? It’s possible that this problem is specific to the theme. Try on a default WordPress theme like Twenty Sixteen to be sure.

    Can you share a screenshot of the “comment box” and the “reply box”? It’s unclear from your questions whether you’re talking about textareas or about buttons. Also, BP doesn’t have separate Comment and Reply functionality for activity items, which makes me think that this may be a conflict with another plugin.

    #269175
    Boone Gorges
    Keymaster

    I’m not sure that previous_posts_link() and next_posts_link() will work in the context of a custom WP_Query loop. See https://wordpress.stackexchange.com/questions/20424/wp-query-and-next-posts-link for a pointer.

    #269158
    Arize Nnonyelu
    Participant

    FIXED PARTIALLY. I was using BP Redirect To Profile so I disabled it, the contents are still private and it doesn’t keep redirecting.

    But the problem I am having is that after login it will just refresh the login page without directing to anywhere. Some people won’t know that they have been logged in already. That is why I used to Redirect Plugin initially so that it can direct to somewhere.

    So asking the masters, how can the login direct to where they left off? For instance, sent a logged out user a group link, and his tries to visit the groups and login page appears, how can he continue straight to the group after login?

    #269152
    DragoWeb
    Participant

    Hi, I have this error message

    “There was a problem cropping your profile photo.”

    when I try to upload an avatar image with a width of 450px and above. Starting to 451px it works (even with an height of 150px). I get a warning message only if I try to upload an image under 150x150px :

    “You have selected an image that is smaller than recommended. For best results, upload a picture larger than 150 x 150 pixels.”

    So, I suppose this problem doesn’t come from a setting option somewhere.

    The problem is the same when I switch to the default theme Twenty Fifteen and I have no other plugin activated (except HideMySite). Cover image works without problem. Cropping image works with Ultimate-member plugin and in WP admin -> Media -> Edit/crop as well.

    Config:
    Wordpress (new install) v4.9
    Buddypress 2.9.2
    php 5.6
    GD enabled

    Thanks.

    #269139
    Boone Gorges
    Keymaster

    Don’t abandon the Groups functionality or BuddyPress over this small display issue! With a plugin like this https://wordpress.org/plugins/simple-custom-css/, it is trivial to add the CSS that I gave above.

    Building a child theme is more complex, and is something you should learn down the road if you plan to make extensive customizations. But if you just need to make a small change like what I’ve suggested, then a plugin like https://wordpress.org/plugins/simple-custom-css/ is more than enough.

    #269115
    vincent46
    Participant

    Hi @boonebgorges this is the procedure that I used to change the default name that in Italian is articles. The site is in italian, and I was looking for some procedure to insert in bp-custom instead of changing the translation file obviously if you can do it.
    Change default name Articles

Viewing 25 results - 3,226 through 3,250 (of 22,614 total)
Skip to toolbar