Friday, July 11, 2008

  [Label Widget] Tạo nút Preview "các bài mới nhất" cho mỗi label

Bạn thân mến, chắc hẳn bạn đã biết Label widget là gì, cách tạotrang trí nó như thế nào. Với Label Widget, ta có thể biết được trong blog có những chuyên mục nào, mỗi mục có bao nhiêu bài viết. Khi ta click vào mỗi nhãn trong widget, thì blogger sẽ hiện tất cả các bài có cùng chuyên mục. Số bài mặc định khi mở Label tối đa là 20 bài, đôi khi con số này là quá to và ta phải giới hạn số bài đó bằng biến max-results. Đó là những thao tác căn bản với Label Widget mà trước đây tôi đã đề cập.

Hôm nay xin giới thiệu với các bạn một thủ thuật mới, làm cho widget trở nên linh động và giúp người đọc dễ duyệt blog hơn. Đó là ta sẽ thêm nút Preview vào sau mỗi nhãn, để khi người đọc click vào đó, widget sẽ load về các bài mới nhất của nhãn và người đọc có thể đỡ mất công tải về cả 1 trang "Label Page" nếu muốn cập nhật bài mới của Label. (bạn hãy bấm vào đây để xem nó như thế nào nhé)

Bạn xem hình ví dụ:



Mỗi nhãn đều có dấu tam giác theo sau. Khi click vào đó sẽ hiện ra các bài mới nhất ngay bên dưới nhãn đó.



Sau đây là cách cài đặt.

Hãy chắc chắn rằng bạn đã tạo 1 Label Widget.

Bạn vào Edit HTML, không mở "Expand Widget Templates", tìm dòng

<b:widget id='Label1' locked='false' title='Labels' type='Label'/>

(hình

)

và thay nó bằng đoạn CODE sau:


<b:widget id='Label1' locked='false' title='Labels' type='Label'>
<b:includable id='main'>
<script type='text/javascript'>
home_page = &quot;http://www.vietwebguide.com/&quot;;
max_rc_posts = 10;

</script>
<script src='http://vietwebguide2.googlepages.com/show_prev_item_in_label_v10.js' type='text/javascript'/>
<b:if cond='data:title'>
<h2><data:title/></h2>
</b:if>
<div class='widget-content'>
<ul>
<b:loop values='data:labels' var='label'>
<li>
<b:if cond='data:blog.url == data:label.url'>
<span expr:dir='data:blog.languageDirection'>
<data:label.name/> <span dir='ltr'>(<data:label.count/>)</span> <a expr:onclick='&quot;showPostLabel(\&quot;&quot;
+ data:label.name + &quot;\&quot;,event)&quot;' href='javascript:void(0)'>&#9658;</a>
</span>
<b:else/>
<a expr:dir='data:blog.languageDirection' expr:href='data:label.url'><data:label.name/></a>
<span dir='ltr'>(<data:label.count/>)</span> <a expr:onclick='&quot;showPostLabel(\&quot;&quot;
+ data:label.name + &quot;\&quot;,event)&quot;' href='javascript:void(0)'>&#9658;</a>
</b:if>
</li>
</b:loop>
</ul>
</div>
</b:includable>
</b:widget>


Hãy lưu ý các dòng màu đỏ, chỗ đó bạn cần khai báo địa chỉ blog và số bài muốn hiện cho mỗi Label.

Anhvo

Labels:

  Blogger Comment Form: niềm đau đã qua

Đối với các blogger sử dụng Blog*Spot mà nói, nỗi đau lớn nhất chắc có lẽ là sự thiếu vắng Comment Form trong bài viết. Comment Form là 1 Form trong đó người đọc có thể ghi lời bình hoặc nhận xét của mình về bài viết, thế nhưng BlogSpot không hỗ trợ. Điều này làm cho BlogSpot trở nên thua kém đối với các platform blog khác như Wordpress, LiveJournal, Joomla,... Sự thiếu vắng Comment Form làm cho người dùng trăn trở, liệu có nên sử dụng BlogSpot hay là không, và ít nhiều trong số họ đã không lựa chọn BlogSpot cũng vì lý do này.

Thấy được nhược điểm đó, Blogger BlogSpot không ngừng phát triển để có thể sánh vai (và sẽ qua mặt) với các blog platform kể trên. BlogSpot hiện phát triển theo từng ngày và đến hôm nay đã thêm Comment Form vào cuối bài viết, đó là 1 bước đi rất đột phá nhằm thu hút người sử dụng, và cũng làm cho "nỗi đau" của những người đang sử dụng qua đi.

Comment Form hiện thời đã tự động thêm vào cho các blogger mới tạo. Nếu như bạn đã có 1 blog từ lâu, template đã qua nhiều lần chỉnh sửa thì Comment Form không tự động hiện lên được. Không sao! Bài viết này nội dung cốt lõi là hướng dẫn bạn cách chèn Comment Form vào cuối bài mà.

Đây là hình ảnh mới nhất của Blogger Comment Form:


(ảnh từ: infoteksite.com)


Nào, bắt tay vào thôi. Đầu tiên, bạn hãy kiểm soát Dashboard của bạn ở địa chỉ nháp (http://draft.blogger.com), sau đó chọn Settings của blog muốn hiện Comment Form. Đường dẫn:

Settings - Comment - Comment Form Placement,

bạn chọn Embedded below post và Save Setting lại.

Bước 2 là bước thêm code vào template.

1. Đối với Template Layout

(Mục này tôi tham khảo từ Infoteksite, bạn có thể vào đấy mà đọc lại bản gốc.)

Vào Template -> Edit HTML, chọn Expand Widget Template,

Tìm đoạn code sau:


<p class='comment-footer'> <b:if cond='data:post.allowComments'><a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><data:postCommentMsg/></a> </b:if> </p>


Thay thế toàn bộ nó bằng code sau:


<p class='comment-footer'><b:if cond='data:post.embedCommentForm'><b:include data='post' name='comment-form'/><b:else/> <b:if cond='data:post.allowComments'><a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><data:postCommentMsg/></a></b:if> </b:if> </p>


Save template lại là xong đấy.

2. Đối với Template Classic

Bạn chỉ cần cho đoạn mã này:

<p class="comment-timestamp" align="center"><$BlogItemCreate$></p>

vào trên thẻ đóng

</BlogItemCommentsEnabled>

là xong!

Anhvo

Labels:

Thursday, July 10, 2008

  Five-day gains boost investor confidence

VietNamNet Bridge – It was another bright week on the Vietnamese stock exchanges following five-straight days of gains, which further buoyed investor confidence in the local bourses.

It was another bright week on the Vietnamese stock exchanges following five-straight days of gains, which further buoyed investor confidence in the local bourses.

The VN-Index on Friday ended the week at 439.68, representing an increase of 11.99 per cent or 47.07 points since the Monday session.

Trading volume hovered at 56 million shares with a turnover of VND1.47 trillion (US$89.09 million), of which Sai Gon Thuong Tin Commercial Bank (Sacombank)'s STB stock contributed the lion's share.

A total of 8.49 million STB shares changed hands, representing 16.91 percent of the market's trading volume last week.

Furthermore, certificates from the Prudential Balanced Fund (coded PRUBF1), were also heavily traded last week with 1.59 million changing hands.

Investors also paid attention to other blue chips such as Vinamilk (VNM) and Hau Giang Pharmaceuticals (DHG). However demand outstripped supply, with a number of investors choosing to hold onto their blue chip shares to earn greater profit when the VN-Index rises further.

As a result, thwarted traders were forced to direct their money into small and mid caps, which resulted in most stocks gaining.

"What we can see in our market this week was the eagerness of investors to trade again in securities, against gold and property. They may see safety in securities at this time although supporting macro-economic factors cannot help much," an analyst at Golden Lotus Securities, who preferred not to be named, said.

Furthermore, traders were reassured by Government moves to stabilise the market and continued to invest, the analyst noted.

He added that strong purchasing by local investors helped to shield local bourses from the kind of fluctuations seen in exchanges around the world.

Unlike local investors, foreign traders were quiet last week. FPT Securities showed that most of the international activity centre around DHG, VNM and ITA of Tan Tao lndustrial Parks.

VNM gained 14.56 per cent to rise to VND118,000 on Friday, when ITA rose 13.87 per cent to VND98,500.

"Attention in these stocks is understandable. What happened in other stock markets worldwide is quite bad, and foreigners understood that stocks in health care and consumer goods are defensive at this time," Dao Van Khanh, an analyst at Agribank Securities, said.

He noted that this sector was adjusting their portfolios, and said that he expects future trading to be more cautious than usual.

According to FPT Securities, this week could see further upward movement in the VN-Index, thanks to positive signs from the Government to curb inflation, as well as stabilisation in the general market.

However, gains are expected to be shortlived because of the complicated global economic situation that has been partially impacting on local firms, the brokerage added.

In Hanoi, the HASTC-Index rallied in the four sessions since July 1, which resulted in the index ending at 125.55.

This represents an increase of 11.42 per cent or 12.87 points for the whole week.

Trading volume reached 38 million shares, posting a revenue of VND475.25 billion ($28.80 million). Asia Commercial Bank blue chips and Kim Long Securities were the heaviest-traded stocks last week, with an estimating volume of 2.5 million shares.

(Source: Viet Nam News)

Labels:

Wednesday, July 9, 2008

  Commercial banks permitted to join bond trading

VietNamNet Bridge – The Ministry of Finance has issued a regulation on Government bonds trading, providing Ha Noi Securities Trading Centre with a legal framework to manage its project of concentrating the market for trading Government bonds.

Earlier this year, the government allowed the Ha Noi centre to operate the concentrated market for Government bonds trading, under the same technical system as the current securities trading market.

Under the regulation, brokerages are the main target for this market, carrying out all trading services. Meanwhile, commercial banks are seen as special target.

The banks with only Viet Nam Securities Depository members must have permission from the State Bank to trade in Government bonds, the regulation said.

After obtaining permission, the banks may only do institutional trading.

"The regulation will create a transparent mechanism for market members doing bond trading," an anonymous official from the Ha Noi centre said, noting that securities firms themselves had become accustomed to trading services rather than utilising commercial banks.

That's why brokerages were the major drivers of the trade, he added.

The regulation also stipulated that bond trade - by auctioning or repossessing - must occur in a face-to-face exchange or via a technical system that the Ha Noi centre is using for the securities trading market.

The securities firms must first ink deal with clients to broker government bonds, and will ensure profit by offering an equal or lesser amount to that listed.

Earlier this year, the government allowed the Ha Noi centre to operate the concentrated market for Government bonds trading, under the same technical system as the current securities trading market. Building a legal framework for this market is a crucial part of the project.

Presently, around 500 different kinds of Government bonds change hands at the Ha Noi Centre. Some 275 of these have been moved from the HCM City Stock Exchange since June 2.

Government bonds are regarded as an effective channel of capital mobilisation, besides the equity market.

According to the centre's data, the average trading value of Government bonds was VND325 billion ($19.7 million) per tranche in the first five months of this year.

Recently, the US Treasury pledged to provide Vietnam with technical assistance in managing and issuing Government bonds, as well in establishing a secondary market for Government bonds.

(Source: Viet Nam News)

Labels:

Tuesday, July 8, 2008

  Ai về có ghé sông Hương, hỏi thăm cô gái có còn nhớ thương

Ai về có ghé sông Hương, hỏi thăm cô gái có còn nhớ thương

  US$ price slightly increases on black market

VietNamNet Bridge – The dollar price has unexpectedly recovered after two weeks of falling down. The dollar had been decreasing continuously in price from June 20 to July 4 before unexpectedly increasing to VND17,350/US$1 on July 6 in the afternoon. The dollar remains a mystery.

Analysts have every reason to believe that people’s psychology plays an important role in defining the VND/$US$ exchange rate. After the government announced it would widen the daily forex trading band to +/-1% on March 10, 2008, people expected that the VND would further devaluate.

At that time, continued price increases and high interest rates, high trade deficit and rumours about the removal of the petroleum price subsidisation and about national foreign currency reserves all eroded people’s confidence in the local currency. That explains why people rushed to buy dollars: they wanted to protect their assets.

However, the people’s psychology, once again, showed its role in stabilising the market. Right after the government and State Bank of Vietnam announced good information about foreign currency reserves and committed to take strong measures to curb inflation, confidence in the local currency was restored, and people stopped rushing to buy dollars.

Explaining the dollar price decreases in the last time, analysts say that information about the conflict in the Middle East, which may lead to further oil price increases, has made Vietnamese individual investors rush to inject money in gold instead of holding dollars. Moreover, as the stock market has warmed up, capital now tends to flow into the stock market, which has resulted in a lower demand for the dollar and dollar price decreases.

However, how the dollar will perform in the future remains a question. There are two contradictory arguments about the dollar price tendency.

Some experts believe that the government will let the VND revaluate in order to minimise the impacts of inflation. The experts argue that Vietnam still has to import 90% of materials for making products for export. Foreign capital keeps inflowing into Vietnam, which will make the dollar supply profuse.

Meanwhile, some others believe that the government will further devaluate the VND to encourage exports and limit imports. They believe that the ideal exchange rate would be VND17,000/US$1, while the forex daily trading band should be +/-2%.

Source: Vietnamnet

Labels:

  State Bank says successful in easing monetary fears

VietNamNet Bridge - Interest rates and foreign-currency exchange-rate concerns in the market have been eased thanks to a series of measures taken by the State Bank of Viet Nam to stabilise the country’s monetary market.

According to statistics released by the State Bank of Viet Nam (SBV), interest rates for deposits in dong issued by State-owned commercial banks last week hovered around 17-18 per cent per year, and those issued by joint stock commercial banks stayed at 18-18.5 per cent per year.

The rates offered by commercial banks in the first week of the month are more realistic than those offered at the end of June. The record high deposit interest-rate of 20 per cent per year dropped to 19 per cent per year.

The interest rate for dong loans with less-than-one-week periods in the inter-bank market last week was also decreased. The overnight interest rate is now at 17.43 per cent per year and the rate for one week loans is at 19.85 per cent per year. However, interest rate for two-week deposits underwent a slight increase, reaching 20.59 per cent per year.

The State bank also said that performance in the foreign exchange market was increasingly better matched to actual supply and demand in the market after the SBV decision to double the daily trading band for US$/VND exchange rate to +/-2 per cent against the inter-bank rate. The State Bank Governor’s regulations to correct foreign currency trading activities have been issued and put into effect.

On July 2, the VND/US$ exchange rate among commercial banks varied from 16,840 to 16,848, 1.35 per cent higher than that offered before the decision was made. The exchange rate in the free market on the same day was between 17,400-17,550, a decrease of 2.25 per cent.

According to economic experts, the SBV’s decision to supervise and check commercial banks issuing high deposit interest rates means that dong deposit interest rates in the market will be adjusted suitably, ensuring the safety of the banking system.

Related agencies under the State Bank were asked to closely follow performance in the interest rate market to achieve two goals. Fisrtly to ensure that penalties are implemented in the event commercial banks increase the real cost of loans, and secondly, to ensure enough capital for business and production, especially demand for export and agricultural production.

The SBV affirmed that the public would be timely informed of the bank’s measures to manage the country’s banking system, especially information related to interest rates, exchange rates and foreign currency management.

However measures to curb inflation now will definitely have side-effects in the middle term which explains the economy’s shortage of capital due to tightening monetary policies. In the future, many enterprises will face financial difficulties and will have to narrow production scales.

Another middle-term difficulty is that the world’s economy is in free-fall. Crude oil prices continue to increase, breaking record after record, which will create even heavier inflation pressure than in the first six months of the year. Exports numbers will struggle to rise as expected and the stock market will probably not prosper.

The Government’s cutting in public investment and State-owned enterprises’ delaying of projects, though hailed as good and drastic solutions, will lead to difficulties in employment in local and foreign-invested enterprises.

(Source: VNS)

Labels:

Monday, July 7, 2008

  RSS

VietWebGuide.com RSS