Search Results for 'wordpress'
-
AuthorSearch Results
-
December 1, 2017 at 7:52 pm #269331
In reply to: How to hide tabs on the Sitewide Activity page
HDcms
ParticipantHello 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; // }December 1, 2017 at 7:34 pm #269328In reply to: How NOT to redirect users after login.
Boone Gorges
KeymasterYou 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.
December 1, 2017 at 10:39 am #269306In reply to: Organic Square theme
peter-hamilton
ParticipantI 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.comNovember 30, 2017 at 7:48 pm #269282Kookidooki
ParticipantHello 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:
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 tablekuyrsd79sdn_options
—
ALTER TABLEkuyrsd79sdn_options
ADD PRIMARY KEY (option_id),
ADD UNIQUE KEYoption_name(option_name),
ADD KEYwpe_autoload_options_index(autoload)Any idea how to fix this?
November 30, 2017 at 3:23 pm #269276In reply to: Profile Image Widget Question
Boone Gorges
KeymasterOy, 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
November 30, 2017 at 3:18 pm #269275Boone Gorges
KeymasterThe 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.
November 30, 2017 at 3:15 pm #269274In reply to: Activity stream comments and reply display order.
Boone Gorges
KeymasterVery interesting question.
It’s not currently possible to do this through the regular activity API. We’ve hardcoded
ASCinto the comment query: https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-activity/classes/class-bp-activity-activity.php?marks=1510#L1509I 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.
November 29, 2017 at 10:59 pm #269258In reply to: How NOT to redirect users after login.
Arize Nnonyelu
ParticipantRename 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.
November 29, 2017 at 6:57 pm #269252In reply to: Locked out of my buddypress site
plumbingsuperstore
ParticipantBoone 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
November 29, 2017 at 4:55 pm #269246In reply to: Need some help figuring out a template problem
Boone Gorges
KeymasterHi @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.
November 29, 2017 at 4:38 pm #269245margmacd
ParticipantMany 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.
November 29, 2017 at 3:39 pm #269242In reply to: Ordered list tag creates weird results
Boone Gorges
KeymasterGroup descriptions are filtered at the time of saving, via
wp_filter_kses(), and at the time of display usingbp_groups_filter_kses(). https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-groups/bp-groups-filters.php#L35It 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_savefilter, replacing withbp_groups_filter_kses, and then filteringbp_groups_filter_ksesto 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#L87November 28, 2017 at 10:54 pm #269210In reply to: Special characters output in profile fields
Boone Gorges
KeymasterHi @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.
November 28, 2017 at 10:40 pm #269209In reply to: Searchable Fields with Special Characters
Boone Gorges
KeymasterThanks 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!
November 28, 2017 at 3:29 pm #269200Boone Gorges
KeymasterI’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 thesearch_termselement. It’s possible that your theme, or some other plugin, is modifying the markup so that the selectors or the element hierarchy has changed.November 28, 2017 at 2:07 pm #269198naomibuch
ParticipantHi 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 BuddypressNovember 28, 2017 at 9:08 am #269191In reply to: Very Important Features For BP
wordplus
ParticipantHi there to all!
For those who searching for the messaging plugin, checkout this:
November 28, 2017 at 2:48 am #269187In reply to: Armember badges
Boone Gorges
KeymasterI 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_idto 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.November 28, 2017 at 2:43 am #269184In reply to: How NOT to redirect users after login.
Boone Gorges
KeymasterIt 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_toparameter.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-groupIf, 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.comor in a subdirectoryexample.com/buddypress/?November 28, 2017 at 2:29 am #269182Boone Gorges
KeymasterWhat 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.
November 28, 2017 at 1:41 am #269175In reply to: Pagination for Custom Loop in New BuddyPress Tab
Boone Gorges
KeymasterI’m not sure that
previous_posts_link()andnext_posts_link()will work in the context of a customWP_Queryloop. See https://wordpress.stackexchange.com/questions/20424/wp-query-and-next-posts-link for a pointer.November 26, 2017 at 4:00 am #269158In reply to: How NOT to redirect users after login.
Arize Nnonyelu
ParticipantFIXED 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?
November 24, 2017 at 6:16 pm #269152Topic: Can’t upload avatar image under 451px
in forum How-to & TroubleshootingDragoWeb
ParticipantHi, 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 enabledThanks.
November 23, 2017 at 2:51 pm #269139In reply to: Groups not displaying properly
Boone Gorges
KeymasterDon’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.
November 22, 2017 at 8:13 am #269115In reply to: Change default name post
vincent46
ParticipantHi @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 -
AuthorSearch Results