Pjblog modification tips

Source: Internet
Author: User

I. How can I modify the number of emoticon displayed on one line in the log reply box?
The standard is 8. I want to change it to 5 in each line, because the size of the uploaded emoticon is a little large, causing page expansion and confusion.

Method: use NotePad to open the UBBconfig. asp file/-- in the common directory to find the following code:
Program code
If SmilieCount = 8 then SmilieHtml = SmilieHtml + "</tr>": SmilieCount = 0
Have you seen 8? Change to 5 ......

2. Why is a friendly connection added to the background but not displayed on the homepage?

Go to the backend -- [friendship connection management] -- does it show the icon behind the connection you added ?, Click it to remind you that your friendship connection is set to the top and becomes an icon. Then, the friendship connection you added is displayed on the homepage.

In a word, the top link is displayed on the homepage. The top link is only displayed on the [more connections] Page.

3. How do I add the filing number and Statistics Code at the bottom of the homepage or edit some information at the bottom of the homepage?

Use NotePad to open the foot. asp file under the root directory/find the following code:

Program code
<A href = "http://www.miibeian.gov.cn" style = "font-size: 12px"> <B> <% = blogabout %> </B> </a>

<% = Blogabout %> you can replace it with your record filing number. In fact, there is a very simple method. What is the method? Haha, you can add it in the background! I started to confuse myself. I didn't pay attention to it ...... Go to the backend -- [basic site information] -- have you seen it? I am dizzy when I don't see it ~!

How to add the statistical code? Dizzy, just find a location and add your statistical code, but you need to find a suitable place to add ......

If you don't want to see the information at the bottom, you can remove the code in this file ......

The copyright information can also be removed, but I hope you will respect the achievements of Shun and others. Please keep the copyright information !!!!!!!!! Adding a copyright information does not cause any inconvenience!

Copyright Code:

Program code
<P> Powered By <a href = "http://www.pjhome.net" target = "_ blank"> <strong> PJBlog2 v <% = blog_version %> </strong> </a> CopyRight 2005, <strong> <% = SiteName %> </strong>

Style information code:

Program code
<% = SkinInfo %>

You can change the code if you don't want it to appear ......

4. How can I modify the website creation time?

After entering the background, you can modify it to [interface and plug-in] -- [set Module] and find the module tag [BlogInfo] -- [visual editing]. You can just modify it as needed, you can also remove unnecessary statistics, and I will remove [Reference] and [online member]. I am going to [HTML edit] and make the same changes. It's okay ......

5. Use a message book?

Go to the backend-[interface and plug-in]-[install module plug-in], select the plug-in to be installed, and click [install this plug-in ..

PJBLOG comes with three plug-ins: message-based plug-ins, latest article plug-ins, and personal files plug-ins.

I used two plug-ins. I think it is useless if I have more plug-ins. If you need more plug-ins, go to the official forum to download them. I have not installed any new plug-ins yet, not Installed ......

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

At the beginning, I was very stupid. I didn't find a limit on the number of words displayed, so I changed it in the background .. Poor.

If you want to edit the number of words displayed in each log on the home page, you can go to the background-[basic site information]-[log storage settings], you can modify the number of words or number of lines displayed. Two options are available.

By the way, you can modify the settings you want on the [basic information of the site]. You can register a member with,...

Well, let's talk about how to modify the number of words displayed in each log on the homepage correctly and appropriately. When posting a log, do you see the [Content Abstract] below the editing box? -- Select [edit Content Abstract]. OK. Copy the content of this log on the homepage ......

Words? Count it by yourself. Haha, you can select the content to be displayed on the homepage. In fact, this can be better than the number of words displayed.

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

You won't .. This prompt is included in the instruction file in the program ..

Find the const. asp file in the root directory, open it in notepad, and find the following code (in fact, there is a text prompt in it, you can find it as soon as you find it ):

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

Define Cookie, Application domain, which must be modified; otherwise, the operation may be abnormal.
Const CookieName = "XXX"
Const CookieNameSetting = "XXXSetting"
Const IPViewURL = "http://www.dheart.net/ip/index.php? Ip = "'IP query website address
Response. Cookies (CookieNameSetting). Expires = day + 365

It is complicated to change PBLog2.asp to a complex name. The province's database is easy to lose. After modification, open the blogDB directory, give the PBLog2.asp file, and rename it. What is the name? The name you just modified! The Cookie name can be changed as needed.

8. How to install skin (style )?

First, will the default style be set? Dizzy, no? Enter the backend -- [module and plug-in] -- [set the appearance]. After selecting a style, click [set as the current topic] to set the default style/

Download a style on the official forum, decompress the downloaded folder, and upload the folder XXXXX (which contains the UBB folder and other files) to the Skins folder, then a style is automatically added to the backend -- [module and plug-in] -- [set the appearance]. Hurry up and try a new style!

9. After the editing log is removed, the text "[when to edit this log]" appears at the bottom of the article.

PJBlog2 v2.5: use NotePad to open the blogedit. asp file under the root directory and find and delete the following code:

Program code
If weblog ("log_IsDraft") = false then weblog ("log_Modify") = "[this log is created by" & memName & "on" & DateToStr (now (), "Y-m-d H: I A") & "Edit]"

PJBlog2 v2.6: use NotePad to open the cls_logaction.asp file under the class directory and find and delete the following code:

Program code
If logIsDraft = false then weblog ("log_Modify") = "[this log consists of" & memName & "in" & DateToStr (now (), "Y-m-d H: I A ") &" Edit]"

10. Remove the underline Of hyperlink in style

Open the link.css file in each style in the skins folder and use Notepad. The underlined parameter is "text-decoration: underline". The parameter without underline is "text-decoration: none ". If the "text-decoration" attribute is not used, it is underlined by default. You can replace the underline with "underline" to "none", or simply replace all. I mean, it's really ugly to have all the underlines ......

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

Plug-in description: Site Focus, Site Focus.
Like many large portal websites, images are rotated on the home page to link to the corresponding address. It is especially suitable for website focus and some advertisements. This plug-in can set five focal points in the background. Each focal point has its own image, link address, and description text, and can set the display size of the foreground, on the front-end, you can rotate the link image through various transition styles to achieve the goal of "focusing.

Installation Method: Upload the SiteFocus folder to the ins folder of the space and install it in the background.

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

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

Plug-in description: Countdown plug-in. You can set four options in the background: Timing title, target date (in the format of yyyy-mm-dd), and target time (in the 24-hour format, such as hh: mm: ss), timing card style, will automatically become a red reminder when the target time is less than 3 days away, beyond the target time prompt expiration failure. This plug-in supports both IE and Firefox.

Installation Method: Upload the TimeCounter folder to the ins folder of the space and install it in the background.

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

13. How can I modify the number of search keywords?

In the [UI plug-in] In the background -- [Search for the Search module] [edit html], change:

<Form style = "MARGIN: 0px" onsubmit = "if (this. searchContent. value. length <2) {alert ('the keyword cannot be less than two sub'); this. searchContent. focus (); return false} "action =" search. asp ">

14. Why is the background "view visitor records" Blank?

Backend-site Basic settings-maximum value of visitor record "fill in number"... 100000000. If it is set to 0, nothing will be found in the visitor record.

15. Modify the thumbnail size displayed on the home page

Find the common folder and open the common folder. js file, modify the following code (in fact, I do not know the difference between 500 and 400, I changed 500 and 400 to 550, saving the trouble .)

Program code
// Search for images with a large width in the webpage for scaling and PNG correction
Function ReImgSize (){
For (I = 0; I <document. images. length; I ++)
{
If (document. all ){
If (document. images [I]. width & gt; 500)
{
Document. images [I]. width = "500"
Document. images [I]. outerHTML = '<a href = "' + document. images [I]. src + '"

Target = "_ blank" title = "open an image in a new window"> '+ document. images

[I]. outerHTML + '</a>'
}
}
Else {
If (document. images [I]. width> 400 ){
Document. images [I]. title = "open an image in a new window"
Document. images [I]. style. cursor = "pointer"
Document. images [I]. onclick = function (e) {window. open (this. src )}
}
}
}
}

16. Skin conversion plug-in)

Plug-in name: Skin Switcher
Plug-ins: 1.0
Plug-in Author: SHUN ZI
Plug-in Description: This function allows PJBlog2 to quickly switch Skin, install the plug-in background, and select the Skin that can be modified by the guest in the advanced settings of the plug-in.

: Http://www.pjhome.net/article.asp? Id = 504

17. How can I insert a picture on the left or right of the text during text mixing?

UBB Editor, with the code UBB Editor, with the code
[Img = left] http://xxx.com/xxx.jpg[/img] (no space in)

18. How to modify "view more..." to [read the full text]?

Replace "view more..." in the files cls_logaction.asp and cls_default.asp in the class directory with "[read full text]", then edit the log and save it.

19. Correction Method for failed PJBLOG posting of New logs to send reference information

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

20. Beautify PJBLOG tags

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

21. When a visitor is prohibited from posting comments, modify the prompt language "You are not authorized to post comments !"

Modify the corresponding location in the class/cls_article.asp file to 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 1 ):

Reference content
<Div id = "logPanel" class = "Content-body">
<$ ArticleContent $>
<Br/>

Add your Google Adsense ad Code as follows:

Reference content
<Div id = "logPanel" class = "Content-body">
<$ ArticleContent $>
<Br/>
Google Adsense Advertising Code
</Div>

2. Dynamic log mode ....

Modify the class/cls_article.asp file.

Place:

Reference content
<Div class = "Content-body">
<% If len (log_ViewArr (16,0)> 0 then response. write (log_ViewArr (16,0) & "<br/>") %>

Google Adsense Advertising Code

<Br/> <strong>

3. Save the modified file, upload it to the ftp space, and go to the background. Click "basic site Settings"> "initialize data.

4. If you want to put the Google Adsense advertisement on the sidebar of the latter at the top of the article, create the content module in the background, and add the advertisement code in the module.

Twenty-three. Solved PJBLOG emoticons that cannot be called out in Firefox 2.0 Browser

Reference: http://www.lnuu.com/article.asp? Id = 1008

24. Modify the Verification Code so that it will always show only four "0"

Locate common \ GetCode. asp and modify the following two sentences (lines 16th and 17) under "Dim I, ii, iii ):

Const cOdds = 0' (Note: no miscellaneous)
Const cAmount = 1' (Note: The default value is 0)

25. prevent spam reference

1. Delete trackback. asp and reject this function (use with caution)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.