Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 46,176 through 46,200 (of 68,970 total)
  • Author
    Search Results
  • tweetyx
    Participant

    Problems solved on actually bp and wordpress 3.0 for profile
    The first problem was the js conflict with jquery -> dynamic marks not works
    the second is the profile maps doesn’t work so ->
    the file bp_maps_profile_init.php contain a bp_maps_profile_init() function where the function bp_maps_profile_is_enabled, bp_is_profile_edit and bp_maps_profile_is_map_group return false so the js aren’t be loaded .
    So you must change the condition for it work!
    this is my code
    function bp_maps_profile_init() {
    global $bp;

    //backend options
    add_action( ‘bp_maps_admin_plugins_div’,’bp_maps_profile_admin_plugins_div’);
    //the numer of my group edit for the location page (/members/admin/profile/edit/group/6/)

    if(strpos($_SERVER[“REQUEST_URI”], “edit/group/6?) !== false):

    //change infobulle content to set user’s info
    add_filter(‘bp_maps_marker_infobulle_content’,’bp_maps_profile_infobulle_content’,10,2);
    //add_filter(‘bp_maps_get_markerslist_marker_content’,’bp_maps_profile_marker_content’,10,2);

    //change infobulle content to set user’s info
    add_filter(‘bp_maps_get_marker_title’,’bp_maps_profile_marker_title’,10,2);
    add_filter(‘bp_maps_get_marker_list_title’,’bp_maps_profile_marker_title’,10,2);

    add_action(‘wp_print_scripts’,’bp_maps_profile_print_scripts’); //edition scripts (address autocomplete)
    add_filter(‘bp_maps_get_map_js’,’bp_maps_profile_add_map_js’,10,2); //array to contain the field ids
    add_action(‘wp’,’bp_maps_profile_edit_no_marker’);

    //TO FIX : useless ?
    //add_filter(‘bp_maps_get_new_marker_address’,’bp_maps_profile_get_new_marker_address’);

    do_action(‘bp_maps_profile_edit_map_screen’);

    bp_maps_head_init(); //load maps JS

    endif;

    }

    If you want to dll my version it here http://www.sky-flop.com/buddypressmaps-titi.rar

    #93977
    Bowe
    Participant

    Sorry for the double post guys!

    @skolbloggense: I’ve been looking into CourseWare and it seems to behave great under BP-Slick. There are a few css styling hickups and I will look into them on a later date, but it is certainly usable straight away without any major problems. I did add a new option to the theme options panel which allows you to make Theme fluid. This means it will expand on higher screen resolutions (like the standard theme does as well) and communities who use courseware should benefit from this, because it looks less crammed. A screenshot:
    http://dl.dropbox.com/u/1628201/courseware.png :-)

    #93976
    tweetyx
    Participant

    Problems solved on actually bp and wordpress 3.0 for profile
    The first problem was the js conflict with jquery -> dynamic marks not works
    the second is the profile maps doesn’t work so ->
    the file bp_maps_profile_init.php contain a bp_maps_profile_init() function where the function bp_maps_profile_is_enabled, bp_is_profile_edit and bp_maps_profile_is_map_group return false so the js aren’t be loaded .
    So you must change the condition for it work!
    this is my code
    function bp_maps_profile_init() {
    global $bp;

    //backend options
    add_action( ‘bp_maps_admin_plugins_div’,’bp_maps_profile_admin_plugins_div’);
    //the numer of my group edit for the location page (/members/admin/profile/edit/group/6/)

    if(strpos($_SERVER[“REQUEST_URI”], “edit/group/6”) !== false):

    //change infobulle content to set user’s info
    add_filter(‘bp_maps_marker_infobulle_content’,’bp_maps_profile_infobulle_content’,10,2);
    //add_filter(‘bp_maps_get_markerslist_marker_content’,’bp_maps_profile_marker_content’,10,2);

    //change infobulle content to set user’s info
    add_filter(‘bp_maps_get_marker_title’,’bp_maps_profile_marker_title’,10,2);
    add_filter(‘bp_maps_get_marker_list_title’,’bp_maps_profile_marker_title’,10,2);

    add_action(‘wp_print_scripts’,’bp_maps_profile_print_scripts’); //edition scripts (address autocomplete)
    add_filter(‘bp_maps_get_map_js’,’bp_maps_profile_add_map_js’,10,2); //array to contain the field ids
    add_action(‘wp’,’bp_maps_profile_edit_no_marker’);

    //TO FIX : useless ?
    //add_filter(‘bp_maps_get_new_marker_address’,’bp_maps_profile_get_new_marker_address’);

    do_action(‘bp_maps_profile_edit_map_screen’);

    bp_maps_head_init(); //load maps JS

    endif;

    }

    If you want to dll my version it here http://www.sky-flop.com/buddypressmaps-titi.rar

    Hugo Ashmore
    Participant

    @lespaul I’m afraid you won’t find a lot of help tagging on to the end of a thread in this way. Please start a fresh topic, describe your issue, detail your setup; versions, plugins in use, themes in use, etc and someone hopefully will be able to help.

    #93967
    Anonymous User 96400
    Inactive
    #93960

    In reply to: Search Activity

    Anton
    Participant

    @thelandman, I’m busy creating one. Will send you the link over the weekend to help test

    #93955
    Anonymous User 96400
    Inactive

    As far as I know that doesn’t exist (maybe gpress? not sure…). I implemented that for a couple of my sites, though. It’s fairly easy, but there’s some coding involved.

    First you specify a profile field, like Location. Then when someone signs up, or when someone edits his/her profile, you request the geocoded location based on that profile field from Google. Then it’s a good idea to check if that location already exists in the database. Google maps don’t display 2 pins for the same location, so you just add like 0.0001 to both the longitude and the latitude and check again until you end up with a unique location. Then save the location as usermeta.

    The second step is to put all of these markers onto a Google map. It’s best to use a script like markerclusterer.js. Imagine you have 10.000 users. When you want to display all of them on one map it’ll take ages to render all of these pins. markerclusterer groups pins that sit in a certain radius together and only displays them when you zoom into the map. So then you pull all the locations from the database and pass it to the google maps script.

    Have a look at http://scubavagabonds.com/divers/. I had been thinking of turning that into a plugin (I still might at some point), but for now I just don’t have the time. There’s a lot of documentation available for Google maps version 3 and if you know some php it shouldn’t be too hard.

    #93953
    lespaul
    Member

    Is it possible to delete the Buddypress plugin and reinstall it or will I loose all my data when doing this?

    #93945
    Anonymous User 96400
    Inactive

    Well, when yo call xprofile_template_loop_end, then this hook should only run once the complete loop has finished. There’s no way of adding stuff before or after a certain action hook (except when there’s another hook), only right where the hook is. One way of adding things to a loop is to use a counter for the loop and then add a dynamic hook to every entry, like so:
    `do_action( ‘some_custom_hook_’. $counter );`

    BuddyPress plugins are just WordPress plugins, so the best starting point is probably the WP codex:
    https://codex.wordpress.org/Main_Page

    Then there’s the skeleton component that does a pretty good job of explaining some BP specific stuff:
    https://wordpress.org/extend/plugins/buddypress-skeleton-component/

    And of course the BP plugin files and other BP plugins, that you can have a look through.

    #93940
    Roger Coathup
    Participant

    @ashwanim

    Ok, that’s very advanced level stuff – some quick answers below – BUT, please post your xprofile questions as separate threads – and give a better indication of the problem in the title (“plugin development – please help” is way too general, and unfortunately likely lead to your question being overlooked).

    1. I don’t know of any book on BuddyPress plugin development – unfortunately, the codex as @lph2005 points out, is the best starting point, but it’s nowhere near developed enough to handle the questions you are asking re: xprofile_template_loop_end

    2. Unless a core developer / xprofile expert can step in here, I don’t know of a better solution than tracking through the code and seeing if an earlier hook is called (and for 3. whether there is anything in the data structure passed to the hook that gives a more specific activity type). Ask these as separate threads.

    4. We’ve done some work on this – if you post as a separate thread – I’ll dig through our work at the weekend, and see if I can post some pointers

    #93939
    Hugo Ashmore
    Participant
    #93937
    @mercime
    Participant

    It would, but only if bbPress was installed via WP dashboard > BuddyPress > Forum Setup. BP theme won’t work in external bbPress installation.

    dougjoseph
    Member

    @paulhastings0

    Very kind invitation! I’m too much of a newbie to say much yet. But I am trying to remember than when groups need to think outside the box, they need input from newbies who don’t know there is a box. :-)

    dougjoseph
    Member

    @RogerCoathup

    Thanks! Immensely helpful.

    When members visit one of their friend’s profiles and don’t immediately see stuff they and others have posted to that friend, it makes it hard to build any interest in the site as a place of social interaction.

    I will be working on this. Thanks again!

    #93931
    Tolden
    Member

    What kind of plugin is it going to be? When do you want to release it?

    #93927
    copgarden
    Participant

    @MariusOoms any ideas on how I can fix this or what the problem might be, what I can look for etc?

    #93925
    LPH2005
    Participant

    Others will be more specific with you but here is an important link.

    BuddyPress Codex

    mojoshaun
    Participant

    @nahummadrid
    Did you ever figure out how to automatically create a blog for newly registered users? I’m looking to do the same thing.

    #93920
    joerogers1970
    Participant
    #93915
    rayd8
    Member

    I’m going to try and add the steps for the fix again. I didn’t see the note about using backticks for code…

    1. Open the index.php, save it to your theme as posts-page.php (or whatever template name you like).
    2. Edit the newly created posts-page.php file and place the following at the top to create a page template:

    `<?php
    /*
    Template Name: Posts Page
    */
    ?> `

    3. Now scroll down in the posts-page.php to the beginning of the WordPress loop and just before the line “ add this one line of code “ Note: (5 == the number of post to show you can change this to whatever you want.)
    4. Save the posts-page.php file.
    5. In your WordPress/BuddyPress admin panel create a new page called “Blog” (or something similar) and select “Posts Page” under Template.
    6. Publish page.

    You should now be able to go to your Settings -> Reading menu and set a static page and select your Posts Page to show your blog posts.

    #93914
    pcwriter
    Participant

    @rogercoathup

    Oh crap, you’re absolutely right! That should have read position:absolute; :-(

    (Now that I’ve had my nap, my brain is working better.)

    #93913
    paulhastings0
    Participant

    16 months… we’ve been waiting that long? Wow.

    paulhastings0
    Participant

    We meet online every 2 weeks. You can suggest agenda items here: http://bpdevel.wordpress.com/

    Wednesdays @ 19:00 UTC

    IRC: irc.freenode.net
    Channel: #buddypress-dev
    Web-based IRC client: http://java.freenode.net/

    Roger posted some good links too. I’ve been really impressed with the potential of filters and the like.

    #93911
    LPH2005
    Participant

    @modemlooper “Could slow down your site if you do live updating for every member.” — Yes. this would depend on the implementation. For example, if the BuddyPress Activity Stream Ajax Notifier was reworked to refresh the page rather than notify then the activity stream would “feel as a real-time” activity.

    Roger Coathup
    Participant

    Ok… there are few things you need to look at to achieve this:

    You should create a new theme where you are going to implement your reworked profile / activity sub-nav menu. I suggest deriving this from the bp-default theme: https://codex.buddypress.org/extending-buddypress/building-a-buddypress-child-theme/

    In the default theme, the activity sub-nav menu is created by a call to bp_get_options_nav() in /members/single/activity.php. It’s this call that you’ll either want to replace with your custom version (or apply filters / action hooks to get your desired result).

    You should also take a look at how the activity stream is built – it’s quite easy to create your own activity loop that will return all the items for a given user merged into a single page (rather than the separate tabs): https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/

    Hopefully that’s enough to get you started.

Viewing 25 results - 46,176 through 46,200 (of 68,970 total)
Skip to toolbar