Search Results for 'buddypress'
-
AuthorSearch Results
-
April 28, 2011 at 6:54 am #111232
In reply to: Notification on Profile Update
r-a-y
KeymasterThere’s a `do_action` hook you can use:
`xprofile_updated_profile` (located in /buddypress/bp-xprofile.php.)You could potentially use the wp_mail() function to send an email to the admin with this hook.
Don’t know what a `do_action` is and how to make use of it?
If you’re familiar with a tiny bit of PHP, here’s some articles that will help:
http://www.nathanrice.net/blog/an-introduction-to-wordpress-action-hooks/
https://codex.wordpress.org/Plugin_API#ActionsHere’s something quick you can try:
`function my_update_profile_send( $id ) {
$text = bp_core_get_user_domain( $id );
wp_mail( ‘YOUR ADMIN EMAIL ADDRESS’, ‘Profile Updated’, $text );
}
add_action( ‘xprofile_updated_profile’, ‘my_update_profile_send’ );`Put the code snippet in your theme’s functions.php.
April 28, 2011 at 6:46 am #111229r-a-y
KeymasterApril 28, 2011 at 4:01 am #111214In reply to: Displaying Recent posts on main page
LPH2005
ParticipantHere is one way:
—-
Register a widget on a template page of your theme. Set that page to the front.http://www.techtipsgeek.com/how-to-add-extra-widget-section-wordpress-blog/781/
Next, use the RSS widget (or another plugin) to show the blog post.
—
Here is more information:
April 28, 2011 at 3:43 am #111213In reply to: Signatures!
LPH2005
ParticipantApril 28, 2011 at 12:08 am #111209Dwenaus
Participant@djpaul and @boonebgorges, I hear you about the caching. that is one big bonus. I can make big ugly queries and know that they’ll be cached. If I ‘roll by own’ then I’ll have to build caching myself (but it’s not that hard).
I looked at the meta_query functions, and they seem quite sufficient for most queries, they only thing they are missing are the powerful mysql abilities such as GROUP BY, COUNT, DISTINCT, and mysql’s cryptic but powerful date range functions. Much of this can be done in php with more flexibility, but sometimes it’s nice to do a single query and get exactly what you want.
The most common need for this plugin, is to display the combined vote/rating/likes of a content object. I can pretty easily figure out how to do that with MySQL, but how to do it quickly with custom post types/taxonomies?
For example, i’m looking at a list of images, and I want to see the ratings of each image. I can’t really store it in my new rating custom post type, do I store it in some site option? seems kinda odd, or do I create a new custom post type – one for each object type – seems kinda odd, or do I use taxonomies. Or do I store it in the meta table of that individual object such as post_meta, group_meta. etc. this will not scale well because some objects have no meta table (such as images).
any insights into these things would be greatly appreciated.
April 28, 2011 at 12:02 am #111208In reply to: Buddypress and Mobile Devices
Brooker
Memberwont be able to upload pictures from your iphone unless you create an app for it…..
April 27, 2011 at 11:50 pm #111203Dwenaus
Participant@djpaul oh boy – I was hoping you wouldn’t say that!
Can you tell me why you are re-writing it, and if you’ve started any difficulties you’ve encountered.Here is my initial db scheme with examples (initially visualized as a mysql table)
rating_id – auto-generated
object_id – id of object being rated. ie. post_id, group_id, bp_album image id, forum_post_id
object_type – type of thing beind rated. ie. group, blog post, album image, forum post
rater_user_id – the user_id of the person doing the rating (need to be logged in)
owner_user_id – the user id of the person who ‘owns’ the object being rated
rate_type – either ‘like’, ‘vote’ or ‘rate’.
rate_value – value of rating/like/vote. Like can only be ‘like’, vote is 1 or -1, rate can be range from 1 to 5.
date_ratedmaybe I’m being too flexible with the different rate types and I should just stick to one type, such as Facebook style ‘Like’. but then that leaves out a lot of functionality for amazon and app store style ratings. it would be nice if these were consolidated in one area, but maybe too ambitious.
Looking again at custom post types/taxonomies I can see how the custom post type will be an individual rating, and the owner of that custom post type will be the rater. I can add a custom field for the user id of the object owner. It looks like the object_type would be a custom taxonomy, and the id of the object rated would be another custom field. The value of the rating could either be a custom field or maybe a taxonomy.
Should I be connecting up the object being rated or the object owner using custom taxonomies? if yes, then I’m having trouble visualizing that.
thanks!
April 27, 2011 at 11:08 pm #111199In reply to: “Show Updates” as default in activity?
Nahum
ParticipantI know i’ve seen this topic before…I just did a search https://buddypress.org/search/?f=default+activity
April 27, 2011 at 10:59 pm #111197embergermedia
MemberThanks- I stumbled across that the other day. I wish it weren’t a core change. Guess we can’t have it all.
Be well
April 27, 2011 at 9:58 pm #111195In reply to: Buddypress events
ARHistoryHub
ParticipantThanks! Changing the caps was pretty easy. Good job commenting out your stuff by the way!
April 27, 2011 at 9:43 pm #111194Paul Wong-Gibbs
KeymasterOk – so you’re going to your profile’s private message, compose; what type of search term do you enter in the name field? Do you get any autocompletion results (an AJAX script ought to be running)? Does the search term match up to a particular user?
Just trying to understand where it’s falling out. BuddyPress private messaging doesn’t use email addresses.
April 27, 2011 at 9:25 pm #111193stephensimon
MemberPaul – we are using the standard WP user account usernames for login, not email addresses. I didn’t do the original WP install, but I checked the wp-config file and I didn’t see anything relating to compatibility mode.
April 27, 2011 at 9:25 pm #111192In reply to: Buddypress and Mobile Devices
Virtuali
ParticipantHave you tried: https://buddypress.org/community/groups/buddypress-mobile/?
April 27, 2011 at 9:12 pm #111191In reply to: Buddypress events
kunalb
ParticipantHave a look at how capabilities are granted in models/events.php—you can grant the required caps to subscribers too. Or, there’s an event_creator role that’s just meant for this—in the wordpress admin area, you could make the default user role Event Creator, and also bulk modify the existing user capabilities to event_creator.
April 27, 2011 at 9:12 pm #111190In reply to: BuddyPress Chat – Similar to Facebook’s
Virtuali
ParticipantBrajesh has the plugin on his site: http://buddydev.com/plugins/bp-chat/
April 27, 2011 at 9:00 pm #111189In reply to: BuddyPress Chat – Similar to Facebook’s
Brooker
Memberwpmudev.org has a chat plugin.. not sure how it works tho
April 27, 2011 at 8:54 pm #111186stephensimon
MemberI haven’t confirmed whether standard WordPress notifications are being delivered to email addresses with country code extensions. I’ll give that a try and report back.
April 27, 2011 at 8:46 pm #111183In reply to: Buddypress events
ARHistoryHub
ParticipantWould it be possible to give permission to create events to all Subscribers (new and old) ? I’d like to enable event creation by default for all logged in BP users. I’ve fiddled around with wp.php without any success… Any ideas? Thanks @kunalb! Looking forward to the next version!
April 27, 2011 at 8:40 pm #111182In reply to: BuddyPress Chat – Similar to Facebook’s
Andres Richero
Memberyou may try bowob.com – quite nice chat module – very similar to FB chat and some interesting config options.
It has both free and paid versions.
Good luckApril 27, 2011 at 8:10 pm #111180Dwenaus
ParticipantBoone, thanks for the feedback.
I’m still a bit hesitant to use custom post types. Maybe the query powers are good enough but in some cases where I want to get meta information about all ratings, won’t I run into problems when my data is separated into the posts table and the posts_meta table. I’ll have to do some complex joins and what not. But if I make a custom DB table, I can just use GROUP BY or DISTINCT to get what i need quite quickly. I’m thinking of stuff like Highest Rated XYZ or Most Rated ABC. These things won’t fit so well into the custom post type/custom taxonomy mould. Any more thoughts on this?
@djpaul – I see in your (totally awesome) achievements plugin, that you use a few custom db tables. Do you have any thing to add regarding your choices. I’m thinking this ‘Rate everything’ is more akin to that plugin.
Also, I’m thinking this plugin will be a bit more like Facebook ‘Like’ than an actual star Rating. but we’ll see what comes out in the end.
April 27, 2011 at 8:10 pm #111179In reply to: Avatar uploads fail on Buddypress Multisite
Brandon Allen
ParticipantYou can add the following line to your wp-config.php file the tell WP where your wp-content folder is located.
`define( ‘WP_CONTENT_DIR’, ‘/path/to/your/wp-content’ );`
Make sure you leave off the trailing slash. That may fix things, and it’s an easy fix/test.
April 27, 2011 at 8:09 pm #111178In reply to: Avatar uploads fail on Buddypress Multisite
astromono
ParticipantNevermind! I was actually able to fix it by going into wp-config.php and making sure that the BP_ROOT_BLOG was set up with the right blog ID. I had a ‘9’ instead of a ’10’
April 27, 2011 at 8:04 pm #111177In reply to: How to contribute to Buddypress code development
Brandon Allen
ParticipantChild themes don’t restrict anything. You can have a child theme that completely overwrites the parent theme’s code. The idea behind a child theme is that it allows uniformity, and something for plugin authors to count on when it comes to hooks and such.
Also, most of the changes you’d like to see are changes that would need to happen in core, with minimal code changes to the theme, and a few of them would be doable as plugins.
April 27, 2011 at 7:51 pm #111175In reply to: Avatar uploads fail on Buddypress Multisite
JamieWade
MemberThis may also be a problem with your hosting. Make sure to set the correct permissions in your wp-content folder.
April 27, 2011 at 7:42 pm #111174In reply to: Avatar uploads fail on Buddypress Multisite
astromono
ParticipantHow would I go about starting to check up on my multisite set up?
-
AuthorSearch Results