<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>D.A.C.S.I.T - Web &#187; Tùy biến hay</title>
	<atom:link href="http://thietkeweb.dacsit.com/tag/tuy-bien-hay/feed" rel="self" type="application/rss+xml" />
	<link>http://thietkeweb.dacsit.com</link>
	<description>Thiết kế web, Ảnh đẹp, Wordpress, Joomla, Template, Theme, Thủ thuật ...</description>
	<lastBuildDate>Tue, 20 Apr 2010 16:36:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Tùy biến các trang thông báo lỗi</title>
		<link>http://thietkeweb.dacsit.com/2009/11/tuy-bien-cac-trang-thong-bao-loi.html</link>
		<comments>http://thietkeweb.dacsit.com/2009/11/tuy-bien-cac-trang-thong-bao-loi.html#comments</comments>
		<pubDate>Sat, 07 Nov 2009 02:49:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Tùy biến hay]]></category>

		<guid isPermaLink="false">http://thietkeweb.dacsit.com/?p=58</guid>
		<description><![CDATA[Joomla! sử dụng file [Joomla]/templates/system/error.php để hiển thị thông báo về các lỗi HTTP chẳng hạn như &#8220;lỗi cấm truy cập&#8221; (403 Forbidden), &#8220;lỗi không tìm thấy&#8221; (404 Not Found), [...]]]></description>
			<content:encoded><![CDATA[<p>Joomla! sử dụng file <strong>[Joomla]/templates/system/error.php</strong> để hiển thị thông báo về các lỗi HTTP chẳng hạn như &#8220;lỗi cấm truy cập&#8221; (403 Forbidden), &#8220;lỗi không tìm thấy&#8221; (404 Not Found), &#8220;lỗi máy chủ&#8221; (500 Internal Servers). Tuy nhiên file này hoàn toàn độc lập với Joomla!. Do vậy bạn không thể chạy các plugin hay gắn các module trên file này. Vì vậy để tùy biến mà không phải hack vào file này chúng ta làm như sau:</p>
<p style="text-align: center;">
<div class="wp-caption aligncenter" style="width: 210px"><img title="Trang báo lỗi hay" src="http://vinaora.com/joomla/xmedia/images/2009/03/16.404.png" alt="Trang báo lỗi hay" width="200" height="193" /><p class="wp-caption-text">Trang báo lỗi hay</p></div>
<h2>Thay đổi các thông báo lỗi</h2>
<p align="justify">Để thay đổi các thông báo lỗi, copy file <strong>[Joomla]/templates/system/error.php</strong> vào thư mục template của bạn (VD: [Joomla]/templates/vinaora_template). Khi đó Joomla sẽ sử dụng file &#8220;<strong>error.php&#8221;</strong> trong template của bạn thay vì file &#8220;<strong>error.php&#8221;</strong> trong thư mục /system ở trên. Bạn có thể định dạng hoặc tùy biến file này sao cho nó phù hợp với yêu cầu của bạn.</p>
<h3>Copy file &#8220;<strong>error.php</strong>&#8221; trong thư mục <strong>&#8220;system</strong>&#8220;</h3>
<pre>[Joomla]
|-------/templates
|-----------------/system
|------------------------/error.php</pre>
<h3>Chuyển tới thư mục chứa template của bạn</h3>
<pre>[Joomla]
|-------/templates
|-----------------/vinaora_template
|---------------------------------/error.php</pre>
<div><img title="Trang báo lỗi 404 mặc định" src="xmedia/images/2009/03/16.404.error.png" alt="Trang báo lỗi 404 mặc định" /></div>
<div><em>Trang báo lỗi 404 mặc định của Joomla! </em></div>
<h2>Thay đổi định dạng, kiểu dáng của thông báo lỗi</h2>
<p align="justify">Nếu bạn muốn thay đổi định dạng, kiểu dáng của các thông báo lỗi thì copy file  <strong>[Joomla]/templates/system/error.css</strong> vào thư mục template của bạn (VD: [Joomla]/templates/vinaora_template).</p>
<h3>Copy file &#8220;<strong>error.css</strong>&#8221; trong thư mục <strong>&#8220;system</strong>&#8220;</h3>
<pre>[Joomla]
|-------/templates
|-----------------/system
|------------------------/error.css</pre>
<h3>Chuyển tới thư mục chứa template của bạn</h3>
<pre>[Joomla]
|-------/templates
|-----------------/vinaora_template
|---------------------------------/error.css</pre>
<p>Tiếp theo, cập nhật lại file &#8220;<strong>error.php</strong>&#8221; ở trên sao cho nó nhận file css mới bằng cách chèn đoạn mã sau:</p>
<pre>&lt;link rel="stylesheet" href="&lt;?php echo $this-&gt;baseurl; ?&gt;
/templates/vinaora_template/css/error.css" type="text/css" /&gt;</pre>
<p>Rồi thì thay đổi file &#8220;<strong>error.css&#8221;</strong> theo yêu cầu của bạn.</p>
<p>Nhớ thay <strong>&#8220;vinaora_template</strong>&#8221; bằng tên template mà bạn đang sử dụng</p>
]]></content:encoded>
			<wfw:commentRss>http://thietkeweb.dacsit.com/2009/11/tuy-bien-cac-trang-thong-bao-loi.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
