Home >Web Front-end >JS Tutorial >Summary of pjblog modification skills_basic knowledge
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: