• 本站招聘各个版块版主共同发展,有意可私聊站长
资源图标

Private Site 1.2.0

没有下载权限

庆祝国庆中秋本站暂时关闭邀请码注册 https://t.me/tearcc

For a private site where no forum content is visible to guests, the easy way to hide everything is to simply deny "View" permission to Unregistered / Unconfirmed users.



However, the end result is a little messy as guest visitors get presented by an unhelpful error message "You must be logged-in to do that" and a login form, and the page returns a 403 (Forbidden) error.



This simple addon provides an alternative approach with a cleaner and more elegant outcome.



The following UI changes are made by installing this addon:


a customisable message is displayed to guests below the site title
hides the "New posts" button for guests and anyone without a valid user_state
hides the "What's new" link from the header on mobile devices for guests and anyone without a valid user_state
Hides "new posts" button:





1724773153425-png.14064







Hides "What's new" header link on mobile:





1724773167657-png.14065







Displays a customisable message to guests below the site title:





1724773188464-png.14066





Configuration steps:



1. change user permissions




To use this addon, you must change your user permissions to allow Unregistered / Unconfirmed users access to view the site (but not the content).



As per the tutorial (see step 4) - use Quick set to set all permissions to "Never" for Unregistered / Uncofirmed users:





1724773223420-png.14067





Then set the "View" permission to "Yes" so they can see the site (but no content).





1724773255995-png.14068





Now guests can see the forum home, but no content.



2. install this addon

3. customise (or remove) guest message in options

4. tidy up navigation and widget display for guests




End result:




The end result of installing this addon and following the tutorial steps is a nice clean interface for guests visiting a private site:





1724773269815-png.14069
作者
无名
下载
0
查看
5
首次发布
最后更新

Ratings

0.00 星 0 星

来自无名的更多资源

后退
顶部