News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Two questions about permissions and posts

Started by OlliMuc, March 10, 2005, 01:01:32 PM

Previous topic - Next topic

OlliMuc

Hi everybody,

I have two questions I couldn't find any answers using the forum search. I'd highly appreciate any help!

1) Whenever I add a new posting to a thread, I'm thrown back to the topic overview instead of to the last post (the one you've just written). Is this a bug or a feature :-) ?? I think the forum used to throw you back to the topic itself after posting instead of going back to the overview.

2) I've just set up a new board for internal uses. I've set permission rights for the users that are supposed to use the board - and it works beautifully. My only problem is: I want other users to see the board w/o being able to read the posts. Otherwise new users won't even know about it and can't apply for permission rights. Any suggestions on how I can change this? Thanks!

Oldiesmann

1. Feature. Profile -> Look and Layout Preferences -> Return To Topics After Posting by Default

To set this for all users:
Admin -> Current Theme's Settings
"Change the default member specific options" - this will change it for all users in the future
"Reset the default member specific optiosn" - this will change it for all users currently

2. Sure. It's easy to do.

Sources/BoardIndex.php

Find
WHERE $user_info[query_see_board]

Replace
WHERE $user_info[query_see_board] || b.ID_BOARD = 'board_id'

Sneaky, but it works ;)

OlliMuc

Oldiesmann,

thanks a lot for your quick and very helpful response!

OlliMuc

Quote from: Oldiesmann on March 10, 2005, 01:39:12 PM
2. Sure. It's easy to do.

Sources/BoardIndex.php

Find
WHERE $user_info[query_see_board]

Replace
WHERE $user_info[query_see_board] || b.ID_BOARD = 'board_id'

Sneaky, but it works ;)
Hi there,

I've just edited the source code to
WHERE $user_info[query_see_board] || b.ID_BOARD = 'board_id'

but unfortunately, it doesn't work. The forum now shows all sub-categories listed in each and every category, over and over again ... any suggestions on how I can solve that problem?

[Unknown]

You need parenthesis, Oldiesmann.

WHERE ($user_info[query_see_board] OR b.ID_BOARD = ##)

-[Unknown]

OlliMuc

Hi!

Sorry to bother again, but it still doesn't work for me. I've tried Oldiesmann's version as well as the one suggested with parentheses, but both don't work. With parentheses, a regular forum member still can't see the boards that are reserved for a specific group. Do you have any other suggestions that might work? Any input is highly appreciated!

Maybe it's helpful to outline my problem a bit more:

I've set up a board that should only be accessible to a few selected forum members, let's call them "SPECIALISTS". In order to get the access rights, any members interested should have to send me an E-Mail and then I will add them to a user group I've called "SPECIALISTS" within the SMF admin panel. OK then, I've set up the user group and the board and everything works beautifully ... except for one thing: I want regular members to SEE that there is a specialists board (but without seeing the topics or being able to read the messages), so they will also know they can apply for access rights (I've added two lines about it in the board description). But the board is totally invisible to anyone not already on the list - which makes things difficult for anyone new who wants to apply.

I'm looking forward to any helpful suggestions! SMF is a lovely piece of software and one of the best forums I've come across so far, so two thumbs up for anyone involved in developing it!

[Unknown]

This specialists board is NOT a child board, right?

Are you sure you're using the correct ID_BOARD?

-[Unknown]

Advertisement: