Search Results for 'buddypress'
-
AuthorSearch Results
-
September 12, 2014 at 7:41 pm #192731
In reply to: How to activate Status Buddypress chilld theme?
Muhammad Arslan Aslam
Participant@mercime the default buttons and hovers in the buddypress profile pages are just simple one, like on this site.
I just want to make them look like my native theme.
I wanna change that, when I hover on some button, it should turn into blue buttons.
as in this site, on the top nav it changes the color on hove to dark blue, I wanna make the same in buddypress profile pages.
http://wp-themes.com/kotetsu/?TB_iframe=true&width=600&height=400September 12, 2014 at 5:58 pm #192578In reply to: buddypress avatar cutting off
danbp
ParticipantIt’s not a buddypress issue, the members core widget on your homepage contains rounded avatars.
Did you updated your theme recently ?
Do you use a child theme or did you made the rounded css in the original theme ?
Ask your Premium theme support.September 12, 2014 at 5:48 pm #192576danbp
Participantand what about if the user doesn’t use the widget navigation but goes directly to a group ?
Change the group landing tab ! Thought it’s simplier.See here how to do it.
For the group header information, you can create a child-theme and modify group-header.php file
Line 40 you remove this:
<span class="activity"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span>September 12, 2014 at 4:17 pm #192570In reply to: How to make my site like Facebook
peter-hamilton
Participantplugins I would recommend:
buddypress-activity-plus
This adds images/video/links to your activity wall, which is a facebook-ish function.
There is another plugin in the making which should be an improved version called BP-attachmentsGD-bbpress-attachments
Allows people to upload images to the forum, easier then the existing system.And ofcourse the facebook plugin.
These plugins and some playing around with my templates allowed me to make a facebook-ish site.
BBFacelookI also suggest to look into a theme called BuddyBoss, it is a change but this is a very facebook inspired theme.
Good luck
P.H.September 12, 2014 at 12:47 pm #192186In reply to: Filter activities by friends and groups
richtelford
ParticipantAfter researching a bit further I think I could easily achieve what I’d like if only this function (in bp-activity-classes.php line 1186):
/** * Create filter SQL clauses. * * @since BuddyPress (1.5.0) * * @param array $filter_array { * Fields and values to filter by. * @type array|string|id $user_id User ID(s). * @type array|string $object Corresponds to the 'component' * column in the database. * @type array|string $action Corresponds to the 'type' column * in the database. * @type array|string|int $primary_id Corresponds to the 'item_id' * column in the database. * @type array|string|int $secondary_id Corresponds to the * 'secondary_item_id' column in the database. * @type int $offset Return only those items with an ID greater * than the offset value. * @type string $since Return only those items that have a * date_recorded value greater than a given MySQL-formatted * date. * } * @return string The filter clause, for use in a SQL query. */ public static function get_filter_sql( $filter_array ) { $filter_sql = array(); if ( !empty( $filter_array['user_id'] ) ) { $user_sql = BP_Activity_Activity::get_in_operator_sql( 'a.user_id', $filter_array['user_id'] ); if ( !empty( $user_sql ) ) $filter_sql[] = $user_sql; } if ( !empty( $filter_array['object'] ) ) { $object_sql = BP_Activity_Activity::get_in_operator_sql( 'a.component', $filter_array['object'] ); if ( !empty( $object_sql ) ) $filter_sql[] = $object_sql; } if ( !empty( $filter_array['action'] ) ) { $action_sql = BP_Activity_Activity::get_in_operator_sql( 'a.type', $filter_array['action'] ); if ( ! empty( $action_sql ) ) $filter_sql[] = $action_sql; } if ( !empty( $filter_array['primary_id'] ) ) { $pid_sql = BP_Activity_Activity::get_in_operator_sql( 'a.item_id', $filter_array['primary_id'] ); if ( !empty( $pid_sql ) ) $filter_sql[] = $pid_sql; } if ( !empty( $filter_array['secondary_id'] ) ) { $sid_sql = BP_Activity_Activity::get_in_operator_sql( 'a.secondary_item_id', $filter_array['secondary_id'] ); if ( !empty( $sid_sql ) ) $filter_sql[] = $sid_sql; } if ( ! empty( $filter_array['offset'] ) ) { $sid_sql = absint( $filter_array['offset'] ); $filter_sql[] = "a.id >= {$sid_sql}"; } if ( ! empty( $filter_array['since'] ) ) { // Validate that this is a proper Y-m-d H:i:s date // Trick: parse to UNIX date then translate back $translated_date = date( 'Y-m-d H:i:s', strtotime( $filter_array['since'] ) ); if ( $translated_date === $filter_array['since'] ) { $filter_sql[] = "a.date_recorded > '{$translated_date}'"; } } if ( empty( $filter_sql ) ) return false; return join( ' AND ', $filter_sql ); }would allow filters to be combined with OR rather than AND. That way I could easily filter on a bunch of user_ids and group_ids which would get me the results I’m after. I might try extending the class and overriding that function. Watch this space!
September 12, 2014 at 9:04 am #192181In reply to: Register / Sign In Pages issues…
danbp
ParticipantYou have to test with another theme. And check your site settings.
All this is firstly a worpress installation issue, then a theme setting and finally a buddypress setting.September 12, 2014 at 9:00 am #192180In reply to: Can BuddyPress Do This?
danbp
Participantyes, you can have all this !
Profiles are public, but you can set them as “members only”.
And each member can choose the field visibility. Also it is very easy to let some fields public, allow to members or only to users friends.You can also hide comments with your conditionnals.
Discover here all buddypress features and read a bit the codex to see all things you can realize with buddypress.
September 12, 2014 at 8:37 am #192175In reply to: Filter activities by friends and groups
richtelford
ParticipantHi @danbp. Okay so essentially what you are saying is I need to write a complex custom query?
I’ve been examining the Buddypress class and function files in detail over the last few weeks due to the lack of documentation for BuddyPress – not a criticism btw. Yep I’m familiar with meta_query and using that already to get groups by meta_value. I wrote a function for returning activity IDs based on group meta:
function wfw_get_group_activities_by_sport($sports = array()) { global $bp,$wpdb; if(!$sports) return false; // GET GROUP IDS WHICH HAVE CHOSEN SPORT SELECTED foreach($sports as $sport) { $meta_query[] = array( "key" => "group_sport", "value" => $sport, "compare" => 'LIKE' ); } if(count($meta_query) > 1) $meta_query = array_merge(array('relation' => 'OR'), $meta_query); $group_arr = BP_Groups_Group::get(array( 'per_page'=>-1, 'meta_query' => $meta_query )); if(!$group_arr['total'] || !$group_arr['groups']) return false; foreach($group_arr['groups'] as $group) { $group_id_array[] = $group->;id; } $item_id = implode(",", $group_id_array); $sql = "SELECT id FROM {$bp->activity->table_name} WHERE component = 'groups' AND item_id IN ({$item_id})"; $activity_id_array = $wpdb->get_col( $sql); if(!$activity_id_array) return false; $activity_id = implode(',', $activity_id_array); return $activity_id; }which I can then use to filter results:
$activity_id = wfw_get_group_activities_by_sport(array($_GET['sport'])); $filter = '&in='.$activity_id.'&object=groups'; if ($activity_id && bp_has_activities( bp_ajax_querystring( 'activity' ).$filter ) ) : ?>Now I just need to somehow combine what I’m using but it sounds like a complex query is the way to go. I was looking for a more elegant solution using BP functions to achieve this but I guess it’s not yet possible.
Anybody else have experience in this?
Thanks.
September 12, 2014 at 8:13 am #192173In reply to: Filter activities by friends and groups
danbp
ParticipantTake a look to component class file, you will find anything related to how components and their filter are built. All component have such a file.
Is it possible to chain filters ? I don’t think so, or under condition to write a very complex query. And activities are ajaxified !
In bp-activities-class.php:307 you’ll find
'meta_query' => false, // Filter by activitymeta, so i presume, you know what you can do with this argument. 😉See also bp_parse_args, who let you filter the activity loop very easily.
September 11, 2014 at 11:50 pm #192162danbp
ParticipantSeptember 11, 2014 at 11:33 pm #192086danbp
Participantyou can allow your users to be notified by email when they are mentionned (and some other little things).
See Notification Manager plugin.
September 11, 2014 at 10:44 pm #192079In reply to: [Resolved] Translation Not Working
danbp
ParticipantI just tested Duena and the BP translation is fine.
Recheck your po/mo files. Here what you must have:
duena – leave as is.
buddypress/bp-languages/buddypress.pot
wp-config – if you use english, as it’s default language you have nothing to do
// define(‘WP_LANG’, ” );
wp-content/languages/plugins/buddypress-en_US.moNow if you want to modify only some strings, make a copy of the pot file and put it in a folder outside of buddypress.
From this copy you remove anything you don’t want and keep only the 2 lines or 4 lines (if plural form) who belong to the string you want to change. You keep only the string you want to change.
Once done, save and rename it buddypress-en_US.po and open it with a text editor (not poEdit), as we’re going to modify the header.msgid "" msgstr "" "PO-Revision-Date: 2014-09-12 00:05+0100\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" "X-Generator: Poedit 1.5.7\n" "Project-Id-Version: BuddyPress 2.0.2\n" "POT-Creation-Date: \n" "Last-Translator: \n" "Language-Team: \n" "Language: en\n" "X-Poedit-SourceCharset: UTF-8\n" "X-Poedit-Basepath: .\n" "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;" "_n_noop:1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;esc_attr__;" "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n" "X-Poedit-SearchPath-0: ..\n"The rest of the file looks like this:
msgid "Friendships" msgstr "" <strong><- replacement goes here</strong> #: bp-friends/bp-friends-template.php:588 msgid "%s friend" msgid_plural "%s friends" msgstr[0] "" msgstr[1] ""Save in text format utf8 without BOM. (important)
Now you can open this po file with poEdit, do your translation and save so that poEdit generate a mo file (see poEdit settings first to get this automatically each time you save a file).
Copy the mo file in the appropriate folder and, normally, you’re done.
References
https://codex.wordpress.org/Translating_WordPress
https://make.wordpress.org/polyglots/handbook/translating/basics/
http://www.wpbeginner.com/wp-tutorials/how-to-disable-automatic-updates-in-wordpress/The definitive guide to disabling auto updates in WordPress 3.7
September 11, 2014 at 9:44 pm #192077In reply to: [Resolved] Group Edit Dashboard broken
Mathieu Viet
Moderator@seeingblues2 seems to be fixed:
see https://buddypress.trac.wordpress.org/ticket/5868#comment:8September 11, 2014 at 9:16 pm #192076In reply to: How to make my site like Facebook
durkk
ParticipantLet’s be honest here. Bbpress is designed to be ok with most themes.
So yeah you are right, in absolute terms. A forum is just a grit. But if we go that route all of this is just 0 and 1’s. It’s not that productive to think like that imo 😉 Most people like to have something that looks better than ok for most themes.
https://devpress.com/?attachment_id=6504 is a theme that is just a regular forum but completely fine tuned to the theme. This is a rarity. Sadly. Some perspective on why this is I guess… https://devpress.com/tickets/social-buddypress-theme/
Standalone forums most of the time have themes, although indeed phpbb always looks very much like…phpbb 😀 BUT, it’s a standalone forum and therefore coherently themed throughout.
September 11, 2014 at 8:00 pm #192075In reply to: [Resolved] Translation Not Working
geistschatten
ParticipantI called it a tutorial, I just meant this page: https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/
I’ve removed the bp-custom.php file entirely.
Thank you for the list of where to put the translation files and the tip about poEdit! I installed poEdit, opened my edited .pot file, exported the .po and .mo files, uploaded them to the appropriate directories and changed to the language in wp-config to “en_US” while naming the files buddypress-en_US.po and buddypress-en_US.mo
Still no translations showing up (even after several refreshes and Ctrl+F5), but I did discover a couple errors with my file while editing it. Something about duplicate definitions, which I fixed.
Again, all I’m trying to do is change friends, friendships, friend requests, etc. to something else. A simple translation for only BuddyPress seemed to be the easiest way to do that.
September 11, 2014 at 6:20 pm #192067In reply to: How to make my site like Facebook
danbp
Participantyou seem to be affraid by the term “legacy”… ?
Read here some explanation about legacyLike BuddyPress, bbPress is only a plugin.
Generally when you need a theme, you search a theme for wordpress, not for a plugin.Of course some a better than other, or better tailored to do something than other, but in anyway, no theme can be perfect for anything.
And in some case, ready to use is not synonym of adaptable ready.
If you search forum themes, see first what other forum software have to propose. One of the most popular, phpbb, is desperatly identical from one site to another in 90% of case.When you have 1 000 of WP theme and you add a bbpress or a buddypress group forum, you have potentially 1 000 different forum look.
Basically it’s a grid, so it’s a bit difficult to present a forum in a very original maner. And finally too much work for many users or considered as out of rentability (100 hours to get a nice forum and 3 topics after 2 mounth….search the error ! )
September 11, 2014 at 5:38 pm #192065In reply to: How to activate Status Buddypress chilld theme?
Muhammad Arslan Aslam
Participant@mercime actually I want to design the buttons and the tabs in buddypress user profiles?
Is there any other plugin or any other way to do this all ? ? ? ?September 11, 2014 at 1:51 pm #191900In reply to: How to make my site like Facebook
danbp
ParticipantFYI here some related topics
https://buddypress.org/support/topic/how-to-remove-xprofile-names-and-replace-with-username/
https://buddypress.org/support/topic/sort-user-list-by-last-name/About your first post, why don’t you show the site activity by using the topic filter instead of the default “all activities” ?
https://buddypress.org/support/topic/changing-the-default-activity-filter/Or you can try buddypress-wall plugin
https://wordpress.org/plugins/buddypress-wall/September 11, 2014 at 12:52 pm #191897In reply to: [Resolved] Translation Not Working
danbp
Participant11. Do you have any custom functions in bp-custom.php? Yes, the function from every tutorial talking about the language, but changed for my custom language file.
Which tutorial are you telling about ?
Remove that function, it’s not necessary i guess.
By default, you set your site language in wp-config define ( ‘WP_LANG’, ‘de_DE’ ); and in wp settings > general (depending if single or MS install)
Where to put the translation ?
wp-content/languages/de_DE.mo (this is the WP translation)
wp-content/languages/plugins/buddypress-de_DE.mo (this is the BP translation)
wp-content/languages/themes/theme_name-de_DE.mo (this is the theme translation)You say you used gedit to generate your translation. It’s a text-editor, not a mo compiler. (mo means machine only, you can’t read it !)
I suggest that you use poEdit to make a translation and generate a correct mo file.
On Ubuntu, you can (not sure) use the msgmt command from the gettext package. Something like this$> msgfmt -o your_file.mo -v your_file.po
September 11, 2014 at 12:37 pm #191895In reply to: How to make my site like Facebook
Henry Wright
ModeratorIn the last screenshot, if you take a look under the IP address it reads:
@ Julia BuckleyRegarding the roadmap, 2.1 is due any time soon. See https://buddypress.trac.wordpress.org/roadmap
September 11, 2014 at 12:25 pm #191892In reply to: How to make my site like Facebook
danbp
Participantbe patient ! The upcoming BP 2.1 version brings huge improvement to mentions handling, with auto suggestion.
BP 2.1 About page excerpt:
With BuddyPress 2.1, type a @ when leaving a status update or commenting on an activity item or blog post, and the new suggestions panel will open.September 11, 2014 at 12:21 pm #191891In reply to: How to make my site like Facebook
Julia_B
ParticipantHi durkk, thanks very much for the reply. I’m already using a theme meant bbpress and buddypress from Themeforest, it’s called Buddy. I’m generally happy with it and like how it looks (apart from what I mentioned above), I spent a lot of time getting it how I wanted so I’d be very reluctant to change themes. I’m hoping I can find plugins or some css I can drop in to help.
Good news about the ip names, didn’t think to check if it was just in admin view. 🙂
September 11, 2014 at 11:17 am #191886In reply to: How to make my site like Facebook
durkk
ParticipantFirst and foremost, I am not a buddypress expert, rather someone that went through the same process you are going through now.
The forum is not easy to customize without coding. There used to be themes for the standalone I believe but that’s all legacy stuff now. If you want to start ‘theming’ bbpress you’ll need to adjust the css to taste. Shortcodes won;t help you with this.
The easiest solution is buying a theme that has extensive bbpress tweaks. Do a search on Themeforest for ‘bbpress’ and or ‘buddypress’. There’s only a view that did extensive tweaks to the forums tho.
The IP address is only visible to Admins. As far as I am aware the @ mentions are based on the username, not the display name.
September 11, 2014 at 8:51 am #191882In reply to: Expand and Collapse Each Group of Profile Fields
danbp
Participantif you’re comfortable with coding (php, js and html), you can add such a scenario to the profile-loop template from within the child-theme.
Original file:
wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/profile/profile-loop.phpchild:
your_child_theme/buddypress/members/single/profile/profile-loop.phpSeptember 11, 2014 at 8:27 am #191879In reply to: Member/User Guide…
danbp
ParticipantRead the buddyPress Codex and be inspired to write something of your own.
End user documentation is not a general matter that can be applied to every site. It is more your point of view, the way you want your members go through your site and respect your community rules who primes.
This is a software support first, not a how to use it for your best. Each site has his own specifics. -
AuthorSearch Results