discuz! X2 Forum How to give yourself a single page to add access rights

Source: Internet
Author: User
discuz! X2 Forum How to give yourself a single page plus access rights?
My current idea is simple: to give VIP Forum members access to one of my own pages. I do not know how to add this privilege.
I began to want to put the page link in a forum section, and then set the access rights to this section, only allow VIP members to browse.
When the link to the page I made, if you remember this URL, then the next time he can not login directly to access.
This is not the result I want.

How does the permission for this custom page add?

------Solution--------------------
The user table adds a VIP tinyint the default 0 field. The VIP is assigned a value of 1

In a custom page, if the user is logged in and the VIP field is 1, it is not displayed.
------Solution--------------------
Pirnt_r ($_g);
This variable.

Can obtain the user information.
Write a DZ plugin page, very simple can be judged.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.