Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 77,476 through 77,500 (of 94,576 total)
  • Author
    Search Results
  • #70617
    modemlooper
    Moderator

    Swapping header.php on the blog files so it calls different CSS?

    modemlooper
    Moderator

    You are going to have to give a link to this site as there is no way to tell where you’ve placed your div.

    jim2112
    Participant

    CSS beginner here.

    I have an existing WP site that has a fixed position <div> at the top 0 margin that is set to 100% width. It has some links in it to other pages. It’s 22 pixs in height and populated by a repeating background image 5 x 22 pixs. I would like to carry over this to my buddypress site as well. I was hoping to place it behind the admin bar. Then remove the admin bar image to make it clear so that the admin bar text sits on top of my other bar element.

    I can get a my div behind the admin bar but when i set it to 100% width it won’t go beyond the confines of the box that the admin bar is sitting in. I can’t figure out why my div element is being restricted in width.

    I’m guessing this is something simple for someone who knows CSS.

    I’m thinking this <body <?php body_class() ?> id=”bp-default”>

    is somehow defining the max width of all DIV elements on the page?

    Can anyone help me?

    Thanks

    #70615
    djsteve
    Participant

    Has anyone created code or released a plugin that would combine this functionality with something that will display blog author in a buddypress user’s blog sidebar?

    I poked around the MU forums and found some similar plugins, This one

    https://wordpress.org/extend/plugins/profile-pic/

    Sounds very close to what I am envisioning.. I am considering testing that plugin, with the one mentioned above in the first post of this thread, and the “blog-defaults” plugin to see if I can get all of my user’s blogs to have a widget auto added in a new default theme that will display their avatar, and a link to their buddypress profile.

    Has anyone does this already and have any advice or code to share?

    #70614
    Gene53
    Participant

    Great plugin, thanks.

    Gene

    #70613

    In reply to: BuddyPress Like

    Anointed
    Participant

    Is it possible to apply this plugin to only one specific groups forum posts?

    I know the id of the group as it’s already created.

    #70612
    snark
    Participant

    @3sixty — I found this topic of yours, https://buddypress.org/forums/topic/time-zones-different-in-messages-and-forums-bbpress, but it doesn’t link to your Trac ticket, and I couldn’t really follow your suggested fix, where to make the changes, the caveat, etc. (I’m not codesmart enough, sadly…).

    #70611
    Anointed
    Participant

    I have no idea why, but when I activate this plugin, I do not get a configuration link in my admin. Plugin says it’s activated site wide properly.. strange

    #70610
    Luke Gedeon
    Member

    I found a solution for my version of the problem and learned a few things along the way that might help with your BuddyPress avatar problems.

    Full text at: http://luke.gedeon.name/buddypress-wrong-avatar-fix.html

    What I found:

    In the file /wp-content/plugins/buddypress/bp-core/bp-core-avatars.php, lines 344 and following contain the following code:

    global $authordata;

    if ( is_object( $user ) )

    $id = $user->user_id;

    else if ( is_numeric( $user ) )

    $id = $user;

    else

    $id = $authordata->ID;

    if ( empty( $id ) )

    return $avatar;

    I think that last “if statement” may be there to catch cases where the commenter does not have a BuddyPress account (which is the majority on my site at this point). However, if you look closely at the block just above the “if ( empty( $id))” you will notice $id is never going to be empty at this point.

    That suggests two possible solutions.

    Solution 1:

    I have not tested this, but it makes sense that you could move the last “if statement” above the first “if statement.” That way you can check for “empty( $id )” before it gets set to”$authordata->ID”

    Solution 2:

    I found it works quite well to add these lines just under the last “if statement.”

    if ( is_string( $user ) )

    return $avatar;

    This will catch any case where an email is sent as input, which is what all (most) non-buddypress themes send. Cases where numbers or objects are sent (the BuddyPress method) will be handled normally.

    Maybe I can get this added into the next release of BuddyPress.

    #70609
    Luke Gedeon
    Member

    I found a solution for my version of the problem and learned a few things along the way that might help with you BuddyPress avatar problems.

    Full text at: http://luke.gedeon.name/buddypress-wrong-avatar-fix.html

    What I found:

    In the file /wp-content/plugins/buddypress/bp-core/bp-core-avatars.php, lines 344 and following contain the following code:

    global $authordata;

    if ( is_object( $user ) )

    $id = $user->user_id;

    else if ( is_numeric( $user ) )

    $id = $user;

    else

    $id = $authordata->ID;

    if ( empty( $id ) )

    return $avatar;

    I think that last “if statement” may be there to catch cases where the commenter does not have a BuddyPress account (which is the majority on my site at this point). However, if you look closely at the block just above the “if ( empty( $id))” you will notice $id is never going to be empty at this point.

    That suggests two possible solutions.

    Solution 1:

    I have not tested this, but it makes sense that you could move the last “if statement” above the first “if statement.” That way you can check for “empty( $id )” before it gets set to”$authordata->ID”

    Solution 2:

    I found it works quite well to add these lines just under the last “if statement.”

    if ( is_string( $user ) )

    return $avatar;

    This will catch any case where an email is sent as input, which is what all (most) non-buddypress themes send. Cases where numbers or objects are sent (the BuddyPress method) will be handled normally.

    Maybe I can get this added into the next release of BuddyPress.

    jivany
    Participant

    @Bpisimone If I’m understanding your question correctly, you should be able to make one big logical check:

    <?php if (bp_is_page( BP_GROUPS_SLUG ) || bp_is_page( BP_MEMBERS_SLUG ) || bp_is_page( BP_ACTIVITY_SLUG ) || bp_is_group() || bp_is_member() ) : ?> class="selected" <?php endif; ?>

    #70605
    r-a-y
    Keymaster
    #70604
    warut
    Participant

    Thanks Bowe and r-a-y , that a good tutorial i will try it.

    dre1080 if you want to test this plugin you can download here

    http://jump.fm/YLUCP

    but for testing only because i dont cleanup the code (still have some debug message) and not delete table after deactivate plugin

    for delete plugin, deactivate and delete then delete wp_bp_gifts table and activity stream type new_gifts.

    for installation, extract in plugin folder and activate plugin.

    i use free gift image from iconpedia.com so if you have own image (64*64px) place image on includes/images folder before activate plugin (or add one by one in admin panel)

    this is my first plugin, please give suggestion if it have any bad code or function

    #70603
    stwc
    Participant

    Sorry if this has been mentioned before, but I’m running into a slightly odd issue with testing. The comments thread for each Link posted includes comments and activity items for all the Links on my testbed install, rather than just the thread for the link currently being viewed.

    In other words, if I’m looking at, say, http://localhost.localdomain/mefightclub/links/samplesite1-com

    I see comments posted for samplesite1.com, but also for samplesite2.com and samplesite3.com and all the other link items that have been created.

    Any thoughts, MrMaz?

    Edit: Hmmm. The dropdown for categories doesn’t seem to be working either. I wonder if there’s some kind of conflict happening…

    #70601
    3sixty
    Participant

    Hmm… Isn’t it possible to add something like this to the bp core code:

    1. Require BP-specific plugins to have a special trigger in the plugin header like “Type: bp-plugin” or simply “BP-plugin: True”

    2. At activation and upgrade, double check those plugins to make sure they are BP safe. If not, refuse to register them and give these errors:

    • “The plugin you are trying to activate contains functions that can’t be found in the installed versions of WP/WPMU and BuddyPress. They are : etc…”
    • “Sorry, this plugin can’t be registered because it does not check if BuddyPress is active.”
    • “Sorry, this plugin can’t be registered because it uses an old method of BP detection and needs updating to use bp_init loader method.”

    #70600
    jivany
    Participant

    First, make a backup of your existing theme and I’m guessing here but…

    You might be able to just take your existing WP theme and make it a child theme of bp-default. This should cause WP to go looking in the bp-default theme directory for anything not defined in your main WP theme directory.

    Some stuff will break. Fixing it might be difficult. I haven’t tried this so good luck and make a backup first. :)

    Oh, and let us know how it goes. ;)

    #70599
    massimonitti
    Member

    The page

    https://codex.buddypress.org/getting-started/installing-buddypress/upgrading-from-rc-1/

    is no more online.

    Is there another place to find the upgrade instructions from rc1?

    Thanks

    #70597
    stwc
    Participant

    Getting these errors in the apache logs… something’s b0rked!

    [Mon Mar 29 09:48:09 2010] [error] [client 127.0.0.1] WordPress database error Table 'sitename_wpmu_buddypress.bb-attachments' doesn't exist for query SELECT * FROM 'bb-attachments' made by require_once, require, do_action, call_user_func_array, bp_forum_attachments_check_installed, referer: http://localhost.localdomain/sitename/wp-admin/

    [Mon Mar 29 09:48:09 2010] [error] [client 127.0.0.1] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''ext' 'ext' VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,' at line 2 for query ALTER TABLE bb_attachments DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci,nCHANGE 'ext' 'ext' VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,nCHANGE 'mime' 'mime' VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,nCHANGE 'filename' 'filename' VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL made by require_once, require, do_action, call_user_func_array, bp_forum_attachments_check_installed, bb_attachments_install, referer: http://localhost.localdomain/sitename/wp-admin/

    The bb-attachments table does exist, though, and is populated with data.

    #70596
    Derek
    Participant

    @pc w3riter I am “being patient” but that doesn’t mean it’s not frustrating. I have said time and again in these very forums that I have total respect for Erwin and his work. I have even told him as much on more than one occasion. I have even suggested the features I would find most useful to others looking to create their own plugins. Excuse me but if you actually read my comment it is framed around CORE BuddyPress functions. I believe “events” is worthy of consideration to Core function just like others believe a picture album is too. That’s the point I am trying to make.

    #70594
    stwc
    Participant

    Back at my localhost install, finally.

    What happens if you try to visit a URL like http://example.com/wp-content/plugins/forum-attachments-for-buddypress/image.php?filenum=9

    It shows me a page with that URL in it. Weirdly, the browser (Firefox) thinks it’s an image — there’s no HTML source.

    #70593
    raibom
    Member

    i`m using a normal wordpress

    #70592
    r-a-y
    Keymaster

    You’re talking about separating your WordPress blog from BuddyPress?

    If you’re using WPMU, you can do this:

    https://codex.buddypress.org/how-to-guides/install-buddypress-on-a-secondary-blog/

    raibom
    Member

    My website has a theme that works well in wordpress but it works well in buddypress. So I wanted to leave my home in the theme and buddypress leave the default theme, is to do this with or without the help of a plugin?

    #70590
    Brandon Dove
    Member

    Well, for those people who can’t/don’t want to update to the new version of BP, here’s the fix.

    Make sure if you have a custom edit profile or registration template that you put brackets at the end of any multiselectbox field name that you’re using.

    So, the following:

    <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" multiple="multiple">

    would become:

    <select name="<?php bp_the_profile_field_input_name() ?>[]" id="<?php bp_the_profile_field_input_name() ?>" multiple="multiple">

    Then, you need to edit lines 400-421 of the BuddyPress core file: /buddypress/bp-xprofile/bp-xprofile-templatetags.php. It starts with case 'selectbox': case 'multiselectbox': and ends with break;

    Replace lines 400-421 with code from here.

    Note: this isn’t a very upgrade friendly way to deal with it, but if you’re stuck with BuddyPress 1.1.3 because of some custom written components, it’s the way to make it work.

    #70589
    21cdb
    Participant

    I agree with Xevo. Instead of more features usability should be the most important issue currently.

    Andy mentioned it allready here: https://buddypress.org/forums/topic/bp-album-new-features-requests-and-discussion/page/2#post-43485

    Honestly though, before adding any bells and whistles, just make sure that uploading/editing/deleting a photo and album works perfectly. That’s the main thing.

    – Upload one or multiple images in one go.

    – Allow the creation of albums, add/move/delete photos in albums and albums themselves.

    – Allow photo attachments on activity stream posts – extend the activity stream posting interface.

    If that works perfect, i would also like to see new features, but only from then on.

Viewing 25 results - 77,476 through 77,500 (of 94,576 total)
Skip to toolbar