News:

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

Main Menu

Allowing guests to see all Boards but not entering

Started by trenchteam, September 05, 2004, 11:19:01 PM

Previous topic - Next topic

justafishermen

Ok I figured out how to get to those settings but maybe this mod doesn't do what I need it to do?

What I want is for Guests to be able to view a forum but not the threads inside it. All I want guests to be able to see is the title of the threads. Is this possible?

Thanks much!
Angling Fanatics Fishing Community
Built By The Members For The Members

Rudolf

Yes, yes, I'm working on it.
For me seeing boards means to see on the board index, not to see what is inside. But I already added an option to show the content too.
You'll have the updated version in 24 hours max.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

justafishermen

Quote from: Rudolf on January 04, 2007, 11:20:44 AM
Yes, yes, I'm working on it.
For me seeing boards means to see on the board index, not to see what is inside. But I already added an option to show the content too.
You'll have the updated version in 24 hours max.

Great so the guests will be able to access say the "Tips and Tricks" section but they wont be able to read the threads? They'll just be able to see the subject of each thread? Man that would be PERFECT for what I needed. Show us your magic!
Angling Fanatics Fishing Community
Built By The Members For The Members

Rudolf

I renamed the mod and it's ready for use.
View Only Boards 1.0
Link to Mod
Alternate Download Link to Mod

If you have any question post it in the mod's support topic (you will find once it is approved).
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

justafishermen

Perfect! Simply perfect! This mod does exactly what I need it to do and does it flawlessly! Great job!
Angling Fanatics Fishing Community
Built By The Members For The Members

Saku

how can I display list of topics from a board that allow only visibility not access, with ssi_recentTopics ?
My modification didn't work
SSI.php

$request = db_query("
SELECT
m.posterTime, ms.subject, m.ID_TOPIC, m.ID_MEMBER, m.ID_MSG, b.ID_BOARD, b.name AS bName,
IFNULL(mem.realName, m.posterName) AS posterName, " . ($user_info['is_guest'] ? '1 AS isRead, 0 AS new_from' : '
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, 0)) >= m.ID_MSG_MODIFIED AS isRead,
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, -1)) + 1 AS new_from') . ", LEFT(m.body, 384) AS body, m.smileysEnabled, m.icon
FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b, {$db_prefix}messages AS ms)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)" . (!$user_info['is_guest'] ? "
LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = $ID_MEMBER)
LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.ID_BOARD = b.ID_BOARD AND lmr.ID_MEMBER = $ID_MEMBER)" : '') . "
WHERE t.ID_LAST_MSG >= " . ($modSettings['maxMsgID'] - 500 * min($num_recent, 5)) . "
AND t.ID_LAST_MSG = m.ID_MSG
AND b.ID_BOARD = t.ID_BOARD" . (empty($exclude_boards) ? '' : "
AND b.ID_BOARD NOT IN (" . implode(', ', $exclude_boards) . ")") . "
AND $user_info[query_see_board]" . !empty($modSettings['cbv_allowMessageIndexView']) ? "
AND ms.ID_MSG = t.ID_FIRST_MSG
ORDER BY t.ID_LAST_MSG DESC
LIMIT $num_recent", __FILE__, __LINE__);

Greek


babjusi

Quote from: forgyx on December 02, 2004, 09:48:14 AM
ehm..
i've create a forum for Vip (user with 40 posts) and i want that this forum is visible for all (but non entering/access)!!
smf has many option for permission but it hasn't most important permission (like ipb2)
i hope so  ;)

U could use a password protected board. U can give the password to the VIP group, and the rest can see the board but they can not enter until u dicide to give them the password

Saku

Quote from: Sakuragi on January 11, 2007, 08:57:28 AM
how can I display list of topics from a board that allow only visibility not access, with ssi_recentTopics ?
My modification didn't work
SSI.php

$request = db_query("
SELECT
m.posterTime, ms.subject, m.ID_TOPIC, m.ID_MEMBER, m.ID_MSG, b.ID_BOARD, b.name AS bName,
IFNULL(mem.realName, m.posterName) AS posterName, " . ($user_info['is_guest'] ? '1 AS isRead, 0 AS new_from' : '
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, 0)) >= m.ID_MSG_MODIFIED AS isRead,
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, -1)) + 1 AS new_from') . ", LEFT(m.body, 384) AS body, m.smileysEnabled, m.icon
FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b, {$db_prefix}messages AS ms)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)" . (!$user_info['is_guest'] ? "
LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = $ID_MEMBER)
LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.ID_BOARD = b.ID_BOARD AND lmr.ID_MEMBER = $ID_MEMBER)" : '') . "
WHERE t.ID_LAST_MSG >= " . ($modSettings['maxMsgID'] - 500 * min($num_recent, 5)) . "
AND t.ID_LAST_MSG = m.ID_MSG
AND b.ID_BOARD = t.ID_BOARD" . (empty($exclude_boards) ? '' : "
AND b.ID_BOARD NOT IN (" . implode(', ', $exclude_boards) . ")") . "
AND $user_info[query_see_board]" . !empty($modSettings['cbv_allowMessageIndexView']) ? "
AND ms.ID_MSG = t.ID_FIRST_MSG
ORDER BY t.ID_LAST_MSG DESC
LIMIT $num_recent", __FILE__, __LINE__);


still need help with this :(

Oldiesmann

You didn't finish the conditional statement...

$request = db_query("
SELECT
m.posterTime, ms.subject, m.ID_TOPIC, m.ID_MEMBER, m.ID_MSG, b.ID_BOARD, b.name AS bName,
IFNULL(mem.realName, m.posterName) AS posterName, " . ($user_info['is_guest'] ? '1 AS isRead, 0 AS new_from' : '
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, 0)) >= m.ID_MSG_MODIFIED AS isRead,
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, -1)) + 1 AS new_from') . ", LEFT(m.body, 384) AS body, m.smileysEnabled, m.icon
FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b, {$db_prefix}messages AS ms)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)" . (!$user_info['is_guest'] ? "
LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = $ID_MEMBER)
LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.ID_BOARD = b.ID_BOARD AND lmr.ID_MEMBER = $ID_MEMBER)" : '') . "
WHERE t.ID_LAST_MSG >= " . ($modSettings['maxMsgID'] - 500 * min($num_recent, 5)) . "
AND t.ID_LAST_MSG = m.ID_MSG
AND b.ID_BOARD = t.ID_BOARD" . (empty($exclude_boards) ? '' : "
AND b.ID_BOARD NOT IN (" . implode(', ', $exclude_boards) . ")") . "
AND $user_info[query_see_board]" . !empty($modSettings['cbv_allowMessageIndexView']) ? "
AND ms.ID_MSG = t.ID_FIRST_MSG" : '' . "
ORDER BY t.ID_LAST_MSG DESC
LIMIT $num_recent", __FILE__, __LINE__);
Michael Eshom
Christian Metal Fans


h4ni

Quote from: Rudolf on January 04, 2007, 05:39:49 PM
I renamed the mod and it's ready for use.
View Only Boards 1.0
Link to Mod
Alternate Download Link to Mod

If you have any question post it in the mod's support topic (you will find once it is approved).
Search Engine can see the topic?

Rudolf

I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)


ketchup

Hi can someone tell me which code I use for this setup

Have have 5 boards some have child boards too

1
2
3
4
5


5 is a mod section- no one can access it but mods

I'd like to make board 2 viewable on the index but only registerd users can acces it.

what should I do...thanks!  :)

hellmet

Thanks Rudolf.. GREAT MOD.
This shud be default in SMF.

babjusi

Quote from: hellmet on January 26, 2007, 11:42:01 AM
Thanks Rudolf.. GREAT MOD.
This shud be default in SMF.

It seems such a great mod, but when I click the link to download it I see this message:

Warning: this mod is currently not approved!
Please do not use this mod unless you are completely sure of the consequences!

I don''t dare to use any kind of mod which isn''t yet approved. My question is: Does anyone know when this mod it would be approved? Thank you

teamvtec


babjusi

Quote from: teamvtec on January 26, 2007, 12:32:40 PM
Stated in above posts

View Only Boards 1.0
]
Alternate Download Link to Mod


Works fine

What I meant is, that isn''t that risky to use a mod which isn''t approved yet?

teamvtec

Quote from: babjusi on January 26, 2007, 06:30:04 PM
What I meant is, that isn''t that risky to use a mod which isn''t approved yet?

Why should it be? it's just code... not a trojan horse or something.
And if you have troubles after installing the mod (which i doubt) then ask Rudolf.
I really don't see the problem here.

Advertisement: