Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 43,601 through 43,625 (of 68,947 total)
  • Author
    Search Results
  • #101477
    Boone Gorges
    Keymaster

    I also have found myself torn about using pages for BP directories. In the end, though, I think it’s a compromise that works out for the better in the short- to medium-run, and does not have awful long-term consequences.

    In my view, it is a gross overstatement to say that this move ‘ruins’ BP. However, there are a few things about it that are unappealing:
    1) It forces the creation of what are, essentially, dummy pages – whatever content you might add to the page through the normal WP editor is totally ignored
    2) Related – It uses part of the WP page infrastructure (URLs) without using others (in particular, WP page templates)

    Problem (1) is unappealing, but it is mitigated by a couple of points. First, the current system is not a whole lot better. Instead of having ‘dummy’ pages that you can see in the admin (like BP trunk has), the current version of BP has ‘phantom’ pages, so that when BP detects a URL like example.com/groups, it essentially hijacks the page load in order to do its own stuff. This is a bit jarring, and not at all transparent. So there is a trade-off, but it’s not all bad. Second, while the idea that ‘Pages in WordPress are supposed to be static content’ seems right to me in broad strokes, it doesn’t seem to me to be a hard-and-fast rule. Many plugins (gallery plugins, ecommerce plugins, etc) display their content by means of a shortcode that is manually inserted on a page or post, with pages being used for their pretty URLs.

    On the other hand, there are some real benefits to directories-as-pages:
    A) Easier URLs (as @driz has noted)
    B) Integration into WP 3.0-type menus (this is the big one IMO)

    How important are things like (A) and (B)? For sites maintained by folks with some PHP chops (and organizations with money to pay people with PHP chops), they could be fairly easily accomplished with BP_GROUPS_SLUG, etc, and with some other finagling. But – and this is just a guess – this profile does not match most of the users of BP. Nor should it, necessarily. To the extent that BP can be easy to use and install for people with little technical knowledge, without at the same time making it less flexible from a developer’s point of view, it should be. This change is good for end users, and is no more difficult for developers than the current technique, so it seems like a net win.

    Another more theoretical argument for the directories-as-pages move (especially as compared to the new admin panel @driz suggests for changing slugs) is that BP shouldn’t reproduce functionality that WP could provide, unless there is a convincing reason for doing so. Using WP pages for BP directories is a step toward greater BP-WP integration. It’s not perfect (see my problem (2) above) but it is a start.

    As for custom post types: It’s likely that at least some of BP’s components will be refactored to use custom post types in the future. When that happens, part of the upgrade script will probably involve removing the dummy pages at issue here. So from the user’s point of view, the transition will be seamless.

    I should say that I am in agreement with a lot of the sentiment in this thread about making BP a bit more lightweight, framework-y, and disjointed than the sometimes hulking behemoth it is now. However, that kind of transition can and probably should be gradual (at least more gradual than the 1.3 release).

    #101476
    skippybosco
    Member

    Thanks @r-a-y , I’ll give it a go.

    #101475
    MrMaz
    Participant

    @r-a-y

    I am a big fan of Justin’s and have read that particular post several times in the past. I mostly agree with his arguments, but my view is even a bit more extreme, since even when you remove the term “framework” they still box you into an API that is impossible to break out of, which is not developer friendly in the long run.

    There are a lot of themes that I think do this on purpose, because it fits their business model :)

    Boone Gorges
    Keymaster

    @bgrun80 I’ve added you as an Editor on the codex. (The script that is supposed to handle this setup automatically has been acting buggy lately.)

    When you load a URL that matches a pattern that BP is looking for (eg /members/boonebgorges), BP first finds the corresponding data in the database (in this example, the profile data for a member matching the name ‘boonebgorges’) and then loads the theme file designated for this kind of data (members/single/home). In broad strokes, it’s not that different from how a standard WP post query works.

    The relationship between core files is conventional. For something like the groups component:
    – bp-groups/bp-groups-templatetags.php contains all function that are called from theme templates, along with the loop builder classes
    – bp-groups/bp-groups-filters.php contains the functions that modify the output of the groups component via apply_filters(), plus the application of any WP-native filters like kses
    – bp-groups/bp-groups-classes.php contains the database classes (for the most part, the -classes.php files should be the only place where SQL statements appear) as well as any other miscellaneous classes (like the BP_Group_Extension class, in the case of groups)
    – bp-groups/bp-groups-notifications.php contains the functions that format and send email notifications related to the group
    – bp-groups.php contains some setup functions for the component (like groups_setup_globals() and the functions that set up navigation), as well as any other functions that don’t have a natural home in any of the other files listed above.

    bgrun80
    Participant

    Question: When a user logs into a Buddypress site, do all the core files load from the Buddypress root folder, or does it simply load the theme files?

    Basically, how does the big picture work?

    Also, what is the relationship between the core files and their respective directories?
    e.g. bp-blogs.php and the bp-blogs directory

    Cheers.

    #101463
    yeggermuffin
    Member

    I updated the template pack.php to her version, but nothing happened, no changes, still not working

    #101462
    r-a-y
    Keymaster

    Sounds like you’re using an older version of WordPress.

    Deactivate BuddyPress and upgrade WordPress:
    https://codex.wordpress.org/Upgrading_WordPress_Extended

    #101461
    r-a-y
    Keymaster

    This is because the BP Template Pack plugin needs to be updated, particularly the JS variables.

    Read this for a temporary solution:
    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/buddypress-template-pack-and-buddypress-1-2-6-things-break-but-i-have-a-solution

    #101460
    r-a-y
    Keymaster
    #101458
    r-a-y
    Keymaster

    No need to hack BP.

    Put the following in your theme’s functions.php:

    `
    function ray_bp_get_send_public_message_link() {
    global $bp;

    return wp_nonce_url( $bp->loggedin_user->domain . $bp->activity->slug . ‘/?r=’ . $bp->displayed_user->userdata->user_login );
    }
    add_filter( ‘bp_get_send_public_message_link’, ‘ray_bp_get_send_public_message_link’ );

    function ray_bp_get_send_private_message_link() {
    global $bp;

    return wp_nonce_url( $bp->loggedin_user->domain . $bp->messages->slug . ‘/compose/?r=’ . $bp->displayed_user->userdata->user_login );
    }
    add_filter( ‘bp_get_send_private_message_link’, ‘ray_bp_get_send_private_message_link’ );`

    #101457
    r-a-y
    Keymaster

    I believe this is fixed in trunk.
    https://trac.buddypress.org/changeset/3591

    #101451
    MrMaz
    Participant

    @driz

    BuddyPress is already a theme. Look at bp-default. That is a full WP theme that for some reason was bundled with the plugin. There is a huge mess of code devoted to making this setup work. It is nearly impossible to freely modify the templates, even if you roll your own BuddyPress theme, because the javascript is so tightly bound to the ids and classes in the markup.

    I don’t think its reasonable anymore to call BP a plugin, since it does not enhance a WP site in the purest sense. It completely takes it over and defines an entirely new set of rules for how to customize the look of your site. That sounds like a theme to me.

    If you think about BP as a theme, then the only acceptable ways to solve the issue and stay true to WP is pages or custom post types. This only doesn’t make sense though because BP is made up of many components that should be making their OWN decisions about how they get displayed.

    So back to my original point. BP is defining too many rules, and forcing components to adhere to the default theme itself, instead of a theme prototype (which is how WP works). If BP was doing it the “right” way, then this whole issue would be moot, because each component would be deciding how its URL was determined, and the end user could decide if they liked it or not.

    I think this is in the scope of the topic because it gets into defining the problem that needs to be solved, which is important before working on a solution.

    #101449
    driz
    Participant

    @Travel-Junkie I wouldn’t call it innovation. Using pages for such functionality is a hack.

    @MrMaz I like the idea of BuddyPress being split up, but not as a theme, I think it should remain a plugin, but just not so robust.

    The problem the WordPress community is making is trying to make it so that literally anybody can build a website with a click of a button. While this may sound good, it means that we have too much automated crap going on and not enough flexible development. I really dislike that BP can be even added from the directory and has a default theme, it would of been much better manually done as a bunch of code you add to your own theme as the bp-template-pack does, and then the core code as a simple plugin. But that’s beyond the scope of this topic. The main problem at the moment is the whole WP model of using pages to fake stuff, when pages are for static chunks of content and nothing else. BP had it nailed before, we just needed more flexibility in the code behind to mess with the URLs more, the pages actually make it more robust than before as it means admins can mess the site up!

    #101447
    MrMaz
    Participant

    If you really want to take this where the root of the issue is, the underlying problem is that BuddyPress is actually a theme that has been jammed into the plugin directory and then tightly coupled to what should be multiple plugins (aka components) in one massive package.

    I am starting to feel like the only way to restore any kind of reasonable extensiblity of the BP interface it to split it into a theme, and the components into plugins which all adhere to a very strict API defined by the THEME, not a “core” plugin.

    Of course this would break every existing install. It would have to be an internal fork that was deemed to be the new way forward.

    modemlooper
    Moderator

    Well, don’t blast something for being exactly what it’s suppose to be. Since BP is a WordPress plugin and the dummies books are for absolute beginners then it makes sense to spend a great deal on the core. Is there room for more documentation? Yes!

    Read the documentation on this site: http://codex.buddypress.org
    Visit these:
    http://etivite.com
    http://bp-tricks.com
    http://wpmu.org/category/buddypress

    I’m sure there are more resources out there. Just search or ask.

    bgrun80
    Participant

    Lol, yes, I am a troll.
    I am old and smell funny and live in a cave.

    Look, in today’s economic climate, the job market is pretty much empty, even in Australia. Even if you do get a job with a company, then you’re hard pressed to pay rent and bills, and you can never think of buying a house.

    The only option left is web-development and small business. I’m sorry I got upset about it yesterday, but it’s really frustrating when you get to a golden package like Buddypress and you find that they documentation is really sparse. Then you find that there’s a book out there specifically about the package, and all that’s in it are the installation instructions and how to use the admin panel.

    For the record, there’s a second book called ‘WordPress for Dummies’, so that’s why I thought it wasn’t right that her first half of the book is about WordPress.

    bgrun80
    Participant

    Thanks for the quick replies!

    I think I understand the idea of hooks now as they are used in index.php, header.php, etc.

    @boonebgorges: Unfortunately I don’t have the ability to edit the codex, but I’d really like to.
    I also tried logging into codex.buddypress.org/wp-admin and I wasn’t allowed to do anything there either.
    It would be great if you could fix that for me, because until Jan 10th, all I’ll be doing is figuring out the code
    and publishing it in my own blog (nextgenreporters.com). It would be fun to edit the codex at the same time.

    @mercime: cheers for the heads up. I pulled that old list from another post, but I’ll update it today with 1.2.7.

    Have a good one.

    #101432
    driz
    Participant

    @Travel-Junkie deleting the pages isn’t a problem. Using pages in the first place is the problem. It’s just bad development!

    #101430
    @mercime
    Participant

    @xevo :-)
    It doesn’t have to be GPL if theme’s not *distributed* like e.g. custom theme for a client site. But if theme’s going to be sold or distributed in the wilds for free, it has to GPL.
    Remember that thingamagig with the Thesis theme?
    http://ma.tt/2010/07/theme-are-gpl-too/

    Syn-thesis 1 and Chris Pearson

    #101427
    @mercime
    Participant

    === have issue as buddy press link are coming at the bottoms. ===

    Looks to me like a regular default BuddyPress installation. What bottoms are you referring to?

    #101426
    laloma
    Participant

    @mercime

    Already select P2 on SuperAdmin > Themes, the problem is that on Appearance > Theme I select P2 but it not show as selected on same page instead BP-default show as selected, but if you hit the secon blog url it use P2.

    Is there a way to sent you blog info privately, so you can check this issue ?

    Regards,

    #101425
    driz
    Participant

    @modemlooper

    Content types sound interesting as Members, Groups, Forums etc are all types of content. Would be good to hear some input from the main developers and would be good to get this changed before releasing 1.3 and having everyone create fake pages.

    #101422

    In reply to: Hide tag cloud

    Does buddypress support multiple sidebars? I have 1 sidebar only

    #101415
    gregfielding
    Participant

    For anyone else with this issue, here is the fix. Thanks to @sbrajesh

    in bp-messages-templatetags.php, starting at line 498:

    function bp_send_private_message_link() {
    echo bp_get_send_private_message_link();
    }
    function bp_get_send_private_message_link() {
    global $bp;

    if ( bp_is_my_profile() || !is_user_logged_in() )
    return false;

    $user=new WP_User($bp->displayed_user->user_id);

    return apply_filters( ‘bp_get_send_private_message_link’, $bp->loggedin_user->domain . $bp->messages->slug . ‘/compose/?r=’ .$bp->displayed_user->userdata->user_login );
    }

    Private messaging now works with persistent caching like memcached.

    #101413
    Hugo Ashmore
    Participant

    Interesting points. Working recently with trunk prompted the same thoughts vis-a-vis disabling BP and being left with a heap of odd pages, but then I simply removed or unpublished those pages.

    It would be interesting to hear the comments of the core devs who are :

    @jjj
    @djpaul
    @boonebgorges

Viewing 25 results - 43,601 through 43,625 (of 68,947 total)
Skip to toolbar