Archive

Archive for the ‘wordpress’ Category

remove the dashboard in wordpress

August 10th, 2008 No comments

There are many rss in the dashboard, and sometimes it causes the wp-admin to load slowly, following is a way to remove the dashboard:

find and modify the file of index-extra.php in the folder \wp-admin:

original:

<?php require_once(’admin.php’);
require( ‘includes/dashboard.php’ );
require_once (ABSPATH . WPINC . ‘/rss.php’);

@header(’Content-Type: ‘ . get_option(’html_type’) . ‘; charset=’ . get_option(’blog_charset’));

switch ( $_GET[’jax’] ) {

case ‘incominglinks’ :
wp_dashboard_incoming_links_output();
break;

case ‘devnews’ :
wp_dashboard_rss_output( ‘dashboard_primary’ );
break;

case ‘planetnews’ :
wp_dashboard_secondary_output();
break;

case ‘plugins’ :
wp_dashboard_plugins_output();
break;

}

?>

modified:

<?php require_once(’admin.php’);
require( ‘includes/dashboard.php’ );
require_once (ABSPATH . WPINC . ‘/rss.php’);

@header(’Content-Type: ‘ . get_option(’html_type’) . ‘; charset=’ . get_option(’blog_charset’));
/*
switch ( $_GET[’jax’] ) {

case ‘incominglinks’ :
wp_dashboard_incoming_links_output();
break;

case ‘devnews’ :
wp_dashboard_rss_output( ‘dashboard_primary’ );
break;

case ‘planetnews’ :
wp_dashboard_secondary_output();
break;

case ‘plugins’ :
wp_dashboard_plugins_output();
break;

}
*/
?>

Categories: wordpress Tags: ,

Try to manipulate the wordpress2.5RC2

August 10th, 2008 No comments

Try to install and manipulate the wordpress2.5RC2,the new version is much slower than the version of 2.3.3, the Administration Screen is clean, no option for cache and gzip settings.

Try to export and import the databases by phpmyadmin.

Categories: wordpress Tags:

the use of wordpress pinyin slug

August 9th, 2008 No comments

Afer the pinyin slug is activated,the permalinks should be changed, go to wordpress-setting-permalinks,and set postname to:   /%postname%/

Categories: wordpress Tags:

display post titles solely in the front page at wordpress

August 9th, 2008 No comments

modify the index.php in the theme folder to:

<div class=”entry”>
<?php
if (is_single()) {
the_content();
}
else {//no content, nothing.
}
?>

Categories: wordpress Tags:

recover the admin user name for wordpress

August 9th, 2008 No comments

Sometimes we could forget the admin user name for wordpress,we can find the name of admin by looking the table of wp_users in phpmyadmin.

Categories: wordpress Tags:

The header and footer of wordpress

August 9th, 2008 No comments

we could modify the header and footer in wordpress to add navigation and advertisement, modification could be down by the theme edit, the detailed example could be searched on internet.

Categories: wordpress Tags: