Ben L. (@nightgunner5)

Forum Replies Created

Viewing 16 replies - 251 through 266 (of 266 total)
  • @nightgunner5

    Member

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

    @nightgunner5

    Member

    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

    @nightgunner5

    Member

    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

    @nightgunner5

    Member
    In reply to: Moving bbPress

    @nightgunner5

    Member

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

    @nightgunner5

    Member

    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.

    @nightgunner5

    Member

    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.

    @nightgunner5

    Member

    TICKET_CREATE privileges are required to perform this operation

    In reply to: Url Rewriting Problem

    @nightgunner5

    Member

    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…

    @nightgunner5

    Member

    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

    @nightgunner5

    Member

    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.

    @nightgunner5

    Member

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

    @nightgunner5

    Member

    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

    @nightgunner5

    Member

    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.

    @nightgunner5

    Member

    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.

    @nightgunner5

    Member

    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)