Ben L. (@nightgunner5)

Forum Replies Created

Viewing 16 replies - 251 through 266 (of 266 total)

  • Ben L.
    Member

    @nightgunner5

    I would really like to see the port of GamerZ’s plugin.


    Ben L.
    Member

    @nightgunner5

    so you guys need different access levels for different forums?

    I think that should be possible to do in some plugin

    What I want is different access levels to post new topics in the forum.

    In reply to: Moving bbPress

    Ben L.
    Member

    @nightgunner5

    It doesn’t do much of anything to add define('COOKIE_DOMAIN', '.llamaslayers.net'); or define('COOKIE_DOMAIN', 'llamaslayers.net'); to the config.php file.

    Edit: It works to remove the values of $bb->wp_home and $bb->wp_siteurl

    In reply to: Moving bbPress

    Ben L.
    Member

    @nightgunner5

    In reply to: Moving bbPress

    Ben L.
    Member

    @nightgunner5

    It’s just $bb->uri that I have to update, right?


    Ben L.
    Member

    @nightgunner5

    fel64 wrote:

    Should be fixed I thought. https://trac.bbpress.org/changeset/903

    That only prevents keymasters from demoting themselves. What I want them to prevent is administrators demoting keymasters.


    Ben L.
    Member

    @nightgunner5

    I think changing

    if ( !bb_current_user_can( 'edit_user', $user_id ) ) {
    $sendto = bb_get_option('uri');
    wp_redirect( $sendto );
    }

    in profile-edit.php to

    if ( !bb_current_user_can( 'edit_user', $user_id ) || (!bb_current_user_can('use_keys') && $user->has_cap('use_keys')) ) {
    $sendto = bb_get_option('uri');
    wp_redirect( $sendto );
    }

    would fix the problem.


    Ben L.
    Member

    @nightgunner5

    TICKET_CREATE privileges are required to perform this operation

    In reply to: Url Rewriting Problem

    Ben L.
    Member

    @nightgunner5

    Yes, you would need to go into your .htaccess file, plus something to make sure topic links went there… I’ll look into it.

    Here it is:

    Go into your bb-includes/template-functions.php. Find the function called get_topic_link, it should look like this:

    function get_topic_link( $id = 0, $page = 1 ) {
    $topic = get_topic( get_topic_id( $id ) );

    $args = array();

    $rewrite = bb_get_option( 'mod_rewrite' );
    if ( $rewrite ) {
    if ( $rewrite === 'slugs' ) {
    $column = 'topic_slug';
    } else {
    $column = 'topic_id';
    }
    $link = bb_get_option('uri') . "topic/" . $topic->$column . ( 1 < $page ? "/page/$page" : '' );
    } else {
    $link = bb_get_option('uri') . 'topic.php';
    $args['id'] = $topic->topic_id;
    $args['page'] = 1 < $page ? $page : false;
    }

    if ( $args )
    $link = add_query_arg( $args, $link );

    return apply_filters( 'get_topic_link', $link, $topic->topic_id );
    }

    Change 'topic/' to 'konu/'.

    Now, go into your .htaccess file. If you’re using Options +MultiViews, I don’t know how this will work, but if you’re using mod_rewrite, here’s what to do:

    Find the lines that look like

    RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /[YOUR FORUM DIRECTORY]/topic.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^topic/([^/]+)/?$ /[YOUR FORUM DIRECTORY]/topic.php?id=$1 [L,QSA]

    and change them to

    RewriteRule ^konu/([^/]+)/page/([0-9]+)/?$ /[YOUR FORUM DIRECTORY]/topic.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^konu/([^/]+)/?$ /[YOUR FORUM DIRECTORY]/topic.php?id=$1 [L,QSA]

    I think that’s all you’ll need to do…


    Ben L.
    Member

    @nightgunner5

    Alright, I’ll try that, but first, I’ll make another keymaster.

    Edit: The mod couldn’t edit the keymaster, but the admin could and was able to de-rank and change the password of the keymaster in question.

    Edit 2: What I’ve done is blocked the edit profile page with bb_die for anyone who is not keymaster if the edit profile page is of a keymaster (I did it by userid)

    In reply to: Replace word in Post

    Ben L.
    Member

    @nightgunner5

    I’m guessing get_post_text() would be your best option. post_text() doesn’t return a value, it just pastes the text onto the page.


    Ben L.
    Member

    @nightgunner5

    I think I might try to make a cash modification… I think I know enough about php and mysql…


    Ben L.
    Member

    @nightgunner5

    What’s the bb_db_override for?

    Edit: it works, except for the fact that all the stickys on my forums show up, but not the ones that are front-page.

    In reply to: Can’t login

    Ben L.
    Member

    @nightgunner5

    That’s what I tried yesterday, but today, it seems that it works normally. I guess the problem has solved itself. I guess it was a problem with the host.


    Ben L.
    Member

    @nightgunner5

    Two reasons that won’t work:

    1. That only checks the current logged in user.

    2. I figured it out right as you were posting.


    Ben L.
    Member

    @nightgunner5

    No, none of those will work unfortunately. I only want one specific subforum to have different roles. The change roles plugin was the closest to what I wanted, though.

Viewing 16 replies - 251 through 266 (of 266 total)