Advertisement:

Author Topic: Allowing guests to see all Boards but not entering  (Read 248733 times)

Offline justafishermen

  • Semi-Newbie
  • *
  • Posts: 69
Re: Allowing guests to see all Boards but not entering
« Reply #220 on: January 04, 2007, 11:14:13 AM »
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

Offline Rudolf

  • SMF Hero
  • ******
  • Posts: 1,934
  • Gender: Male
  • iamanoompaloompa
Re: Allowing guests to see all Boards but not entering
« Reply #221 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.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Offline justafishermen

  • Semi-Newbie
  • *
  • Posts: 69
Re: Allowing guests to see all Boards but not entering
« Reply #222 on: January 04, 2007, 11:25: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

Offline Rudolf

  • SMF Hero
  • ******
  • Posts: 1,934
  • Gender: Male
  • iamanoompaloompa
Re: Allowing guests to see all Boards but not entering
« Reply #223 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).
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Offline justafishermen

  • Semi-Newbie
  • *
  • Posts: 69
Re: Allowing guests to see all Boards but not entering
« Reply #224 on: January 05, 2007, 01:55:56 AM »
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

Offline Saku

  • Jr. Member
  • **
  • Posts: 305
  • Gender: Male
Re: Allowing guests to see all Boards but not entering
« Reply #225 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
Code: [Select]
$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__);

Offline Greek

  • Full Member
  • ***
  • Posts: 493
  • Gender: Male
    • Πάρε-Δώσε - Αντικαρκινικό Forum
Re: Allowing guests to see all Boards but not entering
« Reply #226 on: January 11, 2007, 05:28:46 PM »
Thanks! It works!  :D

babjusi

  • Guest
Re: Allowing guests to see all Boards but not entering
« Reply #227 on: January 11, 2007, 08:27:24 PM »
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

Offline Saku

  • Jr. Member
  • **
  • Posts: 305
  • Gender: Male
Re: Allowing guests to see all Boards but not entering
« Reply #228 on: January 12, 2007, 08:45:05 PM »
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
Code: [Select]
$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 :(

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,949
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Allowing guests to see all Boards but not entering
« Reply #229 on: January 18, 2007, 04:50:37 PM »
You didn't finish the conditional statement...

Code: [Select]
$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
Cincy Space - now open!

Offline Saku

  • Jr. Member
  • **
  • Posts: 305
  • Gender: Male
Re: Allowing guests to see all Boards but not entering
« Reply #230 on: January 18, 2007, 05:25:11 PM »
Thanks  :D

Offline h4ni

  • Semi-Newbie
  • *
  • Posts: 53
Re: Allowing guests to see all Boards but not entering
« Reply #231 on: January 22, 2007, 12:31:11 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?

Offline Rudolf

  • SMF Hero
  • ******
  • Posts: 1,934
  • Gender: Male
  • iamanoompaloompa
Re: Allowing guests to see all Boards but not entering
« Reply #232 on: January 22, 2007, 12:33:14 PM »
No, if Guests don't have access.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Offline h4ni

  • Semi-Newbie
  • *
  • Posts: 53
Re: Allowing guests to see all Boards but not entering
« Reply #233 on: January 22, 2007, 01:12:56 PM »
ok :(

Offline ketchup

  • Jr. Member
  • **
  • Posts: 173
  • Gender: Male
Re: Allowing guests to see all Boards but not entering
« Reply #234 on: January 24, 2007, 08:21:40 PM »
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!  :)

Offline hellmet

  • Semi-Newbie
  • *
  • Posts: 29
Re: Allowing guests to see all Boards but not entering
« Reply #235 on: January 26, 2007, 11:42:01 AM »
Thanks Rudolf.. GREAT MOD.
This shud be default in SMF.

babjusi

  • Guest
Re: Allowing guests to see all Boards but not entering
« Reply #236 on: January 26, 2007, 12:19:33 PM »
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

Offline teamvtec

  • Jr. Member
  • **
  • Posts: 110
Re: Allowing guests to see all Boards but not entering
« Reply #237 on: January 26, 2007, 12:32:40 PM »
Stated in above posts

View Only Boards 1.0
]
Alternate Download Link to Mod


Works fine

babjusi

  • Guest
Re: Allowing guests to see all Boards but not entering
« Reply #238 on: January 26, 2007, 06:30:04 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?

Offline teamvtec

  • Jr. Member
  • **
  • Posts: 110
Re: Allowing guests to see all Boards but not entering
« Reply #239 on: January 26, 2007, 06:59:08 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.