<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>フォーラム: フォーラム: その他 - 最近の投稿</title>
<link>http://ja.forums.wordpress.org/</link>
<description>フォーラム: フォーラム: その他 - 最近の投稿</description>
<language>en</language>
<pubDate>Wed, 25 Nov 2009 18:39:38 +0000</pubDate>

<item>
<title>shokun0803 :  "Javascriptでマウスドラッグ時にページ全体を横にスライド（iPhone的な感じの"</title>
<link>http://ja.forums.wordpress.org/topic/2769#post-11507</link>
<pubDate>Mon, 09 Nov 2009 00:53:26 +0000</pubDate>
<dc:creator>shokun0803</dc:creator>
<guid isPermaLink="false">11507@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;wordpressのフォーラムなのでJavascriptの質問は「運がよければ」返答があるかもしれませんが、相当気長に待つ必要があるかもです;)&#60;br /&#62;
そういう私はJavascriptに詳しくありません（涙）
&#60;/p&#62;</description>
</item>
<item>
<title>MONKMASTER :  "Javascriptでマウスドラッグ時にページ全体を横にスライド（iPhone的な感じの"</title>
<link>http://ja.forums.wordpress.org/topic/2769#post-11428</link>
<pubDate>Thu, 05 Nov 2009 08:54:50 +0000</pubDate>
<dc:creator>MONKMASTER</dc:creator>
<guid isPermaLink="false">11428@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;&#60;strong&#62;以下のJavascriptを使用するとマウスドラッグ時にページ全体を横にスライドさせることができるのですが、&#60;/p&#62;
&#60;p&#62;このスライドの動きにイージングをつけて、もう少しスムーズな動きにしたいのですが、&#60;br /&#62;
どのような記述をしたらよいのかお助け下さい。&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;（iPhone的な感じのイージングを実装したい）&#60;/p&#62;
&#60;p&#62;サンプル：&#60;br /&#62;
&#60;a href=&#34;http://www.anishaacharya.com/w/&#34;&#62;&#60;a href=&#34;http://www.anishaacharya.com/w/&#34; rel=&#34;nofollow&#34;&#62;http://www.anishaacharya.com/w/&#60;/a&#62;&#60;br /&#62;
&#60;/a&#62;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;HEAD&#38;gt;
&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
&#38;lt;!-- Begin
document.onmousedown = function(){
  var e=arguments[0]&#124;&#124;event;
  var x=zxcWWHS()[2]+e.clientX;
  var y=zxcWWHS()[3]+e.clientY;
  document.onmousemove=function(){
  var e=arguments[0]&#124;&#124;event;
    window.scroll(x-e.clientX, y-e.clientY);
    return false;
  }
  document.onmouseup=function(){
    document.onmousemove=null;
  }
  return false;
}

function zxcWWHS(){
 if (window.innerHeight) return [window.innerWidth-10,window.innerHeight-10,window.pageXOffset,window.pageYOffset];
 else if (document.documentElement.clientHeight) return [document.documentElement.clientWidth-10,document.documentElement.clientHeight-10,document.documentElement.scrollLeft,document.documentElement.scrollTop];
 return [document.body.clientWidth,document.body.clientHeight,document.body.scrollLeft,document.body.scrollTop];
}

window.onload = function() {
	HtinyScrolling.init(); scrollTips.init();
}

function gotoit(target){
	HtinyScrolling.scrollToIt(target);
}

var HtinyScrolling = {
	speed : 20,      //set here the scroll speed: when this value increase, the speed decrease.
	maxStep: 100,	 //set here the &#38;quot;uniform motion&#38;quot; step for long distances
	brakeK: 5,		 //set here the coefficient of slowing down
	hash:null,
	currentBlock:null,
	requestedX:0,
	init: function() {
		var lnks = document.getElementsByTagName(&#38;#39;a&#38;#39;);
		for(var i = 0, lnk; lnk = lnks[i]; i++) {
			if ((lnk.href &#38;amp;&#38;amp; lnk.href.indexOf(&#38;#39;#&#38;#39;) != -1) &#38;amp;&#38;amp;  ( (lnk.pathname == location.pathname) &#124;&#124;
			(&#38;#39;/&#38;#39;+lnk.pathname == location.pathname) ) &#38;amp;&#38;amp; (lnk.search == location.search)) {
			addEvent(lnk,&#38;#39;click&#38;#39;,HtinyScrolling.initScroll,false);
			lnk.onclick=function(){return false;} // Safari
			}
		}
	},
	getTarget: function(target) {
		while(target.tagName.toLowerCase() != &#38;#39;a&#38;#39;)
			target = target.parentNode;
		return target;
	},
	getElementXpos: function(el){
		var x = 0;
		while(el.offsetParent){
			x += el.offsetLeft;
			el = el.offsetParent;
		}	return x;
	},
	getScrollLeft: function(){
		if(document.all) return (document.documentElement.scrollLeft) ? document.documentElement.scrollLeft : document.body.scrollLeft;
		else return window.pageXOffset;
	},
	getWindowWidth: function(){
		if (window.innerWidth)	return window.innerWidth;
		if(document.documentElement &#38;amp;&#38;amp; document.documentElement.clientWidth) return document.documentElement.clientWidth;
	},
	getDocumentWidth: function(){
		if (document.width) return document.width;
		if(document.body.offsetWidth) return document.body.offsetWidth;
	},
	initScroll: function(e){
		var targ;
		if (!e) var e = window.event;
		if (e.target) targ = e.target;
		else if (e.srcElement) targ = e.srcElement;
		targ = HtinyScrolling.getTarget(targ);  //a fix by Skid X
		HtinyScrolling.hash = targ.href.substr(targ.href.indexOf(&#38;#39;#&#38;#39;)+1,targ.href.length);
		HtinyScrolling.currentBlock = document.getElementById(HtinyScrolling.hash);
		if(!HtinyScrolling.currentBlock) return;
		HtinyScrolling.requestedX = HtinyScrolling.getElementXpos(HtinyScrolling.currentBlock);
		HtinyScrolling.scroll(targ);
		return false;
	},
	scrollToIt: function(targ){ //thanks to Michael Ionita-Ganea
		target = document.getElementById(targ);
		HtinyScrolling.currentBlock = document.getElementById(targ);
		if(!HtinyScrolling.currentBlock) return;
		HtinyScrolling.requestedX = HtinyScrolling.getElementXpos(HtinyScrolling.currentBlock);
		HtinyScrolling.scroll(target);
		return false;

	},
	scroll: function(targ) {
		var left  = HtinyScrolling.getScrollLeft();
		if(HtinyScrolling.requestedX &#38;gt; left) { //a fix by Michael Ionita-Ganea
			var endDistance = Math.round((HtinyScrolling.getDocumentWidth() - (left + HtinyScrolling.getWindowWidth())) / HtinyScrolling.brakeK);
			endDistance = Math.min(Math.round((HtinyScrolling.requestedX-left)/ HtinyScrolling.brakeK), endDistance);
			var offset = Math.min(Math.abs(Math.round((HtinyScrolling.requestedX-left)/ HtinyScrolling.brakeK)), HtinyScrolling.maxStep);
		}else {
				var offset = - Math.min(Math.abs(Math.round((HtinyScrolling.requestedX-left)/ HtinyScrolling.brakeK)), HtinyScrolling.maxStep);
		}
		window.scrollTo(left + offset, 0);
		if(Math.abs(left-HtinyScrolling.requestedX) &#38;lt;= 1 &#124;&#124; HtinyScrolling.getScrollLeft() == left) {
			HtinyScrolling.hash = null;
		} else 	setTimeout(HtinyScrolling.scroll,HtinyScrolling.speed);
	}
}

var scrollTips = {
	dx : null,
	init : function() {
		if (window.addEventListener) {
		window.addEventListener(&#38;quot;DOMMouseScroll&#38;quot;, this.mouseScroll, false);
		} else document.attachEvent(&#38;quot;onmousewheel&#38;quot;, this.mouseScroll);
		var left = document.getElementById(&#38;#39;left&#38;#39;);
		addEvent(left,&#38;#39;mouseover&#38;#39;, function() {this.dx=setInterval(&#38;#39;scrollTips.arrowScroll(0)&#38;#39;,100);return false;});
		addEvent(left,&#38;#39;mouseout&#38;#39;, function() { clearInterval(this.dx); return false;});
		var right = document.getElementById(&#38;#39;right&#38;#39;);
		addEvent(right,&#38;#39;mouseover&#38;#39;, function() {this.dx=setInterval(&#38;#39;scrollTips.arrowScroll(1)&#38;#39;,100);return false;});
		addEvent(right,&#38;#39;mouseout&#38;#39;, function() { clearInterval(this.dx); return false;});
	},
	mouseScroll : function(e) {
		if (!e) var e = window.event;
		  var scroll = e.detail ? e.detail * 20 : e.wheelDelta / -20;
		if (scroll&#38;gt;=0 ){
		window.scrollBy(100,0);
		} else  window.scrollBy(-100,0) ;
	},
	arrowScroll: function(val) {
		if(val==1) {
			window.scrollBy(100,0);
		} else {
			window.scrollBy(-100,0)
		}
	}
}

function addEvent( obj, type, fn ) {
	if (obj.addEventListener)
		obj.addEventListener( type, fn, false );
	else if (obj.attachEvent) {
		obj[&#38;quot;e&#38;quot;+type+fn] = fn;
		obj[type+fn] = function() { obj[&#38;quot;e&#38;quot;+type+fn]( window.event ); }
		obj.attachEvent( &#38;quot;on&#38;quot;+type, obj[type+fn] );
	}
}

function removeEvent( obj, type, fn ) {
	if (obj.removeEventListener)
		obj.removeEventListener( type, fn, false );
	else if (obj.detachEvent) {
		obj.detachEvent( &#38;quot;on&#38;quot;+type, obj[type+fn] );
		obj[type+fn] = null;
		obj[&#38;quot;e&#38;quot;+type+fn] = null;
	}
}

// End --&#38;gt;
&#38;lt;/script&#38;gt;

&#38;lt;/head&#38;gt;
&#38;lt;body&#38;gt;
&#38;lt;div id=&#38;quot;header&#38;quot;&#38;gt;
&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>Nao :  "Wordpress2.9は・・"</title>
<link>http://ja.forums.wordpress.org/topic/2727#post-11293</link>
<pubDate>Sat, 31 Oct 2009 13:21:26 +0000</pubDate>
<dc:creator>Nao</dc:creator>
<guid isPermaLink="false">11293@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;こちらもどうぞ。&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://ja.forums.wordpress.org/topic/2009?replies=5&#34; rel=&#34;nofollow&#34;&#62;http://ja.forums.wordpress.org/topic/2009?replies=5&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>takuya :  "Wordpress2.9は・・"</title>
<link>http://ja.forums.wordpress.org/topic/2727#post-11291</link>
<pubDate>Sat, 31 Oct 2009 11:15:55 +0000</pubDate>
<dc:creator>takuya</dc:creator>
<guid isPermaLink="false">11291@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;&#60;a href=&#34;http://ocaoimh.ie/wordpress-mu-merge-gpl-and-support/&#34; rel=&#34;nofollow&#34;&#62;http://ocaoimh.ie/wordpress-mu-merge-gpl-and-support/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>takasa :  "Wordpress2.9は・・"</title>
<link>http://ja.forums.wordpress.org/topic/2727#post-11290</link>
<pubDate>Sat, 31 Oct 2009 09:23:18 +0000</pubDate>
<dc:creator>takasa</dc:creator>
<guid isPermaLink="false">11290@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;WordpressMUがらみなのですが、WORDPRESS2.9では、MUが統合されるような雰囲気やその布石（仕様）っぽいものって組み込まれているんでしょうか？&#60;br /&#62;
それとも、3.0くらいで、一気にMUの機能が統合・・ていう感じなんでしょうか？&#60;/p&#62;
&#60;p&#62;私が知らないだけかもしれませんが、統合が発表されてからも、MU自体のバージョンアップは行われているようで、MUってどうなるんだろう？っていう感じなんです。&#60;/p&#62;
&#60;p&#62;MUからWPへのバージョンアップって、今の時点では本当に可能なんだろうか？・・という感もあるんですが、情報をおもちの方がいらっしゃれば、おしえていただけないかと思っています。&#60;/p&#62;
&#60;p&#62;よろしくお願いします。
&#60;/p&#62;</description>
</item>
<item>
<title>shokun0803 :  "フォーラム　アカウント削除のお願い"</title>
<link>http://ja.forums.wordpress.org/topic/2345#post-11110</link>
<pubDate>Tue, 27 Oct 2009 00:32:52 +0000</pubDate>
<dc:creator>shokun0803</dc:creator>
<guid isPermaLink="false">11110@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;このスレッドは解決済みになっているため回答は望めませんよ。&#60;br /&#62;
別スレッドを新規に作成して質問し直してみてください。&#60;/p&#62;
&#60;p&#62;ちなみに、ご質問の内容はwordpressに関するものではなくサーバーに関するものです。&#60;br /&#62;
「FTPサーバを消去してしまった」というのはFTPソフトで設定していたFTPアカウントの情報をソフトごと削除してしまったということだと思いますが、FTPの設定情報はサーバーの管理者でないとわかりません。&#60;br /&#62;
ご使用しているサーバーの管理者に問い合わせれば解決だと思いますよ;)
&#60;/p&#62;</description>
</item>
<item>
<title>ysen :  "フォーラム　アカウント削除のお願い"</title>
<link>http://ja.forums.wordpress.org/topic/2345#post-11053</link>
<pubDate>Sat, 24 Oct 2009 06:19:06 +0000</pubDate>
<dc:creator>ysen</dc:creator>
<guid isPermaLink="false">11053@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;サポートフォーラムのアカウントのことでしたか。&#60;br /&#62;
それは必要ありません。&#60;/p&#62;
&#60;p&#62;質問を変えます。&#60;/p&#62;
&#60;p&#62;現在、ワードプレスに独自ドメインでサイトを１つ持っていますが、前回の質問通り&#60;br /&#62;
FTPサーバを消去してしまったためにサイトの管理ができない状態です。&#60;/p&#62;
&#60;p&#62;そちらで強制的に削除することはできないでしょうか？
&#60;/p&#62;</description>
</item>
<item>
<title>takayukister :  "フォーラム　アカウント削除のお願い"</title>
<link>http://ja.forums.wordpress.org/topic/2345#post-10895</link>
<pubDate>Sun, 18 Oct 2009 18:33:38 +0000</pubDate>
<dc:creator>takayukister</dc:creator>
<guid isPermaLink="false">10895@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;ysen さん、FTP サーバとこのサポートフォーラムとは何ら関連はありませんので、アカウントを削除する必要は無いのではないかと思います。&#60;/p&#62;
&#60;p&#62;本当にアカウントの削除を希望されますか?
&#60;/p&#62;</description>
</item>
<item>
<title>ysen :  "フォーラム　アカウント削除のお願い"</title>
<link>http://ja.forums.wordpress.org/topic/2345#post-10894</link>
<pubDate>Sun, 18 Oct 2009 16:47:27 +0000</pubDate>
<dc:creator>ysen</dc:creator>
<guid isPermaLink="false">10894@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;お世話になります。&#60;/p&#62;
&#60;p&#62;パソコンの引越しの際にFTPサーバを消去してしまい&#60;br /&#62;
それ以降、サイトの表示がうまくいきません。&#60;/p&#62;
&#60;p&#62;当方にて再度インストールを新規に行いたいので&#60;br /&#62;
現在のアカウントの削除をお願いいたします。&#60;/p&#62;
&#60;p&#62;よろしくお願いします。
&#60;/p&#62;</description>
</item>
<item>
<title>onkyo :  "投稿記事が入っているフォルダは？"</title>
<link>http://ja.forums.wordpress.org/topic/2628#post-10831</link>
<pubDate>Fri, 16 Oct 2009 04:51:21 +0000</pubDate>
<dc:creator>onkyo</dc:creator>
<guid isPermaLink="false">10831@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;masaru様、ご回答ありがとうございました。&#60;br /&#62;
テーブル名をwp_postsにすればよいということですね。&#60;br /&#62;
私は、”【テーブル接頭辞】１つのデータベースで複数のwordpressを動かすときに変更します”　の設定でwp1_と設定しましたが、これは関係ないでしょうか？&#60;br /&#62;
いろいろ試してみたいと思います。ご回答ありがとうございました。&#60;/p&#62;
&#60;p&#62;torocha2002様、ご回答ありがとうございました。&#60;br /&#62;
やってみたところ、ＸＭＬというものが出たので驚きました。当方wordpress初心者ですので、まだ記事が少なめですが、もし１００記事あれば、このエクスポートのファイル１枚に１００記事ぶん全部が表示されると思ってよろしいでしょうか？&#60;br /&#62;
できましたら、ご回答のほどよろしくお願い致します。度々申し訳ございません。
&#60;/p&#62;</description>
</item>
<item>
<title>torocha2002 :  "投稿記事が入っているフォルダは？"</title>
<link>http://ja.forums.wordpress.org/topic/2628#post-10822</link>
<pubDate>Fri, 16 Oct 2009 02:31:51 +0000</pubDate>
<dc:creator>torocha2002</dc:creator>
<guid isPermaLink="false">10822@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;いや難しく考えすぎでは？&#60;br /&#62;
もちろんphpMyAdminでもできますが&#60;/p&#62;
&#60;p&#62;WordPressの管理画面で&#60;br /&#62;
ツール　→　　エクスポート　→　「エクスポートファイルをダウンロード」ボタンをクリック&#60;/p&#62;
&#60;p&#62;WordPressのアップグレードなどで記事のバックアップなどの際に一番簡単な&#60;br /&#62;
バックアップ手段です
&#60;/p&#62;</description>
</item>
<item>
<title>masaru :  "投稿記事が入っているフォルダは？"</title>
<link>http://ja.forums.wordpress.org/topic/2628#post-10818</link>
<pubDate>Fri, 16 Oct 2009 00:49:28 +0000</pubDate>
<dc:creator>masaru</dc:creator>
<guid isPermaLink="false">10818@http://ja.forums.wordpress.org/</guid>
<description>&#60;blockquote&#62;&#60;p&#62;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&#60;br /&#62;
phpmyadmin などにアクセスできるのなら、SQL ってところから以下を実行していただければ、一瞬ですべてのファイルの任意の文字列を好きなように変更できる。&#60;br /&#62;
&#60;code&#62;UPDATE テーブル名 SET post_content = replace(post_content, &#38;#39;対象の文字列&#38;#39;, &#38;#39;置き換えたい文字列&#38;#39;);&#60;/code&#62;&#60;br /&#62;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;投稿記事の格納テーブルはwp_postsになり、記事本文はフィールドpost_contentに格納されてますので、&#60;br /&#62;
&#60;code&#62;UPDATE wp_posts SET post_content = replace(post_content, &#38;#39;対象の文字列&#38;#39;, &#38;#39;置き換えたい文字列&#38;#39;);&#60;/code&#62;&#60;br /&#62;
で問題はないと思います。&#60;/p&#62;
&#60;p&#62;※自己責任＋DBのバックアップ取得後に実行してくださいね。
&#60;/p&#62;</description>
</item>
<item>
<title>onkyo :  "投稿記事が入っているフォルダは？"</title>
<link>http://ja.forums.wordpress.org/topic/2628#post-10817</link>
<pubDate>Thu, 15 Oct 2009 23:52:35 +0000</pubDate>
<dc:creator>onkyo</dc:creator>
<guid isPermaLink="false">10817@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;今、いろいろ調べましたところ、やっと、これを見つけました。&#60;/p&#62;
&#60;p&#62;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&#60;br /&#62;
phpmyadmin などにアクセスできるのなら、SQL ってところから以下を実行していただければ、一瞬ですべてのファイルの任意の文字列を好きなように変更できる。&#60;br /&#62;
UPDATE テーブル名 SET post_content = replace(post_content, '対象の文字列', '置き換えたい文字列');&#60;br /&#62;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&#60;/p&#62;
&#60;p&#62;ということは、以下の様にすればいいということでしょうか。&#60;/p&#62;
&#60;p&#62;対象の文字列⇒古いＵＲＬ&#60;br /&#62;
置き換えたい文字列⇒新しいＵＲＬ　　&#60;/p&#62;
&#60;p&#62;このままphpmyadminというものに突き進んでしまっても良いでしょうか？&#60;br /&#62;
度々申し訳ございませんが、できればご回答をお願い致します。
&#60;/p&#62;</description>
</item>
<item>
<title>onkyo :  "投稿記事が入っているフォルダは？"</title>
<link>http://ja.forums.wordpress.org/topic/2628#post-10816</link>
<pubDate>Thu, 15 Oct 2009 23:26:09 +0000</pubDate>
<dc:creator>onkyo</dc:creator>
<guid isPermaLink="false">10816@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;jim912様、たいへんありがとうございます。&#60;/p&#62;
&#60;p&#62;&#38;gt;置換したい文言の場所&#60;br /&#62;
ということですが、サイドバー等ではなく、毎日更新するブログ記事が置換の対象です。&#60;br /&#62;
置換したい文言の場所は、これは記事ごとに場所が違います。&#60;br /&#62;
毎日更新する投稿記事内の文章中にあるＵＲＬを変えるのが目的です。&#60;br /&#62;
アフィリエイトをしているので、古い広告のＵＲＬを新しいものに一括で変えるのが目的です。&#60;br /&#62;
データベースというのはMySQLとかいうものでしょうか？&#60;br /&#62;
それを、テキストファイルに変換することは可能でしょうか？&#60;/p&#62;
&#60;p&#62;何卒よろしくお願い致します。
&#60;/p&#62;</description>
</item>
<item>
<title>jim912 :  "投稿記事が入っているフォルダは？"</title>
<link>http://ja.forums.wordpress.org/topic/2628#post-10814</link>
<pubDate>Thu, 15 Oct 2009 17:43:34 +0000</pubDate>
<dc:creator>jim912</dc:creator>
<guid isPermaLink="false">10814@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;onkyoさん、こんにちは。&#60;/p&#62;
&#60;p&#62;投稿欄に入力したものであれば、データベースに保存されており、エディタで置換できるような形でファイルに保存されている訳ではありません。&#60;/p&#62;
&#60;p&#62;また、置換したい文言の場所によって、行う処理がまったく異なってしまう可能性がありますので、もう少し具体的に（たとえば編集画面のどの欄に入力したものかとか、ページ内で表示されている位置とか）場所を教えていただく必要があります。
&#60;/p&#62;</description>
</item>
<item>
<title>onkyo :  "投稿記事が入っているフォルダは？"</title>
<link>http://ja.forums.wordpress.org/topic/2628#post-10804</link>
<pubDate>Thu, 15 Oct 2009 13:00:37 +0000</pubDate>
<dc:creator>onkyo</dc:creator>
<guid isPermaLink="false">10804@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;置換ソフトを使い、投稿記事が保存されているフォルダ内にあるすべてのファイルの同一箇所（文字）をすべて一括置換したいのですが可能でしょうか？&#60;br /&#62;
もし、そのままでは不可能な場合、どういったことをすれば可能でしょうか？&#60;/p&#62;
&#60;p&#62;何卒よろしくお願い致します。
&#60;/p&#62;</description>
</item>
<item>
<title>user_naga :  "コメント投稿のメールアドレス・ウェブサイトが空になってしまう"</title>
<link>http://ja.forums.wordpress.org/topic/2521#post-10447</link>
<pubDate>Thu, 01 Oct 2009 07:27:25 +0000</pubDate>
<dc:creator>user_naga</dc:creator>
<guid isPermaLink="false">10447@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;jim912様、ご教授有難うございます。&#60;/p&#62;
&#60;p&#62;本体の改編(コメントアウト等)は、出来るだけ行わない方が良いのですね。&#60;br /&#62;
(あまり機能を使用していないので、現在は不具合が出ていないのかもしれません)&#60;/p&#62;
&#60;p&#62;remove_filterの記述ですが、wp-content/themes/default(例)/に&#60;br /&#62;
ありますfunctions.phpに記述しております。&#60;br /&#62;
こちらの箇所で違うようでしたら私の不勉強の致すところで申し訳ないです。&#60;/p&#62;
&#60;p&#62;また、本体を改編しないように、もう一度みてみます。
&#60;/p&#62;</description>
</item>
<item>
<title>jim912 :  "コメント投稿のメールアドレス・ウェブサイトが空になってしまう"</title>
<link>http://ja.forums.wordpress.org/topic/2521#post-10413</link>
<pubDate>Wed, 30 Sep 2009 14:10:26 +0000</pubDate>
<dc:creator>jim912</dc:creator>
<guid isPermaLink="false">10413@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;user_nagaさん、こんにちは。&#60;/p&#62;
&#60;p&#62;default-filters.phpのコメントアウトですと、一緒にフックが追加されているpre_user_emailやpre_link_urlなどもあわせて処理がカットされてしまいますので、思わぬ所で不具合が出ないとも限りません。&#60;/p&#62;
&#60;p&#62;私の方で、正確さが足りなかったのですが、remove_filterを記述するのは、wp-includes/functions.phpではなく、利用しているテーマのfunctions.phpです。もし、間違っておられたようであれば申し訳ありません。&#60;/p&#62;
&#60;p&#62;また、本体の改編はアップデート時に同様の処理を行わなければならないので、極力改編を行わない方法をおすすめします。
&#60;/p&#62;</description>
</item>
<item>
<title>user_naga :  "コメント投稿のメールアドレス・ウェブサイトが空になってしまう"</title>
<link>http://ja.forums.wordpress.org/topic/2521#post-10408</link>
<pubDate>Wed, 30 Sep 2009 09:02:46 +0000</pubDate>
<dc:creator>user_naga</dc:creator>
<guid isPermaLink="false">10408@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;jim912様、丁寧なご返信有難うございます。&#60;/p&#62;
&#60;p&#62;早速、functions.phpにremove_filterで記述させて頂きましたが&#60;br /&#62;
それだけですと、まだ空になってしまいましたので、sanitize_email・esc_url_raw・clean_urlの処理をコメントアウト・一部変更したところ解決する事が出来ました。&#60;/p&#62;
&#60;p&#62;どこでどのような処理がされているのか、丁寧に詳細をご説明下さったので&#60;br /&#62;
私でも何とかなりました。&#60;/p&#62;
&#60;p&#62;本当に有難うございました。&#60;/p&#62;
&#60;p&#62;[今回行った変更]&#60;br /&#62;
・functions.phpにremove_filterでsanitize_email・esc_url_raw・clean_urlを記述&#60;br /&#62;
・sanitize_email・esc_url_rawをコメントアウト&#60;br /&#62;
・clean_urlのhttp://連結処理箇所を削除
&#60;/p&#62;</description>
</item>
<item>
<title>jim912 :  "コメント投稿のメールアドレス・ウェブサイトが空になってしまう"</title>
<link>http://ja.forums.wordpress.org/topic/2521#post-10389</link>
<pubDate>Tue, 29 Sep 2009 15:10:43 +0000</pubDate>
<dc:creator>jim912</dc:creator>
<guid isPermaLink="false">10389@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;user_nagaさん、こんにちは。&#60;/p&#62;
&#60;p&#62;メールアドレス、ウェブサイトの入力値は、それぞれpre_comment_author_emailとpre_comment_author_urlというフィルターフックを通ります。&#60;/p&#62;
&#60;p&#62;これらのフックには、wp-includes/default-filters.phpにていくつかのフィルターが追加されています。&#60;/p&#62;
&#60;p&#62;具体的には、メールアドレスはsanitize_email、ウェブサイトはesc_url_raw（ひいてはclean_url）で該当する処理がなされています。&#60;/p&#62;
&#60;p&#62;このフィルタリングを停止させるのであれば、remove_filterをfunctions.phpに記述してあげれば良いかと思います。
&#60;/p&#62;</description>
</item>
<item>
<title>mizube :  "検索フォーム 値の出力時にエスケープ処理を行う方法をご存じでしょうか"</title>
<link>http://ja.forums.wordpress.org/topic/2524#post-10344</link>
<pubDate>Mon, 28 Sep 2009 12:52:02 +0000</pubDate>
<dc:creator>mizube</dc:creator>
<guid isPermaLink="false">10344@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;解決できたようで何よりです。感激して頂けてこちらも嬉しくなりました。&#60;/p&#62;
&#60;p&#62;ところで Yoast Breadcrumbs の脆弱性は、作者に報告すべきですね。私は英語力に不安があるので、とりあえず、日本語版を配布されている方のところへ連絡してみます。
&#60;/p&#62;</description>
</item>
<item>
<title>msnb :  "検索フォーム 値の出力時にエスケープ処理を行う方法をご存じでしょうか"</title>
<link>http://ja.forums.wordpress.org/topic/2524#post-10326</link>
<pubDate>Sun, 27 Sep 2009 17:29:35 +0000</pubDate>
<dc:creator>msnb</dc:creator>
<guid isPermaLink="false">10326@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;mizube様&#60;/p&#62;
&#60;p&#62;本当に泣きました。ありがとうございました。&#60;/p&#62;
&#60;p&#62;御指摘通りに変更して全て解決しました。&#60;/p&#62;
&#60;p&#62;正直申し上げて。私のレベルで、ここに質問を書き込むと、質問の回答以前に、質問の仕方など、また、私のレベルの低さを指摘されるんじゃないかと、凄く怖かったんです。&#60;/p&#62;
&#60;p&#62;でも、本当にうれしかった！&#60;/p&#62;
&#60;p&#62;有難うございました。&#60;/p&#62;
&#60;p&#62;今回の件で、質問するだけで無く、いつか私より初心者の方の質問に答えてあげられるレベルになれるように頑張りたいと思っています。&#60;/p&#62;
&#60;p&#62;mizube様 本当にありがとうございました。&#60;/p&#62;
&#60;p&#62;今まで以上にWordPressが大好きになりました。
&#60;/p&#62;</description>
</item>
<item>
<title>msnb :  "検索フォーム 値の出力時にエスケープ処理を行う方法をご存じでしょうか"</title>
<link>http://ja.forums.wordpress.org/topic/2524#post-10325</link>
<pubDate>Sun, 27 Sep 2009 17:20:37 +0000</pubDate>
<dc:creator>msnb</dc:creator>
<guid isPermaLink="false">10325@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;mizube様&#60;/p&#62;
&#60;p&#62;何だか涙が出ちゃいそう、いや・・出ちゃいました。&#60;/p&#62;
&#60;p&#62;本当にありがとうございます。&#60;/p&#62;
&#60;p&#62;これから御指摘頂いた点を頑張ってチャレンジしてみます。&#60;/p&#62;
&#60;p&#62;本当にありがとうございました。
&#60;/p&#62;</description>
</item>
<item>
<title>mizube :  "検索フォーム 値の出力時にエスケープ処理を行う方法をご存じでしょうか"</title>
<link>http://ja.forums.wordpress.org/topic/2524#post-10324</link>
<pubDate>Sun, 27 Sep 2009 16:57:49 +0000</pubDate>
<dc:creator>mizube</dc:creator>
<guid isPermaLink="false">10324@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;追加の情報でようやく把握できました。この場合、問題があるのは、フォームや WordPress 本体ではなくプラグインです。&#60;/p&#62;
&#60;p&#62;お使いの Yoast Breadcrumbs プラグインのバージョンは分かりますか?　日本語版であれば 0.7.4 、本家版であれば 0.8.4 が最新のようですが、いずれも検索語の表示の際にエスケープ処理をしていないみたいですね。&#60;/p&#62;
&#60;p&#62;0.7.4 であれば yoast-breadcrumbs.php の 229 行目、&#60;br /&#62;
0.8.4 であれば yoast-breadcrumbs.php の 250 行目を&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$output .= bold_or_not($opt[&#38;#39;searchprefix&#38;#39;].&#38;#39; &#38;quot;&#38;#39;.get_search_query().&#38;#39;&#38;quot;&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;から&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$output .= bold_or_not($opt[&#38;#39;searchprefix&#38;#39;].&#38;#39; &#38;quot;&#38;#39;.esc_attr(apply_filters(&#38;#39;the_search_query&#38;#39;, get_search_query())).&#38;#39;&#38;quot;&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;に変更してください。 the_search_query() は、検索語を取得する get_search_query() で取得した検索語 (に the_search_query 用のフィルタを適用した文字列) を、エスケープしてから出力するテンプレート関数ですが、この処理と全く同じものを Yoast Breadcrumbs プラグインにも組み込む変更です。&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
今、たどり着いたのはhtmlspecialchars()と言うものなんですが、これで宜しいのでしょうか？&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;それですね。でも WordPress では専用の関数が定義されていますので、そちらを利用されるのがいいと思います。 WP2.7 以前は wp_specialchars() 、 WP2.8以降は esc_attr() がそれにあたります。&#60;/p&#62;
&#60;p&#62;テーマ内で検索語を出力する際には、&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php the_search_query(); ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;を使っておけば、とりあえずは安全だと思っていいはずです。今後何か問題が発生すれば、その次以降のバージョンで改善されるはずです。&#60;/p&#62;
&#60;p&#62;しかしながら私も XSS 等に関してはスキルが足らず、明確な回答をできる立場にありません。他の方からダメ出しがある可能性もあります。決して鵜呑みにはしないで下さいね。
&#60;/p&#62;</description>
</item>
<item>
<title>msnb :  "検索フォーム 値の出力時にエスケープ処理を行う方法をご存じでしょうか"</title>
<link>http://ja.forums.wordpress.org/topic/2524#post-10322</link>
<pubDate>Sun, 27 Sep 2009 14:42:17 +0000</pubDate>
<dc:creator>msnb</dc:creator>
<guid isPermaLink="false">10322@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;連続書き込み恐縮です。&#60;/p&#62;
&#60;p&#62;パン屑リストはプラグインYoast Breadcrumbsを利用しています。&#60;/p&#62;
&#60;p&#62;検索フォームから&#60;code&#62;&#38;lt;h1&#38;gt;test&#38;lt;/h1&#38;gt;&#60;/code&#62;やスクリプトを書き込むとパン屑リストの部分に大文字や書き込んだスクリプトが表示されてしまいます。&#60;/p&#62;
&#60;p&#62;Yoast Breadcrumbsのソースは&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php if ( function_exists(&#38;#39;yoast_breadcrumb&#38;#39;) ) {
	yoast_breadcrumb(&#38;#39;&#38;lt;p id=&#38;quot;breadcrumbs&#38;quot;&#38;gt;&#38;#39;,&#38;#39;&#38;lt;/p&#38;gt;&#38;#39;);
} ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;です。&#60;/p&#62;
&#60;p&#62;このソースに何かを追記すれば「値の出力時にエスケープ処理」が可能になるのだろうと言う事までは理解できました。&#60;/p&#62;
&#60;p&#62;しかし、何をどうやって追記するか？を悩んでおります。&#60;/p&#62;
&#60;p&#62;恐縮ですがお知恵を貸して頂きたくお願い申し上げます。
&#60;/p&#62;</description>
</item>
<item>
<title>msnb :  "検索フォーム 値の出力時にエスケープ処理を行う方法をご存じでしょうか"</title>
<link>http://ja.forums.wordpress.org/topic/2524#post-10321</link>
<pubDate>Sun, 27 Sep 2009 13:59:58 +0000</pubDate>
<dc:creator>msnb</dc:creator>
<guid isPermaLink="false">10321@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;mizube様&#60;/p&#62;
&#60;p&#62;早速のお返事ありがとうございます。&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;脆弱性検査というのはどのような方法で行われたのしょうか?&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;レベルが低くて恐縮です。&#60;br /&#62;
会社で脆弱性検査業者に依頼したとの事。テストの詳細を理解しておりません。&#60;br /&#62;
その点を改めて確認してから、再度、書き込みさせて頂きます。&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;the_search_query(); はエスケープされた検索語を出力するはずですが……。 &#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;あっ！そうなんですか？&#60;/p&#62;
&#60;p&#62;ネット上で色々と勉強した結果、クロスサイトスクリプティングの意味がわかってきました。&#60;/p&#62;
&#60;p&#62;自分で検索枠に&#60;code&#62;&#38;lt;h1&#38;gt;テスト&#38;lt;/h1&#38;gt;&#60;/code&#62;などと入力してテストしてみましたところ、検索ページの上部にパン屑リストを付けてあるのですが、その部分が大文字になりました。&#60;/p&#62;
&#60;p&#62;で、何となく理解できたのは、パン屑リストを外せば、とりあえずはＯＫなのかな？と言う事なんですが、それでは問題解決になってません。&#60;/p&#62;
&#60;p&#62;パン屑リストのソースに何かコマンド（と言うのでしょうか？）を追記すれば問題解決するのかな？とも思い始めています。&#60;/p&#62;
&#60;p&#62;今、たどり着いたのはhtmlspecialchars()と言うものなんですが、これで宜しいのでしょうか？&#60;/p&#62;
&#60;p&#62;つくづくレベルが低くて恐縮です。
&#60;/p&#62;</description>
</item>
<item>
<title>mizube :  "検索フォーム 値の出力時にエスケープ処理を行う方法をご存じでしょうか"</title>
<link>http://ja.forums.wordpress.org/topic/2524#post-10320</link>
<pubDate>Sun, 27 Sep 2009 13:34:28 +0000</pubDate>
<dc:creator>mizube</dc:creator>
<guid isPermaLink="false">10320@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;脆弱性検査というのはどのような方法で行われたのしょうか? the_search_query(); はエスケープされた検索語を出力するはずですが……。
&#60;/p&#62;</description>
</item>
<item>
<title>msnb :  "検索フォーム 値の出力時にエスケープ処理を行う方法をご存じでしょうか"</title>
<link>http://ja.forums.wordpress.org/topic/2524#post-10318</link>
<pubDate>Sun, 27 Sep 2009 12:36:43 +0000</pubDate>
<dc:creator>msnb</dc:creator>
<guid isPermaLink="false">10318@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;WordPress 2.8.4を使用してサイトを作成しましたが、脆弱性検査で以下の結果が出て対処する事になりました。&#60;/p&#62;
&#60;p&#62;問題箇所 -　検索機能 パラメータ:s&#60;br /&#62;
検出脆弱性 - クロスサイトスクリプティング&#60;br /&#62;
推奨対策 - 値の出力時にエスケープ処理を行ってください。&#60;/p&#62;
&#60;p&#62;検索フォームは以下の通りです。&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;form method=&#38;quot;get&#38;quot; action=&#38;quot;&#38;lt;?php bloginfo(&#38;#39;url&#38;#39;); ?&#38;gt;&#38;quot;&#38;gt;
&#38;lt;p&#38;gt;
&#38;lt;input type=&#38;quot;text&#38;quot; name=&#38;quot;s&#38;quot; id=&#38;quot;s&#38;quot; value=&#38;quot;&#38;lt;?php the_search_query(); ?&#38;gt;&#38;quot; /&#38;gt;
&#38;lt;input type=&#38;quot;submit&#38;quot; value=&#38;quot;検索&#38;quot; /&#38;gt;
&#38;lt;/p&#38;gt;
&#38;lt;/form&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;この数日間、ネット上で 「WordPress php 検索フォーム　値の出力時エスケープ処理」などのキーワードで検索をしましたが、上記の内容を、どのようにしたら値の出力時エスケープ処理出来るのか？私のレベルで理解出来る説明を探し出せず質問させて頂きました。&#60;/p&#62;
&#60;p&#62;上記のフォームを値の出力時エスケープ処理する方法をご存じの方、御教授頂きたくお願い申し上げます。
&#60;/p&#62;</description>
</item>
<item>
<title>user_naga :  "コメント投稿のメールアドレス・ウェブサイトが空になってしまう"</title>
<link>http://ja.forums.wordpress.org/topic/2521#post-10306</link>
<pubDate>Sat, 26 Sep 2009 10:39:25 +0000</pubDate>
<dc:creator>user_naga</dc:creator>
<guid isPermaLink="false">10306@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;wordpress2.8.4を利用させて頂いております。&#60;/p&#62;
&#60;p&#62;コメント投稿のメールアドレス・ウェブサイトで有効な入力ではない場合(メールアドレスで＠がない等)、登録すると空になって登録されてしまいます。&#60;br /&#62;
また、ウェブサイトの入力が有効でも http:// が自動で入力され登録されてしまいます。&#60;/p&#62;
&#60;p&#62;空にさせず、 http:// を自動で入力させないようにしたいのですが、どこで制御されているのでしょうか？&#60;/p&#62;
&#60;p&#62;お力添えの程宜しくお願い致します。&#60;/p&#62;
&#60;p&#62;[実現させたい事]&#60;br /&#62;
・コメント投稿時、メールアドレス・ウェブサイトを空にさせない&#60;br /&#62;
・コメント投稿時、ウェブサイトに http:// を自動入力させない
&#60;/p&#62;</description>
</item>
<item>
<title>shokun0803 :  "背景色から文字色を算出したい"</title>
<link>http://ja.forums.wordpress.org/topic/2484#post-10129</link>
<pubDate>Fri, 18 Sep 2009 01:35:52 +0000</pubDate>
<dc:creator>shokun0803</dc:creator>
<guid isPermaLink="false">10129@http://ja.forums.wordpress.org/</guid>
<description>&#60;p&#62;jim912さん、身勝手な投稿に返答ありがとうございます。&#60;/p&#62;
&#60;p&#62;実は「白黒決め打ち」はどうなの？と思っていたのですが、色々試しているうちに#666以上、#999以下が背景の場合はw3cのいう計算式で満たせる文字色がない、ということになるようで、でもこれは色盲の方などが見る場合などのことなど全ての条件を含めての場合であって、通常の人が見る限り#666なら#fffでも十分見えると感じました。&#60;/p&#62;
&#60;p&#62;そこで、jim912さんのおっしゃるとおり（中間色さえ無視で）白黒決め打ちでソースを組んでみたところ、実に十分実用に耐えうる結果がでました。しかもソースはシンプルです;)&#60;/p&#62;
&#60;p&#62;参考ソース：&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;/* --------------------------------------------
 * 背景色の指定
 * -------------------------------------------- */

function bc_background_color() {
	global $post;
	$str = get_post_meta($post-&#38;gt;ID, &#38;#39;背景色&#38;#39;, true);
	$str = strtoupper($str);
	if( substr($str, 0, 1) == &#38;quot;#&#38;quot; ) {
		if( strlen($str) == 7 ) {
			$r = hexdec(substr($str, 1, 2));
			$g = hexdec(substr($str, 3, 2));
			$b = hexdec(substr($str, 5, 2));
		} elseif( strlen($str) == 4 ) {
			$r = substr($str, 1, 1);
			$g = substr($str, 2, 1);
			$b = substr($str, 3, 1);
			$r = hexdec($r.$r);
			$g = hexdec($g.$g);
			$b = hexdec($b.$b);
		}
	}
	$bright = (($r*299)+($g*587)+($b*114))/1000;
	if( $bright &#38;gt; 127.5 ) {
		$t_color = &#38;quot;000000&#38;quot;;
	} else {
		$t_color = &#38;quot;FFFFFF&#38;quot;;
	}
	if( $str ) {
		echo &#38;quot; style=\&#38;quot;background-color:{$str};color:#{$t_color}\&#38;quot;&#38;quot;;
	}
	return;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;まだまだ改良の余地がありますが（色名とか入力されるとアウト）、なんとか解決に繋がりました。本当にありがとうございました。
&#60;/p&#62;</description>
</item>

</channel>
</rss>
