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

Summary of pjblog modification skills_basic knowledge

WBOY
WBOYOriginal
2016-05-16 19:16:461530browse

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:
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