web,direction,planning,graphicdesign

2014年9月17日水曜日

MAMP PRO バーチャルホストのカスタマイズ

includeファイルがある場合


AddType text/html .html
Options Includes Indexes
AddHandler server-parsed .html

2014年1月24日金曜日

MAMP バーチャルホスト VMWare Fusion windowsXP

VMWare Fusion+MAMP MacのlocalhostをWindowsでも確認する
http://www.nk0206.com/life/2013/01/vmware-fusion-mamp.html

2013年12月24日火曜日

Macの調子が悪くなったら

・SMCのリセット

・MacのPRAMおよびNVRAMのリセット

2012年9月13日木曜日

ActionScript3.0 クラスの基礎

fla タイムライン

var mc:TestClass = new TestClass();
trace(mc.hensu);
trace(classFunc());


TestClass.as

package {
public class TestClass {
public var hensu = "やっほー";
// コンストラクタ
public function TestClass() {
trace("コンストラクタ");
}
public function classFunc():void {
var aa  = "メソッド"
return aa;
}
}
}

var mc:TestClass = new TestClass();

"コンストラクタ"がtraceされる

trace(mc.hensu);

"やっほー"がtraceされる

trace(classFunc());

"メソッド"がtraceされる

2012年5月10日木曜日

WordPressで文字制限

<?php echo mb_substr(strip_tags($post-> post_content),0,30).'…'; ?>
http://wpc.akuseru-design.com/%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB%E3%82%84%E6%9C%AC%E6%96%87%E3%81%AE%E6%96%87%E5%AD%97%E5%88%B6%E9%99%90/
参考にしました。

2012年1月4日水曜日

ページトップに戻るをスクロールしたら表示させる

http://www.skuare.net/2011/04/post_21.html

参考にしました

2011年12月13日火曜日

worpdressで同じ日の記事の日付を表示させる

<dl class="clearfix">
<?php
global $post;
?>
<?php
if($posts): foreach($posts as $post): setup_postdata($post); ?>
<dt><a href="<?php the_permalink(); ?>"><?php echo get_the_date(); ?></a></dt>
<dd><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></dd>
<?php endforeach; endif;
?>
</dl>

2011年10月28日金曜日

CSS3 グラデーション

background: -moz-linear-gradient(left top, #990,
#c36 30%,
#f60 50%,
#000 70%,
#066); /* Firefox用 */
background: -webkit-gradient(linear, left top, right bottom, from(#990),
color-stop(0.3, #c36),
color-stop(0.5, #f60),
color-stop(0.7, #000),
to(#066)); /* Safari,Google Chrome用 */


参照
http://www.css-lecture.com/log/css3/css3-gradient.html

2011年9月2日金曜日

WordPress the_excerptで文字数・文末の変更

wp-content/plugins/wp-multibyte-patchの中のwpmp-config-sample.phpをwpmp-config.phpにリネーム。
$wpmp_conf['excerpt_mblength'] = 110;を任意に変更。

function.php

文字数変更
function new_excerpt_mblength($length) {
return 20;
}
add_filter('excerpt_mblength', 'new_excerpt_mblength');

文末変更

function new_excerpt_more($more) {
return '.....';
}
add_filter('excerpt_more', 'new_excerpt_more');

wordpress TinyMCE Advancedのエディタ画面のスタイルのカスタマイズ

/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css

でスタイルを変更

/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css

331行目付近から「Formats」以下を変更
管理画面も変更可

2011年7月19日火曜日

MT で記事のないカテゴリーだけ表示させないようにする

<MTTopLevelCategories sort_by="user_custom">
<MTHasNoParentCategory>
<mt:SetVarBlock name="cat_cnt"><$MTCategoryCount$></mt:SetVarBlock>
<mt:If name="cat_cnt" ne="0">
<li><a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a></li>
</mt:If>
</MTHasNoParentCategory>
</MTTopLevelCategories>



<$MTCategoryCount$>が0じゃない場合( ne="0")で取得できる

2011年6月13日月曜日

MT CKEditorのスタイルの追加等の方法

MTのCKEditorをダウンロード


mt-static/plugins/CKEditor/style/config.js

{ name : 'line Title' , element : 'h2', styles : { 'background-image' : 'url("イメージパス")','background-repeat' : 'repeat-x','background-position' : 'top','margin-bottom' : '16px','font-size' : '224%','padding-top' : '30px','font-weight' : 'normal' } },


スタイルを書く

2011年2月10日木曜日

【VMware Fusion】windows画面でのCapsLockキーの解除

メモ

Macを使ってて、windowsをVMwareで起動させたとき、CapsLockキーがかかっててパスワードを入力できなかったです。

解除は

shift+英数

でした。

2011年1月26日水曜日

MovableType ウェブサイトURLと公開パス

メモ

引用元
http://communities.movabletype.jp/2010/09/url-1.html


ウェブサイトURLと公開パス

インストール先:http://xxx.jp/mt/
表示:http://xxx.jp/blog/
というブログを作りたいと考えています。

http://xxx.jp/mt/へインストールし、
インストール時の、ウェブサイトの作成で
http://www.movabletype.jp/documentation/mt5/websites/create.html

ウェブサイトURL:http://xxx.jp/
公開パス:/home/www/mt/

としました。
そして管理画面(http://xxx.jp/mt/mt.cgi)でブログを新規作成し、
ウェブサイトURL:http://xxx.jp/blog/
ウェブサイトパス:/home/www/mt/blog/
と設定しました。
管理画面からみても「http://xxx.jp/blog/」と記述されていますが、
アクセスすると404 Errorです。
CSSのパスも「http://xxx.jp/blog/」になっているのでデザインも反映されません。
なにかやり方を間違っているでしょうか?


>ウェブサイトURL:http://xxx.jp/
これにするなら
ウェブサイトパスは、
/home/www
にしないと。最後に「/」は付けません。

>ウェブサイトURL:http://xxx.jp/blog/
にするなら、
>ウェブサイトパス:/home/www/mt/blog/
でわなく、
/home/www/blog
にします。

2011年1月24日月曜日

【Mac】MAMP、VMware上で確認する

VMware上のwindows

WINDOWS/system32/drivers/etc

のhostsファイルを開いて

Mac側のIPアドレス mamp

(mampのところは任意)

http://mamp

でwindowsの方はアクセスすることが出来るようになります。

2010年11月29日月曜日

携帯サイト 罫線について

hrタグの表示が3キャリアで違う
ほぼ同じように表示するには

<hr size"1" style="width:100%;height:1px; margin:2px 0;padding:0;color:色指定;background:色指定;border:1px solid 色指定;" />

■spacer.gifをつかって1pxの線を表示

<div style="background-color:色指定;" />
<img src="spacer.gif" width="1" height="1" />
<br />
<div />

携帯サイト制作テンプレート

■iモード

<?xml version="1.0" encoding="Shift_JIS"?>
<!DOCTYPE html PUBLIC "-//i-mode group (ja)//DTD XHTML i-XHTML(Locale/Ver.=ja/2.3) 1.0//EN" "i-xhtml_4ja_10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
<head>
<meta equiv="Content-Type" content="application/xhtml+xml; charset=Shift_JIS">
<meta equiv="Content-Style-Type" content="text/css">
<meta equiv="pragma" content="no-cache">
<meta equiv="cache-control" content="no-cache">
<meta equiv="expires" content="-1">
<meta name="robots" content="index,follow">
<meta name="keywords" content="">
<meta name="description" content="">
<title>wagaco</title>
<style type="text/css">
<![CDATA[ a:link{} a:focus{} a:visited{} ]]>
</style>



■au(DOCTYPEが違います)

<!DOCTYPE html PUBLIC "-//OPENWAVE//DTD XHTML 1.0//EN" "http://www.openwave.com/DTD/xhtml-basic.dtd">

■SoftBank

<!DOCTYPE html PUBLIC "-//J-PHONE//DTD XHTML Basic 1.0 Plus//EN" "xhtml-basic10-plus.dtd">

2010年10月15日金曜日

illustrator CS5 遠近グリット

● 遠近グリッドツール(ショートカット)=Shift+P
● 解除(ショートカット)= Ctrl + Shift + I

利用方法
http://tv.adobe.com/jp/watch/learn-illustrator-cs5/6615/

2010年9月8日水曜日

CSS:プロパティの指定順序についてのメモ

.name {
/* 表示・配置に関する設定 */
display: ;
position: ;
top: ;
right: ;
bottom: ;
left: ;
z-index: ;
float: ;
clear: ;
overflow: ;
visibility: ;

/* 大きさ(ボックス)に関する設定 */
min-width: ;
width: ;
max-width: ;
min-height: ;
height: ;
max-height: ;
vertical-align: ;
margin: ;
padding: ;
border: ;

/* テキスト・背景に関する設定 */
color: ;
font-family: ;
font-style: ;
font-weight: ;
font-size: ;
text-indent: ;
text-align: ;
text-decoration: ;
letter-spacing: ;
line-height: ;
background: ;
}

2010年7月12日月曜日

WordPress3.0 page.phpのthe_content()が記事の投稿内容をとってきてしまう

page.phpを作成
ページの投稿内容を表示させるためpage.phpを下記のように作成

<?php
/**
honyarara
*/
get_header(); ?>
<?php get_sidebar(); ?>
<div id="page-container">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; endif; ?>
</div>
<?php get_footer(); ?>

こうすると、ページの投稿記事ではなく、投稿メニューの新規追加で投稿した記事の内容をとってきました。。


<?php
/**
honyarara
*/
get_header(); ?>
<div id="page-container">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>


<?php get_sidebar(); ?>の記述位置を変えたら、ちゃんとページの投稿記事を表示してくれました。
ちょっと詳細はワカラナイです。。

フォロワー