Search Results for 'buddypress'
-
AuthorSearch Results
-
August 14, 2015 at 8:14 pm #243204
In reply to: Adding Profile Link to Menu
danbp
ParticipantThis question was asked 4 days ago here:
https://buddypress.org/support/topic/how-users-can-link-to-their-profile/And some other search result you can read also, here:
https://buddypress.org/support/search/bp_get_loggedin_user_link/Finally, question is: which menu are you talking about ? Give details please.
August 14, 2015 at 11:27 am #243190In reply to: No sidebar on profile pages
Henry Wright
ModeratorThis is simply the way your theme displays things on the page. If you’d like a sidebar on those pages, you can modify the templates. See the Template Hierarchy article for more info.
August 14, 2015 at 9:40 am #243188Markus Echterhoff
ParticipantFound the culprit and the fix here in case anyone encounters the same issue: https://codex.buddypress.org/themes/buddypress-companion-stylesheets/#existing-styled-themes
August 14, 2015 at 4:10 am #243180In reply to: [Resolved] Warning: strstr(): Empty needle in
Halo Diehard
ParticipantI am using the theme Matheson, but I tested it on Twenty Ten with all plugins deactivated except BuddyPress and it still happens.
August 14, 2015 at 12:37 am #243179In reply to: Help with New user emails
djsteveb
Participantfirst test with default 2014 or 2015 theme – and all other plugins disabled except bp – does it work then? If not…
previous forum posts maybe helpful –
(let us know what you find works!)With a new bp setup I usually check these things first if email are not seeming to send or go through ->https://buddypress.org/support/topic/activation-e-mail-failing-to-send/#post-241079 (From a recent similar thread)
Better to check the basics before digging into whether it’s a email header config on the server, php settings limiting functionality – need for wp to send as smtp plugin – something just with gmail blackhole filtering –
so many different things can affect wp sending, bp sending, your web serving sending email as php, or an email service accepting something that was sent, much less put in the actual inbox instead of junk mail / promotions box or whatever…
=-=- also from danbp about 8 months ago:
When encountering a registration problem, first thing to do is to test your install without any plugins and one of WP’s Twenty default theme. Ensure that your site send correctly emails. Before activating any plugin, your base WP install must work.Once WP is OK – you can install BuddyPress and check your permalinks. Pretty permalinks must be activated to get the plugin working correctly.
This point is important, especially if you have redirection issues after BP is activated.
Second point to check is your theme installation.
Proceeding like this will help you to isolate easely the culprit. If:
– WP install: OK
– BP install: OK
– theme activation: problemSo you know here the problem comes from.
While testing your install, you can activate wp_debug (set to TRUE) in the wp-config file. This can give you a lot of information about conflict and/or errors.
Just keep in mind that these information have 2 levels of importance: notice and warning.
While notice are generally harmless, warnings should be taken seriously in account and solved.If WP is the problem, see first the wordPress support
If it’s BuddyPress, see the BP support
If it’s the theme, see the theme support
If it’s any other plugin, see first the plugin support.August 13, 2015 at 6:02 pm #243161In reply to: Need urgent help with BP notifications
chicho1969
ParticipantThanks @danbp ,
I´ll try to explain you:I have a custom_post_type (celebrities). it real name is “famosos”.
BuddyPressUsers can mark any celebrity as fasvourite.
This part is working fine.
So now, I am trying to send a notification (to users that have marked as favorite certain celebriry) that “today” is that celebrity´s birthday.For that purpose, I have a SQL query that works fine and gives me an array with budypress user id and the celebritie post id. (this is also working fine)
SO I have to setup a custom notificationa that checks every day that SQL QUery to gets users and celebrities ids to notify user about today´s birthday (of their favourite celebrities)
and this is what I did at first:
define( 'BP_ACTIVITY_CELBIRTHDAY_SLUG', 'celbirthday_notifier' ); function celbirthday_notifier_setup_globals () { $bp = buddypress(); $bp->celbirthday_notifier = new stdClass(); $bp->celbirthday_notifier->id = 'celbirthday_notifier'; //I asume others are not going to use this is $bp->celbirthday_notifier->slug = BP_ACTIVITY_CELBIRTHDAY_SLUG; $bp->celbirthday_notifier->notification_callback = 'celbirthday_notifier_format_notifications'; //show the notification $bp->active_components[$bp->celbirthday_notifier->id] = $bp->celbirthday_notifier->id; do_action( 'celbirthday_notifier_setup_globals' ); } add_action( 'bp_setup_globals', 'celbirthday_notifier_setup_globals' );and then try to format the notification:
function celbirthday_notifier_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { if ( 'new_birthday' === $action ) { $famoso_name = get_the_title( $secondary_item_id ); $subject = 'Celebrity birthday'; $message = 'Say happy birthday to $famoso_name'; $content = 'Tody is $famoso_name birthday .....somethin else '; if ( (int) $total_items > 1 ) { $text = sprintf( __( 'You have %d celebrities birthday', 'bbpress' ), (int) $total_items ); $filter = 'bp_activity_at_message_notification_message'; } else { if ( !empty( $secondary_item_id ) ) { //nada } else { $text = sprintf( __( 'You have %d new birthday of %s', 'bbpress' ), (int) $total_items, $famoso_name ); } $filter = 'bp_activity_at_message_notification_message'; } } if ( 'string' === $format ) { //falta definir $famoso_link y mas $return = apply_filters( $filter, '<a href="' . esc_url( $famoso_link ) . '" title="birthday anounce">' . esc_html( $text ) . '</a>', (int) $total_items, $text, $famoso_link ); // $message = apply_filters( 'bp_activity_at_message_notification_message', $message, $poster_name, $content, $message_link, $settings_link ); } } do_action( 'celbirthday_notifier_format_notifications', $action, $item_id, $secondary_item_id, $total_items );and then add notification this way:
function buddypress_celebrities_add_notification( $fecha_act, $famoso_name, $receiver_user_id) { if ( bp_is_active( 'notifications' ) ) { $fecha_act = date("Y-m-d"); $res_birth = $wpdb->get_results( "SELECT wp_best_favs.user_id, wp_postmeta.post_id FROM wp_best_favs LEFT JOIN wp_postmeta ON ( wp_postmeta.post_id = wp_best_favs.celeb_ID ) WHERE ( wp_postmeta.meta_key = 'fecha_na') AND (DAY( <code>wp_postmeta</code>.<code>meta_value</code> ) = DAY( '$fecha_act' )) AND (MONTH( <code>wp_postmeta</code>.<code>meta_value</code> ) = MONTH( '$fecha_act' ) ) ") ; $res_birth = array_filter($res_birth); $matriz = objectToArray($res_birth); //convertimos el array de objetos en array normal para manejarlo mas facil $current_time = bp_core_current_time(); if(count($matriz)==0) { // está vacío } else { global $wpdb; $bp = buddypress(); $subject = 'Celebrity birthday'; $message = '1 Say happy birthday to $famoso_name'; $content = '2 Say happy birthday to $famoso_name'; foreach ($matriz as $v1) { $famoso_id = $v1[post_id]; $famoso_name = get_the_title ($v1[post_id]); $receiver_user_id = $v1[user_id]; $args = array( 'user_id' => $receiver_user_id, 'item_id' => $famoso_id, 'secondary_item_id' => $famoso_id, 'component_name' => $bp->celbirthday_notifier->id, 'component_action' => 'new_birthday', 'date_notified' => $current_time, 'is_new' => 1, ); bp_notifications_add_notification( $args ); } } } } add_action( 'new_birthday', 'buddypress_celebrities_add_notification', 10, 1 );so far this is what I am trying to do, hope you understand.
Thanks in advance.August 13, 2015 at 5:28 pm #243160In reply to: BUDDYPRESS 2.3.2 PROBLEM WITH PROFILE BUTTONS
kostasbarkas30
Participantthanks @danpb. buddypress is really great!!! thanks again for your advises.
August 13, 2015 at 4:57 pm #243157In reply to: BUDDYPRESS 2.3.2 PROBLEM WITH PROFILE BUTTONS
danbp
Participanthi @kostasbarkas30,
i even tried to copy some functions from bp default theme in my functions php theme but still nothing.
Revert back to the original install by deleting that custom work. then follow @djsteveb advice.
Keep in mind that you should never install something on WordPRess before WP is working correctly. Same thing when you add, let’s say BuddyPress. In this case, WP and BP should work flawlessly together. Once you hace the built your house, you can add the wallpaper. OMG ! Like IRL ! 😉
That way, it’s much easier to debug if an issue occurs. 1 is ok, add 2. 1 & 2 are ok. Add 3. 1 & 2 & 3 are ok, and so on.
Note also that BP-Default theme is no more maintained and is only in for backward compatibility. BuddyPress works on slightly any theme !
BP has no theme, just some templates with minimal styles. This stuff is stored in bp-templates/bp-legacy/buddypress/. If you need to modify some theme functions, you do it from within a child-theme, in which you copy what you want to change from bp-legacy.
All this and more, is explained on Codex. Don’t hesitate to read through it, if you’re new to BP !
We all started a day. Rome wasn’t built in one day. It’s a Long Way to Tipperary . Facebook is unique and BuddyPress is great. Hold on, it’s just the begin ! 🙂
August 13, 2015 at 4:38 pm #243156In reply to: Need urgent help with BP notifications
danbp
ParticipantI mean what you wrote in your first example:
function setup_globals( $args = array() ) {...}The right way is the one indicated on codex and by @henrywright on stackexchange. (in fact, the same snippet).
The question now is, what do you want to notify to a user ? You’re testing, ok, but what’s your purpose ? We need an activity ! For example, is celebrities (in your first topic) a custom post type ?
The example on Codex tells a user he was mentionned. This is now built in BP, so it’s no more representative of how to insert a non core activity. It shows you only the way to do it, and you can’t use it by simply copy/pasting.
August 13, 2015 at 3:39 pm #243151In reply to: BUDDYPRESS 2.3.2 PROBLEM WITH PROFILE BUTTONS
djsteveb
Participant@kostasbarkas30 – disable all other plugins except buddypress.
might want to add another user just in case that’s an issue.
switch to 2014 theme or 2015 theme.
these “buttons” you are talking about may be tabs, or text – sometimes across the top, with the updated 2014 and 15 I think they are styled to be a side tab kind of display.If they display on the default themes and not the one from linash – then you will need to contact them and ask why.
August 13, 2015 at 2:29 pm #243149In reply to: problems edit friend tab colors
jshonkwi
ParticipantThat did it! Awesome. My first time doing Buddypress edits. Thanks!
August 13, 2015 at 2:00 pm #243147In reply to: Looking how to implement custom nav bars
danbp
Participant@seore, please search a bit before asking ! For example “add profile tab to nav bar”
https://buddypress.org/support/search/add+profile+tab+to+nav+bar/BP use slgihtly same technique as WordPress to build menus.
https://codex.wordpress.org/Function_Reference/wp_nav_menuAugust 13, 2015 at 1:53 pm #243146In reply to: Photo upload
danbp
ParticipantSee here: http://buddydev.com/buddypress/presenting-mediapress-media-plugin-will-ever-need-buddypress/
Works fine !
August 13, 2015 at 11:16 am #243135In reply to: Creating marketplace using buddypress
Roger Coathup
ParticipantHi Ollie,
this is all achievable with a custom build on top of BuddyPress and WordPress.
We’ve built similar marketplace type sites on the platform in the past. BP is a useful base for the profiles in this scenario, but also the messaging, and the activity items (which can help with audit trails and transaction history).
However, 50 hours is not a lot for a site build — a basic well designed & written portfolio site can take that in excess of that. Once you add custom functionality, the multiple screens, the security and transactional aspects of a marketplace site — you’ll be considerably more.
When looking to engage a developer bear in mind you will get a better quality site in less time from expert developers. Of course, you’ll also be paying higher hourly rates for their expertise. An expert should also advise you at the start whether what you want to achieve is reasonable within your budget.
Suggest you should post this on the job board along with contact details.
Roger
August 13, 2015 at 10:56 am #243132In reply to: No Change Avatar link and url
danbp
ParticipantNo thank you ! If you need someone to get the job, hire a dev. You could post at the official WordPress Jobs Board at https://jobs.wordpress.net and/or here at https://buddypress.org/support/forum/plugin-forums/bp-jobs-board/
August 13, 2015 at 10:50 am #243130In reply to: [Resolved] Removing Activity from members page
danbp
Participantplease search the forum if a similar question already exist, before asking.
https://buddypress.org/support/topic/remove-item-from-sub-nav-on-profile-page/August 13, 2015 at 9:20 am #243121In reply to: No Change Avatar link and url
danbp
ParticipantIf you hav so much session, i would be preferably for yu to have a local install where you can test and replicate what’s going on live site.
Now, regarding your avatar issue, it can be related to the same symptom reported here:
https://buddypress.org/support/topic/profile-pic-upload-failure/or not !
In this case (and also the missing sidebar), we nead more details about your config, (ms, single), active theme and used plugins. Or at least a site URL.
August 13, 2015 at 8:24 am #243113In reply to: Custom URL for Users
danbp
Participanthi @dangersparkjm,
add this to bp-custom.php
define ( 'BP_ENABLE_ROOT_PROFILES', true );Codex reference:
August 13, 2015 at 3:54 am #243107djsteveb
Participant@atfpodcast – is the bar there when they are not logged in?
does it do the same thing when using the 2014 or 2015 theme?
have you checked settings –
admin dashboard – settings – buddypress – click the settings tab – checkbox – Toolbar Show the Toolbar for logged out users ?
occur when other plugins are deactivated?
August 13, 2015 at 12:19 am #243104In reply to: Profile Pic upload failure
AdventureRidingNZ
ParticipantThanks for that. I’ve tried it under Twenty Twelve with the same result but not with all other plugins deactivated yet as there’s a lot of them.
The profile path just happened like that when I installed BuddyPress. I was running WP and BBPress for a while and the members URL was /members/username. When I installed BuddyPress later it changed to /members/members-2/username as part of the BP install. I didn’t actively do anything to make it like that and thought that much have been standard.
August 12, 2015 at 10:30 pm #243100In reply to: Need urgent help with BP notifications
danbp
ParticipantPlease use the code button when you publish code !
First, you can’t use a function name twice. (setup_globals)
Second, it’s more easier to do after reading the correct documentation:And to find some answers once you have this information:
http://stackoverflow.com/questions/23148948/add-a-custom-notification-in-buddypressThe dev discussion around the new notification system:
https://buddypress.trac.wordpress.org/ticket/5148And the appropriate filter
bp_notifications_get_notifications_for_userwhich let non BP component hook into notification:
https://buddypress.trac.wordpress.org/changeset/7578August 12, 2015 at 6:30 pm #243094In reply to: Creating marketplace using buddypress
djsteveb
Participant@olliecard – I’m sure there are many ways to accomplish this, however I am not sure that buddypress is easily adaptable to some of the requirements – privacy for certain things, restricting profiles and such. I hope someone can chime in an share methods for using BP in this way, I’d love to see those options.
You could play with things like s2member for some restrictions and payments even – but restricting BP stuff is a challenge I think. Using other member and restrictions plugins with regular wordpress is pretty solid.
I believe you may be able to achieve your goal using some other WP plugins – there are many others that get into profiles, membership, restrictions, classifieds and such.
It might be 50 hours of work to mash all the various components together in a perfect way – and if so you may want to look at what wpmudev has withe their “membership 2” plugin and others that mix with it. wpmudev peeps had quick answers and solutions for something similar I posted about there years ago. I think their prices are double what they should be – but the support there exists, and if you are looking at a serious project it may be best to get into a professional support system like that.
Of course you would mix and match some of the free plugins in the wp-repo and probably come out with something – press permit, profile plugins, s2member – custom fields, tweak some themes – maybe even go WP-MS multi site for some semi-separated static things – and you may achieve what you are describing as well.
I’d love to see others post about other options, and I’d love to see BP have more fine grained control over things – it’s moving in that direction with things like user levels and such so the future with bp is possible, I just don’t think it’s there yet, and likely won’t be playing well with others anytime soon – and getting code help with BP – even if you offer to pay for it – is not the easiest thing in the world.
2 cents from a random user – not an expert
August 12, 2015 at 4:49 pm #243091In reply to: Photo upload
chicho1969
ParticipantYou may try this pluging: BuddyPress Activity Plus, I am pretty sure that it doews what you are looking for. link; https://wordpress.org/plugins/buddypress-activity-plus/
August 12, 2015 at 4:33 pm #243090In reply to: Wp Photo Album Plus – works 100% with Buddypress!
Jenny
ParticipantHi there,
Unfortunately the website I used wp album plus on, is my client’s private social networking website,by invitation only, so I can’t share his website link here.However I assure you that it does indeed work properly with Buddypress. If you see this support thread below, I added a tinypic link in one of the posts there, which shows a screenshot of how albums look on the front end, using buddypress and wp photo album plus plugin. If you use the echo code in this support thread, then it will work with Buddypress, no problem.
August 12, 2015 at 4:01 pm #243087In reply to: Need urgent help with BP notifications
chicho1969
ParticipantOk, now I am trying this:
//function class function setup_globals( $args = array() ) { global $bp; $sr_notifications_test_slug = 'sr_notifications_test'; parent::setup_globals( array( 'id' => 'sr_notifications_test', 'slug' => $sr_notifications_test_slug, 'notification_callback' => array( $this, 'sr_format_notifications_test' ) ) ); /* Register this in the active components array */ $bp->active_components[$sr_notifications_test_slug] = 'sr_notifications_test'; // do_action( 'setup_globals' ); } //format notofication function sr_format_notifications_test( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { switch ( $action ) { case 'my_test': $link = get_permalink( $item_id ); $text = 'Test Notification'; $return = apply_filters( $filter, array( 'text' => $text, 'link' => $link ), $link, (int) $total_items, $text, $link, $item_id, $secondary_item_id ); break; } do_action( 'sr_format_notifications_test', $action, $item_id, $secondary_item_id, $total_items ); return $return; } //Notification added to DB: bp_notifications_add_notification( array( 'user_id' => $user_id, 'item_id' => $activity->id, 'secondary_item_id' => $activity->user_id, 'component_name' => buddypress()->activity->id, 'component_action' => 'my_test', 'date_notified' => bp_core_current_time(), 'is_new' => 1 ) ); print_r ($bp->active_components[$sr_notifications_test_slug]);and this is the error I have: (still the same)
WordPress database error: [Table 'WP_db_funs.n' doesn't exist] SELECT * FROM n WHERE component_name IN ('activity') AND component_action IN ('my_test') AND is_new = 1 WordPress database error: [Incorrect table name ”] INSERT INTO (user_id,item_id,secondary_item_id,component_name,component_action,date_notified,is_new) VALUES (0,0,0,'activity','my_test','2015-08-12 15:57:21′,1)Please if anybody Knows about this I will apreciate any help 🙁
Table ‘WP_db_funs.n’ doesn’t exist how come?? table n ??
-
AuthorSearch Results