Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

How do i make guest (have no permitted to view page) in forum.php?

Asked Modified Viewed 4,005 times
C
ChildHold
C
  • Member, joined since
  • Contributed 66 posts on the community forums.
  • Started 24 threads in the forums
  • Started this discussions
asked
Member

How can i made when guest enter forum.php...the panel show that (You are not permitted to view this page)....
0 replies

2 posts

F
Falcon
F
Falcon 10
  • Member, joined since
  • Contributed 128 posts on the community forums.
  • Started 5 threads in the forums
answered
Member

Right now in PHPFusion we just hide the forums from guest, but if you want to show a messege you will need to edit the files.
Anyway this a nice idea, you should go to PHPFusion Next and submit it in our roadmap.

Good luck!
0 replies
T
Tyler
T
Tyler 10
Helping, would be pointing you in the right direction, not doing it all for you.
  • Member, joined since
  • Contributed 198 posts on the community forums.
  • Started 3 threads in the forums
answered
Member

You can use a make-shift cheesy way for now if you want (redirect to custom page - your no access page).... create a custom page and put whatever message you want and then create a new panel (left or right). Set the title to forum guest or whatver and then use this code exactly - no openside() or any of that.
** YOU WILL NEED TO CHANGE THE PAGE ID!!!!!! **
if(preg_match('#(\/forum\/)#', FUSION_REQUEST)){
  if(iGUEST){ redirect(BASEDIR."viewpage.php?page_id=1"); }
}
I just tested it and works like it should.
0 replies

Category Forum

User Administration - 8

Labels

None yet

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

F
F
Falcon 10
  • Member, joined since
  • Contributed 128 posts on the community forums.
  • Started 5 threads in the forums
T
T
Tyler 10
Helping, would be pointing you in the right direction, not doing it all for you.
  • Member, joined since
  • Contributed 198 posts on the community forums.
  • Started 3 threads in the forums
C
C
  • Member, joined since
  • Contributed 66 posts on the community forums.
  • Started 24 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet