Q&A on Z-blogPHP (updated in 2022/04)

 talklee

Last article updated: April 15, 2022 Has exceeded seven hundred and thirteen No updates for days.

The latest arrangement zblog The idea of the program is to summarize the problems of zblogphp encountered in the past. They are common or some netizens do not understand them. They are for your reference only. Old drivers please bypass.

 Z-blogPHP FAQ (updated 2022/04) Page 1

The topic cannot open or display the reference to this article of "illegal authorization file": Solution to "illegal authorization file" displayed by zblog opening theme or plug-in

Frequently asked questions about zblogphp

1. How to generate pseudo static?   

Answer: Go to the background home page ->enter "plug-in management" on the left side of the background ->start "static management center", enter "setting management" on the upper right side of the background ->enter "static management center", select or write corresponding rules and save them according to the situation and needs, and finally generate or add ReWrite rules** The system will automatically determine what your web server is. For specific rules, please refer to the following "pseudo static problems".

2. Q: How to enable Gzip compression through ZBlogPHP?

Answer: Go to the background home page ->go to "Settings Management" on the upper right side of the background ->go to "Global Settings" ->turn on "Gzip Compression" and save it** If Gzip can be enabled on the server side, it is better. Many control panels can be enabled. It is recommended that Du Niang do it;

3. How does ZBlogPHP manage files online?

Answer: Download "KOD File Management" in the application center and enable it;

4. Why does the modified theme file not take effect?

Answer: Go to the background home page, find the "Update Cache and Compile Template" and click it** If it does not take effect, please enter the official forum to ask questions;

5. Why does the parent category page not display sub category articles?

Answer: Go to the background home page ->go to "Settings Management" on the upper right side of the background ->go to "Page Settings" ->turn on "List all sub categories of articles under the category"

6. Why can't UE upload pictures?

Answer: First, whether to enable domain name solidification. If domain name solidification is enabled, the UE's JS cannot obtain content across domains, which will lead to errors; The solution is to use the solidified domain name to log in to the background.

Method 2: Check whether the unreasonable anti-theft chain is opened, which causes the JS file cannot be read normally;

Method 3: Enter the ZBP forum, speak for help, and upload the screenshot of the console in F12;

7. How to change the avatar?

Answer: Go to the background to find the left application center, search for "Modify avatar" to download, enable it, find the left menu user management, and modify the avatar.

8. Q: What should I do if I forget the background account password?

Answer: Refer to this article What if zblog forgets the background account password?

9. Question: How to upload the downloaded theme file in the format of zba?

Answer: After buying a theme, the downloaded files are theme package files, usually zba. Go to the background to find theme/plug-in management, browse and upload, and enable it.

10. Q: What's the matter with the failed theme update after purchase?

Answer: Online updates are not allowed except for online purchase in the application center. You need to download the latest version on this site, enter the background theme management, upload the latest version, clear the cache compilation on the background home page, and force the foreground refresh (ctrl+f5) to complete the update.

New icon on the right of Quiet Zhiyuan theme category name:

 ul.nav-pills>li:nth-of-type(3) a:after {content: '';background: url(/zb_users/theme/quietlee/style/images/icon_new.png) no-repeat;width: 26px;height: 14px;background-size: contain;display: inline-block;vertical-align: middle;margin-left: 5px;}

Copy the above code, paste the customized css in Theme Settings - Global Settings, where (3) refers to the third from the left.

Quiet Zhiyuan theme navigation stripe background code:

 .new-header {background-color:#ffffff;position:relative;background-image:url(/zb_users/theme/quietlee/style/images/nva_bg.png);background-position:center right;background-size:auto 100%;}

Copy the above code, paste it in the theme settings, and customize the css interface.

Want the theme template article background color:

 .single-entry {     width: 100%;     max-width: 100%;     position: relative;     background-image: linear-gradient( 90deg,rgba(255,0,0,0.05) 5%,rgba(72,42,10,0) 0),linear-gradient( 1turn,rgba(0,0,0,0.05) 5%,rgba(255,153,44,0) 0);     background-size: 20px 20px;     box-sizing: border-box;     border-top: 1px solid #fff2f2;     margin-top: -5px;     padding-bottom: 16px; }

single-entry It is the name of the article class, which is modified according to the actual situation. It is hoped that the theme template can be used directly.

Category Page

First of all, there are some classification problems. Some children's shoes report that no matter which page they click to open the home page, some think it is a program error, or even clear the data directly. The result is the same. The problem is that the template of the classification page. Xiaobai will not read the theme introduction after buying the theme. If there is a problem, he will go to the developer. This is a very bad habit, Although I don't like reading such articles, I can't help it. There is really a problem. The solution is:

Open the background home page, find the "Classification Management" in the left menu, then find the classification of the corresponding website, click the edit button on the right, find the template, and select "catalog", as shown in the figure:

 Z-blogPHP FAQ (updated 2022/04) Page 2

Here, some topics do not need to be set to separate classification templates, because the form of the home page list is the same as that of the classification, which does not need to be classified separately. It is easy to distinguish between them. First, look at the topic introduction, which will be marked by each developer. Second, open the classification view. If it is the style of the home page, you need to select a separate template.

 Z-blogPHP FAQ (updated 2022/04) Page 3

Attach theme compatible plug-in:

 Z-blogPHP FAQ (updated 2022/04) Page 4

Comment on User Agent plug-in: Information such as reviewer's browser can be displayed in the comment area.

Copy code: When editing an article, use the code box to display the copy button in the upper right corner.

The article likes development board: Enable the plug-in to display the like function on the article page.

Gravatar Head: Call the comment header plug-in.

Photo SEO: As its name implies, it doesn't explain much.

Baidu Push the lazy version: New articles are automatically submitted to Baidu search engine plug-ins.

Automatic inner link of body label: Associate the corresponding tag in the article, and give the tag link function.

Image watermark: Add watermark, optional text or image watermark when uploading images.

100 accounts send documents synchronously: When you publish an article, it automatically synchronizes to the plug-ins of hundreds of brands, and you can install them by yourself.

The above plug-ins are free plug-ins. The application center searches and downloads them by itself. Generally, the default configuration is good without special requirements.

Common errors

You may know that the random code "rand()" is prohibited after the update of zblogphp. I have written an article before. I am interested in reading it for myself: Tutorial for zblogphp random display of articles New random display is enabled Show the code of the article, but some children's shoes may encounter the prompt as shown in the figure“ array_rand():Second areument...

 Z-blogPHP FAQ (updated on 2022/04) Page 5

This problem is also easy. The reason is that the number of articles on your website is too small, less than the articles that need to be displayed. Of course, this is not just for my topic. Anyone who uses the code of the articles displayed immediately may be displayed. Because the parameter settings display 9 articles randomly, but the database does not have 9 articles at all, so this prompt appears, I really don't understand what the code means. I can't read this. I only know that the solution is to create a new article until 10 articles are met. Of course, you can change the random display code.

Latest solutions:

Since the recommended form of images and texts has been updated in the later stage, the above questions are set in the background, appearance settings, and the number of images and texts in the side bar, such as pictures:

 Z-blogPHP FAQ (updated 2022/04) Page 6

After setting, update the cache.

Pseudo static problem

Some new children's shoes don't understand the pseudo static of the program itself. Why do some websites open and display you: "http://others' domain name/guestbook/", while your article: "http://your domain name/guestbook/"? The reason to solve the problem is the alias of the article itself. Open the page management, edit page, and there is an "alias" below the article content You can set it here, as shown in the figure:

 Z-blogPHP FAQ (updated 2022/04) Page 7

There are also some other types of pseudo static, here my own pseudo static rules share Next, if necessary, take it away directly. First open the plug-in, find it as the pseudo static center, click Manage, and select the "pseudo static" code for the static option as follows:

·URL configuration of articles

 {%host%}blog/{%id%}.html

·URL configuration of the page

 {%host%}{%alias%}/

·URL configuration of homepage

 {%host%}page_{%page%}.html

·URL configuration of category page

 {%host%}{%alias%}/{%page%}/

·URL configuration of tab

 {%host%}tags-{%id%}_{%page%}.html

·URL configuration of date page

 {%host%}date-{%date%}_{%page%}.html

·URL configuration of author page

 {%host%}author-{%id%}_{%page%}.html

Copy the code directly to the text box.

Secondary drop-down menu

If you use the "Link Module Management" plug-in, you can ignore adding the secondary menu manually and look down directly... If the plug-in is not enabled, continue to view: The zblogphp program pull-down menu needs code implementation. This current operation habit may not be good, but it can only be modified manually. When the developers of each theme write the theme introduction, they will definitely tell the code. Some do not know how to use it. Take my theme as an example, set the lower secondary menu:

For example, dreamer theme secondary menu code:

 <li class="menu-item-has-children"> <a href="/">First level menu</a>     <ul class="sub-menu dropdown-menu"> <li><a href="/">Secondary menu</a></li> <li><a href="/">Secondary menu</a></li>     </ul> </li>

Then go back to the background, find the module management on the left, click the navigation bar above, as shown:

 Z-blogPHP FAQ (updated 2022/04) Page 8

Then, at the end of the body, add the code, click Submit, open the home page to view it, and you can modify it by yourself. Pay attention to backing up the original content of the navigation bar to avoid errors that may lead to website errors.

Secondary modification

Themes are made according to the aesthetic standards of the public or from the perspective of developers. Some experiences are not so good. If you want to delete a piece or modify a piece, the specific modification will vary from person to person. The problem is that after you modify the theme, the website does not change, so you can modify it again. The solution is:, The setting of the program itself is that every time the theme template is modified, you have to go back to the background home page and find "Clear the cache and recompile the template" (as shown in the figure). Of course, some core files of the template need to re enable the theme to achieve.

 Z-blogPHP FAQ (updated 2022/04) Page 9

The problem comes again. Some themes have been modified, and the original style will be restored in the next update. There is no way to solve this problem, but the theme style can be designed to solve it. Even if the template is updated, it will not be changed. The solution is that some themes have custom CSS style interfaces set during development, That is to say, we just need to write the CSS we want to replace into the theme interface, so that even if the theme is updated, the custom style will be preferred. For example, my theme has such an interface, background, theme settings, find the appearance settings, and add your favorite CSS style, as shown in the figure. Remember to turn on the switch.

 Q&A on Z-blogPHP (updated in 2022/04) Page 10

Orson icon

Here I am again. Today I will teach you how to use the Orson icon, as shown in the figure:

 Z-blogPHP FAQ (updated 2022/04) Page 11

First, open the website background, find the left menu module management, and then click the navigation bar above to enter the navigation bar.

 Z-blogPHP FAQ (updated 2022/04) Page 12

Add in the body as shown in the figure, find the corresponding classification name, such as the home page, and then copy and paste the code

 <i class="fa fa-home"></i>

Where fa is fixed, we just need to modify the following "fa home". For other codes, refer to the following links;

 Z-blogPHP FAQ (updated 2022/04) Page 13

Then open the "Prohibit the system from updating the module content", so that the icon can be seen on the background home page. At present, it is only for my theme, because the theme file has quoted the style file of Orson's icon. Please refer to this website for the specific icon style, and let others use their imagination to create a blog with their own unique style.

Attached Use the "Link Module Management" plug-in course

First confirm that you have enabled the plug-in, then find the module management, click the navigation bar, as shown:

 Z-blogPHP FAQ (updated 2022/04) Page 14

Open the navigation bar and add "code of Orson icon" to "icon (class attribute value)", as shown in the figure:

 Z-blogPHP FAQ (updated 2022/04) Page 15

OK, so far the tutorial of adding navigation icons is over. It is very simple, including setting the secondary menu. Just open the "secondary" in the above figure (purple box) to complete the secondary menu setting.

Attached with Orson icon Website: Icon Portal

About the project introduction module setting tutorial:

First find the menu on the left, Module Management, and click New Module

 Z-blogPHP FAQ (updated 2022/04) Page 16

Set name (customizable) File name and ID divproject It cannot be changed. The settings are shown in the figure below:

 Z-blogPHP FAQ (updated 2022/04) Page 17

Select "UL" as the type, and the body content is as follows (some names and links are modified by themselves):

 <li class="divproject-ebox divproject-01"> <h4> Website construction </h4> <p>Provide brand official website solutions</p> <a class="btn btn-default btn-sm" rel="nofollow" target="_blank" href=" tencent://message/?uin=229693666&Site=Senlon.Net&Menu=yes ">Contact us</a> </li> <li class="divproject-ebox divproject-02"> <h4>Formwork fabrication</h4> <p>Station imitation/rendering to template</p> <a class="btn btn-default btn-sm" rel="nofollow" target="_blank" href=" tencent://message/?uin=229693666&Site=Senlon.Net&Menu=yes ">Contact us</a> </li> <li class="divproject-ebox divproject-03"> <h4>CSS layout adjustment</h4> <p>Revise the web layout</p> <a class="btn btn-default btn-sm" rel="nofollow" target="_blank" href=" tencent://message/?uin=229693666&Site=Senlon.Net&Menu=yes ">Contact us</a> </li> <li class="divproject-ebox divproject-04"> <h4>Solving other problems</h4> <p>Solve the problems encountered in site construction</p> <a class="btn btn-default btn-sm" rel="nofollow" target="_blank" href=" tencent://message/?uin=229693666&Site=Senlon.Net&Menu=yes ">Contact us</a> </li> <li class="divproject-ebox divproject-100"> <h4>Customized development process</h4> <p>Business consultation | Submit demand | Start implementation | Confirm | After sales service</p> <a class="btn btn-default btn-sm" rel="nofollow" target="_blank" href=" tencent://message/?uin=229693666&Site=Senlon.Net&Menu=yes ">Contact us</a> </li>

PS: Only text and links can be modified, other formats should not be moved, otherwise there may be confusion.

About how to set up picture advertisements

There are many advertising spaces in the theme, which are actually aimed at alliance advertising, but it does not exclude that some Xiaobai want to place some simple picture links. The code is as follows:

 <a href="You can fill in the target link or not jump/" title="Description"> <img src="Image URL" alt="Image Description"> </a>

Very simple!

Compatibility description of the Favourite button in the LayCenter:

The user center background, global configuration - general configuration, as shown in the figure: based on the element ". ds reward stl", select the front“ prepend ”。 The custom css and id can be set to "shoucang".

 Z-blogPHP FAQ (updated 2022/04) Page 18

Article Sales Custom CSS Code, Global Configuration - Sales Configuration, Bottom Custom Style:

 .lcphidebox{border:solid 1px #e4393c;text-align:center;}.entry-content .lcphidebox .lcp-title{background:url(//static.360buyimg.com/item/unite/1.0.81/components/default/pingou/i/activity-banner.png) right top no-repeat #e4393c;font-family:"Microsoft YaHei";overflow:hidden;zoom:1;color:#ffe134;font-size:16px;background-size:cover; background-color:#e4393c! important; display:block; margin:0 auto; line-height:30px; padding:10px 0; border-radius:0;}. entry p.price{color:#bf8e56;margin:0 auto;font-weight:bold;}p.price span{color:#E4393C;font-family:"microsoft yahei";}.entry .lcp-body p{margin:0 auto;}.lcphidebox .lcp-body{background:linear-gradient(to bottom,#fff3e0 0,#ececec 100%);}.lcphidebox .lcp-header{background:#f3f3f3;padding:10px 5px 5px;} ul.lcp-download-field{text-align:left;}.lcp-body p.buy a,p.lcp-download-subinfo span.download a{background:#d5b682;padding:5px 10px;margin:0 5px;color:#ffffff;border-radius:2px;-moz-transition:ease-in-out 0.3s;-webkit-transition:ease-in-out 0.3s;-o-transition:ease-in-out 0.3s;-ms-transition:ease-in-out 0.3s;transition:ease-in-out 0.3s;} .lcp-body p.buy a:hover,p.lcp-download-subinfo span.download a:hover{background:#777;color:#fff;}

Hide some classifications:

 a#cate-5 {     display: none; } Multiple classification hiding: a#cate-5, a#cate-6 {     display: none; }

Note: Enable the numbers "5" and "6" to refer to the classification ID. In the background, the classification management will view the ID.

 Z-blogPHP FAQ (updated 2022/04) Page 19

Hide all top-level classifications:

 ul.filter-tag {     display: none; }

effect:

 Z-blogPHP FAQ (updated 2022/04) Page 20

Well, let's call it a day. I will keep up with new problems.

Article copyright notice: unless otherwise noted Li Yang's Personal Blog For original articles, reprints or copies, please use hyperlinks and indicate the source.

Comment

Quick reply: expression:
Comment List (Yes ninety-seven Comments, forty-two thousand eight hundred and thirty-nine People around)
 Netizen nickname: auto_6kjx1ufe
auto_6kjx1ufe V tourist  Google Chrome 103.0.0.0  Windows 10 x64 48th Floor
2022-07-24 From Indonesia reply
Very good, please give me a compliment
 Netizen nickname: talklee
talklee V Blogger  Sogou Explorer  Windows 10 x64
2022-07-25 From Liaoning reply
@auto_6kjx1ufe Thank you for your support from Indonesian netizens!
 Netizen nickname: Electric Appliance Network
Electrical network V tourist  Google Chrome 86.0.4240.198  Windows 7 x64 47th floor
2022-07-23 From Guangxi reply
Thanks for sharing and learning
 Netizen nickname: talklee
talklee V Blogger  Sogou Explorer  Windows 10 x64
2022-07-25 From Liaoning reply
@Electrical network It's very kind of you to help!
 Netizen nickname: unknown
nameless V tourist  Google Chrome 75.0.3770.100  Windows 10 x64 46th Floor
2021-12-18 From Tianjin reply
Come around and praise one.
 Netizen nickname: talklee
talklee V Blogger  Sogou Explorer  Windows 7 x64
2021-12-18 From Shanghai reply
@Anonymous Thank you for your support!
 Netizen nickname: cjwlove
cjwlove V tourist  Google Chrome 86.0.4240.198  Windows 10 x64 45th floor
2021-12-17 From Guangdong reply
You can find everything you want from Lao Li. It's very good!! But I found a problem. I used the navigation theme to install the copy code plug-in. Why doesn't the copy button appear in the upper right corner! The project introduction module is not suitable for the navigation theme!!!
 Netizen nickname: talklee
talklee V Blogger  Sogou Explorer  Windows 7 x64
2021-12-18 From Shanghai reply
@cjwlove Check whether it is caused by js or css conflicts.
 Netizen nickname: We Media Operation
We Media Operation V tourist  Google Chrome 92.0.4515.107  Windows 10 x64 44th floor
2021-12-08 From Shanghai reply
Yes, I must stand up!
 Netizen nickname: talklee
talklee V Blogger  Sogou Explorer  Windows 10 x64
2021-12-08 From Tianjin reply
@We Media Operation Thank you for your support!
 Netizen nickname: Uncle Latte
Uncle Latte V tourist  Google Chrome 96.0.4664.55  Windows 10 x64 43rd Floor
2021-12-07 From Shanghai reply
Madou Media is good
 Netizen nickname: talklee
talklee V Blogger  Sogou Explorer  Windows 10 x64
2021-12-08 From Shanghai reply
@Uncle Latte Emmmm What?
 Netizen nickname: A Baibian Pengzai
A Baibian Pengzai V tourist  Google Chrome 96.0.4664.45  Windows 10 x64 42nd floor
2021-12-07 From Guangdong reply
Come and have a look! [Fabulous]
 Netizen nickname: talklee
talklee V Blogger  Sogou Explorer  Windows 10 x64
2021-12-08 From Tianjin reply
 Netizen nickname: We Media Operation
We Media Operation V tourist  Google Chrome 92.0.4515.107  Windows 10 x64 41st floor
2021-12-06 From Shanghai reply
Yes, I must stand up!
 Netizen nickname: talklee
talklee V Blogger  Sogou Explorer  Windows 10 x64
2021-12-07 From Tianjin reply
@We Media Operation Thank you for your support
 Netizen nickname: auto_ft5k1kid
auto_ft5k1kid V tourist  Sogou Explorer  Windows 10 x64 40F
2021-11-18 From Shanghai reply
How to add or modify background pictures
 Netizen nickname: talklee
talklee V Blogger  Sogou Explorer  Windows 10 x64
2021-11-23 From Shanghai reply
@auto_ft5k1kid Which theme?

Contents [+]