Forum Replies Created
-
I would really like to see the port of GamerZ’s plugin.
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.
It doesn’t do much of anything to add
define('COOKIE_DOMAIN', '.llamaslayers.net');ordefine('COOKIE_DOMAIN', 'llamaslayers.net');to the config.php file.Edit: It works to remove the values of
$bb->wp_homeand$bb->wp_siteurlIt’s just
$bb->urithat I have to update, right?fel64 wrote:
Should be fixed I thought. http://trac.bbpress.org/changeset/903
That only prevents keymasters from demoting themselves. What I want them to prevent is administrators demoting keymasters.
I think changing
if ( !bb_current_user_can( 'edit_user', $user_id ) ) {
$sendto = bb_get_option('uri');
wp_redirect( $sendto );
}in
profile-edit.phptoif ( !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.
TICKET_CREATE privileges are required to perform this operationYes, 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 calledget_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
.htaccessfile. If you’re usingOptions +MultiViews, I don’t know how this will work, but if you’re usingmod_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…
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)
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.I think I might try to make a cash modification… I think I know enough about php and mysql…
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.
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.
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.
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.