Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Private board

Aloittaja dilaca, tammikuu 23, 2005, 08:09:56 IP

« edellinen - seuraava »

dilaca

Hello,

I want to add a private board as a  temporary place for a few people who are not regular users of my site to have some discussion.  They's be registering for the specific purpose of the discussion on this private board.

Is it possible to create the board so that only those people can access it but no other memebrs can see it and could someone tell me how to do it please.

Thanks. :)

Oldiesmann

Of course it's possible...

First, create a new membergroup for these people (non-post-based)...
Second, create a new board, and uncheck the box next to every group except the one you just created.

Now, just add people to that group when you want them to see it - click on their username, click on "Account Settings", click on "Additional Groups" and then select the group you created.

That way, only those people will be able to see that board, and those who can't won't even know about that other group ;)
Michael Eshom
Christian Metal Fans

BES

I have a site where we have a totally private board.

In this case, there is information visible to the public that I really don't want visible, e.g. News and Statistics.

It would be hice to have a Private Only option, or have the option to hide certain features on the public interface, like the above mentioned plus the Register button.

Oldiesmann

It's actually relatively easy to hide stuff from guests...

To hide the news and stats:

Themes/default/index.template.php
Find
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<div class="headertitles" style="width: 260px;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
<div class="headerbodies" style="width: 260px; position: relative; background-image: url(', $settings['images_url'], '/box_bg.gif); margin-bottom: 8px;">
<img src="', $settings['images_url'], '/', $context['user']['language'], '/newsbox.gif" style="position: absolute; left: -1px; top: -16px;" alt="" />
<div style="height: 50px; overflow: auto; padding: 5px;" class="smalltext">', $context['random_news_line'], '</div>
</div>';

// The "key stats" box.
echo '
<div class="headertitles" style="width: 260px;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
<div class="headerbodies" style="width: 260px; position: relative; background-image: url(', $settings['images_url'], '/box_bg.gif);">
<img src="', $settings['images_url'], '/', $context['user']['language'], '/keystats.gif" style="position: absolute; left: -1px; top: -16px;" alt="" />
<div style="height: 35px; padding: 5px;" class="smalltext">
<b>', $modSettings['totalMessages'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $modSettings['totalTopics'], '</b> ', $txt[64], ' ', $txt[525], ' <b>', $modSettings['memberCount'], '</b> ', $txt[19], '<br />
', $txt[656], ': <b> <a href="', $scripturl, '?action=profile;u=', $modSettings['latestMember'], '">', $modSettings['latestRealName'], '</a></b>
</div>
</div>';


Replace
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']) && !$context['user']['is_guest'])
echo '
<div class="headertitles" style="width: 260px;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
<div class="headerbodies" style="width: 260px; position: relative; background-image: url(', $settings['images_url'], '/box_bg.gif); margin-bottom: 8px;">
<img src="', $settings['images_url'], '/', $context['user']['language'], '/newsbox.gif" style="position: absolute; left: -1px; top: -16px;" alt="" />
<div style="height: 50px; overflow: auto; padding: 5px;" class="smalltext">', $context['random_news_line'], '</div>
</div>
<div class="headertitles" style="width: 260px;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
<div class="headerbodies" style="width: 260px; position: relative; background-image: url(', $settings['images_url'], '/box_bg.gif);">
<img src="', $settings['images_url'], '/', $context['user']['language'], '/keystats.gif" style="position: absolute; left: -1px; top: -16px;" alt="" />
<div style="height: 35px; padding: 5px;" class="smalltext">
<b>', $modSettings['totalMessages'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $modSettings['totalTopics'], '</b> ', $txt[64], ' ', $txt[525], ' <b>', $modSettings['memberCount'], '</b> ', $txt[19], '<br />
', $txt[656], ': <b> <a href="', $scripturl, '?action=profile;u=', $modSettings['latestMember'], '">', $modSettings['latestRealName'], '</a></b>
</div>
</div>';


To hide stats at the bottom:

Themes/default/BoardIndex.template.php

Find
// Show YaBB SP1 style information...
if ($settings['show_sp1_info'])


Replace
// Show YaBB SP1 style information... (members only!)
if ($settings['show_sp1_info'] && !$context['user']['is_guest'])


To hide the Register button:

Admin -> Edit Features and Options
Look for "Method of registration employed for new members" and set it to "Registration Disabled".

If there's anything else you'd like to hide from guests, let me know and I'll show you how to do it.
Michael Eshom
Christian Metal Fans

dilaca

Lainaus käyttäjältä: Oldiesmann - tammikuu 24, 2005, 09:44:01 AP
Of course it's possible...


Thanks yet again for your help Oldies. It's easy once you know how. :D

dilaca

Lainaus käyttäjältä: Oldiesmann - tammikuu 24, 2005, 09:44:01 AP
Of course it's possible...

First, create a new membergroup for these people (non-post-based)...
Second, create a new board, and uncheck the box next to every group except the one you just created.

Now, just add people to that group when you want them to see it - click on their username, click on "Account Settings", click on "Additional Groups" and then select the group you created.

That way, only those people will be able to see that board, and those who can't won't even know about that other group ;)

I have had several requests for children to have a board of their own.  How could I make a board similar to the above one for them so that anyone can read it but they are the only ones who can post on it? 

Thanks. :)

xenovanis

Create an additional group for the ones who are allowed to post.
For the specific board, check in boardmanagement the local permissions for ungrouped members  and make them so that they aren't allow to post. Also set the permissions for the special group you created and make sure it's enabling them to post.
"Insanity: doing the same thing over and over again and expecting different results."

Advertisement: