画像 カレントホバー 特殊 リンク無し ドロップ用 :not重ね掛け

<!--画像カレントホバー-->
<script type="text/javascript" >
$(function(){

 $(".d_navi_main_in li:not(.chill):not(.current)").each(function(){ //ここ大事
  var a = $(this);
  var img = a.find("img");
  var src_off = img.attr("src");
  var src_on = src_off.replace(/^(.+)_off(\.[^\.]+)$/,"$1_on$2");

  $("<img />").attr("src",src_on);

  a.bind("mouseenter focus", function(){
		img.attr("src", src_on);
		});

  a.bind("mouseleave blur", function(){
		img.attr("src", src_off);
		});
	});
});

 //current表示
$(function() {
  if ($('.d_navi_main_in li').hasClass('current')) {
 $(".d_navi_main_in li.current  img").attr("src",$(".d_navi_main_in li.current  img").attr("src").replace(/^(.+)_off(\.[^\.]+)$/,"$1_current$2"));//ここ大事
  }
});
</script>

ドロップダウン 自作

まず普通に 出てる状態を作り
消して
ホバーで見せる
hidden 0がポイント
参考
http://weboook.blog22.fc2.com/blog-entry-359.html

<li class="line"><img src="img/menu/line.png" width="1" height="29" /></li>

<li><img src="img/menu/menu-04_off.jpg" width="127" height="61" />

ここから

<ul class="drop_down">
<li class="chill"><a href="<?php echo home_url(); ?>/?page_id=34">尾張旭店</a></li>
<li class="chill"><a href="<?php echo home_url(); ?>/?page_id=37">日進店</a></li>
</ul>


ここまで

</li>

<li class="line"><img src="img/menu/line.png" width="1" height="29" /></li>
.drop_down{
	z-index: 10000;
	overflow: visible!important;
	position: absolute;
	width: 127px;
}

.drop_down li{
	
	width: 100%;
	background-color: #24AC66;
	
	/*ここで隠し*/
	height: 0px!important;
	overflow:hidden!important;
	/*/ここで隠し*/
}
/*ここでみせる*/
.d_navi_main_in ul li:hover .drop_down li{
	height: auto!important;
	overflow: visible!important;
}
/*/ここでみせる*/



.drop_down li a{
	color: #FFF;
	background-color: #2CB370;
	text-align: center;
	width: 100%;
	display: block;
	padding-top: 10px;
	padding-bottom: 10px;
}

.drop_down li a:hover{
	/*background-color: #ff8e00;*/
	text-decoration: none;
	background-color: #74491C;
}

タブメニュー自作 コード css

マイナスマージンが決め手
オーバーフロー hidenも注意 使わない

<!------------------タブ店舗全ページ----------------------------------> 
<ul class="tab_menu">
<li><a href="<?php echo home_url(); ?>/?page_id=34" class="current">尾張旭店</a></li>
<li><a href="<?php echo home_url(); ?>/?page_id=37">日進店</a></li>
<div style="clear:both"></div>
</ul>

<!------------------/タブ店舗全ページ----------------------------------> 
/*タブ*/

.tab_menu{
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #CCC;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 10px;
	margin-top: 10px;
	margin-right: 0px;
	margin-bottom: 30px;
	margin-left: 0px;
}
.tab_menu li{
	float: left;
	list-style-type: none;
	margin-bottom: -1px;
	margin-left: -1px;	

}
.tab_menu li a{
	display: block;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #CCC;
	border-right-color: #CCC;
	border-bottom-color: #CCC;
	border-left-color: #CCC;
	padding-top: 5px;
	padding-right: 25px;
	padding-bottom: 5px;
	padding-left: 25px;
	-webkit-border-top-left-radius: 5px;
	-webkit-border-top-right-radius: 5px;
	-moz-border-radius-topleft: 5px;
	-moz-border-radius-topright: 5px;
}

.tab_menu li a:hover{
	color: #FFF;
	background-color: #00A550;
	text-decoration: none;
}

.tab_menu li a.current{
	background-color: #6a3906;
	color: #FFF;
	border-bottom-color: #FFF;
}

神業 css メニューホバー時 両隣ライン 消す


/*メニュー右隣のイメージラインを消す*/
.d_navi_main_in ul li:not(.chill):hover + li.line img{
	display: none;
}
/*メニュー左隣のイメージラインを消す*/
.d_navi_main_in ul li:not(.chill):hover{
	margin-left: -1px;
	padding-left: 1px;
	background-color: #FFF;
}

上記css

リストで並んだメニュー
ラインもリスト
線はイメージ画像

右隣は 隣接セレクタで消す +
:not(.chill)はドロプダウンをのぞくため

左隣はマージンを-1
パディングを1にして
背景を背景と同じ白に

ALO EasyMail Newsletter メルマガプラグイン

送信バッチがあるためこれを選んだ
サクラは250通 15分という規制があるため
共用サーバーでメルマガをやりたいため他のクライアントとかぶらない様にするため規制する。

登録したいところ

<?php echo do_shortcode('[ALO-EASYMAIL-PAGE]'); ?>

ダイレクトに出す。
参考
http://g.azucar.jp/?p=1469

全部英語表記のため
winのディバースで該当箇所を検索し
正規・・で検索
サクラエディタで日本語に替え
utf-8で保存し直し
アップロードで
公開記事を1つでも更新すると日本語化された

wp-contentsのプラクインの
下記ファイル
テーマ内にレミるではプレーンhtml
固定ページpage_mail_active.php参照
がいる。
携帯用はwillcomeだけが良いかも
設定でパーミッション編集者
テーマをプレーンを選ぶ
作成して選んで
送信

以下修正箇所

========================
■alo-easymail_functions.php
Warning: this email address has already been subscribedの上の行を変更


  $error_email_added		= esc_js( alo_em___(__("登録済みアドレスです", "alo-easymail")) );
  
  
ubscription successful. You will receive an e-mail with a link. You have to click on the link to activate your subscription.

を
ご登録ありがとうございます(*^ω^)ノ


  $error_email_incorrect 	= esc_js( alo_em___(__("メールアドレスが正しくありません", "alo-easymail")) );
  $error_name_empty 		= esc_js( alo_em___(__("名前が空欄です", "alo-easymail")) );

  $error_email_added		= esc_js( alo_em___(__("登録済みアドレスです", "alo-easymail")) );
  $error_email_activated	= esc_js( alo_em___(__("登録済みアドレスです", "alo-easymail")) );  
  $error_on_sending			= esc_js( alo_em___(__("エラーです。しばらくたってからお試しください。", "alo-easymail")) );
  
■alo-easymail-widget.php
  input type='submit'で検索して

        $html .= "<input type='submit' name='submit' value='".__("送信", "alo-easymail")."' class='input-submit' />\n";
        に
        
        $html .= "    <td><label for='opt_name'>".__("Name", "alo-easymail")."</label></td>"; //edit : added the "label" element for better accessibility
        
        $html .= "    <td><label for='opt_email'>".__("E-mail", "alo-easymail")."</label></td>\n"; //edit : added the "label" element for better accessibility
に

ubscription successful. You will receive an e-mail with a link. You have to click on the link to activate your subscription.

を
ご登録ありがとうございます(*^ω^)ノ
に  認証アドへの促しでもよい


■alo-easymail_subscr-page.php
43行目を変更
Your subscription was successfully activated. You will receive the next newsletter. Thank you.
ご登録ありがとうございます(*^ω^)ノ

To unsubscribe the newsletter for good click this button
を
メールメンバーを退会するにはボタンをクリックしてください。
これに
Unsubscribe meを退会に

Your subscription was successfully deleted. Bye bye.
を
ご購読ありがとうございました。
これに

========================

★その他ポイント

Newsletters 送信 レポート 再編集
Add New Newsletterで作る
Newsletter subscribers:
All subscribers にチェック
テーマは選ぶかもしくは設定でテーマを決める
(フォルダはalo-easymail-themesの中にいれれば選択できる様になる ただしこのそふとはHTMLメールになる)

携帯振り分けのやつテストする

$headers .= "Content-Type: text/html; charset=\"" . strtolower( get_option('blog_charset') ) . "\"\n";

これを


if ( preg_match( "/docomo|ezweb|softbank|pdx|vodafone|disney|emnet|willcom|ido/u", $recipient->email ) ) {
	$content = alo_em_html2plain( $content );
} else {
	$headers .= "Content-Type: text/html; charset=\"" . strtolower( get_option('blog_charset') ) . "\"\n";
}

Subscribersでユーザをアクティベートする 

mac mail 設定

yahoo

受信メールサーバー(POP3サーバー) pop.mail.yahoo.co.jp
送信メールサーバー(SMTPサーバー) smtp.mail.yahoo.co.jp

これで出来ている例

送信 SSL デフォルトポート パスワード
受信 SSL 995 パスワード

独自ドメイン POP

受信サーバー 独自ドメイン ユーザー名 メールアドレス
送信サーバー 独自ドメイン ユーザー名 メールアドレス

送信 SSLなし 110 APOP
受信 SSLなし 587 パスワード

独自 IMAP

受信サーバー 独自ドメイン ユーザー名 メールアドレス
送信サーバー 独自ドメイン ユーザー名 メールアドレス

送信 SSLなし 143 パスワード IDLEを使用チェック?
受信 SSLなし 587 パスワード

htpasswd

ファイルおく
さくらサーバー ファイルマネージャーから フォルダ操作 制限

両方満たす、htpassの指定

ちなみにDLしたらこれだった

DirectoryIndex index.html index.php index.cgi index.shtml .ht
AuthUserFile /home/goldsource/www/temp2/nanihoru/.htpasswd
AuthType Basic
AuthName "Web access"
Require valid-user
Satisfy all
Order deny,allow

fanction php まとめ






//サムネイルサイズ増やす trueが強制切り抜き
add_image_size( 'jirei_big', 703, 467,true);//ギャラリー横用
add_image_size( 'jirei_big_height', 703, 467); //ギャラリー正方形 縦用

add_image_size( 'jirei_small', 110, 110, true  );
add_image_size( 'blog_sam', 230, 153, true  );
add_image_size( 'side_new_post_sam', 68, 68, true  );



//タイトルを入力してくださいを変える
function change_default_title( $title ) {
	$screen = get_current_screen();
	if ( 'shop' == $screen->post_type ) {
		$title = '店舗名をご入力ください。';
	} else if ( 'shop_profiless' == $screen->post_type ){
		$title = 'ブログニックネームを入力';
	} else if ( $screen -> post_type == 'post' ) {
		$title = 'これは投稿だけ変更します';
	}

	return $title;
}
add_filter('enter_title_here', 'change_default_title');

//管理フッターテキスト
function remove_footer_admin () {
    echo 'サイト名';
}
add_filter('admin_footer_text', 'remove_footer_admin');



//投稿後カテゴリ階層維持
function lig_wp_category_terms_checklist_no_top( $args, $post_id = null ) {
    $args['checked_ontop'] = false;
    return $args;
}
add_action( 'wp_terms_checklist_args', 'lig_wp_category_terms_checklist_no_top' );


//管理メニュー追加
function test_menu_page() {
    $siteurl = get_option( 'siteurl' );
?>
<div class="wrap">
    <h2>登録ガイド</h2>
<?php include("tebiki.php"); ?>
   </div>
<?php
}
function test_admin_menu() {
    add_menu_page( '登録ガイド', '登録ガイド', 'read',
		   __FILE__, 'test_menu_page' );
}
add_action( 'admin_menu', 'test_admin_menu' );



//管理バー消す管理者以外
//function my_function_admin_bar(){
//return false;
//}
//add_filter( 'show_admin_bar' , 'my_function_admin_bar');

//管理バー消す管理者以外
//function my_function_admin_bar($content) {
//return ( current_user_can("administrator") ) ? $content : false;
//}
//add_filter( 'show_admin_bar' , 'my_function_admin_bar');



//管理画面css
function wp_custom_admin_css() {
	echo "\n" . '<link rel="stylesheet" type="text/css" href="' .get_bloginfo('template_directory'). '/custom-admin-css.css' . '" />' . "\n";
}
add_action('admin_head', 'wp_custom_admin_css', 100);

//ログイン画面css
function login_css() {
    echo '<link rel="stylesheet" type="text/css" href="'.get_bloginfo("template_directory").'/login.css">';
}
add_action('login_head', 'login_css');










====http://ja.forums.wordpress.org/topic/3063=====
// 投稿画面の [表示オプション|表示する項目]のオプション値をフィルタする
function my_get_user_option_meta_box_hidden_post($result, $option, $user){
	return array('postexcerpt', 'trackbacksdiv', 'commentstatusdiv', 'commentsdiv', 'slugdiv', 'authordiv', 'revisionsdiv', 'tagsdiv-post_tag');
}
add_filter('get_user_option_metaboxhidden_post', 'my_get_user_option_meta_box_hidden_post', 10, 3);
add_filter('get_user_option_managepostcolumnshidden', 'my_get_user_option_meta_box_hidden_post', 10, 3);

// 投稿画面の[表示オプション|スクリーンレイアウト|列の数]のオプション値をフィルタする
function my_get_user_option_screen_layout_post($result, $option, $user){
	return 2;
}
add_filter('get_user_option_screen_layout_post', 'my_get_user_option_screen_layout_post', 10, 3);

// カテゴリ->カスタムフィールド->公開 に毎回並び替える
function my_footer() {
echo '<script type="text/javascript">
  //<![CDATA[
  jQuery(function(){
	jQuery("#normal-sortables").prepend(jQuery("#side-sortables").children("#categorydiv"));
	jQuery("#normal-sortables").append(jQuery("#side-sortables").children("#submitdiv"));
	jQuery("#categorydiv").prependTo(jQuery("#normal-sortables"));
	jQuery("#submitdiv").appendTo(jQuery("#normal-sortables"));
  });
  //]]>
  </script>';
}
add_action('admin_footer', 'my_footer');

====セットhttp://ja.forums.wordpress.org/topic/3063=====


//特定のカテゴリと特定のタグで絞った記事数の表示方法
function taxonomy_found_posts_num() {
    $args = array(
'post_type' => array('shoku','asobu','share','seikatsu','iryou','manabu','koukyou','ofuroyado'), //カスタム投稿名
    );
    $my_query = new WP_Query($args);
    return $my_query->found_posts;
}
//表示箇所に
//<?php echo taxonomy_found_posts_num('hokkaido','タグ1'); 件<br />
//<?php echo taxonomy_found_posts_num('aomori','タグ2'); 件
















鶏肉の臭みとり 完成系

1.肉をよく洗う ぬめりとり
2.多めの塩でもむ 余分な塩ははらう 脱水
3.ショウガ・ニンニク・酒・醤油(醤油味でない場合 2+塩)に
プリーザーバックに漬け込む 最低20分〜1日 酒で臭み消しと醤油の塩分で肉の中まで塩分(うまみ)
以上。

つけだれは焼くとき使わない

とにかくアミカの鶏は臭みがある。

おもしろ絵文字

★ ★ ★ ★ ★ ★ ★
★    ★    ★    ★    ★    ★ ★
    ★    ★   ★   ★   ★   ★ ★
┏━━━━━━━━━━━━━━━━━━━━━━━┓
┃ 1.ギフト商品5000円以上のお買い上げで送料無料┃
┃ 2.そのまま渡せるオリジナルバッグ付き ┃
┏━┫ 3.バレンタインギフト限定メッセージカード ┣━┓
┃ ┗┳━━━━━━━━━━━━━━━━━━━━━┳┛ ┃
┗━━┛ ┗━━┛
    ★    ★   ★   ★   ★   ★ ★
★ ★    ★    ★    ★    ★ ★
★ ★ ★ ★ ★ ★ ★

画像ホバー半透明css

#main_contents a:hover img{
opacity:0.7;
filter: alpha(opacity=70);        /* ie lt 8 */
-ms-filter: "alpha(opacity=70)";  /* ie 8 */
-moz-opacity:0.7;                 /* FF lt 1.5, Netscape */
-khtml-opacity: 0.7;              /* Safari 1.x */

}

TOP画像 2枚目が有ればこのスクリプト 読み込む

<!---Top画像2があればこのスクリプトを読む-->
  <?php
$args = array(
		'posts_per_page' => -1,
'paged' => $paged,
'orderby' => 'menu_order',
'order' => 'ASC',
//'tax_query' => array(
//			'relation' => 'AND',
//			array(
//				'taxonomy' => 'event',
//				'field' => 'slug',
//				'terms' => array( 'トップ用', '予備' ),
//'operator'=>'NOT IN'
//				),
//),
'post_type' => 'd_midashi', //カスタム投稿名
	);
?>

<?php
	query_posts( $args );
?>
<!--★★★ループ基本-->
<?php
if ( have_posts () ) :
    while ( have_posts() ) :
        the_post();
?>  

<?php if(post_custom('toppage画像2')): ?>

<!--TOPフェード-->
<script type="text/javascript">
$(function(){
	var setImg = '#main_contents_top';
	var fadeSpeed = 1500;
	var switchDelay = 5000;

	$(setImg).children('img').css({opacity:'0'});
	$(setImg + ' img:first').stop().animate({opacity:'1',zIndex:'20'},fadeSpeed);

	setInterval(function(){
		$(setImg + ' :first-child').animate({opacity:'0'},fadeSpeed).next('img').animate({opacity:'1'},fadeSpeed).end().appendTo(setImg);
	},switchDelay);
});
</script>   
 <?php endif; ?> 
 
   <?php
    endwhile;
endif;
?>          
   <?php wp_reset_query(); ?>     
<!---/Top画像2があればこのスクリプトを読む-->

SEO登録サイト

ディレクトリスト
http://1ot0.com/

新規登録106
http://newsite106.com/

参考その他
http://www.seo-matome.jp/link-building/free-directory/

http://webbusiness-kan.com/%E6%A4%9C%E7%B4%A2%E3%82%A8%E3%83%B3%E3%82%B8%E3%83%B3%E7%99%BB%E9%8C%B2%E5%85%88/

http://aisiteru.me/%E7%84%A1%E6%96%99%E3%81%A7%E7%99%BB%E9%8C%B2%E3%81%A7%E3%81%8D%E3%82%8Bpr3%EF%BD%9E5%E3%81%AE%E3%82%B5%E3%82%A4%E3%83%88%E3%81%BE%E3%81%A8%E3%82%81/