Forum Replies Created
-
In reply to: Using BP Member Profile Data outside members section
`Try this`
`
$current_user = wp_get_current_user();`
$current_user_id = $current_user->ID;
bp_profile_field_data( array('user_id'=>$current_user_id,'field'=>'About me' ));you may found these kind of information in the language pot file
#: bp-messages/bp-messages-template.php:657
msgid “Private Message”#: bp-activity/bp-activity-template.php:2430
msgid “Public Message”etc
In reply to: Displaying profile field name in Member Loopp means paragraph, so it’s normal you have two lines instead one.
Use span inside p
<p><strong>Type of Cancer: </strong><span style=”color: #736B6E;”></span> <?php bp_member_profile_data( ‘field=Cancer Type’ ); ?></p>
nbsp is a white space
In reply to: Question about Customizing Labels, Messages etcIt’s not ok, and not safe.
If you put the mo file into bp-languages folder, it will be erased at the next BP update. This folder only exist to provide the release pot file needed to update your existing buddypress- xx_XX.mo after an update.
So, there is no need to add something into /plugins/bp-custom.php. Aside, this file will only exist if you create it, it’s not shipped with BP (MS nor single WP)
Bp language file goes to /wp-content/languages/buddypress-xx_XX.mo
xx_XX is the wp_lang setting you have in wp-config.php of your main site.
In reply to: Codex Posting@johnjamesjacoby, @modemlooper,
one of you decided finally to erase my contributions to the codex. Well ! I invited you to do so if necessary.
But a private message explaining me your decision would have been appreciated, but it isn’t the case.Also, who is responsible of the Codex ? Didn’t know that Ryan is the codex chief editor !
This tread is also unhelpfull at least.
The tips & tricks page is still nested with 1 tuto page, despite the tech explanation above.And with this on the customize page, i’m very doubtfull too
CustomizingThis page has no content of its own, but contains some sub-pages listed in the sidebar.
(between other nested pages “tips & tricks”…)Please edit this page and add something helpful! (and probably nested pages too, no ?)
I thought I was right by adding my tips, even if not on the same page as “Tips – Tricks – Code Snippets” by misunderstanding the existing nesting which is not to use finally ! Sorry for my ignorance of this detail.
Support users are not code snippets, but real humans. Your method and reaction are simply unbelievable !
Be sure i’m discouraged and that i don’t add anything to the codex in the 100 next years. 🙁Dan
Sorry, i’m not a mysql teacher 😉
If you’re super-admin you can adjust any profile of any of your user, so far i know.
So what do you exactly want to do with friends privacy settings ?In reply to: Codex Postingok, message received.
So feel free to delete or move the tips i added today. 😉
But if it’s not that important, can i suggest to remove the whole tips, tricks and code snippet page from the Codex ?
Even if i’m sure most of the user prefer to go to the Codex first, because it’s the naturally “my issue answer place to be” !Or create a dedicated, moderated and well categorized blog for such stuff, because at least it’s annoying to get the same daily issues querying answers on the support forum.
Issues, as you know, are rarely accompanied with the user’s configuration information. So it’s anyway difficult to help in such case. With or without official, uptodated informations, tips or whatever.
wp_usermeta
wp_options
In reply to: [Resolved] Group Forum display timehi @omgbud,
if BP 1.6.x, you can add this to your theme’s functions.php
This will change the date format of each group forum topic`function my_topic_date_ouput () {`
global $forum_template;
echo date (‘M d, Y ‘, strtotime($forum_template->topic->topic_time));}
add_filter( ‘bp_get_the_topic_post_time_since’, ‘my_topic_date_ouput’ );For for changing the freshness date/time, use this one
<code>function my_topic_freshness_ouput () {
global $forum_template;
echo date (‘d/m/Y H:i ‘, strtotime($forum_template->topic->topic_time));
}
add_filter( ‘bp_get_the_topic_time_since_last_post’, ‘my_topic_freshness_ouput’ ); </code>Take care with quotes (must be single quotes) when copy/pasting from here
In reply to: Thousands of spam subscribershere’s another plugin made by @imath which can help to wipe oup defect/unwanted/sleeping users.
https://github.com/imath/bp-wake-up-sleepers
Still in Beta but works good on 3.5.1/1.6.4In reply to: Looking for a way to override the pagination systemis_user_logged_in will work better
In reply to: Looking for a way to override the pagination systemyou can’t redefine a function which i already declared. This means you have to change the name of the custom function.
In reply to: Looking for a way to override the pagination systemTake a view here, they’re some alternate solutions
https://buddypress.org/support/topic/how-do-i-make-buddypress-1-6-a-private-community/In reply to: Thousands of spam subscribersIn reply to: Site Wide Forums Avatarsjpeg_quality is deprecated since WP 3.5
use wp_editor_set_quality or WP_Image_Editor::set_quality() instead
source: codex.wordpress.org/Plugin_API/Filter_ReferenceIn reply to: Group avatar losing PNG transparencynever noticed, but i have the same bug on my site 1.6.3 Ms / WP 3.5
I just tried with a profile avatar. The background goes black on the image to crop and is transparent on the preview image. As soon as saved, it goes black and to jpg !
Unknown bug for me !hi @ngoegan,
on what type of host are you ? Shared, VPS ? How many memory_limit do you have on your server ?
On cheap host, using WP+BP is already to much. If you add 1 or 2 plugins and a cache plugin, it comes to quickly to disaster….But also you can’t ask for help if you don’t play with the common rules. You are using latest WP & BP and a outdated plugin. Don’t be surprised that it doesn’t work ! Or very wobbly…
Private BuddyPress
Requires: 3.0, BuddyPress 1.2 or higher
Compatible up to: 3.1, BuddyPress 1.3Deactivate it and you will certainly see a difference.
You also use WP Super Cache. Don’t forget to clear the cache and to deactivate this plugin while testing BP.I got this site after my predecessor, so I wasn’t involved in the decision process.
Who cares !
Latest stable BP is version 1.6.3 and yes combining slightly different things is not the best practice.
Recommandation is to use it on WP 3.5
Read here in the sidebar:
https://wordpress.org/extend/plugins/buddypress/BP 1.5.2 required at least WP 3.3 (déc. 2011)
changelog https://codex.wordpress.org/Version_3.3
changelog https://codex.wordpress.org/Version_3.4
changelog https://codex.wordpress.org/Version_3.5Also what theme do you use and have you deactivated all plugins while debugging ?
Passwword management is done by WPAnyway, you need to fix WP registering first on twenty10, than together with BP on the bp-default theme
not sure that this config BP v.1.5.2 with WP 3.5 is the best
In reply to: Remove Blog Posts from Activity Feed?hi@haagsekak;
how to filter the SWA is explained here:
https://codex.buddypress.org/developer/developer-docs/loops-reference/the-activity-stream-loop/
In reply to: Change wordpress/buddypress urlhi mblanco,
Be aware that BuddyPress does not work on installations where you give WP it’s own directory
https://codex.buddypress.org/user/before-installing/But on a network install you can do this
https://codex.buddypress.org/user/install-buddypress-on-a-secondary-blog/In reply to: Removing User name from profile urlIn reply to: Members groupsAs super_admin you can access any group admin and delete it if he’s not appropriate to your site theme.
Or you can make it private or hidden.You can also when on site admin go to settings > buddypress > settings tab and uncheck Enable group creation for all users.
This allows to keep group creation open. Now, if a user want a group, he had to ask you to do that for him, so you will have better control what people do on your site.