Posts Tagged ‘ Làm blog ’

Theme Tây Du Kí

[CODE]#ygmatop, #ygmabot, .blog_dummyselect {display:none;} yahootop{} .ygmabg{} #ygma{} #ygmatop{background:none;color:#FFF;height:0px;} #ygmatop a{color:#FFF;} .yuimenubar {padding:345px 0px 0px 150px;} Timkiem{} .ysearch{display:none;} #blogsearch{display:none;} #ygmabot{display:none;} Button{} .yuimenubar, .yuimenubar .hd, .yuimenubarnav .yuimenubaritem, .yuimenubaritemlabel {background:transparent;border-style:none;} #ygma{padding:0px 0px 0px 0px;}.yuimenubarnav .yuimenubaritem{border-right:none;}#blogsearch {display:none!important;}#blast .rc_hd, #blasr .rc_bd, #blast .rc_ft{background:transparent!important;} #ygmatop, #ygmasrchquery, #ygmabot, #ygma .blogsrch .ipt, .blog_dummyselect .hd span, .blog_dummyselect .hd, .yuimenubar .hd u, .yuimenubar .hd b, .yuimenubar .hd i, .yuimenubarnav .yuimenubaritem {background:transparent !important;border-color:#FFF;color:#FFF;} .yuimenubarnav .yuimenubaritem, .yuimenubaritemlabel {border-style:none;} #ygma .btn, #ygma .btn .first-child{border-color:#FFF;} #ygmatop a, .ygmabg{} #ygma{color:#FFF;} .yuimenubarnav .yuimenubaritem {border-right:1px;border-color:#FFF;} .yuimenubar .bd ul.first-of-type #yui-gen0.yuimenubaritem-selected .yuimenubaritemlabel, .yuimenubarnav .yuimenubaritem-selected .yuimenubaritemlabel{background:transparent;color:#FFF;} .yuimenuitemlabel {} .blog_dummyselect .bd div, .blog_dummyselect .bd, .yuimenu .bd {background:transparent url(http://i1215.photobucket.com/albums/cc520/hades2300/123oy.gif);} {background:transparent;border-style:none;} #blast .rc_hd, #blast .rc_hd div, #blast .rc_bd, #blast .rc_bc, #blast .rc_ft, #blast .rc_ft div, #blast .rc_bc .bd, #blast .tail {background:transparent;border-style:none;height:30px;} #blog_title{display:none;} #blast .rc_bc .bd {font-weight:bold;font-style:italic;font-size:100%;text-decoration:blink;} .mod-alist .rc_bd .bd .more-posts .mod-alist-manage ul li, .mod-alist .rc_bd .bd .more-posts .folder-icons .icon ul li {background:none;} .backhome .cta-ss strong{background:transparent !important;} .backhome .cta-ss em, .backhome .cta-ss strong{font-size:0;} #article_list_module .rc_bd {background:transparent;} .pagination {background:transparent;} .col-600 .rc_bd .rc_bc .hd .titlebar, .row-920 .rc_bd .rc_bc .hd .titlebar, .row-760 .rc_bd .rc_bc .hd .titlebar {background:transparent;} #article_list_module .rc_ft {background:transparent;} #comment_container * a {color:#FE0101;}#comment_container * .content {color:#302D1B;}#comments-listing * ins {color:#B10808;} .cmt-mod-alist .comments-listing .hd, .cmt-mod-alist .comments-listing .bd{background:transparent !important;} .cmt-mod-alist .comments-listing .hd, .mod-trackback #trackback-listing, .mod-trackback ul {background:transparent;border-style:none;} .cmt-mod-alist .comments-listing .bd, .mod-trackback .bd{background:transparent !important;} #comment_new .bd ul li cite {font-size:0;} .cmt-mod-alist #comments-listing .extend-hd, .cmt-mod-alist #comments-listing .extend-bd .alist-comment, #comment_container ul, #comment_container li, .multi-delete input.btn, .rte_toolbar{background:transparent;} .rte_btn img{} .rte_toolbar {text-align:center;} a:hover{background:transparent url(http://i1215.photobucket.com/albums/cc520/hades2300/1-334292-2.gif) center;font-weight:bold;text-shadow:0px 0px 10px #07FC38;color:#07FC38;} #article_new li{background:transparent url(http://i1115.photobucket.com/albums/k552/hades1800/iconnhac.gif) no-repeat top left;} #folder li{background:transparent url(http://i646.photobucket.com/albums/uu185/vanhoai1111/th_57.gif) no-repeat center left;} .mod_all .rc_bd .bd ul.folder li{background:transparent url(http://i1215.photobucket.com/albums/cc520/hades2300/6e1fc1da.gif) no-repeat top left;} #profile_card .bd dl dt{background:transparent url(http://i1215.photobucket.com/albums/cc520/hades2300/6e1fc1da.gif) no-repeat top left;text-align:center;} .yui3-menuitem-content{padding:0 0.5em 0 1.5em;background:transparent url(http://i1215.photobucket.com/albums/cc520/hades2300/lua.gif) no-repeat left top;} #user_mod_10001 h2{display:none;} #user_mod_10002 h2{display:none;} #user_mod_10003 h2{display:none;} #user_mod_10004 h2{display:none;} #user_mod_10005 h2{display:none;} #user_mod_10006 h2{display:none;} #user_mod_10007 h2{display:none;} #user_mod_10008 h2{display:none;} #user_mod_10009 h2{display:none;} #user_mod_10010 h2{display:none;} .mod-alist .rc_bd .bd .more-posts ul li{background:transparent no-repeat bottom center;border-style:none;} .mod-alist-summary-bd .thumbnail img { height:142px;width:142px;} #ysm_bottom, .ysm_line{display:none;} #profile_highlight .backhome {padding:0;background:none;} #profile_highlight .nickname a{background:transparent;font-weight:normal;font-size:100%;font-weight:bold;font-family:segoe print, Times;text-shadow:0 0 10px;} #profile_highlight #profile_nav .yui3-menu ul.first-of-type{padding:10px 0 0 0;} #profile_highlight #profilemorelinks .yui3-menu-content{background:transparent;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-top-style:ridge;border-right-style:ridge;border-bottom-style:ridge;border-left-style:ridge;border-top-color:#000;border-right-color:#000;border-bottom-color:#000;border-left-color:#000;} #profile_highlight img{height:0;} #profile_highlight #profile_nav{background:none;} #profile_highlight .yui3-menuitem-active, #profile_highlight .yui3-menu-label-active, #profile_highlight .yui3-menu-label-menuvisible{background:none;} .more-posts .mod-alist .mod-alist-tagsbar .trackbacks-comment {float:right;padding:10px 0px 0px 0px;color:#00FFFF;} .comment .user{background:url(http://i1215.photobucket.com/albums/cc520/hades2300/khungavatacm-1.png) no-repeat center top;height:500px;}.comment .user img {height:40px;padding:5px 0px 0px 0px;} .col-150 .rc_bd .rc_bc .hd .titlebar .hd, .col-150 .rc_bd .rc_bc .hd .titlebar, .col-150 .rc_bd .rc_bc .bd, .col-600 .rc_bd .rc_bc .hd .titlebar .hd, .col-600 .rc_bd .rc_bc .hd .titlebar, .col-600 .rc_bd .rc_bc .bd, .col-600 .rc_bd .rc_bc .ft, .row-760 .rc_bd .rc_bc .hd .titlebar .hd, .row-760 .rc_bd .rc_bc .hd .titlebar, .row-760 .rc_bd .rc_bc .bd, .row-760 .rc_bd .rc_bc .ft, .row-920 .rc_bd .rc_bc .hd .titlebar .hd, .row-920 .rc_bd .rc_bc .hd .titlebar, .row-920 .rc_bd .rc_bc .bd, .row-920 .rc_bd .rc_bc .ft, .cmt-mod-alist .comments-listing .hd, #comment_container li, #blog_title .rc_bd .rc_bc .bd, #blast .rc_bc .bd, #blast .tail, .pagination, #article_list_module .mod-alist-searchbox input.ipt, #search_module input.textfield {background:transparent;} .rc_hd, .rc_hd div, .rc_bd, .rc_bd .rc_bc, .rc_ft, .rc_ft div{background:transparent;border-style:none;} #comment_new li {background:url(http://i646.photobucket.com/albums/uu185/vanhoai1111/th_new.gif) no-repeat center left;} body.blog_my, body.blog_my_index, body.comment_listing, body.trackback_listing, body.blog_archives_folder, body.blog_archives_date, body.blog_archives_all, body.post_rte, body.post_doodle, body.guestbook, body.comment_list, body.subscribe_list, body.post_gb, body.profile_view, body.gallery, body.photo_big, body.slideshow, body.photo_upload_pc, body.photo_upload_gallery{text-align:center;background:url(http://a.imageshack.us/img143/2039/toptdk.png) center 0px no-repeat;} #head {background:center 0px no-repeat;height:170px;} html{background:#a39c80 repeat center top;} PHAN GIUA{} #bd {background:transparent url(http://a.imageshack.us/img6/613/midtdk.png) repeat-y center top;} #tail{background:transparent url(http://a.imageshack.us/img232/307/bottomtdk.png) no-repeat center bottom;height:192px;} NEN TOAN BO MODODULE PHU {} .col-150 .rc_ft, #friendlist_module .rc_ft , #statistic .rc_ft, #update_date .rc_ft , #folder .rc_ft , #calendar .rc_ft , #search_module .rc_ft , #article_new .rc_ft , #subscribe_highlight .rc_ft , #comment_new .rc_ft , #user_mod_10001 .rc_ft {background:transparent no-repeat center top;height:0px;} .col-150 .rc_bd, #friendlist_module .rc_bd , #statistic .rc_bd, #update_date .rc_bd , #folder .rc_bd , #calendar .rc_bd , #search_module .rc_bd , #article_new .rc_bd , #subscribe_highlight .rc_bd , #comment_new .rc_bd {background:transparent repeat-y top center;} .col-150 .rc_hd, #friendlist_module .rc_hd, #article_new .rc_hd, #search_module .rc_hd, #calendar .rc_hd, #folder .rc_hd, #update_date .rc_hd, #statistic .rc_hd, #friendlist_module .rc_hd, #comment_new .rc_hd, #subscribe_highlight .rc_hd {background:transparent url(http://a.imageshack.us/img543/2120/myblogs.png) no-repeat center bottom;height:57px;} kickthuoc{} .col-150 {margin-left:3px;} .col-600 {padding:0px 0px 0px 10px;} #ysm_bottom, .ysm_line{display:none;} XOA BO TIEU DE MODULE CHINH{} #comment_new h2{display:none;} #article_new h2{display:none;} #folder h2{display:none;} #friendlist_module h2{display:none;} #statistic h2{font-size:0px !important;} #ft {display:none;} #ft{background:transparent;} #ft .info, #ft .rights{background:transparent;font-size:0;} #profile_highlight #addtofriends_ctn {background:transparent url(http://i1215.photobucket.com/albums/cc520/hades2300/lua.gif) no-repeat left top;text-align:center;} #profile_highlight #profile_nav ul li .yui3-menu-label{padding:1.6em 0.9em 2.1em 2em;background:transparent url(http://i1215.photobucket.com/albums/cc520/hades2300/lua.gif) no-repeat left top;text-align:center;} #article_new .rc_hd {background:transparent url(http://a.imageshack.us/img16/963/articlenew.png) no-repeat center bottom;height:56px;} #folder .rc_hd {background:transparent url(http://a.imageshack.us/img830/4519/myfoder.png) no-repeat center bottom;height:56px;} #comment_new .rc_hd {background:transparent url(http://a.imageshack.us/img194/7921/commentp.png) no-repeat center bottom;height:56px;} #profile_highlight .rc_hd {background:transparent url(http://a.imageshack.us/img818/1401/profilea.png) no-repeat center bottom;height:56px;} #statistic .rc_hd {background:transparent url(http://a.imageshack.us/img194/1676/statistictl.png) no-repeat center bottom;height:56px;} #calendar .rc_hd {background:transparent url(http://a.imageshack.us/img40/1294/calendarc.png) no-repeat center bottom;height:56px;} .more-posts .mod-alist .mod-alist-summary-bd .thumbnail{float:left;padding:3 10px 10px 10px;} .mod_all .rc_bd .bd ul li{list-style-type:none;margin-left:0;padding:0 0.5em 0 1.5em;} #comment_new h3{text-align:center;} #article_list_module h2{display:none;} .more-posts .mod-alist .mod-alist-summary-bd .content {float:right;width:400px;text-align:justify;border:1px dotted #888888;padding:8px;} #friendlist_module .rc_bd .rc_bc .hd .titlebar .hd, #friendlist_module .rc_bd .rc_bc .hd .titlebar, #friendlist_module .rc_hd, #friendlist_module .rc_hd div, #friendlist_module .rc_bd, #friendlist_module .rc_bc, #friendlist_module .rc_ft, #friendlist_module .rc_ft div, #friendlist_module .rc_bc .bd{background:transparent;border-style:none;} .more{background:transparent;font-size:0;display:block;float:right;} .more a {display:block;padding:20px 0 0 0;font-size:0px;} #friendlist_module img {width:80px;height:80px;} #friendlist_module .rc_bd .rc_bc .bd ul li .avatar img{width:76px;height:76px;float:left;padding:5.5px 0 0 3.5px;} #friendlist_module .rc_bd .rc_bc .bd ul li .avatar{padding:5px 0 0 10px;background:url(http://i1215.photobucket.com/albums/cc520/hades2300/KhungAn.png) no-repeat center center;width:90px;height:90px;} #friendlist_module .rc_bd .rc_bc .bd ul li .avatar:hover{padding:5px 0 0 10px;background:url(http://i1215.photobucket.com/albums/cc520/hades2300/Khung-1.png) no-repeat center center;width:90px;height:90px;} #friendlist_module h2{display:none;} #friend-list .mod-tag-friend-list, #friend-list .mod-tag-friend-list .ft, #friend-list .mod-tag-friend-list .bd{background:transparent !important;} #friendlist_module .rc_bd {background:transparent no-repeat center top;padding:0px 0px 0px 0px;} .more-posts .mod-alist .mod-alist-summary-bd .thumbnail {float:left;padding:10px 10px 10px 10px;width:142px;background:transparent url(http://a.imageshack.us/img191/9343/avatarentries.png) no-repeat center!important;height:142px;padding:4px;border:solid #623506;border-width:1px 1px 1px 1px;} #blog_title{display:none;} ul.moodicons li span, .moodicon em span{background:transparent url(http://i1215.photobucket.com/albums/cc520/hades2300/Untitled-2-2.png);} .mod_all .rc_bd .bd ul.folder li{background:transparent url(http://a.imageshack.us/img837/6734/icon12c10blog.png) no-repeat center left;} .col-600 .rc_bd .rc_bc .hd .titlebar .hd, .col-600 .rc_bd .rc_bc .hd .titlebar, .col-600 .rc_hd, .col-600 .rc_hd div, .col-600 .rc_bd, .col-600 .rc_bc, .col-600 .rc_ft, .col-600 .rc_ft div, .col-600 .rc_bd .rc_bc .bd, .col-600 .rc_bd .rc_bc .ft{background:transparent;border-style:none;} #bd .col-600 {width:653px !important;padding:0 0 0 113px;} #bd .col-150 {width:235px !important;padding:0 0 0 14px;} .mod-alist-summary, .mod-alist-brief, .mod-alist-full { width:653px;} #article_list_module .rc_hd {background:transparent url(http://a.imageshack.us/img221/3223/entriesj.png) no-repeat center bottom;height:360px;} #statistic li{background:transparent url(http://i646.photobucket.com/albums/uu185/vanhoai1111/th_birs.gif) no-repeat center left;} #comment-list .hd h3 {background:transparent url(http://farm3.anhso.net/upload/20110715/14/t/anhso-14958_chuky.gif) no-repeat right;height:200px!important;} #bd .rte_toolbar{text-align:center;} #bd .rte_toolbar { background:transparent url(http://a.imageshack.us/img217/3449/tololbartdk.png) repeat scroll left center;height:106px;} .mod-alist .rc_bd .bd .more-posts ul li{border-style:none;background:transparent url( http://i1197.photobucket.com/albums/aa421/hades2000/sword22.gif ) no-repeat bottom center;} Blast {} #blast .rc_hd, #blast .rc_hd div, #blast .rc_bd, #blast .rc_bc, #blast .rc_ft, #blast .rc_ft div, #blast .rc_bc .bd, #blast .tail{background:transparent;border-style:none;} #blast .rc div {background:transparent;} #blast .rc {background:transparent;} #blast .rc_bd div.rc_bc {background:transparent;} #blast .rc_bd {background:transparent;} #blast .rc_ft {background:transparent;} #blast .rc_ft div {background:transparent;} #blast{background:transparent no-repeat 0 100%;padding:0px 0px 30px 40px;} #blast .rc_bd .rc_bc .bd{background:transparent;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-top-style:ridge;border-right-style:ridge;border-bottom-style:ridge;border-left-style:ridge;border-top-color:#000;border-right-color:#000;border-bottom-color:#000;border-left-color:#000;} #blast div.leavemsg, #blast div.editbtn {font-size:0;} a.button strong strong strong { font-size:0;padding:0;} #blast .rc_bc .bd {font-weight:bold;font-style:italic;color:#00FFFF;font-size:100%;} .comment .user img {height:40px;padding:5px 0px 0px 0px;} .cmt-mod-alist .add-comment .buttons input{background:url(http://i1215.photobucket.com/albums/cc520/hades2300/send-2.gif) no-repeat;font-size:0px;} .cmt-mod-alist .add-comment .buttons input:hover{background:url(http://i1215.photobucket.com/albums/cc520/hades2300/send-1-1.gif) no-repeat;font-size:0px;} #article_list_module .rc_bd .rc_bc .bd UL LI:hover {BORDER-RIGHT:#F700FF 5px;BORDER-TOP:#F700FF 5px;BACKGROUND:transparent url(http://a.imageshack.us/img713/6868/tdkkhung.png) no-repeat bottom right;BORDER-LEFT:#F700FF 5px;border-style:groove;BORDER-BOTTOM:#F700FF 5px;border-style:groove;} #profile_highlight .profile_photos{background:url(http://a.imageshack.us/img836/1831/avatarcs.png) no-repeat center;height:500px;} #profile_highlight .backhome a {display:block;height:8;padding:25px 0 0 500px;width:100%;background:transparent url(http://a.imageshack.us/img263/4932/tdkhome.png) no-repeat 70px 0;} /*Nguồn : http://vn.360plus.yahoo.com/thaikiet-blog */[/CODE]

 

Theme thế giới lãng quên

[CODE].mod_all #disclosure .updates-disclosure, .mod-popup #disclosure .updates-disclosure {font-size:0;} #comment-list .hd .date {float:right;color:#000;}.reply{background:transparent;border-color:#000;border-width:1px;border-style:dashed;float:right;height:16px;width:30px;} .comment .user{background:url(http://a.imageshack.us/img171/5493/pollcmt.png) no-repeat center top;height:500px;}.comment .user img {height:40px;}.comment-reply .user {background:url(http://a.imageshack.us/img717/4219/replyboblogs.png) no-repeat center;height:500px;}.comment-reply .user img {height:0px;} #article_list_module .rc_bd .rc_bc .bd UL LI:hover {BORDER-RIGHT:#F700FF 5px;BORDER-TOP:#F700FF 5px;BACKGROUND:transparent url(http://i1098.photobucket.com/albums/g369/thegioilangquen020/ava.png) no-repeat bottom right;BORDER-LEFT:#F700FF 5px;border-style:groove;BORDER-BOTTOM:#F700FF 5px;border-style:groove;} #profile_highlight img{height:0;} #profile_highlight .profile_photos{background:url(http://i1190.photobucket.com/albums/z442/tinhnghiagiangho8/avaradmin.jpg) no-repeat center;height:265px;} .row-760 .rc_bd .rc_bc .hd .titlebar .hd, .row-760 .rc_bd .rc_bc .hd .titlebar, .row-760 .rc_hd, .row-760 .rc_hd div, .row-760 .rc_bd, .row-760 .rc_bc, .row-760 .rc_ft, .row-760 .rc_ft div, .row-760 .rc_bd .rc_bc .bd, .row-760 .rc_bd .hd .titlebar .hd h2{text-align:center;font-size:13px;} .rte_btn img{} .hd .titlebar .hd h2{text-align:center;font-size:13px;} #profile_highlight img{height:0;} #profile_highlight .profile_photos{background:url(http://i1190.photobucket.com/albums/z442/tinhnghiagiangho8/avaradmin.jpg) no-repeat center;height:265px;} .row-760 .rc_bd .rc_bc .hd .titlebar .hd, .row-760 .rc_bd .rc_bc .hd .titlebar, .row-760 .rc_hd, .row-760 .rc_hd div, .row-760 .rc_bd, .row-760 .rc_bc, .row-760 .rc_ft, .row-760 .rc_ft div, .row-760 .rc_bd .rc_bc .bd, .row-760 .rc_bd .rc_bc .ft{background:transparent;border-style:none;} .hd .titlebar .hd h2{text-align:center;font-size:13px;} .rte_btn img{background-image:url(http://i1126.photobucket.com/albums/l616/tinhnghiagiangho179/bientau2.gif);} #comment-list .hd h3 {background:transparent url(http://i718.photobucket.com/albums/ww187/sundakib06/cherrycherry-20090409-81_dangohhaun.gif) no-repeat center top;height:110px!important;} #bd .col-150 {width:150px;} #bd .col-600 {width:620px;padding:10 0 0 10px;} body.blog_my, body.blog_my_index, body.comment_listing, body.trackback_listing, body.blog_archives_folder, body.blog_archives_date, body.blog_archives_all, body.post_rte, body.post_doodle, body.guestbook, body.comment_list, body.subscribe_list, body.post_gb, body.profile_view, body.gallery, body.photo_big, body.slideshow, body.photo_upload_pc, body.photo_upload_gallery{text-align:center;background:url(http://i1103.photobucket.com/albums/g480/thegioilangquen018/top.png) center 0px no-repeat;} #head {background:transparent;height:590px;} html{background:#000 url(http://i1091.photobucket.com/albums/i388/thegioilangquen019/center-4.png) center top repeat-y;} #ft{background:transparent;font-size:0px;} #ft{background:transparent url(http://i1091.photobucket.com/albums/i388/thegioilangquen019/bottom.png) center top no-repeat;height:623px;} .col-150 .rc_ft {background:transparent url(http://i1087.photobucket.com/albums/j468/thegioilangquen017/modulecuoi.png) no-repeat center top;height:218px;} .col-150 .rc_bd {background:transparent url(http://i1087.photobucket.com/albums/j468/thegioilangquen017/modulegiua.png) repeat-y top center;} .col-150 .rc_hd{background:transparent url(http://i1087.photobucket.com/albums/j468/thegioilangquen017/moduletren.png) no-repeat center bottom;height:69px;} .col-150 .rc_bd .rc_bc .bd {background:transparent;} .col-600 .rc_bd .rc_bc .bd {background:transparent;} .row-920 .rc_bd .rc_bc .bd {background:transparent;} .col-150 .rc_bd .rc_bc .hd .titlebar .hd, .col-150 .rc_bd .rc_bc .hd .titlebar{background:transparent;} .col-600 .rc_bd .rc_bc .hd .titlebar .hd, .col-600 .rc_bd .rc_bc .hd .titlebar{background:transparent;} .row-920 .rc_bd .rc_bc .hd .titlebar .hd, .row-920 .rc_bd .rc_bc .hd .titlebar{background:transparent;} .col-150 a , .col-600 a , .row-760 a, .row-920 a {text-decoration:none;} .rc_hd, .rc_hd div, .rc_bd, .rc_bd .rc_bc, .rc_ft, .rc_ft div {background:transparent;border-style:none;} #blast .rc_hd, #blast .rc_hd div, #blast .rc_bd, #blast .rc_bc, #blast .rc_ft, #blast .rc_ft div, #blast .rc_bc .bd, #blast .tail {background:transparent;border-style:none;height:30px;} #blog_title{display:none;} #blast .rc_bc .bd {font-weight:bold;font-style:italic;font-size:100%;text-decoration:blink;} #profile_highlight .nickname a {font-size:110%;font-weight:bold;font-family:fantasy;text-decoration:blink;} .mod-alist .rc_bd .bd .more-posts .mod-alist-manage ul li, .mod-alist .rc_bd .bd .more-posts .folder-icons .icon ul li {background:none;} .mod-alist .rc_bd .bd .more-posts ul li{background:transparent url(http://i910.photobucket.com/albums/ac310/nga_kute143/79.gif) no-repeat bottom center;border-style:none;} .mod-alist-summary, .mod-alist-brief, .mod-alist-full { width:620px;} .cmt-mod-alist #comments-listing.expanded .bd { width:615px;} #ygmabot, #ygmatop, #ygmasrchquery, #ygmabot, #ygma .blogsrch .ipt, .blog_dummyselect .hd span, .blog_dummyselect .hd, .yuimenubar .hd u, .yuimenubar .hd b, .yuimenubar .hd i, .yuimenubarnav .yuimenubaritem{background:transparent !important;} .yuimenubarnav .yuimenubaritem, .yuimenubaritemlabel{border-style:none;} .yuimenubar .hd u, .yuimenubar .hd b, .yuimenubar .hd i{background:transparent !important;} .yuimenubarnav .yuimenubaritem, .yuimenubarnav .yuimenubaritem, .yuimenubaritemlabel{background:transparent !important;} .yuimenubarnav .yuimenubaritem {border-right:none;border-color:#072B02;} .yuimenubaritemlabel {border:none;} .first-of-type a, #ygmatop a, .ygmabg, #ygmasrchbtn{color:#FFFFFF;} .first-of-type li:hover{background:transparent;} .blog_dummyselect .bd div, .blog_dummyselect .bd, .yuimenu .bd {background:transparent;} .first-of-type a:hover{color:#FFFFFF;text-decoration:none;} .menu .bd, .yuimenu ul{border-style:dashed;border-color:#FFFFFF;} .yuimenubar {padding:0 235px;width:482px;} #ygmatop, #ygmabot, .blog_dummyselect {display:none;} .yuimenubaritemlabel-selected a{color:#FF0202!important;} .rc_hd, .rc_hd div, .rc_bd, .rc_bd .rc_bc, .rc_ft, .rc_ft div{background:transparent;border-style:none;} #ygmatop, #ygmabot, .ysearch, .ysearch #ygmasrchfrm, #ygmasrchfrm fieldset, .yuimenubar .hd, .yuimenubarnav .yuimenubaritem, .yuimenubaritemlabel, #blogsearch form, #blogsearch .hd b, #blogsearch .hd u, #blogsearch .hd i{background:transparent;border-style:none;} .yuimenubar{border-style:none;} #ygmasrchfrm input, #blogsearch input{background:transparent;} #blogsearch span.btn .ygmasrchbtn { display:none;} .ygmasrchquery { display:none;} #bd .col-600 .mod_all .hd .titlebar h2 {font-size:0;} #article_list_module .rc_hd {background:transparent url(http://i1087.photobucket.com/albums/j468/thegioilangquen017/entry.png) no-repeat center top;height:504px;} #article_list_module .rc_bd {background:transparent;} .pagination {background:transparent;} .col-600 .rc_bd .rc_bc .hd .titlebar, .row-920 .rc_bd .rc_bc .hd .titlebar, .row-760 .rc_bd .rc_bc .hd .titlebar {background:transparent;} #article_list_module .rc_ft {background:transparent;} #comment_container * a {color:#FE0101;}#comment_container * .content {color:#302D1B;}#comments-listing * ins {color:#B10808;} .cmt-mod-alist .comments-listing .hd, .cmt-mod-alist .comments-listing .bd{background:transparent !important;} .cmt-mod-alist .comments-listing .hd, .mod-trackback #trackback-listing, .mod-trackback ul {background:transparent;border-style:none;} .cmt-mod-alist .comments-listing .bd, .mod-trackback .bd{background:transparent !important;} #comment_new .bd ul li cite {font-size:0;} .cmt-mod-alist #comments-listing .extend-hd, .cmt-mod-alist #comments-listing .extend-bd .alist-comment, #comment_container ul, #comment_container li, .multi-delete input.btn, .rte_toolbar{background:transparent;} .rte_btn img{} .rte_toolbar {text-align:center;} .cmt-mod-alist .add-comment em.buttons input{height:26px;text-align:right;font-weight:bold;background:url(http://i646.photobucket.com/albums/uu185/vanhoai1111/th_z248.gif) no-repeat;} #bd .rte_toolbar{background:url(http://i1215.photobucket.com/albums/cc506/thegioilangquen010/comment.png) top center;height:193px;} a:hover {text-decoration:none;text-decoration:none;font-weight:bold;background-image:url(http://i8.glitter-graphics.org/pub/707/707618jyfmp3jbxr.gif);} .more-posts .mod-alist .mod-alist-summary-bd .thumbnail{float:left;padding:0 10px 10px 10px;} .mod_all .rc_bd .bd ul li{list-style-type:none;margin-left:0;padding:0 0.5em 0 1.5em;} #folder li{background:transparent url(http://i646.photobucket.com/albums/uu185/vanhoai1111/th_60.gif) no-repeat top left;} #statistic li{background:transparent url(http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/57.gif) no-repeat top left;} #article_new li{background:transparent url(http://i646.photobucket.com/albums/uu185/vanhoai1111/th_newnew.gif) no-repeat top left;} #comment_new li{background:transparent url(http://i646.photobucket.com/albums/uu185/vanhoai1111/th_newnew.gif) no-repeat top left;} #comment_container * a {color:#F705A7;}#comment_container * .content {color:#ffffff;}#comments-listing * ins {color:#ffffff;} .ysm_bottom, .ysm_line, ysm_title{display:none!important;} .yui3-menu-content {background:transparent !important;} #profile_highlight #profile_nav{background:none;} #profile_highlight .yui3-menuitem-active, #profile_highlight .yui3-menu-label-active, #profile_highlight .yui3-menu-label-menuvisible{background:none;} #profile_highlight #profile_nav ul li .yui3-menu-label{padding:1.6em 0.5em 1.5em 2em;background:transparent url(http://i646.photobucket.com/albums/uu185/vanhoai1111/th_27-1.gif) no-repeat left center;} .yui3-menuitem-content{padding:0 0.5em 0 1.5em;background:transparent url(http://i646.photobucket.com/albums/uu185/vanhoai1111/th_27-1.gif) no-repeat left top;} a:visited{color:#000000;} #profile_highlight .backhome {padding:0;background:none;} #profile_highlight .backhome a {display:block;height:4;padding:39px 0px 0 900px;width:100%;background:transparent url(http://i1080.photobucket.com/albums/j336/tinhnghiagiangho3/Home.png) no-repeat 27px 0;} .mod-alist-summary-bd .thumbnail img {width:140px;height:140px;border:1px solid #43D4FF;} .more-posts .mod-alist .mod-alist-summary-bd .thumbnail {float:left;width:142px;background:transparent url(http://i1192.photobucket.com/albums/aa334/thegioilangquen008/avatarentry.jpg) no-repeat center!important;height:142px;padding:4px;border:solid #43D4FF;border-width:1px 1px 1px 1px;} .more-posts .mod-alist .mod-alist-summary-bd .content {float:right;width:400px;height:54px;text-align:justify;border:0px;padding:8px;} .more-posts .mod-alist .mod-alist-tagsbar .trackbacks-comment {float:right;padding:10px 0px 0px 0px;color:white;} .mod_all .rc_bd .bd ul.users li {width:110px;border:1px dashed #43D4FF;} .mod_all .rc_bd .bd ul.users li .avatar img {width:106px;height:110px;padding:1px;border-bottom:1px dashed #43D4FF;} .mod_all .rc_bd .bd ul.users li .alias {} Nguồn : 360theme.tk – http://vn.360plus.yahoo.com/thaikiet-blog/ {} /*Nguồn : http://vn.360plus.yahoo.com/thaikiet-blog/ */[/CODE]

Tạo bài viết liên quan kèm ảnh thumbnails với Linkwithin

31/12/2010 | Blogspot

 Tạo bài viết liên quan kèm ảnh thumbnails với Linkwithin ~ vn222.com

1. Giới thiệu
LinkWithin là 1 dịch vụ cho phép tạo widget ‘Bài viết liên quan kèm ảnh thumbnails’ trên blog mới xuất hiện gần đây. Nó sẽ tạo widget dưới mỗi bài viết của blog, khuyến khích người đọc xem các bài viết cùng lĩnh vực và giúp tăng thêm lượng pageview cho blog. Những bài liên quan được hiển thị đều được Linkwithin chọn lọc dựa trên các yếu tố như độ liên quan, phổ biến …

2. Tính năng
Không để những bài viết cũ của bạn bị bỏ đi: Linkwithin luôn cố gắng tổng hợp tất cả các bài viết trên blog, kể cả những bài viết rất cũ, khiến chúng được “sống lại”

Tăng lượng pageview, giữ người đọc luôn tham gia: Widget liên kết những bài viết có liên quan và thú vị cho độc giả, giữ họ luôn tham gia với blog và tăng lượng pageview cho blog.

Tao nhã, thiết kế không phô trương: Linkwithin là 1 widget có kiểu dáng nhỏ gọn và phù hợp với thiết kế của blog bạn.

Miễn phí và dễ dàng cài đặt: Widget được cung cấp miễn phí và không hề có quản cáo. Nó chỉ cần 1 vài phút để thiết lập và cài vào Blog , không yêu cầu đăng ký tài khoản.

Hỗ trợ 2 blog plaftorm được ưa chuộng nhất hiện nay là WordPress và Blogger

3. Cài đặt: 
Ở đây mình sẽ hướng dẫn các bạn cài đặt widget linkwithin trên blog WordPress
Trước tiên các bạn vào link sau: http://www.linkwithin.com/learn?ref=widget
Sau đó nhìn bên trái sẽ thấy như hình sau:

 Tạo bài viết liên quan kèm ảnh thumbnails với Linkwithin ~ vn222.com

Điền thông tin như trong hình nhé, ở đây mình chọn Platform WordPress, width là chọn số lượng bài muốn hiển thị.

Demo:

 Tạo bài viết liên quan kèm ảnh thumbnails với Linkwithin ~ vn222.com

Click chuột vào Get Widget sẽ dẫn đến trang như hình sau:

 Tạo bài viết liên quan kèm ảnh thumbnails với Linkwithin ~ vn222.com

Click chuột vào linkwithin.zip để download về máy nhé.

Tiếp theo, đăng nhập vào blog wordpress của bạn và vào phần Plugin

 Tạo bài viết liên quan kèm ảnh thumbnails với Linkwithin ~ vn222.com

Add new và chọn Upload

 Tạo bài viết liên quan kèm ảnh thumbnails với Linkwithin ~ vn222.com

Chọn file linkwithin.zip vừa download về và Click chuột vào Install, Active plugin. Xong

 Tạo bài viết liên quan kèm ảnh thumbnails với Linkwithin ~ vn222.com

Xem demo nhé, widget này sẽ hiển thị dưới mỗi bài viết trên blog, dưới bài viết này cũng có đấy

 Tạo bài viết liên quan kèm ảnh thumbnails với Linkwithin ~ vn222.com

Đến đây bài viết xin kết thúc, nếu gặp khó khăn gì trong quá trình cài đặt plugin xin vui lòng comment bên dưới nhé,

Chúc các bạn thành công !

Tạo đọc tiếp (read more) cho Blogspot

Vào Thiết kế, chọn Chỉnh sửa HTML, đánh dấu Mở rộng Mẫu Tiện ích mẫu và tìm dòng sau:

 

<data:post.body/>

Thay thế nó bằng đoạn code dưới đây.
<b:if cond='data:blog.pageType != &quot;item&quot;'>
<div expr:id='&quot;summary&quot; + data:post.id'/>
<script type='text/javascript'>
var blogID = &quot;6628069224773557671&quot;;
function retriveSummaryPost<data:post.id/>(json){document.getElementById(&quot;summary<data:post.id/>&quot;).innerHTML = json.entry.summary.$t + &quot;...&quot;}
function createSummaryPost<data:post.id/>(POSTID){ var script = document.createElement(&quot;script&quot;);
script.src = &quot;http://www.blogger.com/feeds/&quot;+blogID+&quot;/posts/summary/&quot;+POSTID+&quot;?alt=json-in-script&amp;callback=retriveSummaryPost<data:post.id/>&quot;;
script.type = &quot;text/javascript&quot;; document.getElementsByTagName('head')[0].appendChild(script);
}
</script>
<script type='text/javascript'>
createSummaryPost<data:post.id/>(&quot;<data:post.id/>&quot;);
</script>
<span class='rmlink' style='float:right'><a expr:href='data:post.url'>Read more...</a></span>
</b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div id='post_body'><data:post.body/></div>
</b:if>

Thay số 6628069224773557671 thành BlogID của bạn và lưu lại.

Hiệu ứng tuyết rơi trên Blogger cho mùa giáng sinh

Bạn muốn tạo hiệu ứng tuyết rơi thật đẹp mắt trên blog của mình để chào đón Giáng sinh sắp đến  giống một số trang web mà bạn tìm thấy. Bạn chưa tìm ra thủ thuật tối ưu cho mình?

 

vn222com tuyetroivnblognet thumb Hiệu ứng tuyết rơi trên Blogger cho mùa giáng sinh  ~ vn222.com

 

Thật đơn giản. Bạn chỉ cần 2 thao tấc Copy và paste là đã có cho mình một hiệu ứng thật đẹp và đầy ý nghĩa.

Bước 1. Đăng nhập Blogger

Chỉ cần đăng nhập vào bảng điều khiển Blogger, sau đó vào Thiết kế (Design) và Thêm tiện ích (Add a Widget), chọn HTML/JavaScript rồi dán đoạn code dưới đây vào đó

Bước 2. Code HTML/Javascript.

Đây là đoạn code:
<script src='http://snow-effect.googlecode.com/files/snow.js'type='text/javascript'>

/***********************************************

* Snow Effect without images-by Kurt Grigg at http://www.btinternet.com/~kurt.grigg/javascript

* Script featured & available at Dynamic Drive at http://www.dynamicdrive.com/

* Please keep this notice intact

***********************************************/

</script>
Mở trang nhà của bạn và bạn sẽ thấy kết quả như mong đợi. Chú ý tuyết có màu trắng nên nền blog của bạn có màu tối thì sẽ rất đẹp.

Nếu hết mùa giáng sinh bạn chỉ cần xóa Tiện ích trên đi là ok. Còn cữ giữ cả năm tuyết rơi thì cũng chẳng sao (nhưng ít ai làm vậy).

Chúc bạn có một mùa giáng sinh vui vẻ!

Cách tạo khung gửi link bài viết qua Yahoo! Messenger

Dưới mỗi bài viết của Blogger của một số Blog có hiển thị khung gửi link bài viết qua Yahooo! Mesenger để giúp bạn hoặc khách truy cập dễ dàng copy link  bài viết để chia sẻ cho bạn bè.

vn222.com 1gui+link+quan+YM%255B5%255D Cách tạo khung gửi link bài viết qua Yahoo! Messenger ~ vn222.comĐây chỉ là thủ thuật đơn giả tạo 1 vùng text hiển thị sẵn tiêu đề và link URL của bài viết, bạn để bạn copy và gửi cho bạn bè qua Y!M.

Cách thực hiện như sau:

1. Truy cập vào Blogger:

– Truy cập vào Blogger: Bảng điều khiển (Dashboard)  >> Bố cục (Layout)   >>  Chỉnh sửa HTML (Edit HTML)  >>  click chọn ô check Mở rộng mẫu tiện ích (Expand widget templates).

– Tìm (Nhấn Ctrl + F ) đoạn code

<div class='post-footer-line post-footer-line-3'>

Bằng cách nhấn Ctrl + F và nhập từ khóa line-3 để tìm dễ hơn!

– Nếu không có bạn có thể tìm theo từ khóa line-2 hoặc line-1 để chèn dưới nó

– Thậm chí bạn có thể chèn nó ngay dưới đoạn code:

<data:post.body/>

2. Chèn code hiển thị Link bài viết

– Chèn đoan code dưới:

<b:if cond='data:blog.pageType == "item"'>

<b>Gửi bài viết này cho bạn bè qua Y!M:</b>

<textarea cols='45' id='embedhtml' name='embedhtml' onclick='this.select()' readonly='readonly' rows='2'>

<b:if cond='data:post.title'> » <data:post.title/> : </b:if>

<b:if cond='data:post.url'><data:post.url/></b:if>

</textarea>

</b:if>

vào ngay phía dưới đoạn code vừa tìm được.

– Lưu lại mẫu (Save Templates).

Tạo tiện ích Bài viết Hot – Top Comments

Tiện ích Bài viết Hot (Hot Posts Widget) hiển thị những bài viết được bạn đọc quan tâm và có nhiều nhận xét nhất. Tạo tiện ích Bài viết Hot – Top Comments ~ vn222.com

Tiện ích này khác với tiện ích Popular Posts hiển thị những bài viết được xem nhiều nhất.

Script trong thủ thuật sau đây sẽ lọc những bài viết được bình luận nhiều nhất trong blogspot để tạo ra tiện ích mà tôi đặt tên là Hot Posts. Tiện ích này hiển thị tiêu đề bài viết và số nhận xét cho mỗi bài viết. Thiết nghĩ đây cũng là một tiện ích cần thiết cho blogspot, bên cạnh tiện ích Popalar Posts sẵn có của Blogger.

 

Để cài đặt tiện ích này, bạn hãy thực hiện như sau.

Bước 1.

Đăng nhập Blogger, vào Thiết kế (Design) >> Chỉnh sửa HTML (Edit HTML).

Đặt đoạn code bên dưới vào trước thẻ </head>.
<script type='text/javascript'>
//<![CDATA[
// Hot Posts Widget styled by Huynh-nhat-ha.blogspot.com
getHP=function(d){document.write(d)};
hotPost = function(u,t,c,b) { this.url = u; this.tit = t; this.comm = c; this.body = b };
var sortAllPosts=[];
sortAllPostsRecopilation = function (json) {
var total,entry,i,x,arr,lnk,com,ttle;
total = json.feed.entry.length;
for(i=0; i < total; i++){
entry=json.feed.entry[i];
for (x=0; x < entry.link.length; x++){
arr = entry.link[x];
lnk = (arr.rel=="alternate" ? arr.href : lnk);
if(arr.rel=="replies"){
com = (arr.type=="text/html" ? parseInt(arr.title,10) : com);
}
}
ttle = entry.title.$t;
txt = ('summary' in entry ? entry.summary.$t : entry.content.$t);
sortAllPosts.push(new hotPost(lnk,ttle,com,txt));
}
sortAllPosts=sortAllPosts.OrderMaxMin();
};
Array.prototype.OrderMaxMin = function(){
var max=0;
var tmp=[];
var x,i,post;
for(i=0; i<this.length; i++){
post=this[i];
max = ( post.comm > max ? post.comm : max);
}
for(x = max; x>=0; x--){
for(i=0; i<this.length; i++){
post=this[i];
if(post.comm == x){
tmp.push(post);
}
}
}
return(tmp);
};
Array.prototype.DisplayHotPosts = function(max,txt) { for(var i=0; i<max;i++){ p=this[i]; getHP(p.tit.link(p.url)+" ("+p.comm+" nhận xét)<br/>"); }};
//]]>
</script>

Lưu Template.

Bước 2.

Vào Page Elements. Trên sidebar thêm một tiện ích HTML/Javascript và đặt đoạn code sau đây vào phần nội dung tiện ích (đặt tên tiện ích là Bài viết Hot hay tên gì đó tùy ý bạn).
<div id='HotPosts'>
<script src='http://huynh-nhat-ha.blogspot.com/feeds/posts/default?alt=json-in-script&callback=sortAllPostsRecopilation&max-results=999' type='text/javascript'></script>
<script type='text/javascript'>sortAllPosts.DisplayHotPosts(7,00);</script>
</div>

Thay huynh-nhat-ha bằng tên blogspot của bạn, thay số 7 để chỉ số bài viết được hiển thị trên tiện ích.

Lưu ý nếu bạn rành về CSS thì có thể định dạng CSS cho tiện ích này theo kiểu như sau.
#HotPosts {
….
}
#HotPosts a {

}

theo (Huynh Nhat Ha’s Blog)

Tạo một bức ảnh luôn xuất hiện trên Blog

Nếu bạn muốn tạo một bức ảnh luôn xuất hiện trên trang Blog của mình để trang trí, hoặc để làm một bảng thông báo nho nhỏ thì thủ thuật hôm nay mình xin giới thiệu sẽ giúp cho bạn đấy. Mời bạn xem screenshot bên dưới.

 Tạo một bức ảnh luôn xuất hiện trên Blog ~ vn222.com

Các bạn tiến hành theo thứ tự những bước sau đây :

  1. Đăng nhập vào Blogger > Layout > Edit HTML (không cần Mở rộng Mẫu tiện ích).
  2. Tìm đến thẻ]]></b:skin> và thêm đoạn code dưới đây ngay bên trên nó :

#top_image {
position:fixed;
bottom:5px;
right:5px;
clip:inherit;

Lưu ý : Với đoạn code này, mình đã thiết lập cho hình luôn xuất hiện ở vị trí góc Cuối/Phải . Nếu không thích vị trí này, bạn hãy thế Bottom/Right thành Top/Left (góc Trên/Trái) hay đại loại thế.
3. Tìm tiếp thẻ </body> và thêm đoạn code này vào :

<div id=’top_image’><img src=’Link hình ảnh’/></div>


Lưu ý
 : Thay Link hình ảnh bên trên thành Link hình của bạn (Hãy dùng hình có kích cỡ nhỏ để ít tốn thời gian load Blog và không gây phiền phức cho người đọc). Đồng thời, nếu muốn chèn URL vào hình, hãy sử dụng thẻ <a href=”URL”><img src=”Link hình ảnh”></a>.

4. Save lại template và kiểm tra kết quả.

Hiển thị widget ở nhưng trang nhất định trong blog

Để tạo nên sự riêng biệt cho một số trang nào đó cho blog của mình, bạn có thể tạo 1 widget và chỉ cho nó hiển thị ở trang đó. ( ví dụ : tạo một widget gallery ảnh chỉ cho phép hiển thị khi ta tìm tới nhãn picture…, hoặc chỉ cho phép những widget nào đó chỉ được phép hiển thị ở trang chủ ). Bài viết này sẽ hướng dẫn các bạn làm điều này.

Trước tiên, bạn phải biết rõ vị trí code của các widget trong code template. Để xác định việc này, bạn phải xác định được ID của các widget đó, và việc này cũng rất đơn giản, ví dụ : ta có tiện ích(widget) “Người theo dõi” (xem hình minh họa bên dưới)

tes Hiển thị widget ở nhưng trang nhất định trong blog  ~ vn222.com
Bạn nhấp chọn “Chỉnh sửa” sẽ hiện ra hộp thọai như bên dưới:

theodoi Hiển thị widget ở nhưng trang nhất định trong blog  ~ vn222.com
Phần khoanh tròn màu đỏ chính là ID của widget. Như vậy ta đã xác định được id của nó, bây giờ vào code template để xác định vị trí của nó (xem hướng dẫn bên dưới)
☼Xác định code của widget trong code template:
1. Đăng nhập blog

2. Vào chỉnh sửa code HTML(edit code HTML), chọn mở rộng mẫu tiện ích(Expand Widget Templates).

3. Tìm đọan code như bên dưới, nó chính là code của widget “Người theo dõi” (có thể nhấn Ctrl +F rồi điền từ khóa “Followers2″ để tìm).
cde Hiển thị widget ở nhưng trang nhất định trong blog  ~ vn222.com
Khi đã xác định được code của 1 widget, bây giờ ta bắt đầu vào thủ thuật, để đơn giản ta xét code của 1 widget HTML/Javascript (như bên dưới):

<b:widget id=’HTML3′ locked=’false’ title=” type=’HTML’>
<b:includable id=’main’>
<!– only display title if it’s non-empty –>
<b:if cond=’data:title != &quot;&quot;’>
<h2 class=’title’><data:title/></h2>
</b:if>
<div class=’widget-content’>
<data:content/>
</div>
<b:include name=’quickedit’/>
</b:includable>
</b:widget>

A. Chỉ cho phép widget hiển thị ở trang chủ:

– Bạn thêm đọan code màu đỏ như bên dưới

<b:widget id=’HTML3′ locked=’false’ title=” type=’HTML’>
<b:includable id=’main’>
<b:if cond=’data:blog.url == data:blog.homepageUrl’>
<!– only display title if it’s non-empty –>
<b:if cond=’data:title != &quot;&quot;’>
<h2 class=’title’><data:title/></h2>
</b:if>
<div class=’widget-content’>
<data:content/>
</div>
<b:include name=’quickedit’/>
</b:if>
</b:includable>
</b:widget>

B. Chỉ cho phép widget hiển thị ở từng bài viết:

– Bạn thêm đọan code màu đỏ như bên dưới

<b:widget id=’HTML3′ locked=’false’ title=” type=’HTML’>
<b:includable id=’main’>
<b:if cond=’data:blog.pageType == “item”‘>
<!– only display title if it’s non-empty –>
<b:if cond=’data:title != &quot;&quot;’>
<h2 class=’title’><data:title/></h2>
</b:if>
<div class=’widget-content’>
<data:content/>
</div>
<b:include name=’quickedit’/>
</b:if>
</b:includable>
</b:widget>

C. Chỉ cho phép widget hiển thị ở những trang nhất định:

– Bạn thêm đọan code màu đỏ như bên dưới

<b:widget id=’HTML3′ locked=’false’ title=” type=’HTML’>
<b:includable id=’main’>
<b:if cond=’data:blog.url == “BLOG_POST_URL”‘>
<!– only display title if it’s non-empty –>
<b:if cond=’data:title != &quot;&quot;’>
<h2 class=’title’><data:title/></h2>
</b:if>
<div class=’widget-content’>
<data:content/>
</div>
<b:include name=’quickedit’/>
</b:if>
</b:includable>
</b:widget>

Làm đẹp code trong blog với SyntaxHighlighter

syntax highlighter Làm đẹp code trong blog với SyntaxHighlighter ~ vn222.com

Có một vài comment trên Hỗn tạp Blog hỏi về cách hiển thị code sao cho đẹp giống như Hỗn tạp Blog đang dùng. Hôm qua bạn ruabien cũng gửi email cho tôi và hỏi về vấn đề này. Thấy các bạn quan tâm như vậy, nên tôi viết bài hướng dẫn cách làm, hy vọng có thể giúp các bạn có 1 blog đẹp hơn.

Vài nét về SyntaxHighlighter và các script cùng dạng

Script mà Hỗn tạp Blog đang dùng có tên là SyntaxHighlighter do Alex Gorbatchev phát triển (nghe tên giống người Nga quá mà không biết có phải không:D). Nếu bạn chịu khó Google, bạn sẽ thấy ngoài script này, còn có hàng loạt các script khác cũng giúp bạn hiển thị code đẹp nhưHighlight.jsGeSHIGoogle Code codettify, … Từ khóa cho mấy cái này các bạn có thể thử “Syntax Highlighter”, “Code beautifier”, …

Sở dĩ mà tôi chọn SyntaxHighlighter cho Hỗn tạp Blog là vì nó rất nổi tiếng và được dùng bởi nhiều blogger chuyên nghiệp (trên Google nó toàn nằm thứ nhất hoặc thứ 2). Cho nên có thể tạm nói nó đảm bảo chất lượng và hoạt động ổn định. Về mặt thẩm mỹ, hầu hết các script đều cho phép bạn dùng các template khác nhau, nên nói cái nào đẹp hơn thì cũng không thuyết phục. Các tính năng thì chúng cũng gần na ná như nhau, vì vậy sự lựa chọn phần lớn là dựa trên kinh nghiệm đã dùng và nghe ngóng tình hình “khuyên dùng” của các blogger lớn mà thôi. Nếu các bạn không thích dùng SyntaxHighlighter, có thể thử các script khác cho đến khi vừa ý.

Cài đặt SyntaxHighlighter

SyntaxHighlighter bao gồm các thành phần sau đây:

(1) 1 file shCore.js làm nền tảng cho việc hiển thị code
(2) 1 file shCore.css quy định các style bắt buộc cho code
(3) các nhóm file js dùng để tùy biến việc hiển thị code tương ứng với các ngôn ngữ lập trình (javascript, php, css, html, …) , mỗi file js tương ứng với 1 ngôn ngữ (nói ngôn ngữ lập trình cũng không hoàn toàn đúng, VD như CSS, nhưng thôi tạm hiểu như vậy nhé)
(4) file CSS dùng để tạo theme cho code. Mỗi theme có 1 phong cách màu sắc khác nhau

Để cài đặt SyntaxHighlighter, trước tiên bạn download script (bao gồm tất cả các file js và css cần thiết), sau đó giải nén chúng ra và upload lên 1 host nào có thể chứa được javascript và css.

Sau đó chúng ta cần phải chèn các file js và css cần thiết vào blog. Giả sử bạn cần highlight ngôn ngữ Javascript với theme mặc định thì các file bạn cần chèn bao gồm:
– shCore.js và shBrushYourBrush.js
– shCore.css và shThemeDefault.css

Mở template của bạn lên và chèn đoạn code sau vào ngay trước thẻ </head>:
<link href="css/shCore.css" rel="stylesheet" type="text/css" />
<link type="text/css" rel="Stylesheet" href="/styles/shThemeDefault.css"/>

(lưu ý là sửa lại URL đến các file cho đúng)

Sau đó chèn đoạn code sau vào ngay trước thẻ </body>
<script type="text/javascript" src="js/shCore.js"></script>
<script type="text/javascript" src="js/shBrushJScript.js"></script>

 

<script type="text/javascript">
SyntaxHighlighter.config.bloggerMode=true;
SyntaxHighlighter.all();
</script>

(cũng lưu ý sửa lại URL của các file js tương ứng)

Nếu như bạn muốn highlight cho nhiều ngôn ngữ khác nữa, bạn cần phải chèn thêm các file js tương ứng vào phần code trước thẻ </body> (chỉ cần file js, file css không cần nữa). Như vậy là bạn đã hoàn thành xong phần cài đặt.

Trang chủ của SyntaxHighlighter có hướng dẫn cài đặt đầy đủ bằng tiếng Anh, các bạn có thể tham khảo thêm nếu muốn.

Cài đặt tổng hợp với phiên bản của Hỗn tạp Blog

Nếu bạn tiến hành cài đặt theo phương pháp trên, bạn sẽ mất khá nhiều thời gian để: một là tìm host lưu trữ các file js và css, hai là phải chèn thủ công nhiều đoạn code tương ứng với các ngôn ngữ cần thiết. Nhằm giảm bớt công sức cho các bạn, tôi có “nối” các file js và css lại với nhau thành 2 file (1 file js và 1 file css) và up chúng lên Google Code lưu trữ sẵn. Trong 2 file này, tôi dùng theme mặc định (theme mà Hỗn tạp Blog đang dùng) và chứa sẵn phần hiển thị code cho các ngôn ngữ thường gặp, bao gồm: PHP, Javascript, CSS, HTML (XML) và Bash. Nếu như bạn chỉ dùng các ngôn ngữ này thì chỉ cần include 2 file này vào trong template như sau:

Chèn đoạn code sau vào ngay trước thẻ </head>:
<link type="text/css" href="http://rilwis.googlecode.com/svn/trunk/blogger/syntaxhighlighter.css"/>
Sau đó chèn đoạn code sau vào ngay trước thẻ </body>
<script type="text/javascript" src="http://rilwis.googlecode.com/svn/trunk/blogger/syntaxhighlighter.min.js"></script>
Việc làm này còn có 1 lợi ích nhỏ nữa là blog của bạn sẽ chỉ có gửi 1 request cho file css và 1 request cho file js, tức là giảm số request của bạn đi khá nhiều, điều này phần nào giúp bạn tăng tốc website và đạt điểm cao hơn trong YSlow.

Hướng dẫn sử dụng

Sau khi cài đặt hoàn tất, để sử dụng SyntaxHighlighter trong bài viết, bạn cần viết đoạn code của bạn theo mẫu sau:
<code>
// đoạn code bạn cần hiển thị
</code>

Trong đó có 2 chú ý:

– Thứ nhất: lưu ý đoạn class="brush:xml", nó nhằm thông báo cho SyntaxHighlighter biết bạn muốn hiển thị đoạn code này theo ngôn ngữ XML (HTML, XHTML). Nếu bạn muốn hiển thị code theo ngôn ngữ khác thì cần sửa brush này theo mẫu sau:

class="brush:php": cho PHP
class="brush:js": cho JavaScript (bạn cũng có thể dùng “javascript”, “jscript” thay thế)
class="brush:css": cho CSS
class="brush:xml": cho XML, HTML, XHTML (có thể dùng “html”, “xhtml” cũng được)
class="brush:bash": cho Bash

Ở trang chủ của SyntaxHighlighter có liệt kê danh sách đầy đủ các brush hiện có.

– Thứ hai: đoạn code bạn muốn hiển thị phải không được mã hóa các ký tự < >. Bạn có thể sử dụng công cụ Code Converter của Hỗn tạp Blog để làm điều này.

Ngoài cách sử dụng như trên (cách truyền thống), thì SyntaxHighlighter cũng bổ sung 1 cách dùng mới sử dụng thẻ script. Mẫu chèn của nó có dạng sau:
<script type="syntaxhighlighter"><![CDATA[
function foo()
{
if (counter <= 10)
return;
// it works!
}
]]></script>

Nếu sử dụng phương pháp này, đoạn code của bạn không cần phải mã hóa các ký tự < >.

Phương pháp thứ nhất (chèn bằng thẻ code) có ưu điểm là nó sử dụng semantic code (tạm hiểu là code đúng theo ngữ nghĩa của các thẻ), còn phương pháp thứ hai có ưu điểm là không phải mã hóa các ký tự HTML. Ưu điểm của cái này là nhược điểm của cái kia, và lựa chọn phương pháp sử dụng nào là tùy bạn. Tại Hỗn tạp Blog, tôi dùng cách đầu tiên.

Chi tiết thêm về các cách sử dụng, hãy tham khảo tài liệu tại trang chủ của SyntaxHighlighter.

Sử dụng SyntaxHighlighter trong Wordcodess

Vì SyntaxHighlighter là một javascript đơn thuần, nên nó có thể tích hợp được vào bất kỳ website nào, bao gồm cả Wordcodess. Các hướng dẫn cài đặt và sử dụng ở trên đều có thể áp dụng được cho Wordcodess mà không cần sửa đổi gì.

Tuy vậy, việc cài đặt trên Wordcodess có thể tiến hành dễ dàng hơn rất nhiều bằng cách sử dụng Plugin. Hiện tại có rất nhiều plugin dùng để cài đặt một cái SyntaxHighlighter này, đơn cử như SyntaxHighlighter EvolvedSyntaxHighlighter2 hay Syntax Highlighter Wordcodess Plugin. Bởi vì tất cả các plugin này đều sử dụng SyntaxHighlighter để làm đẹp code, nên việc chọn dùng cái nào phụ thuộc phần lớn vào tính tiện dụng của chúng (có plugin cung cấp shortcodes để dễ dàng soạn thảo hơn, có plugin thì không). Và tất nhiên nhớ đọc kỹ hướng dẫn sử dụng trước khi dùng.