xmasons (@xmasons)

You are now logged out.

Forum Replies Created

Viewing 18 replies - 1 through 18 (of 18 total)

  • xmasons
    Participant

    @xmasons

    Here’s what I have in my functions.php file to keep people who shouldn’t have access to WP admin pages.

    `
    function no_admin_access()
    {
    if ( !current_user_can( ‘publish_pages’ ) ) {
    wp_redirect( home_url() );
    die();
    }
    }
    add_action( ‘admin_init’, ‘no_admin_access’, 1 );
    `


    xmasons
    Participant

    @xmasons

    Here’s what I have in my functions.php file to keep people who shouldn’t have access to WP admin pages.

    `
    function no_admin_access()
    {
    if ( !current_user_can( ‘publish_pages’ ) ) {
    wp_redirect( home_url() );
    die();
    }
    }
    add_action( ‘admin_init’, ‘no_admin_access’, 1 );
    `


    xmasons
    Participant

    @xmasons

    I can confirm that the fix identified by @premitheme for MAMP (free) installations is to switch over to port 80. You may also need to update the WordPress and site address under General Settings if 8888 is part of your previous installation.


    xmasons
    Participant

    @xmasons

    @netweb and @johnjamesjacoby using the following environment:

    MAMP 2.1.1
    PHP 5.4.4

    I’m not using the Pro version.

    (in regards to the “Are you sure…” error message issue)


    xmasons
    Participant

    @xmasons

    I’m having the same error message (Are you sure you wanted to do that?) as @premitheme is having on a local/MAMP server.


    xmasons
    Participant

    @xmasons

    Optionally you can restrict access through functions.php using a function with !current_user_can( ‘publish_pages’ ) and add_action( ‘admin_init’, ‘no_admin_access’, 1 )


    xmasons
    Participant

    @xmasons

    Let’s try this again…

    Open up the following PHP document in the bbPress plugin, found at -

    bbpress/templates/default/bbpress/user-profile.php

    Using the AIM field as an example, add the following -

    `
    `

    Now you probably shouldn’t alter these files, as the next time bbPress is updated, the update will overwrite this. You’ll need to make a copy of the file under your theme directory. So it should look like this -

    yourTheme/bbpress/user-profile.php


    xmasons
    Participant

    @xmasons

    [solution removed because I have no clue on how to provide code examples]


    xmasons
    Participant

    @xmasons

    This seems like a fairly easy plugin to make and I look forward to seeing it become reality.


    xmasons
    Participant

    @xmasons

    Perhaps this is what you require – bbPress Unread Posts

    http://wordpress.org/extend/plugins/bbpress-unread-posts/


    xmasons
    Participant

    @xmasons

    So here’s my solution.

    1.) Create a page template.

    2.) Using the power of current_user_can(), we may utilize the bbPress’s user roles.

    3.) Insert the Topic Index shortcode with the do_shortcode() function inside the user role wrapper.


    xmasons
    Participant

    @xmasons

    Thanks for the update. It works great.

    Seriously, thanks for these plugins. They’ve filled a role that I’ve been looking for a while.


    xmasons
    Participant

    @xmasons

    Thank you for these wonderful plugins and kudos to destroflyer.

    I have a quick bug report about bbPress Direct Quote in that the citation link is for jmonkeyengine. Obviously it should be pulling the data from our sites.


    xmasons
    Participant

    @xmasons

    Yes, certainly, bbPress works well in responsive themes. An example is the Skeleton theme: http://demos.simplethemes.com/skeleton/


    xmasons
    Participant

    @xmasons

    I’m having similar problems and still haven’t found the root cause. What I’m using in the mean time is redirect plugin:

    http://www.theblog.ca/wplogin-redirect


    xmasons
    Participant

    @xmasons

    What happened to the 2.0.3 plugin in the WordPress plugin directory?


    xmasons
    Participant

    @xmasons

    I’ve found the following works well in functions.php

    function disable_our_feeds() {

    wp_redirect(get_option('siteurl'));

    }

    add_action('bbp_feed', 'disable_our_feeds', 1);


    xmasons
    Participant

    @xmasons

    I too have similar issues and started using Peter’s Login Redirect plugin to remedy the situation until I can find the problem and fix it.

    http://wordpress.org/extend/plugins/peters-login-redirect/

Viewing 18 replies - 1 through 18 (of 18 total)