Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 47,451 through 47,475 (of 68,967 total)
  • Author
    Search Results
  • #90574
    footybible
    Participant

    Thanks @rogercoathup I’m not sure line 368 is the right place though (its currently blank in my login). Here is what my file looks like from line 353 onwards:

    // allow plugins to override the default actions, and to add extra actions if they want
    do_action(‘login_form_’ . $action);

    $http_post = (‘POST’ == $_SERVER);
    switch ($action) {

    case ‘logout’ :
    check_admin_referer(‘log-out’);
    wp_logout();

    $redirect_to = !empty( $_REQUEST ) ? $_REQUEST : ‘wp-login.php?loggedout=true’;
    wp_safe_redirect( $redirect_to );
    exit();

    break;

    case ‘lostpassword’ :
    case ‘retrievepassword’ :
    if ( $http_post ) {
    $errors = retrieve_password();
    if ( !is_wp_error($errors) ) {
    $redirect_to = !empty( $_REQUEST ) ? $_REQUEST : ‘wp-login.php?checkemail=confirm’;
    wp_safe_redirect( $redirect_to );
    exit();
    }
    }

    #90569
    Roger Coathup
    Participant

    @footybible – you can try replacing line 368 in wp-login.php with the code I put in the pastebin (above).

    However, I don’t know if this catches everything (give it a quick try!). There’s a lot of code / javascript going on in there, so fingers need to be crossed that this simple fix will do the trick.

    @govpatel – you are using the wrong @mention for Matt – you need to use the username rather than the displayed name. I know, it’s really un-user friendly!

    #90566
    govpatel
    Participant

    @matt have you tried this Theme My Login plugin as it will redirect to login page on your own theme

    #90565
    Hugo Ashmore
    Participant

    It isn’t a BuddyPress site though, is it?

    Support for themes such as that need to go to the relevant theme writer really. This site supports the BuddyPress plugin for WP/WPMS

    #90563
    Hugo Ashmore
    Participant

    For anyone having this issue with Topic creation in forums please read and follow the steps I outline in this comment:

    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/forums-not-working-error-when-creating-topic/#post-69618

    If this does not solve the issue for you then post a fresh topic outlining your situation with relevant details of setup.

    This thread deemed closed.

    #90562
    Hugo Ashmore
    Participant

    @jabberjazz
    Jane to answer the question from the other thread; yes the support forums are of use, as can be seen by the number of issues raised and solutions provided, of course not all issues are that easy to get to the root of, especially without a lot of detailed info and steps to hopefully reproduce the issue on a local dev install.

    I have had this issue before and oddly just a second ago, what causes it ? Can’t tell you for sure, my install was pretty clean no plugins to speak of , forums had been installed, one test group forum activated, create topic -> failure , re-install forums using existing installation , still no joy, create a new group with forum, create a topic -> success ?? something to do with that original group I set up was out of sequence ?

    Checking my DB shows that the forum name and id doesn’t exist for the group forum acting up only the default id and group forum recently created are seen.

    Soooo I go back to the troublesome group as the admin I go to the admin tab of the group I select ‘Group Settings’ I am shown the initial screen one sees after creating a group and the ‘Enable Discussion Forum’ checkbox. I – unnecessarily – uncheck and check again that box and then select save at bottom of screen – tab back to my DB and yep forum group now is entered!

    Attempt to create new topic – success!

    So can you give the above procedure a try and report back to us whether it worked or not.

    And I hope this changes your opinion on whether there is a help to be found on this support forum :)

    #90560

    In reply to: Introducing JobBoardr

    Bowe
    Participant

    @Travel-Junkie: great job man! I know you’ve been working on this for a LONG time, so I’m glad you’re able to release it :-)

    Bowe
    Participant

    Sure.. check out this plugin from @nuprn1:

    https://buddypress.org/community/groups/buddypress-block-activity-stream-types/

    Simply add the “joined_group” action to the Block Activity Types textbox in the plugin settings!

    #90557
    Paul Wong-Gibbs
    Keymaster

    Had you ever previously installed BuddyPress or attempted a BuddyPress forum installation on this site / database before now?

    Are all the forums broken, or do, for example, newly-created groups’ forums work ok?

    Is your WordPress set up as a multisite? (this used to be called WPMU. If you don’t understand this question, the answer’s no)

    Are the bbPress tables in your database? For example, wp_bb_forums, wp_bb_meta, wp_bb_posts and so on?

    rossagrant
    Participant

    @OneUpDave That makes 2 of us then! cheers! :)

    @wpsec Thanks for the offer of that. The developer I had in mind was Peter Anselmo who wrote the BP Group Documents plugin as I imagine this plugin would be an extension of that.

    Are you familiar with that plugin at all and if so do you think you could adapt it. It would be great if basically an extra tab was added to a persons profile which could have it’s title customised in the back end. For my site it might say ‘CV’ or ‘Portfolio’ etc.
    The tab would then be a file store on a member by member basis that other member’s could then download. File types would have to be able to be set in the back end to what the admin wants to allow also, exactly like the group docs plugin.

    At the end of the day it depends on how many people we can get interested in this plugin but it could be used for so many different things. File sharing, attaching particular files to a person’s profile… all sorts.

    If we can get 30 members interested in paying $25 we can get this made so COME ON, show us your interest people!

    #90555
    jimhellas
    Member

    I think I solved it!!! Here’s how, in case anybody else wants to do something similar:

    Step 1: edit “wp-content/plugins/buddypress/bp-themes/bp-default/_inc/global.js”

    Step 2: Go to line #35 (/* New posts */) and simply copy and paste the the new posts section right after it (line #102)

    Step 3: Change every single value that refers to ids of the original form (e.g. change #aw-whats-new-submit to #mini-aw-whats-new-submit)

    Step 4: Go to the mini-post code on your template and replace the ids. Obviously you have to use the same ids as the ones you created on Step 3

    To make a long story long, here’s my code:
    global.js


    /* MINI-POST */
    /* New posts */
    jq(“input#mini-aw-whats-new-submit”).click( function() {
    var button = jq(this);
    var form = button.parent().parent().parent().parent();

    form.children().each( function() {
    if ( jq.nodeName(this, “textarea”) || jq.nodeName(this, “input”) )
    jq(this).attr( ‘disabled’, ‘disabled’ );
    });

    jq( ‘form#’ + form.attr(‘id’) + ‘ span.ajax-loader’ ).show();

    /* Remove any errors */
    jq(‘div.error’).remove();
    button.attr(‘disabled’,’disabled’);

    /* Default POST values */
    var object = ”;
    var item_id = jq(“#mini-whats-new-post-in”).val();
    var content = jq(“textarea#mini-whats-new”).val();

    /* Set object for non-profile posts */
    if ( item_id > 0 ) {
    object = jq(“#mini-whats-new-post-object”).val();
    }

    jq.post( ajaxurl, {
    action: ‘post_update’,
    ‘cookie’: encodeURIComponent(document.cookie),
    ‘_wpnonce_post_update’: jq(“input#_wpnonce_post_update”).val(),
    ‘content’: content,
    ‘object’: object,
    ‘item_id’: item_id
    },
    function(response)
    {
    jq( ‘form#’ + form.attr(‘id’) + ‘ span.ajax-loader’ ).hide();

    form.children().each( function() {
    if ( jq.nodeName(this, “textarea”) || jq.nodeName(this, “input”) )
    jq(this).attr( ‘disabled’, ” );
    });

    /* Check for errors and append if found. */
    if ( response[0] + response[1] == ‘-1’ ) {
    form.prepend( response.substr( 2, response.length ) );
    jq( ‘form#’ + form.attr(‘id’) + ‘ div.error’).hide().fadeIn( 200 );
    button.attr(“disabled”, ”);
    } else {
    if ( 0 == jq(“ul.activity-list”).length ) {
    jq(“div.error”).slideUp(100).remove();
    jq(“div#message”).slideUp(100).remove();
    jq(“div.activity”).append( ‘

      ‘ );
      }

      jq(“ul.activity-list”).prepend(response);
      jq(“ul.activity-list li:first”).addClass(‘new-update’);
      jq(“li.new-update”).hide().slideDown( 300 );
      jq(“li.new-update”).removeClass( ‘new-update’ );
      jq(“textarea#mini-whats-new”).val(”);

      /* Re-enable the submit button after 8 seconds. */
      setTimeout( function() { button.attr(“disabled”, ”); }, 8000 );
      }
      });

      return false;
      });
      /* MINI-POST */

      and the form for the new “mini-post-form”


      <form action=”<?php bp_activity_post_form_action() ?>” method=”post” id=”mini-whats-new-form” name=”mini-whats-new-form”>

      <?php do_action( ‘bp_before_activity_post_form’ ) ?>

      <textarea name=”mini-whats-new” onFocus=”this.value=”; this.onfocus=null;” id=”mini-whats-new” rows=”2″ cols=”40″>Got something to share?</textarea>

      <div id=”whats-new-submit”>

      <span></span>

      <input type=”submit” name=”mini-aw-whats-new-submit” id=”mini-aw-whats-new-submit” value=”<?php _e( ‘Post’, ‘buddypress’ ) ?>” />

      </div>

      <div id=”whats-new-post-in-box”>

      <?php _e( ‘Post in’, ‘buddypress’ ) ?>:

      <select id=”mini-whats-new-post-in” name=”mini-whats-new-post-in”>

      <option selected=”selected” value=”0″><?php _e( ‘My Profile’, ‘buddypress’ ) ?></option>

      <?php if ( bp_has_groups( ‘user_id=’ . bp_loggedin_user_id() . ‘&type=alphabetical&max=100&per_page=100&populate_extras=0’ ) ) : while ( bp_groups() ) : bp_the_group(); ?>

      <option value=”<?php bp_group_id() ?>”><?php bp_group_name() ?></option>

      <?php endwhile; endif; ?>

      </select>

      </div>

      <input type=”hidden” id=”mini-whats-new-post-object” name=”mini-whats-new-post-object” value=”groups” />

      <?php do_action( ‘bp_activity_post_form_options’ ) ?>

      <?php wp_nonce_field( ‘post_update’, ‘_wpnonce_post_update’ ); ?>

      <?php do_action( ‘bp_after_activity_post_form’ ) ?>

      </form><!– #mini-whats-new-form –>

      <form action=”<?php bp_activity_post_form_action() ?>” method=”post” id=”mini-whats-new-form” name=”mini-whats-new-form”>
      <?php do_action( ‘bp_before_activity_post_form’ ) ?>
      <textarea name=”mini-whats-new” onFocus=”this.value=”; this.onfocus=null;” id=”mini-whats-new” rows=”2″ cols=”40″>Got something to share?</textarea> <div id=”whats-new-submit”> <span></span>   <input type=”submit” name=”mini-aw-whats-new-submit” id=”mini-aw-whats-new-submit” value=”<?php _e( ‘Post’, ‘buddypress’ ) ?>” /> </div>
      <div id=”whats-new-post-in-box”> <?php _e( ‘Post in’, ‘buddypress’ ) ?>:
      <select id=”mini-whats-new-post-in” name=”mini-whats-new-post-in”> <option selected=”selected” value=”0″><?php _e( ‘My Profile’, ‘buddypress’ ) ?></option>
      <?php if ( bp_has_groups( ‘user_id=’ . bp_loggedin_user_id() . ‘&type=alphabetical&max=100&per_page=100&populate_extras=0’ ) ) : while ( bp_groups() ) : bp_the_group(); ?> <option value=”<?php bp_group_id() ?>”><?php bp_group_name() ?></option> <?php endwhile; endif; ?> </select> </div> <input type=”hidden” id=”mini-whats-new-post-object” name=”mini-whats-new-post-object” value=”groups” />

      <?php do_action( ‘bp_activity_post_form_options’ ) ?>
      <?php wp_nonce_field( ‘post_update’, ‘_wpnonce_post_update’ ); ?> <?php do_action( ‘bp_after_activity_post_form’ ) ?>
      </form><!– #mini-whats-new-form –>

    Paul Wong-Gibbs
    Keymaster

    Hmm. Looks like the plugin is active at the moment (I see a javascript include). I also see a lot of other plugins; if you’ve got a test server I suggest disabling all the plugins other than BuddyPress and seeing if it works. I suspect this is likely due to a conflict.

    Another idea is, when you previously ran the BP Template Pack, did you restore your theme’s files to defaults? e.g. removed the BuddyPress stuff it added. Also, as far as I’m aware, you can disable the BP Template Pack — it’s a once-off thing.

    #90552

    In reply to: Introducing JobBoardr

    rossagrant
    Participant

    @travel-junkie Sounds great!

    I really can’t wait to get to work with the CV component, the site I am working on now will benefit dramatically!

    Keep me posted on how you’re getting on or any test versions etc.

    Cheers!

    #90551
    jimhellas
    Member

    @anointed Thanks for the link. The post looks interesting but, unfortunately, I don’t think it’s useful in my case. Thanks anyway :)

    This thing is driving me crazy! Do you think I could solve the problem by altering the code of the post button?

    <input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="” />

    #90549

    In reply to: Introducing JobBoardr

    Anonymous User 96400
    Inactive

    @rossagrant
    All of that would be quite straightforward. Let me think bout how to do that…

    @eisenwasser
    My solution doesn’t have to deal with roles at all. Every member on the site is a potential employee (even a ceo gets fired occasionally :). Some of your members can also be employers just by being a group admin. Just by changing the language file around, group moderators could be set up to be staff. The good thing is that you can swap out group admins and group mods, so a group could even be matched to an existing company if you wanted to do that. Every site member then obviously gets a profile, just like on a standard BP installation.

    All it really took were a few custom loops that interact with the group extension API. Lot’s of code, but all quite straightforward. Loads of hooks and filters then make the plugin really extensible.

    #90548
    Roger Coathup
    Participant

    Hej Ikey,

    as you have heavily customised this area of the site – redirecting to login if not a member in the members directory – I suspect the problem is in your customisation / redirect logic, and not a BuddyPress bug.

    You’d need to post a lot more information for someone to assist on this – all of your re-direct logic / function would be a start (use pastebin.com and include a link in your thread).

    Then, keep your fingers crossed that someone wants dive in to heavily customised code and look around to help :-)

    Cheers,
    Roger

    #90547
    NetTantra
    Member

    Hi,

    You can check this plugin which I recently develop to provide ACL BuddyPress Extended Profiles:

    https://wordpress.org/extend/plugins/buddypress-xprofiles-acl/

    Hope you find it useful.

    Regards,
    NetTantra

    #90540
    davidniyat
    Participant

    thanks @Roger Coathup , ur remakrs helped me to solve that navigation error.

    #90539
    Sam
    Participant

    @M What is this custom theme code and where can I learn more about it? Thanks.

    @pcwriter Thanks! I will look into it. any other suggestions?

    #90537
    Roger Coathup
    Participant

    @mikey3D

    Yes, sorry – I only checked a multi-word post title.

    You are correct, categories and tag page titles are behaving differently in default BuddyPress vs. default WordPress install

    The function that builds the title in BuddyPress is bp_page_title(). In WordPress it’s wp_title()

    The WP function is doing a lot more work with the category and tag slug, taking the name slug it’s been passed (with the hyphens inserted) and looking up the correct (non-hyphenated) title to insert.

    OK, two things I suggest:

    1. Report this, and suggest that the bp_page_title() function should behave the same as wp_title() for categories, tags, etc. This would be the sensible way for the function to behave IMO. @hnla – is adding this to the trac, the correct way to raise this a possible fix?

    2. For a quick fix, code your own title function, and replace the call to bp_page_title() in your header.php with a call to your own function

    The function may look a little daunting, but should be reasonably straightforward with a bit of judicious copying and pasting from the existing BP and WP functions.

    Cheers, Roger

    #90534

    In reply to: BuddyPress Spam

    pcwriter
    Participant

    Oops! That last bit didn’t post correctly. Enclose the first and last lines in < brackets.

    files wp-config.php
    order allow,deny
    deny from all
    /files

    #90533

    In reply to: BuddyPress Spam

    pcwriter
    Participant

    @TedMann

    This is what I’ve added to .htaccess to block bots:

    # IF THE UA STARTS WITH THESE
    RewriteCond %{HTTP_USER_AGENT} ^(aesop_com_spiderman|alexibot|backweb|bandit|batchftp|bigfoot) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(black.?hole|blackwidow|blowfish|botalot|buddy|builtbottough|bullseye) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(cheesebot|cherrypicker|chinaclaw|collector|copier|copyrightcheck) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(cosmos|crescent|curl|custo|da|diibot|disco|dittospyder|dragonfly) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(drip|easydl|ebingbong|ecatch|eirgrabber|emailcollector|emailsiphon) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(emailwolf|erocrawler|exabot|eyenetie|filehound|flashget|flunky) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(frontpage|getright|getweb|go.?zilla|go-ahead-got-it|gotit|grabnet) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(grafula|harvest|hloader|hmview|httplib|httrack|humanlinks|ilsebot) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(infonavirobot|infotekies|intelliseek|interget|iria|jennybot|jetcar) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(joc|justview|jyxobot|kenjin|keyword|larbin|leechftp|lexibot|lftp|libweb) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(likse|linkscan|linkwalker|lnspiderguy|lwp|magnet|mag-net|markwatch) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(mata.?hari|memo|microsoft.?url|midown.?tool|miixpc|mirror|missigua) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(mister.?pix|moget|mozilla.?newt|nameprotect|navroad|backdoorbot|nearsite) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(net.?vampire|netants|netcraft|netmechanic|netspider|nextgensearchbot) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(attach|nicerspro|nimblecrawler|npbot|octopus|offline.?explorer) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(offline.?navigator|openfind|outfoxbot|pagegrabber|papa|pavuk) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(pcbrowser|php.?version.?tracker|pockey|propowerbot|prowebwalker) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(psbot|pump|queryn|recorder|realdownload|reaper|reget|true_robot) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(repomonkey|rma|internetseer|sitesnagger|siphon|slysearch|smartdownload) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(snake|snapbot|snoopy|sogou|spacebison|spankbot|spanner|sqworm|superbot) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(superhttp|surfbot|asterias|suzuran|szukacz|takeout|teleport) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(telesoft|the.?intraformant|thenomad|tighttwatbot|titan|urldispatcher) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(turingos|turnitinbot|urly.?warning|vacuum|vci|voideye|whacker) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(libwww-perl|widow|wisenutbot|wwwoffle|xaldon|xenu|zeus|zyborg|anonymouse) [NC,OR]
    # STARTS WITH WEB
    RewriteCond %{HTTP_USER_AGENT} ^web(zip|emaile|enhancer|fetch|go.?is|auto|bandit|clip|copier|master|reaper|sauger|site.?quester|whack) [NC,OR]
    # ANYWHERE IN UA — GREEDY REGEX
    RewriteCond %{HTTP_USER_AGENT} ^.*(craftbot|download|extract|stripper|sucker|ninja|clshttp|webspider|leacher|collector|grabber|webpictures).*$ [NC]
    # ISSUE 403 / SERVE ERRORDOCUMENT
    RewriteRule . – [F,L]

    To help block spam registrations, add the following to .htaccess, then create a simple GOAWAY type html page and upload to your root directory:

    # BEGIN ANTISPAMBLOG REGISTRATION
    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{REQUEST_URI} .wp-signup.php*
    RewriteCond %{HTTP_REFERER} !.yoursitehere.com. [OR]
    RewriteCond %{HTTP_USER_AGENT} ^$
    RewriteRule (.*) http://yoursitehere.com/yourgoawaypage.html [R=301,L]

    Add the following to .htaccess to deny access to wp-config.php to anyone who doesn’t have your ftp details:

    order allow,deny
    deny from all

    Instead of example.com/register or example.com/sign-up, use something like example.com/unb2x-2010 for your register page. If you were a spammer, would that look like an inviting url to hack?

    Hope this helps :-)

    #90531

    In reply to: BuddyPress Spam

    Ted Mann
    Participant

    @pcwriter, you rock. Going to try all of these. Few quick q’s:
    1. With the list of bad blocks, you added all these to your HT access file? Is there any downside to having such a lengthy htaccess? Could you anonymize yours and post it?

    2. What does “Added “deny from all” in .htaccess for wp-config.php” mean?

    3. When you say you changed “register slug to something unrecognizable,” what sort of thing did you use? Garbledygook, or just something like “/whats-up”

    #90527
    Mark
    Participant

    Looks like Javascript problems. I’d be checking the CSS id’s and class names (in the theme HTML code) to make sure they are what they should be in order to work with BP.

    #90525
    pcwriter
    Participant

    .You could also try my plugin (he says with shameless self-promoting grin).

    See this post for the latest beta version: https://buddypress.org/community/groups/add-all-nav-links-to-bp-adminbar/forum/topic/updated-the-beta/
    Here are the user configuration options available in the admin panel under “Settings” > “BP-WP-Navbar”
    – Hide or display the main theme navigation
    – Hide or display the site name in your new adminbar
    – Hide or display the Login and Signup links in the adminbar
    – Hide or display the “Visit Random” menu
    – Select whether to display top-level WordPress pages horizontally or in a dropdown menu
    – Define the label for the dropdown in WordPress 2.x
    – If you’re running WP3.x, the plugin will fetch whatever custom menu labels you assign and display them in the admin bar along with all child pages in dropdowns
    – Define the label for the Buddypress directory dropdown (default = “Community”)
    – Define the font, font-weight and font-style for all menu items
    – Define ALL colors: navbar background, main and sub menu item backgrounds, border, text and hover colors too
    – Set the overall width of the navbar and of sub-menus
    – Set the height of all menu items
    – Adjust margins where required
    – Reposition your fancy new custom navbar anywhere you like, relative to your theme so it scrolls with your pages

    If you add categories to your custom menus in WP3.x, the plugin will pick them up and display them in whichever menus they are assigned to. Give it a whirl.

Viewing 25 results - 47,451 through 47,475 (of 68,967 total)
Skip to toolbar