Home Web Front-end JS Tutorial Summary of pjblog modification skills_basic knowledge

Summary of pjblog modification skills_basic knowledge

May 16, 2016 pm 07:16 PM

1. How to modify the number of emoticons displayed in a line in the log reply box?
The standard is 8, I want to change it to 5 per line, because the size of the expressions I uploaded is a bit large, causing the page to expand and become a bit confusing

Method: Use Notepad to open UBBconfig in the common directory .asp file/——Look for the following code:
Program code
if SmilieCount=8 then SmilieHtml=SmilieHtml "":SmilieCount=0
See 8? Just change it to 5...

2. Why is the friendly link added in the background but not displayed on the homepage?

Enter the background - [Friendly Connection Management] - Do you see the icon behind the connection you added? , click it, it will prompt that your friendly link is pinned to the top and becomes an icon, then the friendly link you added will be displayed on the homepage.

In a word, the friendly links that are pinned to the top are only displayed on the homepage, and the friendly links that are not pinned are only displayed on the [More Links] page

3. How to add the registration number and statistical code at the bottom of the homepage Or edit some information at the bottom?

Use Notepad to open the foot.asp file in the root directory/find the following code:

Program code
Just replace

with your registration number. In fact, there is a very simple method. What method? Haha, it can be added in the background! I started to get confused and didn't pay attention...entered the backend - [Basic site information] - did you see it? I fainted when I didn’t see it~!

How to add statistics code? I'm confused. Just find a location and add your statistical code. But you need to find a suitable place to add it...

If you see what information at the bottom you don't want to appear, just remove it in this file. Just the code...

The copyright information can also be removed, but I hope everyone respects the labor results of Shunzi and others, please keep the copyright information! ! ! ! ! ! ! ! ! It’s okay to add copyright information!

Copyright Information Code:

Program Code

Powered By PJBlog2 v CopyRight 2005,

Style information code:

Program code


Feel free to change the rest, and remove them if you don’t want them to appear. Which code is enough...

4. How to modify the website building time?

Just go into the background and modify it - [Interface and Plug-ins] - [Settings Module] Find the module tag [BlogInfo ]——[Visual Editing], you can modify it as you like. You can also delete unnecessary statistics. I removed [Reference] and [Online Membership]. I entered [HTML Editing] and made the same modifications. , it’s okay...

5. Use the guestbook?

Enter the background - [Interface and plug-ins] - [Install module plug-in], then select the plug-in you want to install, and click [Install this plug-in]. .

PJBLOG comes with three plug-ins, including guestbook plug-in, latest article plug-in, and personal profile plug-in.

I only used two plug-ins. I think more plug-ins are useless. If you need more plug-ins, just go to the official forum to download them. I haven’t installed new plug-ins yet, so I won’t do it for the time being. Will install...

6. How to modify the number of words displayed in each log on the homepage?

I was very stupid at first. I just couldn’t find the place to limit the number of displayed characters, so I went to the background to change it. . It’s so pitiful

If you want to uniformly edit the number of words displayed in each log on the homepage, you can enter the backend - [Basic Site Information] - [Log Save Settings], and you can modify the number of words or lines displayed - —[Two options]

By the way, you can modify the settings you want in [Basic Site Information]. I’ll register the membership to Guan La, hehe. . .

Okay, let’s talk about how to correctly and appropriately modify the number of words displayed in each blog on the homepage. When publishing a blog, do you see [Content Summary] under the edit box? ——Select [Edit Content Summary], okay, copy the content you want to display on the homepage of this blog into it...

Number of words? Count it yourself, haha. You can select which content to display on the homepage. In fact, this is more useful than the number of words displayed.

7. Modify the database path and cookie name in const.asp to ensure the security of your site

Don’t tell me you don’t know how to do this. . This prompt is a description file included in the program. .

Go to the root directory and find the const.asp file, open it with Notepad, and look for the following code (actually there is a text prompt in it, you can find it as soon as you look for it):

Program code
'Define the database link file and modify it according to your own situation
Const AccessFile="blogDB/PBLog2.asp"

Define the Cookie, Application domain, which must be modified, otherwise it may not run properly
Const CookieName ="XXX"
Const CookieNameSetting="XXXSetting"
Const IPViewURL="http://www.dheart.net/ip/index.php?ip=" 'IP query website address
Response.Cookies (CookieNameSetting).Expires=Date 365

Modify PBLog2.asp to a complex name. It needs to be complicated. Haha, the provincial database is easy to lose. After modification, then open the blogDB directory and give the PBLog2.asp file , and then rename it, what name? The name you just changed! The cookie name can be modified at will.

8. How to install skin (style)?

First of all, will you set the default style? Dizzy, right? Hurry into the backend - [Modules and Plug-ins] - [Set Appearance], select a style, click [Set as current theme], and the default style will be set/

Download from the official forum One style, just unzip the downloaded folder and upload the folder A style has been added automatically, go and try the new style!

9. After removing the editing log, the words "[This log was edited by so-and-so when]" appear at the bottom of the article

PJBlog2 v2.5 version: Open the root directory with Notepad blogedit.asp file, find and delete the following code:

Program code
if weblog("log_IsDraft")=false then weblog("log_Modify")="[This log is written by "&memName&" Edited at "&DateToStr(now(),"Y-m-d H:I A")&"

PJBlog2 v2.6 version: Use Notepad to open the cls_logaction.asp file in the class directory, find and delete the following This code:

Program code
if logIsDraft=false then weblog("log_Modify")="[This log is generated from "&memName&" to "&DateToStr(now(),"Y-m-d H:I A" )&" Edit]"

10. Remove the underline of the hyperlink in the style

Open the link.css file of each style in the Skins folder and use Notepad to open it. The parameter is "text-decoration:underline", and the parameter without underline is "text-decoration:none".If the "text-decoration" attribute is not used, it is underlined by default. You can replace "underline" with "none" where you don't want the underline, or simply replace everything. I just made them all without underlines, haha, it’s really ugly to have underlines...

11. PJBlog2 plug-in: Site Focus - Site Focus plug-in Author: jerry (06-05-22)

Plug-in description: Site Focus.
Like many large portal websites, some pictures are rotated on the homepage to link to the corresponding address. Especially suitable for website focus and some advertisements. This plug-in can set 5 focuses in the background. Each focus has its own corresponding picture, link address, and explanatory text. You can set the display size of the front desk, and change the linked pictures in turn through various transition styles in the front desk to achieve "focus." "Purpose.

Installation method: Upload the SiteFocus folder to the Plugins folder of the space, and then install it in the background.

Plug-in download address: http://www.finalsky.com.cn/article.asp?id=9

Twelve: PJBlog2 plug-in: TimeCounter Author: jerry (06-05- 22)

Plug-in description: Countdown plug-in, you can set 4 options in the background: timing title, target date (form such as yyyy-mm-dd), target time (24-hour format, such as hh:mm: ss), time card style, when the target time is less than 3 days, it will automatically turn into a red reminder, and if the target time is exceeded, it will prompt expiration. This plug-in supports both IE and Firefox.

Installation method: Upload the TimeCounter folder to the Plugins folder of the space, and then install it in the background.

Plug-in download address: http://www.finalsky.com.cn/article.asp?

13. How to modify the search keyword that cannot be less than 3 words?

In the background [interface plug-in] - [Search module] there [edit html], change to:



14. "View Visitors" in the background "Record" is blank, why?

Backstage - basic site settings - maximum visitor record value "fill in the number"... 100000000, fill in as much as you like. You can leave it blank. If it is 0, you will see nothing in the visitor record

15. Modify the size of the thumbnail image displayed on the homepage

Find the folder common and open common.js inside file, modify the following code (actually I don’t know the difference between 500 and 400, so I changed all 500 and 400 to 550 to save trouble.)

Program code
/ /Find images that are too wide in the web page for scaling and PNG correction
function ReImgSize(){
for (i=0;i {
if ( document.all){
if (document.images[i].width>500)
{
document.images[i].width="500"
document.images[i]. outerHTML='
target="_blank" title="Open image in new window">' document.images

[i].outerHTML '
'
}
}
else{
if (document.images[i].width>400) {
document.images[i]. title="Open image in new window"
document.images[i].style.cursor="pointer"
document.images[i].onclick=function(e){window.open(this.src )}
}
}
}
}

16. Skin switch plug-in (2006-06-05)

Plug-in name: Skin Switcher
Plug-in version: 1.0
Plug-in author: Shunzi
Plug-in description: Give PJBlog2 a function to quickly switch Skin, install the plug-in background, and go to the advanced settings of the plug-in to select the Skin that visitors can change themselves.

Download address: http://www.pjhome.net/article.asp?id=504

17. When mixing pictures and text, how to insert the picture to the left or right of the text? ?

UBB editor, use code UBB editor, use code
[ img=left]http://xxx.com/xxx.jpg[ /img] (there are no spaces within the [] number)

18. How to modify "View more..." to "[Read more]"

Change the "View more..." in the files cls_logaction.asp and cls_default.asp in the class directory More..." replace it with "[Read the full text]", then re-edit the log and save it.

19. Correction method for PJBLOG failure to send citation information when publishing new logs

Reference: http://www.lnuu.com/article.asp?id=857

20. Collection of tags to beautify PJBLOG

Reference: http://www.lnuu.com/article.asp?id=877

21. When visitors are prohibited from posting comments, Modify the prompt language "You do not have permission to post comments!"

Just modify the corresponding place in the class/cls_article.asp file, that is, replace the above prompt language.

22. Add Google Adsense ads to the article

1. Static log mode. . .

Open Template/Article.asp and find the following code (line 20):

Quotation content

   




Then add your Google Adsense ad code, as in the following example:

Reference content

                                                                                                                                                        🎜>Google Adsense advertising code                                                                           . . .

Modify the class/cls_article.asp file.

The placement location is:
Reference content


                                   "
")% >

Google Adsense advertising code




3. Save the modified file, upload it to ftp space, and then enter the background, [ Basic site settings] - [Initialization data].

4. If you want to place Google Adsense ads at the top of the article or in the sidebar, create a [content module] in the background, and then add the advertising code in the module.

23. Solve the problem that the PJBLOG emoticon box cannot be called up in the Firefox 2.0 browser
Summary of pjblog modification skills_basic knowledgeReference: http://www.lnuu.com/article.asp?id=1008
Twenty-four. Modify the verification code so that it always only has four "0"s

Find commonGetCode.asp and modify the following two sentences of "Dim i, ii, iii" (No. 16, Line 17):

Const cOdds = 0 ' (Explanation: No noise will appear)
Const cAmount = 1 ' (Explanation: Just take a symbol, the default is 0)

Two 15. Prevent junk references

1. Delete trackback.asp and refuse this function (use with caution)
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What should I do if I encounter garbled code printing for front-end thermal paper receipts? What should I do if I encounter garbled code printing for front-end thermal paper receipts? Apr 04, 2025 pm 02:42 PM

Frequently Asked Questions and Solutions for Front-end Thermal Paper Ticket Printing In Front-end Development, Ticket Printing is a common requirement. However, many developers are implementing...

Who gets paid more Python or JavaScript? Who gets paid more Python or JavaScript? Apr 04, 2025 am 12:09 AM

There is no absolute salary for Python and JavaScript developers, depending on skills and industry needs. 1. Python may be paid more in data science and machine learning. 2. JavaScript has great demand in front-end and full-stack development, and its salary is also considerable. 3. Influencing factors include experience, geographical location, company size and specific skills.

How to merge array elements with the same ID into one object using JavaScript? How to merge array elements with the same ID into one object using JavaScript? Apr 04, 2025 pm 05:09 PM

How to merge array elements with the same ID into one object in JavaScript? When processing data, we often encounter the need to have the same ID...

Demystifying JavaScript: What It Does and Why It Matters Demystifying JavaScript: What It Does and Why It Matters Apr 09, 2025 am 12:07 AM

JavaScript is the cornerstone of modern web development, and its main functions include event-driven programming, dynamic content generation and asynchronous programming. 1) Event-driven programming allows web pages to change dynamically according to user operations. 2) Dynamic content generation allows page content to be adjusted according to conditions. 3) Asynchronous programming ensures that the user interface is not blocked. JavaScript is widely used in web interaction, single-page application and server-side development, greatly improving the flexibility of user experience and cross-platform development.

The difference in console.log output result: Why are the two calls different? The difference in console.log output result: Why are the two calls different? Apr 04, 2025 pm 05:12 PM

In-depth discussion of the root causes of the difference in console.log output. This article will analyze the differences in the output results of console.log function in a piece of code and explain the reasons behind it. �...

How to achieve parallax scrolling and element animation effects, like Shiseido's official website?
or:
How can we achieve the animation effect accompanied by page scrolling like Shiseido's official website? How to achieve parallax scrolling and element animation effects, like Shiseido's official website? or: How can we achieve the animation effect accompanied by page scrolling like Shiseido's official website? Apr 04, 2025 pm 05:36 PM

Discussion on the realization of parallax scrolling and element animation effects in this article will explore how to achieve similar to Shiseido official website (https://www.shiseido.co.jp/sb/wonderland/)...

Can PowerPoint run JavaScript? Can PowerPoint run JavaScript? Apr 01, 2025 pm 05:17 PM

JavaScript can be run in PowerPoint, and can be implemented by calling external JavaScript files or embedding HTML files through VBA. 1. To use VBA to call JavaScript files, you need to enable macros and have VBA programming knowledge. 2. Embed HTML files containing JavaScript, which are simple and easy to use but are subject to security restrictions. Advantages include extended functions and flexibility, while disadvantages involve security, compatibility and complexity. In practice, attention should be paid to security, compatibility, performance and user experience.

Is JavaScript hard to learn? Is JavaScript hard to learn? Apr 03, 2025 am 12:20 AM

Learning JavaScript is not difficult, but it is challenging. 1) Understand basic concepts such as variables, data types, functions, etc. 2) Master asynchronous programming and implement it through event loops. 3) Use DOM operations and Promise to handle asynchronous requests. 4) Avoid common mistakes and use debugging techniques. 5) Optimize performance and follow best practices.

See all articles