CONTENTS


Lastmodified 2013-11-14 (木) 10:06:36


Joomla 3.1.5>3.2.0 でCAPTCHAが消えた

https://groups.google.com/forum/#!searchin/recaptcha/CAPTCHA%7Csort:relevance/recaptcha/uXYQCmC9mTI/KXZZfoTKm7UJ

https://github.com/joomla/joomla-cms/pull/2436/files

plugins/captcha/recaptcha/recaptcha.php

*/ class PlgCaptchaRecaptcha extends JPlugin 
 { 
22 -  const RECAPTCHA_API_SERVER = "http://api.recaptcha.net"; 
22 +  const RECAPTCHA_API_SERVER = "http://www.google.com/recaptcha/api"; 
   const RECAPTCHA_API_SECURE_SERVER = "https://www.google.com/recaptcha/api"; 
   const RECAPTCHA_VERIFY_SERVER = "api-verify.recaptcha.net"; 

なおた( ´▽`)ノ

自動アップデート de error 2013/11/11

joomla_update_admin.PNG 管理画面に、こんな表示が出ていたので、今すぐにアップデートをポチしたら・・・

joomla_update_error.PNG こんなダイアログがでて、いつまで経ってもアップデートが終わる気配がなくて、

インジケータだけが、クルクルしている。ので、別の管理画面へ遷移しようとしたら、エラー・・・

Fatal error: Call to undefined method JAdministrator::execute() in /usr/local/www/joomla31/administrator/index.php on line 42

以後、管理画面にアクセス不可となった。ダイアログにあるファイルは、これ。

/usr/local/www/joomla31/administrator/templates/isis/css/tmplate.css

フォントのカスタマイズした際に書き換えを嫌って、root 666 にしていたので、アップデータが書き換えエラーで停止。アップデートが完了しないままで止まる。 結果、管理画面に再アクセス出来なくなる。ググって見るも、同様のエラーの情報は皆無。どうやら世界初のエラーだ。( ̄^ ̄)ゞ

ということで、一旦、バックアップ20131110の状態へもどし、chown -R www:www しる。

で、管理画面からアップデート。

joomla_update.png

joomla_update_complete.PNG

結果、各種カスタマイズは、デフォへと戻る。w

なんと、標準テンプレート?の、beez3 protostar system の三つも上書きされるっぽい。(ーー;)Σ(゚д゚lll)

管理画面のメイリオ化

/usr/local/www/joomla31/administrator/templates/isis/css/template.css 189行を

font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo UI", "MS Pゴシック", "MS PGothic", Osaka, sans-serif;

*【注意点】CSSファイルの文字コードは、UTF-8にすること!!

Site Favicon を変更

cp /usr/local/www/joomla31/templates/beez3/favicon.ico /usr/local/www/joomla31/templates/beez3/favicon.ico_dist
cp /usr/local/www/joomla31/templates/beez3/favicon_ni.ico /usr/local/www/joomla31/templates/beez3/favicon.ico

Site メイリオ化

Siteではbeez3を使用中で、デフォルトに戻ってしまったので、テンプレートのCSSを編集する。

layout.css

layout.cssの変更点は、冒頭付近の1箇所だけ、

body#shadow {
	font-family: arial,sans-serif
}

body#shadow {
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo UI", "MS Pゴシック", "MS PGothic", Osaka, sans-serif
}

と書き換えて、layout.css_meiryo 等として保存。

cp /usr/local/www/joomla31/templates/beez3/css/layout.css /usr/local/www/joomla31/templates/beez3/css/layout.css_dist
cp /usr/local/www/joomla31/templates/beez3/css/layout.css_meiryo /usr/local/www/joomla31/templates/beez3/css/layout.css 

nature.css

こちらも、layout.cssと同様に冒頭部分だけでよいが、行末に「;」があるので注意。編集後、文字コードを確認して、nature.css_meiryo とする。

cp /usr/local/www/joomla31/templates/beez3/css/nature.css /usr/local/www/joomla31/templates/beez3/css/nature.css_dist
cp /usr/local/www/joomla31/templates/beez3/css/nature.css_meiryo /usr/local/www/joomla31/templates/beez3/css/nature.css

print.css

同上

template_rtl.css

同上

*作業が終わったら、年の為に、次のUpdateにそなえて、 chown -R www:www joomla31 しておく、ヨロシ。

Protostarテンプレートの背景画像を設定する 2013年10月6日

テンプレート管理: ファイルの編集 「index.php」テンプレート内のファイル「protostar」の編集中です。

で、body.site を

  <style type="text/css">
    body.site
    {
      border-top: 3px solid <?php echo $this->params->get('templateColor');?>;
      background-color: <?php echo $this->params->get('templateBackgroundColor');?>;
      //background-image: url("images/NWH48/background.gif");?>;
background-image: url("http://www2.smb.net/NWH48/images/NWH48/background.gif");?>;

のように書き換える。// の行だと、トップ画面だけBG指定が効くが、それ以外に遷移するとBGが白紙になるので、絶対パスにする。

Protostarテンプレートのフォントをメイリオへ 2013年10月6日

テンプレート管理: ファイルの編集 「css/template.css」テンプレート内のファイル「protostar」の編集中です。

font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo UI", "MS Pゴシック", "MS PGothic", Osaka, sans-serif;

へ置換。3カ所。

ファイルアップロードサイズ

Joomlaのファイルアップロードサイズは、「メディア管理オプション」で設定する。例えば 10 MB とするが、それだけではダメ。

さらに、PHPの設定(デフォルトだと2MB)も変更。

OpenPNE 2.12 カスタマイズ(upload編)

phpの設定ファイル、/usr/local/etc/php.ini 無ければ、作るヨロシ。

[PHP]

; Maximum size of POST data that PHP will accept.
post_max_size = 12M
; Maximum allowed size for uploaded files.
upload_max_filesize = 10M

Beez3 テンプレートの「情報を開く」を非表示にする

Beez3テンプレートは、ユーザログインなどを「情報を開く」タブ?リンク?をクリックすることで表示します。この「情報を開く」を非表示してみます。

テンプレート管理: テンプレートのカスタマイズ メインページ用テンプレートの編集 を開きます。

最初の方にある、$showRightColumn の行をコメントアウトするヨロシ。

っていうのは過去のBeez3のようで、今(2013/10/16現在の最新版)だと、PHPのエラーが出ます。

従いまして、非表示にするには、テンプレートのソースのとおり、position-3, 6, 8 にモジュールを配置しないようにします。

// Check modules
$showRightColumn  = ($this->countModules('position-3') or $this->countModules('position-6') or $this->countModules('position-8'));
$showbottom      = ($this->countModules('position-9') or $this->countModules('position-10') or $this->countModules('position-11'));
$showleft      = ($this->countModules('position-4') or $this->countModules('position-7') or $this->countModules('position-5'));

if ($showRightColumn == 0 and $showleft == 0)
{
  $showno = 0;
}

JHtml::_('behavior.framework', true);

Joomla の エディタのフォントを入れ替えるよ!

Joomlaのコンテンツエディタに、定番のJCEをいれてるけど、使わないフォントばかり並んでて、使いたいフォントが入ってません。ということで、入れ替えます。

http://www.joomlacontenteditor.net/support/tutorials/editor/item/adding-and-removing-fonts

JCEの設定は、コントロールパネル>コンポーネント>JCE Editor>Control Panel

JCE_Font.png

Editor Profiles > Editor Parameters > Typography

JCE_Font2.PNG

Additional Fonts

メイリオ=メイリオ; meiryo=meiryo; meiryo UI=meiryo UI;

Remove Fonts

arial;andale mono;Arial Black;Book Antiqua;Comic Sans MS;Georgia;courier new;helvetica;impact;symbol;tahoma;terminal;trebuchet MS;verdana;webdings;wingdings;

Joomla の favicon.ico を入れ替えるよ!

http://ao-system.net/alphaicon/index.php

Joomlaのファビコンは何処にあるの?ってことで、

root@blackcube:/usr/local/www/joomla31 # grep favicon /usr/local/www/joomla31 -r

とかやってみたけど、結局は、Web表示させて、ソースを見ると・・・

<link href="/joomla/templates/beez3/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
<link href="/joomla/administrator/templates/isis/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />

と、書いてありました。w

Templateのfont-family

ports で入れた joomla3! のテンプレートは、

/usr/local/www/joomla31/templates/beez3

になります。で、フォントの設定を見てみると、

# grep font-family /usr/local/www/joomla31/templates/beez3 -r

/usr/local/www/joomla31/templates/beez3/css/layout.css: font-family: arial,sans-serif
/usr/local/www/joomla31/templates/beez3/css/layout.css: font-family: inherit;
/usr/local/www/joomla31/templates/beez3/css/nature.css: font-family: arial, helvetica, sans-serif;
/usr/local/www/joomla31/templates/beez3/css/print.css:  font-family:Arial, Verdana, Helvetica, sans-serif;
/usr/local/www/joomla31/templates/beez3/css/template_rtl.css:   font-family: 'Titillium Maps',  Arial;

という結果になります。 ということは、日本語フォントの設定は無いので、Webブラウザのデフォルトフォントで表示されると言うことになります。

Windows 7 の IE だと、「MS Pゴシック」で表示されることになります。

以下の様に指定します。

font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo UI", "MS Pゴシック", "MS PGothic", Osaka, sans-serif;

ただし、Joomla のコンパネから設定すると、font-family: の所が、fonfont-family: のように桁ズレをおこして、反映されなかったりするので、要チェック。(^_-)-☆

序でに、システム側のをみると、isis だと、

root@blackcube:/root/bin # grep font-family /usr/local/www/joomla31/administrator/templates -r
/usr/local/www/joomla31/administrator/templates/isis/html/editor_content.css:        font-family: Arial,sans-serif;
/usr/local/www/joomla31/administrator/templates/isis/html/editor_content.css:        font-family:Helvetica ,Arial,sans-serif;
/usr/local/www/joomla31/administrator/templates/isis/html/editor_content.css:        font-family: Arial, Helvetica,sans-serif;
/usr/local/www/joomla31/administrator/templates/isis/html/editor_content.css:  font-family: Helvetica,Arial,sans-serif;
/usr/local/www/joomla31/administrator/templates/isis/html/editor_content.css:        font-family: Arial, Helvetica, sans-serif;
/usr/local/www/joomla31/administrator/templates/isis/less/icomoon.less: font-family: 'IcoMoon';
/usr/local/www/joomla31/administrator/templates/isis/less/icomoon.less: font-family: 'IcoMoon';
/usr/local/www/joomla31/administrator/templates/isis/less/icomoon.less: font-family: 'IcoMoon';
/usr/local/www/joomla31/administrator/templates/isis/css/template.css:  fonfont-family: "Helvetica Neue", "磧磴礫礫", "Meiryo UI", Helvetica, Arial, sans-serif;
/usr/local/www/joomla31/administrator/templates/isis/css/template.css:  font-family: inherit;
/usr/local/www/joomla31/administrator/templates/isis/css/template.css:  font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
/usr/local/www/joomla31/administrator/templates/isis/css/template.css:  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
/usr/local/www/joomla31/administrator/templates/isis/css/template.css:  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
/usr/local/www/joomla31/administrator/templates/isis/css/template.css:  font-family: 'IcoMoon';
/usr/local/www/joomla31/administrator/templates/isis/css/template.css:  font-family: 'IcoMoon';
/usr/local/www/joomla31/administrator/templates/isis/css/template.css:  font-family: 'IcoMoon';

などがヒット。こちらも、フォントの指定をすれば、コントロールパネルのフォントが指定できるようです。

2013/10/15時点では、  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 

を、

font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo UI", "MS Pゴシック", "MS PGothic", Osaka, sans-serif;

へ置換して様子見中。

モジュール内部に書き込むHTMLソース

テンプレートで指定したフォント設定は、どうやら、モジュール内部に書き込んだHTMLでの表示にまでは効果が及ばないらしい。

そこで、モジュール内部のHTMLソースにもフォント指定が必要の模様。

<style type="text/css">
<!--
 body,td,th {font-family: "メイリオ", "Meiryo UI", "Helvetica Neue", Helvetica, Arial, sans-serif;}
-->
</style> 

JoomlaにJavaScriptを埋め込むよ!

http://www.fulldigit.net/content/view/73/28/

http://extensions.joomla.org/extensions/edition/custom-code-in-modules/5435/

http://joomla3.satoshis.com/index.php/extensions/20-extension/module.html

Joomlaを、専用ポートで表示するよ!

/usr/local/etc/apache22/extra/httpd-vhosts.conf

Listen 219.117.246.201:12345

#NameVirtualHost 219.117.246.201

<VirtualHost www.smb.net:12345>
ServerName www.smb.net
DocumentRoot /usr/local/www/
  Alias /joomla /usr/local/www/joomla31/
  AcceptPathInfo On
  <Directory /usr/local/www/joomla31>
      AllowOverride None
      Order Allow,Deny
      Allow from all
  </Directory>
</VirtualHost>

Joomlaを入れて見るよ!

http://demo.joomlashine.com/joomla-templates/jsn_gruve/pro/index.php

にJoomla!のインストール方法のPDFがありました。6個のステップでweb siteを構築する方法ですが画像が添付されています。

インストール方法などの紹介

http://www.joomladepon.com/   http://www.joomlaway.net/

YouTubeでは2.5系の説明があります。

http://www.youtube.com/watch?v=hpN-m6rwCZw

http://www.youtube.com/watch?v=nEPpCpRlvBQ

FreeBSD の Portsを探す

root@blackcube2:/root # locate joomla
/usr/ports/www/joomla15
/usr/ports/www/joomla25
/usr/ports/www/joomla31

ということなので、最新で

# portinstall www/joomla31

===>  Installing for joomla-3.1.1
===>   joomla-3.1.1 depends on file: /usr/local/include/php/main/php.h - found
===>   joomla-3.1.1 depends on file: /usr/local/lib/php/20100525/gd.so - found
===>   joomla-3.1.1 depends on file: /usr/local/lib/php/20100525/json.so - found
===>   joomla-3.1.1 depends on file: /usr/local/lib/php/20100525/mbstring.so - found
===>   joomla-3.1.1 depends on file: /usr/local/lib/php/20100525/mysql.so - found
===>   joomla-3.1.1 depends on file: /usr/local/lib/php/20100525/mysqli.so - found
===>   joomla-3.1.1 depends on file: /usr/local/lib/php/20100525/pdf.so - found
===>   joomla-3.1.1 depends on file: /usr/local/lib/php/20100525/session.so - found
===>   joomla-3.1.1 depends on file: /usr/local/lib/php/20100525/simplexml.so - found
===>   joomla-3.1.1 depends on file: /usr/local/lib/php/20100525/xml.so - found
===>   joomla-3.1.1 depends on file: /usr/local/lib/php/20100525/zip.so - found
===>   joomla-3.1.1 depends on file: /usr/local/lib/php/20100525/zlib.so - found
===>   joomla-3.1.1 depends on shared library: mysqlclient.18 - found
===>   Generating temporary packing list
================================================================================

 1) Add the following to your Apache configuration, and restart the server:

  ### Add the AcceptPathInfo directive only for Apache 2.0.30 or later.
  Alias /joomla /usr/local/www/joomla31/
  AcceptPathInfo On
  <Directory /usr/local/www/joomla31>
      AllowOverride None
      Order Allow,Deny
      Allow from all
  </Directory>

 2) Visit your Joomla site with a browser (i.e. http://your.server.com/joomla/),
    and you should be taken to the install.php script, which will lead you
    through creating a config.php file and then setting up Joomla, creating
    an admin account, etc.


 3) As of 2.5.5, php5-mysqli and php5-zip are installed. Use of mysqli for mysql
    is recommended over mysql.

================================================================================
===>   Registering installation for joomla-3.1.1
http;//wibserver_name/joomla

http://piano2nd.smb.net/joomla/administrator/


Total access 7543:本日 3:昨日 45

Counter: 7543, today: 3, yesterday: 45

添付ファイル: filejoomla_update_complete.PNG 771件 [詳細] filejoomla_update.png 810件 [詳細] filejoomla_update_error.PNG 798件 [詳細] filejoomla_update_admin.PNG 759件 [詳細] fileJCE_Font2.PNG 950件 [詳細] fileJCE_Font.png 904件 [詳細] filemod_dchtml.zip 433件 [詳細] fileJoomla3.0MadeEasy.pdf 1018件 [詳細]

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2013-11-14 (木) 10:06:36