Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to analyze Blog Updated instance

Shulou Source: shulou.com Published: 2022-06-01 01:30:31 10月03日 Update

Today I will show you how to analyze Blog Updated instances. The content of the article is good. Now I would like to share it with you. Friends who feel in need can understand it. I hope it will be helpful to you. Let's read it along with the editor's ideas.

Recently, it was found that BLOG's article looked laborious, and it was found that it was because there was no indentation in the first line and blank lines in paragraphs. And then start looking for a solution. After reading the source code of pjblog and some scattered statements on the Internet, I found the corresponding file classcls_article.asp that shows the article. This file also has several containing files, which have been checked for a long time but have not found the true meaning. The ASP page is really troublesome, so we have to find some places to output some values for debugging. Then I tried for a long time, but it all failed. Later, I thought of changing the database, because pjblog supports both UBB and FCK editing methods, so simply think about changing the part of UBB to

That's right, the result was greatly disappointed, and the log output was all messed up. Before dinner, I found that there was a trick in ubbcode.asp and decided to hit it. After many attempts, add the following sentence before the function returns:

'paragraph / / By hesicongstrContent=Replace (strContent, ") UBBCode=strContent

The problem of converting line breaks into\ nfrom UBB is solved, and now the page is full of

This will make it easier to indent the first line. Then change the layout.css file corresponding to the theme and add "text-indent:2em;". In the end, it feels basically right, of course, rough replacement marks may bring some problems, and now you can't change lines casually when writing articles, otherwise it will be more difficult to read.

The above is how to analyze the full content of Blog Updated instances, more content related to how to analyze Blog Updated instances can search the previous articles or browse the following articles to learn ha! I believe the editor will add more knowledge to you. I hope you can support it!

Tags: Articles documents examples analysis content yes that is more paragraphs questions pages try support output good laborious rude disappointed theme function Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Linux Shulou Tech Info vpn Microsoft