Archive for the 'WordPress' Category

Recent visitors

Published by under Notes,WordPress






 

No responses yet

WP-PageNavi 2.30

Published by under WordPress

Installation Instruction

  1. Open wp-content/plugins Folder
  2. Put:

    Folder: wp-pagenavi

  3. Activate WP-PageNavi Plugin
  4. Refer To Usage For Further Instructions

Usage Instructions

General Usage
  1. Open wp-content/themes/<YOUR THEME NAME>/footer.php
  2. Add Anywhere:

    <?php if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); } ?>

  3. Go to ‘WP-Admin -> Settings -> PageNavi’ to configure WP-PageNavi.
  4. If you need to configure the CSS style of WP-PageNavi, open and edit:

    /wp-content/plugins/wp-pagenavi/pagenavi-css.css

Note
  • WP-PageNavi will load ‘pagenavi-css.css‘ from your theme’s directory if it exists.
    • If it doesn’t exists, it will just load the default ‘pagenavi-css.css’ that comes with WP-PageNavi.
    • This will allow you to upgrade WP-PageNavi without worrying about overwriting your page navigation styles that you have created.
Archives (archive.php)

の中の

<p align=”center”><?php posts_nav_link(‘ – ‘,’&#171; Prev’,'Next &#187;’) ?></p>

<div align=”center”><?php if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); } ?></div>

に変更。

 

No responses yet

WordPress のデータベースのバックアップ、リストア

Published by under WordPress

I. WP-DBManagerで行う方法

1. DB Optionsで、

Path To mysqldump:/usr/bin/mysqldump

Path To mysql:/usr/bin/mysql

等に設定。

Backup DBで、設定が正しいか、確認してから、バックアップ.

Please create ‘backup-db’ folder in ‘wp-content’ folder and CHMOD it to ’777′ or change the location of the backup folder under DB Option.
Backup folder is NOT writable. Please CHMOD it to ’777′.

II.MYsqlから、エクスポートする。

データベースのテーブルは、全てUTF-8 binに設定。

 

3 responses so far

Google XML Sitemaps

Published by under N. For Admin,WordPress

  1. Upload the full directory into your wp-content/plugins directory
  2. Use your favorite FTP program to create two files in your WordPress directory (that’s where the wp-config.php is) named sitemap.xml and sitemap.xml.gz and make them writable via CHMOD 666. More information about CHMOD and how to make files writable is available at the WordPress Codex and on stadtaus.com. Making your whole blog directory writable is NOT recommended anymore due to security reasons.
  3. Activate the plugin at the plugin administration page
  4. Open the plugin configuration page, which is located under Options -> XML-Sitemap and build the sitemap the first time. If you get a permission error, check the file permissions of the newly created files.
  5. The plugin will automatically update your sitemap of you publish a post, so theres nothing more to do :)
そして、
https://www.google.com/webmasters/tools/sitemaps?msg=1&siteUrl=http%3A%2F%2Fwww.shakespeare-w.com%2F&sitemapUrl=http%3A%2F%2Fwww.shakespeare-w.com%2Fjapanese_lessons%2Fsitemap.xml&hl=en
に追加
 

One response so far

WP plugin: Post Updated

Published by under WordPress

WP plugin: Post Updated

わたしは、 archiveに

<p>Published under <?php the_category(‘,’) ?>. <?php if(function_exists(‘the_views’)) { the_views(); } ?> <?php the_tags(‘Tags: ‘, ‘, ‘, ”); ?> | <?php post_updated(‘jS M Y’, 24, ‘Last modified: ‘, ”); ?> | <?php edit_post_link(Edit); ?> </p>

とした。

インストール等は、Post Updatedを参照。

 

No responses yet

WP-DBManager

Published by under WordPress

WP-DBManager

http://wordpress.org/extend/plugins/wp-dbmanager/#post-340

データーベースをバックアップするPlugin

 

No responses yet

記事の順番を古いものから並べる方法

Published by under WordPress

archive.phpの loopが始まる前に、

<?php query_posts($query_string . "&order=ASC"); ?>

を追加して、成功♪

 

No responses yet

WordPress インストール方法 メモ

Published by under WordPress

1. Download and unzip the WordPress package, if you haven’t already.
2. Create a database for WordPress on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.
3. Rename the wp-config-sample.php file to wp-config.php.
4. Open wp-config.php in your favorite text editor and fill in your database details.
5. Place the WordPress files in the desired location on your web server:

* If you want to integrate WordPress into the root of your domain (e.g. http://example.com/), move or upload all contents of the unzipped WordPress directory (but excluding the directory itself) into the root directory of your web server.* If you want to have your WordPress installation in its own subdirectory on your web site (e.g. http://example.com/blog/), rename the directory wordpress to the name you’d like the subdirectory to have and move or upload it to your web server. For example if you want the WordPress installation in a subdirectory called “blog”, you should rename the directory called “wordpress” to “blog” and upload it to the root directory of your web server.

Hint: If your FTP transfer is too slow read how to avoid FTPing at : Step 1: Download and Extract.

6. Run the WordPress installation script by accessing wp-admin/install.php in your favorite web browser.
* If you installed WordPress in the root directory, you should visit:    http://example.com/wp-admin/install.php
* If you installed WordPress in its own subdirectory called blog, for example, you should visit: http://example.com/blog/wp-admin/install.php

 

No responses yet

Post Levels (Plugin)

Published by under WordPress

Post Levelsの導入メモ

  1. Copy the post-levels.php file into your wp-content/plugins directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to the ‘Users’ section of your admin area, then go to ‘User Levels’ and assign levels to your users.
  4. Make posts private when writing or editing by using the ‘Post Level’ drop down, and setting the ‘Post Status’ to ‘Private’

最初に、ユーザーごとにユーザーレベル設定して、
同時に、記事ごとにレベルを設定出来る。

それによって、公開した記事に対して、
閲覧ユーザーをコントロールできる。

例えば、アクセスレベルを10にすると、管理者のみがログイン時に閲覧可能な記事として管理できる。

WordPressのUser Levelの説明によると、

User Level Capabilities for WordPress 

Note: The following are the user levels for WordPress versions prior to 1.5. They may vary with the version.

User Level 0

  • menu = * My Profile * View site * Logout
  • Can login
  • Can see existing posts.
  • Own posts have (non-functioning) edit/delete buttons
  • Can edit own profile.

User Level 1

  • menu = * Post / Edit * My Profile * View site * Logout
  • Can post.
  • Can edit/delete own posts.
  • Can edit/delete comments on own posts

User Level 2

  • menu = * Post / Edit * My Profile * View site * Logout
  • can promote/demote/delete lesser team member in the range 0 – (your level – 1)

User Level 3

  • menu = * Post / Edit * Team * Options * Categories * Template * My Profile * View site * Logout
  • cannot edit the template
  • can add/edit/delete categories
  • cannot edit options
  • cannot see team members login name!

User Level 4

  • menu = * Post / Edit * Team * Options * Categories * Template * My Profile * View site * Logout
  • can see team members login name!
  • can edit options
  • can edit template

User Level 5

  • menu = * Post / Edit * Team * Options * Categories * Template * Manage Links * My Profile * View site * Logout
  • Can edit timestamps
  • can edit links (default value)

Subscriber Role- User Level 0
Contributor Role – User Level 1
Author Role – User Levels 2, 3, and 4
Editor Role – User Levels 5, 6, and 7
Administrator Role – User Level 8, 9, and 10

そこで、私は、私のユーザーレベルのガイドラインを以下のようにしようと決めました。

  • subscriber (購読者 コメント可能のビジター) – 0
  • Premium Subscriber(生徒)を1
  • contributor – 1
  • author (投稿者) -4
  • editor (編集者) – 7
  • administrator (私) – 10

設定法
Plugin> Post Levels Configuration

Post Levels is a plugin that allows you to restrict access to your posts based upon the user’s access level.

Private Post Title Prefix: What text gets prepended to the post title
Private Post Title Postfix: What text gets appended to the post title
Default Post Level: Posts marked Private have this level by default
Default User Level: Users have this level by default
 

No responses yet

Page 1 of 11


Video & Audio Comments are proudly powered by Riffly