CONTENTS


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


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

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

<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" />
root@blackcube:/usr/local/www/joomla31 # grep favicon /usr/local/www/joomla31 -r
/usr/local/www/joomla31/administrator/templates/isis/templateDetails.xml:               <filename>favicon.ico</filename>
/usr/local/www/joomla31/administrator/templates/isis/error.php: <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
/usr/local/www/joomla31/administrator/templates/hathor/templateDetails.xml:             <filename>favicon.ico</filename>
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:       * @var string Web-accessible path to the handler_favicon.php file.
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:       * @see SimplePie::set_favicon_handler()
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:      var $favicon_handler = '';
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:       * Set the handler to enable the display of cached favicons.
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:       * @param str $page Web-accessible path to the handler_favicon.php file.
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:      function set_favicon_handler($page = false, $qs = 'i')
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:                      $this->favicon_handler = $page . '?' . $qs . '=';
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:                      $this->favicon_handler = '';
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:       * Returns the URL for the favicon of the feed's website.
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:      function get_favicon()
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:                      $favicon = SimplePie_Misc::absolutize_url('/favicon.ico', $url);
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:                      if ($this->cache && $this->favicon_handler)
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:                              $favicon_filename = call_user_func($this->cache_name_function, $favicon);
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:                              $cache = call_user_func(array($this->cache_class, 'create'), $this->cache_location, $favicon_filename, 'spi');
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:                                      return $this->sanitize($this->favicon_handler . $favicon_filename, SIMPLEPIE_CONSTRUCT_IRI);
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:                                      $file = new $this->file_class($favicon, $this->timeout / 10, 5, array('X-FORWARDED-FOR' => $_SERVER['REMOTE_ADDR']), $this->useragent, $this->force_fsockopen);
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:                                                              return $this->sanitize($this->favicon_handler . $favicon_filename, SIMPLEPIE_CONSTRUCT_IRI);
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:                                                              return $this->sanitize($favicon, SIMPLEPIE_CONSTRUCT_IRI);
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:                              return $this->sanitize($favicon, SIMPLEPIE_CONSTRUCT_IRI);
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:       * This is most useful for caching images (get_favicon(), etc.),
/usr/local/www/joomla31/libraries/simplepie/simplepie.php:       * @see SimplePie::get_favicon()
/usr/local/www/joomla31/libraries/joomla/document/opensearch/opensearch.php:            // Add the favicon as the default image
/usr/local/www/joomla31/libraries/joomla/document/opensearch/opensearch.php:            // Try to find a favicon by checking the template and root folder
/usr/local/www/joomla31/libraries/joomla/document/opensearch/opensearch.php:                    if (file_exists($dir . '/favicon.ico'))
/usr/local/www/joomla31/libraries/joomla/document/opensearch/opensearch.php:                            $favicon = new JOpenSearchImage;
/usr/local/www/joomla31/libraries/joomla/document/opensearch/opensearch.php:                            $favicon->data = JUri::base() . $path . '/favicon.ico';
/usr/local/www/joomla31/libraries/joomla/document/opensearch/opensearch.php:                            $favicon->height = '16';
/usr/local/www/joomla31/libraries/joomla/document/opensearch/opensearch.php:                            $favicon->width = '16';
/usr/local/www/joomla31/libraries/joomla/document/opensearch/opensearch.php:                            $favicon->type = 'image/vnd.microsoft.icon';
/usr/local/www/joomla31/libraries/joomla/document/opensearch/opensearch.php:                            $this->addImage($favicon);
/usr/local/www/joomla31/libraries/joomla/document/html/html.php:         * Adds a shortcut icon (favicon)
/usr/local/www/joomla31/libraries/joomla/document/html/html.php:                // Try to find a favicon by checking the template and root folder
/usr/local/www/joomla31/libraries/joomla/document/html/html.php:                        $icon = $dir . 'favicon.ico';
/usr/local/www/joomla31/libraries/joomla/document/html/html.php:                                $this->addFavicon(JUri::base(true) . '/' . $path . 'favicon.ico');
/usr/local/www/joomla31/templates/beez5/templateDetails.xml:            <filename>favicon.ico</filename>
/usr/local/www/joomla31/templates/protostar/error.php:  <link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
/usr/local/www/joomla31/templates/protostar/templateDetails.xml:                <filename>favicon.ico</filename>
/usr/local/www/joomla31/templates/beez4/templateDetails.xml:            <filename>favicon.ico</filename>
/usr/local/www/joomla31/templates/beez3/templateDetails.xml:            <filename>favicon.ico</filename>
root@blackcube:/usr/local/www/joomla31 #

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;

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

# grep font-family /usr/local/www/joomla31/templates/ -r
 
/usr/local/www/joomla31/templates/system/css/editor.css:        font-family: Tahoma,Helvetica,Arial,sans-serif;
/usr/local/www/joomla31/templates/system/css/editor.css:        font-family:Helvetica ,Arial,sans-serif;
/usr/local/www/joomla31/templates/system/css/editor.css:        font-family: Arial, Helvetica,sans-serif;
/usr/local/www/joomla31/templates/system/css/editor.css:  font-family: Helvetica,Arial,sans-serif;
/usr/local/www/joomla31/templates/system/css/editor.css:        font-family: Arial, Helvetica, sans-serif;
/usr/local/www/joomla31/templates/system/css/error.css: font-family: helvetica, arial, sans-serif;
/usr/local/www/joomla31/templates/system/css/error.css: font-family: helvetica, arial, sans-serif;
/usr/local/www/joomla31/templates/system/css/error.css: font-family: helvetica, arial, sans-serif;
/usr/local/www/joomla31/templates/system/css/offline.css:       font-family: Arial, Helvetica, Sans Serif; font-size: 78%;

と、ワラワラとでてきますが、使用中のISISテンプレートの「css/template.css」の190行目あたりの、

body {
  margin: 0;
  font-family: "Helvetica Neue", "メイリオ", "Meiryo UI", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 18px;
  color: #333;
  background-color: #fff;
}
a {

フォントの指定をすれば、コントロールパネルのフォントが指定できるようです。

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 7774:本日 1:昨日 0

Counter: 7774, today: 1, yesterday: 0

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS