WIKI使用導(dǎo)航
站長(zhǎng)百科導(dǎo)航
站長(zhǎng)專(zhuān)題
- 網(wǎng)站推廣
- 網(wǎng)站程序
- 網(wǎng)站賺錢(qián)
- 虛擬主機(jī)
- cPanel
- 網(wǎng)址導(dǎo)航專(zhuān)題
- 云計(jì)算
- 微博營(yíng)銷(xiāo)
- 虛擬主機(jī)管理系統(tǒng)
- 開(kāi)放平臺(tái)
- WIKI程序與應(yīng)用
- 美國(guó)十大主機(jī)
WordPress:Answers-Configuration
These FAQs have been deprecated. You will find the new updated Frequently Asked Questions on the new pages for the WordPress:FAQ.
這些常見(jiàn)問(wèn)題解答已經(jīng)取消了。你在常見(jiàn)問(wèn)題解答的新的頁(yè)面上會(huì)看到新的已更新的常見(jiàn)問(wèn)題解答。
Formatting an Article's List of Categories
設(shè)計(jì)文章的類(lèi)別列表的格式
To configure the way a post's categories display, open the index.php file and find the text <?php the_category(. Immediately after that bracket, inside quote marks, is the text that goes between each of the categories if you apply multiple categories to a post.
要配置文章類(lèi)別的顯示方式,請(qǐng)打開(kāi)index.php文件并且找到文本the_category(。自傲那個(gè)括號(hào)的后面,在引號(hào)的立馬,是每個(gè)類(lèi)別之間的文本,如果你將一篇文章歸為多個(gè)類(lèi)別。
WordPress doesn't add spaces to the separators, so if you want them, add them yourself. For example, if you want categories to be separated with commas, use <?php the_category(', ') rather than just <?php the_category(','). Similarly, if you want categories to be separated with bullets, you might use <?php the_category(' • ').
WordPress不會(huì)給分隔符添加空格,如果你想要空格,你可以自己添加。例如,如果你希望用逗號(hào)將類(lèi)別分開(kāi),請(qǐng)使用 <?php the_category(', ')而不僅僅是 <?php the_category(',')。與此類(lèi)似,如果你希望使用bullets分開(kāi)類(lèi)別,你可以使用<?php the_category(' • ')。
If Too Many Comments Go to Your Moderation Queue
如果我的審核隊(duì)列中排了太多的評(píng)論
If almost every comment anyone submits ends up in your moderation queue, there's probably a problem with your spam words list. Check the list under Options → Discussion carefully to ensure it doesn't have any items consisting of a single character, a blank line, or other whitespace. Sometimes blank lines can be introduced by spam plugins.
如果任何人遞交的評(píng)論都出現(xiàn)在你的審核隊(duì)列中,這可能是你的垃圾廣告詞列表方面的問(wèn)題。在選項(xiàng) → 討論下面仔細(xì)地查看列表,確保列表上沒(méi)有什么內(nèi)容包含單一的字符,空白的行,或者其它的空格。有時(shí)候,反垃圾廣告插件可能會(huì)帶入一些空白的行。
Stopping HTML in Comments
阻止評(píng)論中的HTML
To prevent people from using HTML in comments, or to block particular HTML elements:
要阻止人們?cè)谠u(píng)論中使用HTML,或者阻止特別的HTML元素:
- In the folder wp-includes, find the file kses.php and open it.
- 在文件夾wp-includes中,找到文件kses.php并且打開(kāi)文件。
- Find the text $allowedtags. It is followed by a list of the HTML elements allowed in comments.
- 找到文本$allowedtags。文本后面帶有評(píng)論中允許的HTML內(nèi)容列表。
- To prevent a partiular HTML element from being used, comment out the line for that element. To comment out a line, type // at the start of the line (some elements will probably be commented out already).
- 要阻止使用某個(gè)特別的HTML內(nèi)容,為那個(gè)內(nèi)容comment out the line 。要comment out a line,請(qǐng)?jiān)谛械拈_(kāi)頭輸入//(一些內(nèi)容可能已經(jīng)commented out(刪除了))。
- If you never want any HTML in comments at all, you can delete the whole function -- from if (!CUSTOM_TAGS) to the next } -- but if you change your mind later, you'll need to get a new copy of kses.php.
- 如果你不希望評(píng)論中擁有任何HTML內(nèi)容,你可以刪除整個(gè)函數(shù)—從(!CUSTOM_TAGS) 到下一個(gè)} --但是如果你又改變了注意,你需要得到kses.php的新復(fù)本。
Changing the Admin Name
更改管理員名稱(chēng)
To change the name of the WordPress admin account, log in to WordPress as admin, then choose Users. Under Your Profile you can enter your first name, last name, and nickname.
要更改WordPress管理員帳戶(hù),請(qǐng)作為管理員登錄到WordPress,然后選擇用戶(hù)。在你的基本資料下面,你可以輸入你的姓名或者昵稱(chēng)。
Finding the Absolute Path of a Page
找到網(wǎng)頁(yè)的絕對(duì)路徑
To find the absolute path of a page, copy this text into a new text file:
要找到網(wǎng)頁(yè)的絕對(duì)路徑,將這個(gè)文本復(fù)制到新的文本文件中:
<?php $p = getcwd(); echo $p; ?>
<?php
$p = getcwd(); echo $p; ?>
Save the file as path.php. Then open it in a Web browser (for example, http://www.example.com/images/path.php).
將文本保存為path.php。然后在網(wǎng)絡(luò)瀏覽器中打開(kāi)文件(如,http://www.example.com/images/path.php)。
Files Affecting Weblog Display
影響博客顯示的文件
These are the main files affecting the display of your site. They can be edited from the WordPress control panel under Presentation → Theme Editor.
有一些主要的文件影響你的站點(diǎn)的顯示情況??梢栽赪ordPress控制面板下面的呈現(xiàn) → 主題編輯器中更改這些文件。
- index.php
- In combination with other PHP files (see Template_Hierarchy), determines the overall HTML structure of each page.
- index.php
- 與其它PHP文件相結(jié)合(請(qǐng)看看 Template_Hierarchy),決定每個(gè)頁(yè)面的HTML結(jié)構(gòu)的整體結(jié)構(gòu)。
- style.css
- Controls fonts, colors, margins, backgrounds, and so on.
- style.css
- 控制字體,顏色,頁(yè)邊空白,背景,等等。
- wp-comments.php
- Controls the layout of user-submitted comments and trackbacks, and the comments submission form.
- wp-comments.php
- 控制用戶(hù)遞交的評(píng)論和trackbacks,和評(píng)論遞交形式的布局。
- wp-comments-popup.php
- Only needed if you show comments in a popup window (this option is off by default).
- wp-comments-popup.php
- 如果你在彈出的窗口中顯示評(píng)論,才需要這個(gè)文件(默認(rèn)情況下,這個(gè)選項(xiàng)是關(guān)閉的)。
Showing Comments in Popup Windows
在彈出的窗口中顯示評(píng)論
To open a popup window when someone clicks a comments link:
但有人點(diǎn)擊評(píng)論鏈接的時(shí)候,打開(kāi)彈出的窗口:
In WordPress 1.2
在 WordPress 1.2 中
Open index.php and find this line:‘
打開(kāi)index.php并且找到這一行:
<?php //comments_popup_script(); // off by default ?>
Change it to:
<?php comments_popup_script(); // off by default ?>
<?php //comments_popup_script(); // 默認(rèn)情況下關(guān)閉 ?> 更改為:
<?php comments_popup_script(); // 默認(rèn)情況下關(guān)閉?>
In WordPress 1.5 Using the "Classic" Theme
在WordPress 1.5 中,使用"經(jīng)典" 主題
Open header.php and find this line:
打開(kāi)header.php并且找打這一行:
<?php //comments_popup_script(); // off by default ?>
Change it to:
<?php comments_popup_script(); // off by default ?>
<?php //comments_popup_script(); //默認(rèn)情況下,關(guān)閉 ?> 更改為:
<?php comments_popup_script(); //默認(rèn)情況下,關(guān)閉?>
In WordPress 1.5 Using the Default Theme
在 WordPress 1.5中,使用默認(rèn)主題
Open header.php and find this line:
打開(kāi)header.php并且找到這一行:
<?php wp_get_archives('type=monthly&format=link'); ?>
Directly underneath it, add this line:
<?php comments_popup_script(); // off by default ?>
<?php wp_get_archives('type=monthly&format=link'); ?> 在這一行的下面,直接地添加 這一行:
<?php comments_popup_script(); // 默認(rèn)情況下,關(guān)閉 ?>
Hiding your Site
隱藏你的站點(diǎn)
Whether you're testing a new version of WP, setting up a new blog or have some other reason to limit access, the following information may help you keep unwanted visitors out.
不管你是否測(cè)試新版本的WP,設(shè)置新的博客,或者因?yàn)橐恍┢渌?,需要限制?quán)限,下面的信息,會(huì)幫助你阻止不必要的訪客訪問(wèn)。
Blocking IP addresses using Apache
使用Apache阻止IP地址
You can use the .htaccess file (which also contains your permalink code) to check for certain IP addresses and prevent them from viewing your site. This will only stop the IP address, not the person, so if they can switch to an IP address not in your blacklist, they will still be able to get to your site.
你可以使用.htaccess文件(這個(gè)文件也包含你的permalink代碼)能夠阻止一些IP地址,阻止訪客訪問(wèn)你的站點(diǎn)。這只能夠阻止IP地址,但是并不能阻止人,因此如果訪客更改為一個(gè)不屬于你的黑名單中的IP地址,這樣訪客仍然能夠訪問(wèn)你的站點(diǎn)。
An .htaccess file can also be used to prevent people from "hot-linking" to your images (bandwidth theft), or to set up a password-protected site.
也可以使用.htaccess文件阻止人們"熱點(diǎn)鏈接" 到你的圖像(帶寬偷竊),或者幫你設(shè)置密碼保護(hù)的站點(diǎn)。
Basic Authentication
基本的鑒定
To block people from accessing your site unless they enter the correct password:
除非人們輸入正確的密碼,否則阻止人們?cè)L問(wèn)你的站點(diǎn)。
Using Apache
使用 Apache
- .htaccess Definition
- Huge list of Apache .htaccess examples
- Tutorial on access control using .htpasswd
- Clockwatchers.com .htaccess And .htpasswd tools
- .htaccess 定義
- Apache .htaccess 例子列表
- 使用 .htpasswd控制權(quán)限指南
- Clockwatchers.com .htaccess 和 .htpasswd 工具
= Using IIS
= 使用 IIS
Deselect "Allow Anonymous Access" and select "Basic Authentication". You'll also need to have a username with a password.
取消選定"允許匿名訪問(wèn)"并且選擇"基本的鑒定"。你需要有個(gè)帶有密碼的用戶(hù)名。
- How To Configure IIS 5.0 Web Site Authentication
- How To Use NTFS Security to Protect a Web Page
- HOW TO: Configure Internet Information Services Web Authentication
Warning
提醒
With basic authentication, the password is encoded weakly (using base-64), and can be easily intercepted and decoded.
擁有基本的鑒定,密碼編碼不強(qiáng)(使用base-64),會(huì)輕易地破解。
Search Engines: Spiders and Bots
搜索引擎: Spiders 和 Bots
Search engines will index your site and keep their own temporary copy of it for use in returning search results. If you do not want this to happen, use a file called robots.txt.
搜索引擎會(huì)索引你的站點(diǎn)并且在搜索結(jié)果中保存自己臨時(shí)的備份。如果你不希望發(fā)生這種情況,請(qǐng)使用稱(chēng)為robots.txt的文件。
- Sample robots.txt optimized for SEO
- Creating the ultimate robots.txt
- SEO Optimized robots.txt and robots meta for WordPress
- Google information about robots.txt
- Sample robots.txt optimized for SEO
- 創(chuàng)建最終的 robots.txt
- SEO Optimized robots.txt and robots meta for WordPress
- Google 關(guān)于 robots.txt的信息
Letting People Upload Images
使得其他人上傳圖像
To permit image uploads to your site:
允許圖像上傳到你的站點(diǎn)上:
- From the admin panel, go to Options → Miscellaneous.
- 從管理面板中,進(jìn)入選項(xiàng) → Miscellaneous。
- Select Allow File Uploads. For help finding the absolute path, see Absolute Path. For help changing permissions, see WordPress:Changing_File_Permissions.
- 選擇允許文件上傳。為了幫助找到絕對(duì)路徑,請(qǐng)看看 絕對(duì)路徑。關(guān)于更改權(quán)限的幫助,請(qǐng)看看 Changing_File_Permissions。
- In the main menu, you should now see a new Upload item between Options and Log Out.
- 在主要的菜單上,你應(yīng)該在選項(xiàng)和退出之間看到新的上傳內(nèi)容。