Novice ask two small white questions (Typecho)

Source: Internet
Author: User
1. How to obtain the current user's information, such as mailbox, login name.
2. How to get a page for the plugin (not the background settings), similar to the emlog domain suffix? plugin=demo this?

I small white one, first contact Typecho.
Ask the great God to answer, thank you very much!!

Reply content:

1. How to obtain the current user's information, such as mailbox, login name.
2. How to get a page for the plugin (not the background settings), similar to the emlog domain suffix? plugin=demo this?

I small white one, first contact Typecho.
Ask the great God to answer, thank you very much!!

  1. $this->user->screenName()$this->user->mail();
  2. Increase the page need to increase the route, can see I write this plugin: https://github.com/typecho-fans/plugins/blob/master/Update/Plugin.php#L23

Since it is small white to look at what others write, especially the first official theme can find how to use it well ...

  • 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.