This plugin enables the wp system to convert your dynamic homepage to static index.html, more importantly, keep the content up to date. It can speed up the loading for your homepage.
Plugin WP-Cron is needed for this plugin, I've packed WP-Cron v 1.4 in the zip file.
Please upzip all the files to plugins/static-index, so that it look like:
------plugins/
------------static-index/
----------------static.php
----------------wp-cron-static-index.php
----------------wp-cron.php
Active two plugins :WP-cron and WP-Cron Static Homepage.
Create a file named index.html in your blog root folder, set
666 permissions for it.
Well, the system will update index.html automatically (per 15 mins), you may hack wp-cron.php at line 49 to change the time for scheduled exection actions.
More Tips:
You may use the following php to refresh homepage when comments come in.
<?php
include (get_settings('siteurl') . "/wp-content/plugins/static-index/static.php");
?>
The following script is to demo how to set cookies in the html files.
<script type="text/javascript">
function GetCookie(sName, id)
{
// cookies are separated by semicolons
var something = document.getElementById(id);
if(!something) return 0;
for (var i=0; i < aCookie.length; i++)
{
// a name alue pair (a crumb) is separated by an equal sign
var aCrumb = aCookie[i].split("=");
if (sName == aCrumb[0])
{
if(sName=="comment_author_10add94cfc29a64b08306c8a8f9edb30")
something.value = decodeURI(aCrumb[1]);
else
something.value=unescape(aCrumb[1]);
return 1;
}
}
// a cookie with the requested name does not exist
return 0;
}
//please fill in with your own cookie id
GetCookie("comment_author_8e11b42cc2f3a74aac664cc9afa5baf7", "authorname");
GetCookie("comment_author_email_8e11b42cc2f3a74aac664cc9afa5baf7", "email");
GetCookie("comment_author_url_8e11b42cc2f3a74aac664cc9afa5baf7", "url");</script>
<script type="text/javascript">
function GetCookie(sName, id)
{
// cookies are separated by semicolons
var something = document.getElementById(id);
if(!something) return 0;
for (var i=0; i < aCookie.length; i++)
{
// a name alue pair (a crumb) is separated by an equal sign
var aCrumb = aCookie[i].split("=");
if (sName == aCrumb[0])
{
if(sName=="comment_author_10add94cfc29a64b08306c8a8f9edb30")
something.value = decodeURI(aCrumb[1]);
else
something.value=unescape(aCrumb[1]);
return 1;
}
}
// a cookie with the requested name does not exist
return 0;
}
以下为我的cookie设置,用户请自行寻找自己的cookie id
GetCookie("comment_author_8e11b42cc2f3a74aac664cc9afa5baf7", "authorname");
GetCookie("comment_author_email_8e11b42cc2f3a74aac664cc9afa5baf7", "email");
GetCookie("comment_author_url_8e11b42cc2f3a74aac664cc9afa5baf7", "url");</script>
Akismet checks your comments against the Akismet web service to see if they
look like spam or not. You need a WordPress.com
API key to use it. You can review the spam it catches under “Comments.” To
show off your Akismet stats just put <?php akismet_counter(); ?> in your
template. By Matt
Mullenweg.
Auto-hyperlink text URLs in post content and comment text to the URL they
reference. Does NOT try to hyperlink already hyperlinked URLs. Improves WordPress’s
default make_clickable function, along with adding some configuration options.
By Scott Reilly.
This plugin adds an “IImage Browser” button to the Quicktags area which opens
an image browser to select from all previously uploaded images and add the appropriate
code to the post. By Martin
Chlupáč.
Allows you to set a “links_to” meta key with a URI value that will be be used
when listing WP pages. Good for setting up navigational links to non-WP sections
of your By Mark Jaquith.
Convert all SBC quotation marks and suspension points into DBC case. 解决 WordPress
的全角引号问题,将全角的单引、和双引号和省略号替换成半角的格式,使后台输入的引号、省略号格式与前台读者浏览的引号格式保持一致。 By Sparanoid.
Lets you display a row of clickable smilies next to your comment textarea.
Thanks to Priyadi Iman Nurcahyo for the inspiration. By Skippy,
skippy zuavra net.
Very fast cache module. It’s composed of several modules, this plugin can
configure and manage the whole system. Once enabled, go to “Options” and select
“WP-Cache”. By Ricardo
Galli Granada.
Manages your Wordpress database. Allows you to optimize database, backup database,
restore database, delete backup database , drop/empty tables and run selected
queries. By GaMerZ.
Provides a quick a simple way to put MP3 soundtracks in your wordpress site.
Music can be either local or remote (http). Uses free flash XSPF
music player. By Jose
Rodriguez (a.k.a. Boriel).
This plugin enables the wp system to convert your dynamic homepage to static index.html, more importantly, keep the content up to date. It can speed up the loading for your homepage.
Plugin WP-Cron is needed for this plugin, I've packed WP-Cron v 1.4 in the zip file.
Please upzip all the files to plugins/static-index, so that it look like:
------plugins/
------------static-index/
----------------static.php
----------------wp-cron-static-index.php
----------------wp-cron.php
Active two plugins :WP-cron and WP-Cron Static Homepage.
Create a file named index.html in your blog root folder, set
666 permissions for it.
Well, the system will update index.html automatically (per 15 mins), you may hack wp-cron.php at line 49 to change the time for scheduled exection actions.
More Tips:
You may use the following php to refresh homepage when comments come in.
<?php
include (get_settings('siteurl') . "/wp-content/plugins/static-index/static.php");
?>
The following script is to demo how to set cookies in the html files.
<script type="text/javascript">
function GetCookie(sName, id)
{
// cookies are separated by semicolons
var something = document.getElementById(id);
if(!something) return 0;
for (var i=0; i < aCookie.length; i++)
{
// a name alue pair (a crumb) is separated by an equal sign
var aCrumb = aCookie[i].split("=");
if (sName == aCrumb[0])
{
if(sName=="comment_author_10add94cfc29a64b08306c8a8f9edb30")
something.value = decodeURI(aCrumb[1]);
else
something.value=unescape(aCrumb[1]);
return 1;
}
}
// a cookie with the requested name does not exist
return 0;
}
//please fill in with your own cookie id
GetCookie("comment_author_8e11b42cc2f3a74aac664cc9afa5baf7", "authorname");
GetCookie("comment_author_email_8e11b42cc2f3a74aac664cc9afa5baf7", "email");
GetCookie("comment_author_url_8e11b42cc2f3a74aac664cc9afa5baf7", "url");</script>
<script type="text/javascript">
function GetCookie(sName, id)
{
// cookies are separated by semicolons
var something = document.getElementById(id);
if(!something) return 0;
for (var i=0; i < aCookie.length; i++)
{
// a name alue pair (a crumb) is separated by an equal sign
var aCrumb = aCookie[i].split("=");
if (sName == aCrumb[0])
{
if(sName=="comment_author_10add94cfc29a64b08306c8a8f9edb30")
something.value = decodeURI(aCrumb[1]);
else
something.value=unescape(aCrumb[1]);
return 1;
}
}
// a cookie with the requested name does not exist
return 0;
}
以下为我的cookie设置,用户请自行寻找自己的cookie id
GetCookie("comment_author_8e11b42cc2f3a74aac664cc9afa5baf7", "authorname");
GetCookie("comment_author_email_8e11b42cc2f3a74aac664cc9afa5baf7", "email");
GetCookie("comment_author_url_8e11b42cc2f3a74aac664cc9afa5baf7", "url");</script>