Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 21,551 through 21,575 (of 32,688 total)
  • Author
    Search Results
  • #116142
    thinkluke
    Member

    Hi Roger, I jumped to a solution then, when in fact it does not work correctly, sorry…

    I have used your code from page 1 to display featured image on the bp activity stream. However I have a gravity form that lets user upload posts from their, I have used this simple snipet of code to make the upload image a featured image.

    add_filter(“gform_post_submission”, “set_post_thumbnail_as”, 10, 2);
    function set_post_thumbnail_as($entry, $form){
    //getting first image associated with the post
    $post_id = $entry[“post_id”];
    $attachments = get_posts(array(‘numberposts’ => ‘1’, ‘post_parent’ => $post_id, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘order’ => ‘ASC’));
    if(sizeof($attachments) == 0)
    return; //no images attached to the post
    //setting first image as the thumbnail for this post
    update_post_meta( $post_id, ‘_thumbnail_id’, $attachments[0]->ID);
    }

    This works perfectly for wordpress and displays the featured image correctly. However the featured image does not appear in the buddypress activity stream until I manually go to that post and hit update in the backend… really defeats the purpose of publishing the post… pulled my hair out for days on this.. Do you have any suggestions? I believe it is something to do with the way bp saves posts… Maybe bp_activity_post_update would work

    #116141
    James
    Participant

    thank you Paul, already found an issue. It was some conflict of divs/classes in my child theme, which, somehow, appearead only after update.

    thanks again.

    #116136
    Paul Wong-Gibbs
    Keymaster

    No — see https://codex.buddypress.org/theme-development/bp-default-theme-changelog/

    (ignore all the property changes, those are irrelevant)

    #116133
    James
    Participant

    spent few hours and no success.
    I do see that in bp-default 1.2.9 reveal is working (help section with question sign in profile header), but why after update it stoped working in my child theme?
    tried to switch off all plugins, removed functions.php, member-header.php etc.

    were there any changes to default.css in 1.2.9?

    thanks.

    #23030
    thebeanieman
    Member

    Hey,

    We keep getting a user returning and posting spam all over our BuddyPress Groups. We delete him but the user just comes back. The registration form uses reCapture, so it appears it’s a real person.

    Is there no way of stopping this?

    I would just block his IP in the .htaccess for the site but looks like neither WordPress or BuddyPress log down a users IP.

    Any suggestions please?

    #116125
    James
    Participant

    thanks Paul, I had to write that these are two separate questions.
    First one is still opened.

    #116124
    Paul Wong-Gibbs
    Keymaster

    BuddyPress.org is being worked on, and is unrelated to the 1.2.9 release.

    #116123
    thinkluke
    Member

    I have found a solution if you are using gravity forms… I just need to know who to add the post id into the form submission function because atm it just uploads the image to the actually form page :-(

    add_action(“gform_pre_submission_2”, “gform_registration”);

    function gform_registration( $form_meta ){

    // $post_id gets set here by some code I have removed for clarity

    // If there is a logo, attach that file and make it the post featured image

    if($_FILES) {

    //WordPress Administration API required for the media_handle_upload() function

    require_once(ABSPATH . ‘wp-admin/includes/file.php’);

    require_once(ABSPATH . ‘wp-admin/includes/image.php’);

    require_once(ABSPATH . ‘wp-admin/includes/media.php’);

    $media_id = media_handle_upload(‘input_3’, $post_id);

    my_set_post_thumbnail( $post_id, $media_id);

    }

    }

    // This function will be obsolete once WP 3.1 is release since that includes

    // an identical function name set_post_thumbnail

    function my_set_post_thumbnail( $post, $thumbnail_id ) {

    $post = get_post( $post );

    $thumbnail_id = absint( $thumbnail_id );

    if ( $post && $thumbnail_id && get_post( $thumbnail_id ) ) {

    $thumbnail_html = wp_get_attachment_image( $thumbnail_id, ‘thumbnail’ );

    if ( ! empty( $thumbnail_html ) ) {

    update_post_meta( $post->ID, ‘_thumbnail_id’, $thumbnail_id );

    return true;

    }

    }

    return false;

    }

    #116122
    James
    Participant

    does anyone have same issue in BP 1.2.9, that help section in member’s header (after @username) does not reveal anymore?

    what is happening to buddypress.org? I cannot search, do not see updates in single view. Support topics don’t have pagination anymore, cannot edit/delete topics etc.

    thanks.

    @mercime
    Participant

    Double-checked this for a friend, BuddyPress does not work where WordPress is given its own directory. I figured the rationale was one cannot create a network with that set up https://codex.wordpress.org/Create_A_Network#WordPress_Settings_Requirements. I just moved WP to physical subdomain and it was good to go :-)

    #23027
    RaphaelJeger
    Participant

    Hi

    let me first explain the situation as good as possible. I have a site up and running (http://www.slople.com/) that’s built be me in php, but not in wp/bp. I installed wordpress and buddypress in a subdirectory to play around and it’s working.

    Now I need several things in the next few days I think I can not achieve alone. I have some ideas how to solve it, but since I am in no way an expert in wp/bp, I’d need your help.

    Things to solve:

    1. On each slople (example: http://www.slople.com/index.php?slopeId=13644&sortId=0) people should be able to discuss/share images/share movies. I thought of creating a group programatically for each slope (about 10’000 at the moment!) and displaying the activity stream of each group right below the content you can see above. Remember, those pages in the root are NO wp or bp-pages! That bp-section below the existing content should first show the group-members, then the comment-form and then the activity stream. I’d like to display the login-form in a separate box on the right (and don’t redirect them to the standard wp-login when someone enters a wrong user/password)
    2. This should be most easy and I may be able to achieve this myself ;) Make a custom menu on top of the page, where users can navigate to the current non-wp/bp-page (something like “home”) and of course have access to the buddypress-features (not all, I don’t want users to create blogs etc.)

    So please please please, if someone can help, get in contact with me ASAP! mail@slople.com or reply here.
    Forum-admins: If this is the wrong place to post, please move or tell me where to post. Thanks!

    Raphael

    nzbase
    Member

    Is it possible to have the WordPress and BuddyPress installed in a different directory to where the site will display e.g. the files are here http://domain.com/wordpress/ but have the site showing on the root domain e.g. http://domain.com/ ?

    I’ve attempted this following the WordPress install details here and have followed these instructions:
    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    However the BuddyPress install (navigation links, headers etc) are all still pointing to the domain.com/wordpress directory.

    Is there a “URL for this site” setting for BuddyPress or a work-around?

    Boone Gorges
    Keymaster

    bp_before_members_loop is not a function, it is a WP action hook. Plugins and themes can use this hook to add functionality to your members page. Read the first limo provided by chouf1 to learn more, or google “WordPress hooks”.

    Also, as megainfo suggests, it’s a good idea to learn a little about grep, which will help a lot in these instances.

    BaliRakhra
    Member

    This is my first Buddypress site (first wordpress one actually) and I’m having a few problems that I’ve spent days trying to figure out with no success. I had one question though”

    Why doesn’t buddypress have sort-ascending / descending links on the top of the post lists? If it’s just missing from my template, what would I have to do to reinstate them?

    You can see the problem here:
    http://centralgurdwaraglasgow.org/groups/test-group/forum/topic/test-topic/

    BaliRakhra
    Member

    This is my first Buddypress site (first wordpress one actually) and I’m having a few problems that I’ve spent days trying to figure out with no success. Here’s one of them

    There is no ‘edit’ or ‘delete’ link for top-most post in a forum topic?
    Even when I set it to sort descending in bp-forums-templatetags.php, if there are only 2 posts in that topic, the most recent post cannot be deleted, but the topic’s original post CAN be deleted. Surely that’s the wrong way round – to give priority to the second post over the original main post that sets the tone for the topic, even if the sort is set to descending.

    In any case, how can I reinstate the edit and delete links for the top post?

    You can see the problem here:
    http://centralgurdwaraglasgow.org/groups/test-group/forum/topic/test-topic/

    #116088
    David Carson
    Participant

    I haven’t used or tested this plugin, but it looks like it might work for you.

    https://wordpress.org/extend/plugins/user-domain-whitelist/

    P.S. Go Jumbos! I’m an alum.

    #116083
    NoahY
    Member

    In case anyone googles here, the article posted by r-a-y works for different subdomains, but needs a bit of tweaking, based on this post:

    http://roneiv.wordpress.com/2008/01/18/get-the-content-of-an-iframe-in-javascript-crossbrowser-solution-for-both-ie-and-firefox/

    Basically, we need to put the wordpress page with the adminbar only in an invisible iFrame and access its content from the parent.

    To do this, first we add the iFrame to the external php / html file. Something like this works:

    `

    `

    Next, we need to edit the `page-component.php` file, adding a head and body onload element:

    `

    document.domain = “site.com”

    `

    This sets document.domain to the same domain as we will specify in our external file. It also adds jQuery (needed for buddypress-ajax-chat on my site). Finally, it sets an onload event to tell the parent window to grab it’s content.

    Next, we have to add some more javascript to the parent, along with the other links mentioned in the article above:

    `document.domain=”sirimangalo.org”;
    function getNav() {
    var content = document.getElementById(‘bpsrc’).contentWindow.document.body.innerHTML;
    document.getElementById(‘bpContainer’).innerHTML = content;
    }`

    This sets the domain again, allowing the function to pass from the iFrame on up, and provides the function to grab the content of the source frame and output it to the “bpContainer” div.

    #116081
    thinkluke
    Member

    I got the exact same issue here @tindell … featured image will not display in buddypress activty until I update it in the backend of wordpress manually :-( Has anyone come up with a solution? This is really frustrating!!!! Ah buddypress

    danbpfr
    Participant
    Erlend
    Participant

    Does anyone here have any tips to share with regards to network-wide (“global”) menus, in particular in use with BuddyPress?

    WPMU Tutorials recently did a pre-release of a networkwide menu plugin, but unfortunately I could not get it to work. I have yet to see the plugin in action, so if someone gets a working demo up, I’d really like to see it.

    There are also some custom tutorials spread around the blogosphere:
    http://dustyreagan.com/global-page-navigation-accross-wordpress-mu-blogs/
    (I could swear there were others, but I seem to have lost track of them)

    Recently though, I realized< BuddyPress already does exactly what I want from a network-wide menu: It adds a global menu across every site on your network upon ‘Network Activate’.

    I figure it shouldn’t be that hard to modify the BP top menu, ideally through a plugin or (child-)theme. These are some of the pointers I’ve come by:
    http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-modify-the-top-admin-bar/
    http://erikshosting.com/wordpress-tips-code/add-all-pages-to-buddypress-admin-bar-dynamically/
    http://codex.buddypress.org/theme-development/modifying-the-buddypress-admin-bar/

    So now I ask you, WP/BP gurus: On a WordPress Network site with BuddyPress enabled, which would you recommend?
    1 – Modifying the BuddyPress top-menu
    2 – Using a plugin, like “Networkwide Menu”
    3 – Custom coded menu

    Erlend
    Participant

    Lately I have been running some local (WAMP) tests to learn more about WordPress Network and BuddyPress. For instance how to install BuddyPress on a secondary blog, which worked out swimmingly, so thanks for that!

    One thing still mystifies me about BuddyPress on a Network: Upon network activation (I don’t see any other way, so I assume this is how I’m supposed to do it) there’s suddenly a top-level black menu added to every site across my network. Magic! I don’t mind it at all, it’s just rather mystifying is all.

    I would like to kindly request either an addition to “before installing“, or a new page all together, like “installing BuddyPress on WordPress Network”, that explains the how-to’s and mind-you’s of the process. I didn’t mind seeing the BP menu pop up everywhere, but some questions came to mind:
    – Where is the code? Is it replicated, or pulled from a single location?
    – Should I be worried about the load?
    – Can I keep it from loading on select sites?
    – Can my messing about with BuddyPress somehow affect my other sites?
    I think these type of questions ought to be answered in an official doc somewhere.

    It also took me a while to realize how exactly user registrations on a WordPress Network work (ugh), especially in accord with BuddyPress, but that might be more of a WPN-specific topic.

    #23005
    avinash10012
    Member

    Hi friends. . recently i made a fresh installation of wordpress 3.2 on my localhost using wamp. then i installed buddypress 1.2.9 on it, i made sure that i updated the permalink status and double checked it. After doing all this and taking all the necessary steps, none of the buddypress tabs seem to work on the site. activity, members etc all the pages return 404 not found error..

    do i need to do anything else as well so that these pages work correctly ???

    Erlend
    Participant

    Site: http://jmonkeyengine.org

    The update prompt for BuddyPress 1.2.9 is not showing up. Other plugins with updates for 3.2 compatibility have shown up, and WordPress 3.2 is also there, still pending install because I’d like to install the new BuddyPress beforehand (my last test ended in a crash).

    John James Jacoby said:
    Updates are cron’ed. You should be able to force check with the button in your updates screen.

    So I suppose you meant the “Check Again” in ‘/wp-admin/update-core.php’ yeh? Well, nothing new shows up (the 3.2 prompt stays of course). Our BuddyPress remains at 1.2.8 without any update prompt.

    #116053
    @mercime
    Participant
    #116052
    @mercime
    Participant

    What do you currently have at the root of your domain?

    It would be pretty much the same as moving WordPress from subfolder to domain root or elsewhere.
    Always backup database and server files to your computer hard drive before attempting the change, just in case.

    https://codex.wordpress.org/Moving_WordPress
    https://codex.wordpress.org/Changing_The_Site_URL

Viewing 25 results - 21,551 through 21,575 (of 32,688 total)
Skip to toolbar