Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 40,026 through 40,050 (of 68,919 total)
  • Author
    Search Results
  • #111232
    r-a-y
    Keymaster

    There’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#Actions

    Here’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.

    r-a-y
    Keymaster
    #111214
    LPH2005
    Participant

    Here 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:

    https://buddypress.org/community/groups/creating-extending/forum/topic/widgets-on-main-home-page/#post-77292

    #111213

    In reply to: Signatures!

    LPH2005
    Participant
    Dwenaus
    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.

    #111208
    Brooker
    Member

    wont be able to upload pictures from your iphone unless you create an app for it…..

    Dwenaus
    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_rated

    maybe 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!

    #111199
    Nahum
    Participant

    I know i’ve seen this topic before…I just did a search https://buddypress.org/search/?f=default+activity

    @msullens88

    Thanks- I stumbled across that the other day. I wish it weren’t a core change. Guess we can’t have it all.

    Be well

    #111195

    In reply to: Buddypress events

    ARHistoryHub
    Participant

    Thanks! Changing the caps was pretty easy. Good job commenting out your stuff by the way!

    Paul Wong-Gibbs
    Keymaster

    Ok – 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.

    stephensimon
    Member

    Paul – 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.

    #111192
    Virtuali
    Participant
    #111191

    In reply to: Buddypress events

    kunalb
    Participant

    Have 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.

    #111190
    Virtuali
    Participant

    Brajesh has the plugin on his site: http://buddydev.com/plugins/bp-chat/

    #111189
    Brooker
    Member

    wpmudev.org has a chat plugin.. not sure how it works tho

    stephensimon
    Member

    I 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.

    #111183

    In reply to: Buddypress events

    ARHistoryHub
    Participant

    Would 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!

    #111182

    you 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 luck

    Dwenaus
    Participant

    Boone, 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.

    #111179
    Brandon Allen
    Participant

    You 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.

    #111178
    astromono
    Participant

    Nevermind! 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’ :)

    #111177
    Brandon Allen
    Participant

    Child 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.

    #111175
    JamieWade
    Member

    This may also be a problem with your hosting. Make sure to set the correct permissions in your wp-content folder.

    #111174
    astromono
    Participant

    How would I go about starting to check up on my multisite set up?

Viewing 25 results - 40,026 through 40,050 (of 68,919 total)
Skip to toolbar