In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to set up the article page publisher on phpcms. I hope you will gain a lot after reading this article. Let's discuss it together.
Step 1: modify the content_model.class.php file
1. Add articles to the add_content function
Line 222 is preceded by the generation of the static page
$username=$systeminfo ['username']
Change to
$username=$systeminfo ['username']; / / dhs// generates static if (! $isimport & & $data [' status'] = = 99) {/ / defines INDEX_HTML if (defined ('INDEX_HTML')) $html- > index (); if (defined (' RELATION_HTML')) $html- > create_relation_html ($catid);}
In addition, if you want to update this information when you modify it, it can be near line 320.
/ / generate static $html = pc_base::load_app_class ('html',' content'); if ($urls ['content_ishtml']) {
Add in front of it
$username=$systeminfo ['username']
Step 2: add the publisher information to the template that generates the page
Responsible Editor: {$username}
Here, it will be displayed at the bottom left of the article, which is not in line with the habit. You can write the right float in the CSS file. If you don't want to change the CSS file. It can be written like this.
Responsible Editor: {$username}
After reading this article, I believe you have a certain understanding of the method of setting up article page publishers on phpcms. Want to know more about it. Welcome to follow the industry information channel. Thank you for your reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.