Customizing SMF > Modifications and Packages
Hide Topics from Guests
Suki:
Hide Topics from Guest
Author: Suki
Description
Hide Topics from Guests allows guests to see topics, but if they click a topic it redirects them to the login page.
License
* This SMF modification is subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this SMF modification except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
Settings
No settings, just install and use.
Support
Questions should be address to the mod support topic.
Changelog
3.0 - 6 January 2012
- Added support for Profile and Print pages.
2.0 - 26 January 2011
- fixed guest can see the topic in action=recent
1.0 - 14 January 2010
First release of Hide Topics from Guests
shumilica:
Quite interesting mod, but what will happen if the guest has the direct link to a topic?
And this is supposed to happen only on boards that guests have access, no?
The idea is good, the implementation i think would have to resemble the View/Enter Board Permissions mod, so that we can choose from the permission if membergroups can view the topics or enter them.
Labradoodle-360:
Take a peak at the coding, it adds a line to Display.php for guests, meaning even if a guest has a direct link, it will redirect them.
Edit: The line added in ./Sources/Display.php
--- Code: (Display.php) --- if ($context['user']['is_guest']) redirectexit ('action=login');
--- End code ---
shumilica:
Ok, I was thinking it adds it in the messageindex, but I would want to use this mod if it is activated per board basis. So that guest can enter topics in a board, but only view the titles in another. I think this would be the most lucrative mode of the mod.
Labradoodle-360:
Something similar is already setup, you can not allow guests to be able to view certain boards. The only benefit if I made my mod by a board-based permission would that guests could see messageindex's, which wouldn't be a huge gain.
However, I will consider it.
Navigation
[0] Message Index
[#] Next page
Go to full version