DISCUZ!X2 implementation of single page to integrate the head user information and status

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Sometimes the footer of the website needs some single-page links, for example: Company profile, about us, contact us, etc. If only to do a static single page is very simple, but with the system user login to exit synchronization, it is necessary to find a way. The following methods can be implemented:

Single-page file about.php

< PHP

Define (' Curscript ', ' test ');

Require './source/class/class_core.php '/Introduction system core Files

$discuz = & Discuz_core::instance ();//The following code creates and initializes an object

$discuz->init ();

$navtitle = ' IT618 Information network ';

$metakeywords = ' service-side development, front-end development, web effects, open source systems, software downloads, webmaster build stations, Taobao open Shop ';

$metadescription = ' IT618 Information network www.***.com provide service-side development, front-end development, web effects, popular open source system research, software downloads, webmaster build stations, Taobao open shop and other learning materials. '

Include template (' Forum/about ');

? >

It should be noted here that about the template file name, do not need to add the. htm extension, template files are stored in the default style directory of the forum directory;

Single-page php files are stored in the forum root directory;

$navtitle = ' IT618 information network '; Define a single page title

$metakeywords = ' Server development, front-end development, web effects, open source systems, software downloads, webmaster sites, Taobao open Shop '; single-page keyword information

$metadescription = ' IT618 Information network www.***.com provide service-side development, front-end development, web effects, popular open source system research, software downloads, webmaster build stations, Taobao open shop and other learning materials. ' Single page description information

Template file about.htm

{subtemplate Common/header}

In the middle, you can freely make your personalized single-page.

{subtemplate Common/footer}

The template file is simple, just call the header and footer.

Related Article

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.