Forum Replies Created
-
In reply to: Error on group pages
Please be a bit more explicit ! 😉 Many people are reading the support questions. It’s fixed sounds good (for you), but is very poor for anybody else.
Thank you.In reply to: Button "Show media''Hi @timvango,
this is not a buddypress related question. Media attachment is a typical WP job. So no direct answer to this here, but you could try the WP-ShowHide plugin. Normally it hides only text, but the author did a new version who also manage galeries (beta ?).
In reply to: [Resolved] Can't see member profile (Not found)Check BP settings and specially all components with their respective assigned pages.
Check if you have some deleted pages in the trash. If so, clear it. For ex. if you have an deleted “members” page in the trash and a new one in your page list, this cannot work well.
Check also your permalinks and click on update even you not change them. This normally does refresh all your links.In reply to: Create new entranceWhat do you mean by new entrance ? You’re working on a WordPress powered site using the BuddyPress plugin.
To get a chance for help on this support forum, please read also here.In reply to: i want a simple pic as Default avatar.In reply to: group errorThe causes of a 310 error can be multiple.
You have to provide more information about your installation.
Theme name
Installed plugins
SEO settings or htaccess redirection, etc
php version
Site url so people who want to help could checkDid you add some custom function into functions.php or bp-custom.php ?
You can also trac down the error by enabling debug to true in wp-config. This will give you some more information on what is going on.In reply to: [Resolved] Adding an Image to Register PageIn reply to: [Resolved] Adding an Image to Register PageHi @rickmainz,
The placeholder to use is bp_before_register_page.
Example:function bpfr_embed_register_banner() { // echoing the img echo '<img src="http://...../my_banner.jpg" width="" height="" alt="" title="" />'; } add_action( 'bp_before_register_page', 'bpfr_embed_register_banner' );In reply to: [Resolved] Translation.In reply to: [Resolved] Translation.Before installing any plugin, consider this translation into persian from the official translation repo for WP/BP/bbP
https://translate.wordpress.org/projects/buddypress/dev/fa/defaultYou can also contribute to this persian translation. Everithing to do so is explained on Goltpress.
in other words, you want to change the landing tab when visiting one of these groups.
Each group screen as his own search filter. So if you are on the group forum screen, you see the forum activity filter. When you are on the group members screen, you see the group members search filter. And so on…
So no matter about filtering, if you bring the visitors to the right screen as soon as they arrive on the group, they get the correct filter.
FYI function is theme dependant and bp-custom is completely independant from bp updates and will work even if you change your theme.
Here’s the code you can use (in functions.php or bp-custom.php)function bpfr_custom_group_default_tab($default_tab){ /** * class_exists() is recommanded to avoid problems during updates * or when Groups Component is deactivated */ if ( class_exists( 'BP_Group_Extension' ) ) : // $group=groups_get_current_group();//get the current group if(empty($group)) return $default_tab; switch($group->slug){ case 'Public Events': // group name (slug format) $default_tab='members'; break; case 'Private Investigations': $default_tab='members'; break; case 'another group': $default_tab='admin'; break; default: $default_tab='home';// the original default landing tab break; } return $default_tab; endif; // end if ( class_exists( 'BP_Group_Extension' ) ) } add_filter('bp_groups_default_extension','bpfr_custom_group_default_tab');Add or remove the “case” part into the switch to your needs. Don’t forget to modify the groups name to yours.
In reply to: Disable BP registration and enable WP registrationyou removed and added the same action, so nothing would changes: it’s just normal !
The difference beetween BP and WP registration is the BP xprofile additionnal fields for your members.
This means that BP modifies the aspect, not the registration process.And here is an answer to your question:
https://buddypress.org/support/topic/wordpress-login-and-registration-page/#post-171826standard display of birthdate has become a DD-MM-YY.
This is because you set it like this in wordpress !Add this snippet to your child theme functions.php or into bp-custom.php
(tested with 2.0.1 and Twenty Thirteen)// modify the date (format) output on xprofile function nanopass_date_format_on_profile ($time) { global $bp; if ( bp_is_active( 'xprofile' ) || bp_is_profile_component() || bp_is_member() ) { $time = current_time ('Y-m-d'); // date format - See https://codex.wordpress.org/Formatting_Date_and_Time } return $time; } add_action ( 'bp_format_time', 'nanopass_date_format_on_profile', 1 );Give feedback if it works for you.
In reply to: What is the hook after user registration?Yes i think. Although its works good to my site. Than it is ok, no ?
Hi @marximusmg,
BuddyPress Codex is your friend !$this->set_format( ‘/^\d{4}-\d{1,2}-\d{1,2} 00:00:00$/’, ‘replace’ ); // “Y-m-d 00:00:00”
or for a general usage
The date format is setable in wordpress admin for the whole site, including BP.
Dashboard > General (/wp-admin/options-general.php)But you prefer perhaps to explain more precisely what YOU want to achieve instead of answering my stupid questions ? 😉
So, again:
Which date do you mean on profile ? There is no date on a profile ! Only a field type called date(box) in the xprofile admin, which let’s you add a birthdate or something like this on profiles.In reply to: Hide admin from member listI recently answered the same question on my french help forum a few days ago and provided a solution Code is commented in french. Hope for you that you understand php and french.
If not, no worry ! Google translate works well and copy/pasting also so far i know.
What the code does ?
– remove admin’s activity from all activity screens
– remove “admin” from members directory
– remove “admin” from Friends lists (if exist)– remove “admin” from the friends bp core widget and create a new one who doesn’t call “admin”, in case you want to use this widget.
You can use this last snippet as example for create it yourself if you use the 2 other core plugins (Who’s online and Recently Active Members)And last but not least, don’t use “admin” as username, specially if you don’t want it to appear.
Don’t login to your site to produce a post or a relationship as “admin”. Editor is enough and keep the admin role, aka john doe, only for maintenance work.In reply to: What is the hook after user registration?Try this snippet from Henry
http://stackoverflow.com/questions/22691265/buddypress-redirecting-user-after-loginIn reply to: Padding Issue after Admin Bar RemovalWeird !
Try to add this to the ‘body’ CSS in your (child)theme style.css:padding-top: 0 !important; /* Remove the top padding space for the admin bar */
Even if this solution has absolutely nothing to do with logged in users….
In reply to: count & no-count !?!Hi @noyzen,
if you only updated BuddyPress, it’s possible that the translation file contains an error.
Check your .po file for any strings looking like this one
https://buddypress.trac.wordpress.org/browser/tags/2.0.1/bp-languages/buddypress.pot#L3464
Example:
Groups <span class=\"%s\">%s</span>orMembers <span class=\"%s\">%s</span>
If correctly translated, perhaps is something wrong in your theme or child theme or even a plugin.
in this case, you should check the file indicated above the string to translate.
%s is very important to stay in the translation and in the original file to get the countIf you’re talking about the extended xprofile datebox field, the builder class
BP_XProfile_Field_Type_Dateboxof the xprofile datebox field is in bp-xprofiles-class.php:1459(bp 2.0.1)You can overwite this class with your own for reflecting your needs. The technique (add your own class to…) to use is explained on the Codex
If you’re meaning another date, you have to be more precise !
You’ll find also a global date setting in your wordpress admin.
Load more use the Heartbeat API who refresh the activities each 5 minutes.
In BP 2.0.1, if you search for heartbeat, the result is:Search “heartbeat” (57 hits in 6 files)
bp-activity/bp-activity-filters.php (25 hits)
bp-activity/bp-activity-functions.php (5 hits)
bp-core/admin/bp-core-settings.php (6 hits)
bp-core/bp-core-admin.php (4 hits)
bp-core/bp-core-options.php (9 hits)
bp-templates/bp-legacy/js/buddypress.js (8 hits)Read the code if you understand it and see what you can do.
If not or if you estimate that it is a bug or needs an enhancement, open a ticket.In reply to: adding photos to forum postsIt’s a bbpress question ! 😉
And it’s a bad idea, because users will have acces to your media library on the backend. So i warn you to use this option very carefully and allow only trusted users.You can use this plugin: https://wordpress.org/plugins/gd-bbpress-attachments/
or code yourself by following this example.In reply to: Featured post image become header background imageWhat is the name of your theme ?
Do you use the same name for both picture ?
Check eventully your theme option.In reply to: Padding Issue after Admin Bar Removalscrolling down the member page provides a funny elastic effect ! 😉 Really cool, but not what you want of course.
I disabled js on the browser and the effect disapeared immediatly.
So i think there is a js conflict, probably with some of your theme’s script.
check for the elements
`<div class=”col span_3>
<a>
<img alt=”Foxtrot Tango” /> `You mention salient to be your theme but the source code indicates castle ? Did you rename it for a child theme usage ?
Some script don’t support this…You use also a plugin to remove the admin bar.
<!--Plugin Global Hide Admin Tool Bar 1.6.1 Build 2014-04-16 Active ---> <!-- This website is patched against a big problem not solved from WordPress 3.3+ to date -->Huh ?
Don’t know if the second comment belongs to that plugin, but if yes, WP is currently in 4.0 phase, so a 3.3 “problem” maybe solved.
Google to find a simplier solution to remove the toolbar. There is also a easy and light solution in on the WP codex.add_filter('show_admin_bar', '__return_false');in theme’s function or bp-custom.php would do the job on front-end !Don’t use a hammer to kill a fly ! 😉