mj1919 Publish time 2013-08-28 01:21

How to hide all forum content from visitors?

Hello Friends
How to hide all forum content from visitors? (they can see main page of forum but when click to see threds content , shown a pop up massege that war them to register).


vincent Publish time 2013-08-28 05:10

本帖最后由 vincent 于 2013-8-28 06:20 编辑

1) Go to adminCP - Forum -Forums



2) Click "Edit" on the interested Forum



3) Click "Permission related"



4) Set different user permissions



5) Additionally you can set a password to access this forum





mj1919 Publish time 2013-08-28 09:26

Edited by mj1919 at 2013-8-28 10:29

static/image/common/user_online.gif vincent static/image/common/clock.gif 2013-8-28 06:10 static/image/common/back.gif
本帖最后由 vincent 于 2013-8-28 06:20 编辑

1) Go to adminCP - Forum -Forums

Thank you,
but there is not any global setting to set this option for all forums in one step??????

vincent Publish time 2013-08-28 10:24

Can modify the code to achieve such effect.
Detect whether the user is logged in,
if not logged in then jump to the login page:if(empty($_G['uid'])){
echo "<script>window.location.href='./member.php?mod=logging&action=login';</script>";
};P


mj1919 Publish time 2013-08-30 23:51

SOLVED!

http://codersclub.org/discuzx/forum.php?mod=viewthread&tid=2835&extra=

code3h Publish time 2014-05-22 15:12

Here is one more thing you can do,

Open Admin CP >> Users >> User Groups >> System Group Members >> Visitor >> EDIT >> Under "Allow Access to the Site" -- Select -- Forbidden

Try this :)
Pages: [1]
View full version: How to hide all forum content from visitors?