锘??xml version="1.0" encoding="utf-8" standalone="yes"?>相泽南亚洲一区二区在线播放,亚洲小视频在线观看,亚洲国产成人片在线观看http://www.tkk7.com/sealyu/category/45940.html--- The devil's in the Details (<a >http://www.sealyu.com</a>)zh-cnFri, 10 Dec 2010 09:01:20 GMTFri, 10 Dec 2010 09:01:20 GMT60鏈鍙楁榪庣殑50涓厤璐箇ordpress妯℃澘(杞?http://www.tkk7.com/sealyu/archive/2010/12/09/340138.htmlsealsealThu, 09 Dec 2010 05:20:00 GMThttp://www.tkk7.com/sealyu/archive/2010/12/09/340138.htmlhttp://www.tkk7.com/sealyu/comments/340138.htmlhttp://www.tkk7.com/sealyu/archive/2010/12/09/340138.html#Feedback0http://www.tkk7.com/sealyu/comments/commentRss/340138.htmlhttp://www.tkk7.com/sealyu/services/trackbacks/340138.html

璇戣呮敞錛?em>WordPress鏄渶鍙楁榪庣殑鍗氬鍙戝竷騫沖彴涔嬩竴錛屽叿鏈夊厤璐癸紝楂樺害鍙畾鍒躲佸鏄撳畨瑁呭拰浣跨敤絳夌壒鑹層傜敱浜嶹ordpress鏄姝ゆ祦琛屽拰鍙楁榪庯紝浣犲彲浠ユ壘鍒板ぇ閲忕殑Wordpress寮鍙戜互鍙婄鐞嗙瓑鏂歸潰鐨勮祫婧愶紝涓板瘜鐨勭敤鎴鋒寚鍗楄浣犺兘澶熷揩閫熺殑涓婃墜浣跨敤銆傚弬鑰冭祫鏂欙細30涓《綰ordpress鍩硅瑙嗛鎸囧崡涓庢暀紼?/a>

鏈夊緢澶氬ぉ鎵嶈璁″笀閫夋嫨鍙戣〃鍏嶈垂鐨?a title="wordpress" >wordpress涓婚銆傚ぇ澶氭暟鏃跺欙紝瀵逛簬浠栦滑鏉ヨ鍞竴鐨勪竴鐐瑰皬瑕佹眰灝辨槸淇濈暀浠栦滑鐨勮璁″厓绱狅紝騫墮摼鎺ュ埌浠栦滑鐨勭綉绔欙紙闈炲父鍚堢悊鐨勮姹傦級銆?/p>

鍦ㄦ湰鏂囦腑錛屾垜浠暣鐞嗕簡50涓紭縐鐨勩侀珮璐ㄩ噺鐨勩?a >鍏嶈垂鐨刉ordpress涓婚緇欏ぇ瀹躲傝繖浜涗富棰樺寘鍚簡鍒朵綔綺劇粏涓斿崕涓界殑涓婚錛屼篃鏈夌畝媧佹竻鐖界殑涓婚錛屼綘鍙互鎵懼埌閫傚悎浣犵殑璁捐鍝佷綅鐨剋ordpress涓婚銆?/p>

璇存槑: 璇峰姟蹇呮鏌ヤ富棰樼殑璁稿彲鍗忚錛屼笉瑕佽繚鍙嶄嬌鐢ㄩ檺鍒訛紙濡傛灉鏈夌殑璇濓級錛屽茍涓斾繚鐣欒璁″笀鐨勮璁″睘鎬footer涓殑璁捐淇℃伅]錛屽嵆浣胯璁″笀娌℃湁瑕佹眰浣犺繖涔堝仛銆俒浜掕仈緗戣惀閿鍗氬娉?/strong>錛氳 璁′竴涓紓浜殑wordpress theme錛岄渶瑕佽姳璐硅璁″笀寰堝鐨勬椂闂村拰綺懼姏錛屽鏋滀綘鍠滄榪欎簺鍏嶈垂鐨剋ordpress涓婚錛岃灝婇噸璁捐甯堢殑鍔沖姩鎴愭灉銆俔

璇戣呮敞錛氬湪鏈枃涓粙緇嶇殑wordpress涓婚鍧囦負鑻辨枃妯℃澘錛屽浜庝嬌鐢ㄨ嫳鏂囧啓鍗氬鐨勬湅鍙嬫潵璇達紝榪欓噷榪樻湁鎴戞敹闆嗙殑3涓嫳鏂囧啓浣滆蔣浠跺彲浠ュ弬鑰冿紝閮芥湁鍏嶈垂璇曠敤鐗堟湰鍙緵涓嬭澆錛?銆?a title="whitesmoke" >Whitesmoke 錛?鏈閫傚悎ESL浣跨敤鐨勮嫳鏂囧啓浣滃拰璇硶綰犻敊杞歡錛屾敮鎸乵ac os銆?銆?a title="stylewriter" >Stylewriter 錛?鏈閫傚悎鍏徃錛岀粍緇囷紝浣滃浣跨敤鐨刾lain english鍐欎綔杞歡銆?銆?a title="ginger software" >Ginger Software - 鑻辨枃鎷煎啓鍜岃娉曟鏌ヨ蔣浠訛紝鍜寃hitesmoke宸笉澶氾紝浣嗘洿涓轟笓涓氱殑鑻辨枃鍐欎綔宸ュ叿銆?/p>

Color Paper

Color Paper - screen shot.

Demo | Download

Cellar Heat

Cellar Heat - screen shot.
Demo | Download

Simply Ornate

Simply Ornate - screen shot.
Demo | Download

Agregado

Agregado - screen shot.
Demo | Download

Notepad Chaos

Notepad Chaos - screen shot
Preview | Download

WordPress Fun

WordPress Fun - screen shot.
Preview | Download

Infinity

Infinity - screen shot.
Preview | Download

Outdoorsy Theme

Outdoorsy Theme - screen shot.
Download

Curious

Curious - screen shot.
Demo | Download

Brightness

Brightness - screen shot.
Demo | Download

japan-style

japan-style - screen shot.
Demo | Download

BizTheme

BizTheme - screen shot.
Demo | Download

SCRUFFY

SCRUFFY - screen shot.
Demo | Download

Aspire

Aspire - screen shot.
Demo | Download

Pixeled

Pixeled - screen shot.
Download

Wilderness

Wilderness - screen shot.
Download

SuperFresh

SuperFresh - screen shot.
Demo | Download

WP CODA

WP CODA - screen shot.
Demo | Download

Vikiworks V5

Vikiworks V5 - screen shot.
Download

MyWall

MyWall - screen shot.
Preview | Download

Firebug

Firebug - screen shot.
Demo | Download

Illacrimo

Illacrimo - screen shot.
Download

iTheme

iTheme - screen shot.
Demo | Download

Tigerpress

Tigerpress - screen shot.
Preview | Download

Mahiwaga

Mahiwaga - screen shot.
Download

Photo Clip

Photo Clip - screen shot.
Demo | Download

Dilectio

Dilectio - screen shot.
Download

Typebased

Typebased - screen shot.
Download

The Original Premium News

The Original Premium News -screen shot.
Download

Snapshot

Snapshot - screen shot.
Download

Portfolio

Portfolio - screen shot.
Demo | Download

Mimbo 2

Mimbo 2 - screen shot.
Demo | Download

ColdBlue

ColdBlue - screens hot.
Download

Sharpfolio

Sharpfolio - screen shot.
Demo | Download

Yoghourt

Yoghourt - screen shot.
Download

BlogBus

BlogBus - screen shot.
Preview | Download

Ashford

Ashford - screen shot.
Download

SubtleZen

SubtleZen - screen shot.
Download

Vistalicious

Vistalicious - screen shot.
Download

Small Magazine

Small Magazine - screen shot.
Preview | Download

Sp142 theme

Sp142 theme - screen shot.
Demo | Download

Chronicles

Chronicles - screen shot.
Download

DailyPress

DailyPress - screen shot.
Download

Portfolio Press

Portfolio Press - screen shot.
Download

Wordpress Magazine theme

Wordpress Magazine theme - screen shot.
Preview | Download

Brilliance

Brilliance - screen shot.
Download

Simple Balance 2.0

Simple Balance 2.0 - screen shot.
Demo | Download

The Unstandard

The Unstandard - screen shot.
Download

Modicus Remix

Modicus Remix - screen shot.
Demo | Download

Lightning

Lightning - screen shot.
Demo | Download



seal 2010-12-09 13:20 鍙戣〃璇勮
]]>
鍏充簬澶氱珯鐐瑰畨瑁呯殑鎬葷粨錛堣漿錛?/title><link>http://www.tkk7.com/sealyu/archive/2010/12/04/339801.html</link><dc:creator>seal</dc:creator><author>seal</author><pubDate>Sat, 04 Dec 2010 11:47:00 GMT</pubDate><guid>http://www.tkk7.com/sealyu/archive/2010/12/04/339801.html</guid><wfw:comment>http://www.tkk7.com/sealyu/comments/339801.html</wfw:comment><comments>http://www.tkk7.com/sealyu/archive/2010/12/04/339801.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/sealyu/comments/commentRss/339801.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/sealyu/services/trackbacks/339801.html</trackback:ping><description><![CDATA[<p>涓浜涚浉鍏寵祫婧愶細</p> <ul> <li><a title="http://zhupou.cn/drupal-handbook/tutorials/set-up-multi-site-using-drupal" >http://zhupou.cn/drupal-handbook/tutorials/set-up-multi-site-using-drupal</a></li> <li><a title="http://drupal.org/node/99840" >http://drupal.org/node/99840</a></li> <li><a title="http://drupal.org/node/66657" >http://drupal.org/node/66657</a></li> <li><a title="http://drupal.org/node/428596" >http://drupal.org/node/428596</a></li> <li><a title="http://drupal.org/node/69199#comment-129840" >http://drupal.org/node/69199#comment-129840</a></li> <li><a title="http://drupal.org/node/14697" >http://drupal.org/node/14697</a></li> <li><a title="http://drupal.org/node/147828" >http://drupal.org/node/147828</a></li> <li><a title="http://drupal.org/node/63863" >http://drupal.org/node/63863</a></li> <li><a title="http://drupal.org/node/125539" >http://drupal.org/node/125539</a></li> <li><a title="http://drupal.org/node/43816" >http://drupal.org/node/43816</a></li> <li><a title="http://drupal.org/node/25011" >http://drupal.org/node/25011</a></li> <li><a title="http://drupal.org/node/25011#comment-136227" >http://drupal.org/node/25011#comment-136227</a></li> </ul> <p>Drupal 瀹炲湪鏄竴涓緢寮哄ぇ鐨勭綉緇滄搷浣滅郴緇燂紝瀹冨唴寤虹殑澶氱珯鐐瑰畨瑁呮満鍒墮潪甯稿己澶э紝浣嗕篃姣旇緝澶嶆潅錛屼笅闈㈡垜鏉ユ葷粨涓涓嬫湰绔?robinlord.org)鐨勫绔欑偣瀹夎鏂規銆?/p> <p>寰堝鏈嬪弸璐拱鐨勮櫄鎷熶富鏈哄鏁版嵁搴撴垨鑰呯┖闂存垨鑰呭彲浠ョ粦瀹氱殑鍩熷悕鎴栬呰兘澶熻緗殑瀛愬煙鍚嶉檺鍒墮潪甯稿帀瀹籌紝浣嗘槸浣跨敤 drupal 榪欎竴鍒囧皢涓嶅啀鏄棶棰樸侱rupal 鍙互浣跨敤涓涓暟鎹簱鏉ュ畨瑁呭涓珯鐐癸紝榪欎釜鍙鍦ㄥ畨瑁呰繃紼嬩腑璁懼畾鏁版嵁琛ㄥ墠緙鍗沖彲銆?/p> <p>鎴戞潵鍒嗘瀽涓嬫湰绔?robinlord.org)鐨勭粨鏋勩傛湰绔欑洰鍓嶅叡浣跨敤鍚屼竴濂?Drupal 浠g爜鎼緩浜嗕笁涓嫭绔嬬殑绔欑偣錛歜logs.robinlord.org銆乨rupal.robinlord.org銆? drupal.robinlord.org/hanhua銆傛槸鐨勶紝娌¢敊錛屾渶鍚庨偅涓槸鐙珛鐨勭珯鐐癸紝涓嶆槸涓涓礬寰勶紝榪欎釜鏄埄鐢?drupal 鐨勫瓙鐩綍鏉ュ仛鐙珛绔欑偣鐨勶紝鏈枃鐨勫叧閿篃灝卞湪榪欎竴鍒囩殑瀹炵幇銆?/p> <p>鏈珯鏄噰鐢?strong>娉涘煙鍚嶈В鏋?/strong>+<strong>.htacess</strong>鐨勬柟妗堟潵瀹炵幇鐨勩?/p> <p>棣栧厛闇瑕佷簡瑙d粈涔堟槸<strong>娉涘煙鍚嶈В鏋?/strong>錛岀劧鍚庢妸鎵鏈夌殑 *.roginlord.org 瑙f瀽鍒扮珯鐐圭殑 web 鏍圭洰褰?public_html)錛屾帴鐫鍦ㄦ牴鐩綍涓嬪緩绔?drupal 鐩綍鍋氫負 drupal 鐨勪唬鐮佺洰褰曪紝鎺ョ潃鍦ㄦ牴鐩綍涓嬬殑 .htacess 娣誨姞 urlrewrite 瑙勫垯錛屾妸瀵?drupal.robinlord.org 鍜?blogs.robinlord.org 鐨勮姹傚叏閮ㄥ畾鍚戝埌 drupal 鐩綍錛屽叾瀹冪殑浜岀駭鍩熷悕鐩綍榪欐牱鍋氥傝嚦浜?drupal.robinlord.org/hanhua 錛屽垯鏄緩绔嬩竴涓悕涓?hanhua 杞摼鎺ュ埌 drupal 鐩綍(Linux 涓繪満錛寃indows 涓繪満鍐嶈鐮旂┒)銆傛瘮濡?/public_html/hanhua 灝辨槸鍒? /public_html/drupal 鐨勮蔣閾炬帴錛屽悓鏃跺湪緇?drupal.robinlord.org 鍋歶rl閲嶅啓鏃墮伩寮瀵?hanhua 鐨勯噸鍐欙紝灝卞疄鐜頒簡銆?/p> <p>涓嬮潰鏄珯鐐圭殑鐩綍緇撴瀯:</p> <pre>public_html/ --|<br /> |-- drupal/ #[鐩綍]榪欎釜鏄?drupal 鐨勭▼搴忕洰褰?br /> |--hanhua/ #[鐩綍]榪欎釜鏄埌 drupal 鐨勮蔣閾炬帴<br /> |--.htacess #[鏂囦歡]榪欓噷閰嶇疆鐩綍鐨?URL 閲嶅啓瑙勫垯<br /> </pre> <p>涓嬮潰鏄牴鐩綍涓?.htacess 鐨勫唴瀹癸細</p> <pre><IfModule mod_rewrite.c><br /> RewriteEngine on<br /> #閲嶅啓浜岀駭鍩熷悕鐨勮礬寰?br /> RewriteCond %{HTTP_HOST} ^blogs".robinlord".org$<br /> RewriteRule ^(.*)$ drupal/$1 [L]<br /> RewriteCond %{HTTP_HOST} ^drupal".robinlord".org$<br /> #瀵逛簬瀛愮洰褰曠嫭绔嬬珯鐐圭殑閰嶇疆<br /> RewriteCond %{REQUEST_URI} !^hanhua<br /> RewriteRule ^(.*)$ drupal/$1 [L]<br /> </IfModule><br /> </pre> <p>榪欐牱灝卞疄鐜頒簡澶氫釜绔欑偣鐨勮闂紝涓嬮潰鏄绔欑偣鐨勫畨瑁呭強鍏敤鐢ㄦ埛鏁版嵁鐨勮緗?/p> <p>棣栧厛錛屽湪瀹夎涔嬪墠鎵嬪姩寤虹珛濂藉悇涓珯鐐圭殑閰嶇疆鏂囦歡錛岄伒寰绔欑偣鐩綍鐨勫懡鍚嶈鍒欍傛湰绔欏垯寤虹珛浜嗗涓嬪嚑涓洰褰曪細</p> <pre> sites/--|<br /> |-- blogs.robinlord.org<br /> |-- drupal.robinlord.org<br /> |-- drupal.robinlord.org.hanhua<br /> </pre> <p>鍦ㄦ瘡涓洰褰曟墜鍔ㄥ緩绔嬬浉搴旂殑 settings.php 錛屼笅闈㈡槸 blogs.robinlord.org 鐨?settings.php 閰嶇疆鏂囦歡涓渶瑕佹墜鍔ㄨ瀹氱殑鍦版柟錛屽叾浠栭厤緗湪瀹夎榪囩▼涓細鑷姩璁劇疆銆?/p> <pre>$db_url = 'mysql://username:password@localhost/databasename';<br /> $db_prefix = array(<br /> 'default' => 'blogs_',<br /> 'users' => 'shared_',<br /> 'access' => 'shared_',<br /> 'authmap' => 'shared_',<br /> 'sessions' => 'shared_',<br /> 'profile_fields' => 'shared_',<br /> 'profile_values' => 'shared_',<br /> 'languages' => 'shared_',<br /> 'locales_source' => 'shared_',<br /> 'locales_target' => 'shared_',<br /> );<br /> $base_url = 'http://blogs.robinlord.org';<br /> $cookie_domain = 'robinlord.org';<br /> </pre> <p>$db_url 鏄暟鎹簱閰嶇疆銆?/p> <p>$db_prefix 璁懼畾琛ㄥ墠緙錛宒efault 璁懼畾绔欑偣榛樿鐨勮〃鍓嶇紑錛屽叾浠栫殑鍒欐槸鏁版嵁琛ㄧ殑鍚嶇О鍙婂叾瀵瑰簲鐨勫墠緙璁懼畾錛屼竴鑸兘璁句負 'shared_'銆?/p> <p>$base_url 璁懼畾绔欑偣鏍瑰煙鍚嶏紝榪欎釜蹇呴』鏍規嵁鍏蜂綋鎯呭喌璁劇疆錛岃礋璐g珯鐐硅礬寰勫彲鑳戒細鍑洪敊銆?/p> <p>$cookie_domain 榪欎釜灝辨槸澶氱珯鐐瑰叕鐢ㄧ櫥闄嗙殑鍏抽敭錛岃緗負绔欑偣鐨勬牴鍩燂紝鍗沖彲瀹炵幇鍦ㄥ绔欑偣鐧婚檰涓嬈″嵆鍙傚綋鐒惰繕闇瑕佸叕鐢?user 鍜?session 鐩稿叧鐨勮〃錛岃繖涓墠闈㈠凡緇忛厤緗ソ浜嗐?/p> <p>璁懼畾濂介厤緗枃浠跺悗錛屽氨鍙互寮濮嬪畨瑁呰繘紼嬨傚洜涓哄凡緇忚瀹氫簡鏁版嵁搴撻厤緗紝鎵浠ュ畨瑁呯▼搴忎細鐩存帴璺寵繃榪欎簺璁劇疆鐨勯〉闈㈣岀洿鎺ュ紑濮嬪畨瑁呫?/p> <img src ="http://www.tkk7.com/sealyu/aggbug/339801.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/sealyu/" target="_blank">seal</a> 2010-12-04 19:47 <a href="http://www.tkk7.com/sealyu/archive/2010/12/04/339801.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>zencart 緇欎綘鐨勮喘鐗╃綉绔欏姞涓妏hpBB璁哄潧http://www.tkk7.com/sealyu/archive/2010/11/30/339422.htmlsealsealTue, 30 Nov 2010 10:10:00 GMThttp://www.tkk7.com/sealyu/archive/2010/11/30/339422.htmlhttp://www.tkk7.com/sealyu/comments/339422.htmlhttp://www.tkk7.com/sealyu/archive/2010/11/30/339422.html#Feedback0http://www.tkk7.com/sealyu/comments/commentRss/339422.htmlhttp://www.tkk7.com/sealyu/services/trackbacks/339422.html瀹夎濂絑en Cart v1.2.1鎴栨洿楂樼増鏈紝騫朵笖浣犲湪瀹夎Zen Cart鏃舵病鏈夐夋嫨闆嗘垚phpBB銆?/div>
2. 瀹夎phpBB騫朵繚璇佽兘姝e父宸ヤ綔銆備負浜嗗鏄撻厤緗紝寤鴻鍦ㄦ牴鐩綍涓嬪畨瑁卲hpBB錛屼緥濡傦細
http://mysite.com/forums
鎴栬?/div>
http://mysite.com/phpbb
3. 緙栬緫鏂囦歡/includes/configure.php錛屽湪涓嬮潰榪欒瀹氫箟phpBB鐩綍鐨勮礬寰勶細
define(‘DIR_WS_PHPBB’, ‘/phpBB2/’);
璺緞蹇呴』鏄墿鐞嗚礬寰勶紝濡?/var/www/client/public_html/ 榪欐牱鐨勬牸寮忋傚彲浠ュ弬鐓?DIR_FS_CATALOG錛岀劧鍚庡姞涓妏hpBB 鎴?forum 鎴栫浉搴旂洰褰曞悕銆?/div>
蹇呴』浠?/ 緇撳熬銆?/div>
4. 鍦╖en Cart鐨勭鐞嗛〉闈紝Configuration->My Store涓嬶紝璁劇疆”Enable phpBB Linkage?” 涓?TRUE
璁劇疆瀹屾垚鍚庯紝鏂扮敤鎴鋒敞鍐屾椂錛岀郴緇熶細璁╃敤鎴瘋緭鍏ヤ竴涓鍧涚殑鐢ㄦ埛鍚?

瀹夎濂絑en Cart v1.2.1鎴栨洿楂樼増鏈紝騫朵笖浣犲湪瀹夎Zen Cart鏃舵病鏈夐夋嫨闆嗘垚phpBB銆?br /> 2. 瀹夎phpBB騫朵繚璇佽兘姝e父宸ヤ綔銆備負浜嗗鏄撻厤緗紝寤鴻鍦ㄦ牴鐩綍涓嬪畨瑁卲hpBB錛屼緥濡傦細http://mysite.com/forums鎴栬卙ttp://mysite.com/phpbb
3. 緙栬緫鏂囦歡/includes/configure.php錛屽湪涓嬮潰榪欒瀹氫箟phpBB鐩綍鐨勮礬寰勶細define(‘DIR_WS_PHPBB’, ‘/phpBB2/’);

璺緞蹇呴』鏄墿鐞嗚礬寰勶紝濡?/var/www/client/public_html/ 榪欐牱鐨勬牸寮忋傚彲浠ュ弬鐓?DIR_FS_CATALOG錛岀劧鍚庡姞涓妏hpBB 鎴?forum 鎴栫浉搴旂洰褰曞悕銆?br /> 蹇呴』浠?/ 緇撳熬銆?br /> 4. 鍦╖en Cart鐨勭鐞嗛〉闈紝Configuration->My Store涓嬶紝璁劇疆”Enable phpBB Linkage?” 涓?TRUE
璁劇疆瀹屾垚鍚庯紝鏂扮敤鎴鋒敞鍐屾椂錛岀郴緇熶細璁╃敤鎴瘋緭鍏ヤ竴涓鍧涚殑鐢ㄦ埛鍚?










鐪嬩簡涓涓綉绔欏叧浜巣en-cart瀹夎闆嗘垚phpbb3鐨勬楠ゅ拰鏂規硶,鍩烘湰閮芥湁浜涢敊璇強涓嶆紜殑鍦版柟,鎴戜簡鑷繁璁板綍鏂逛究,鎴戝皢姝ラ鍙婃柟娉曚粙緇嶅涓?
1 鍒?a >www.phpbb.com 瀹樻柟涓嬭澆涓涓渶鏂扮増,鐒跺悗鏍規嵁闇瑕佸湪http://www.phpbb.com/languages/,涓嬭澆鎸囧畾鐨勮璦,騫舵妸鐩稿簲鐨勭洰褰昹anguage涓?
2 鍦ㄦ寚瀹氱殑zen-cart鐩綍涓嬪緩绔嬩竴涓猣orums鎴朾bs鐨勭洰褰?灝唒hpbb3浠g爜鏀懼叆鐩綍涓?鎵懼埌鎸囧畾鐨勬暟鎹簱鐢ㄦ埛鍚嶅瘑鐮佽祫鏂?灝卞彲浠ュ畨瑁?瀹夎榪囩▼涓彲閫夋嫨鎸囧畾鐨勮璦,褰撶劧瀹夎鍚庝篃鍙噸鏂伴夋嫨榛樿鐨勮璦.
3 鐢變簡phpbb3闇瑕佸皢zencart鐨勪竴涓被鏂囦歡鎹㈡帀,緗戜笂嫻佷紶鐨勪唬鐮佹湁闂,鎴戝仛浜嗕慨姝e拰琛ュ厖./includes/classes/class.phpbb.php
4 鍦╟onfigure.php涓殑define(‘DIR_WS_PHPBB’, ‘/home/緗戠珯鍚?public_html/forums/’);璁劇疆瀹屾暣鐨勮礬寰?br /> 5 鍦╝dmin/鍩烘湰璁劇疆 涓?灝?nbsp; 鎵撳紑phpBB閾炬帴? 璁劇疆鎴恡rue.
瀹屾垚涓婅堪5涓楠?鍗沖彲鍦ㄧ敤鎴鋒敞鍐屾椂,灝嗘敞鍐屼俊鎭悓鏃舵敞鍏ュ埌phpbb3鐨勬暟鎹簱涓?/p>

seal 2010-11-30 18:10 鍙戣〃璇勮
]]> Simplest Drupal iPhone App錛堣漿錛?/title><link>http://www.tkk7.com/sealyu/archive/2010/09/15/332066.html</link><dc:creator>seal</dc:creator><author>seal</author><pubDate>Wed, 15 Sep 2010 05:53:00 GMT</pubDate><guid>http://www.tkk7.com/sealyu/archive/2010/09/15/332066.html</guid><wfw:comment>http://www.tkk7.com/sealyu/comments/332066.html</wfw:comment><comments>http://www.tkk7.com/sealyu/archive/2010/09/15/332066.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/sealyu/comments/commentRss/332066.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/sealyu/services/trackbacks/332066.html</trackback:ping><description><![CDATA[<p>Maybe not the most simple, but pretty close. This app posts a node to Drupal Services using XML-RPC. We thought it would be useful for anyone interested in building an iPhone app that interacts with Drupal and wanted a basic starting point. It provides two text fields and a submit button. Enter some text and press submit and the fields get posted to the Drupal site (the URL is hardcoded into the app, not very useful). </p> <p> On the Drupal end, you will need the Services, the XML-RPC server, and the Node Service modules enabled (these are all bundled with <a target="_blank">Services</a>). In addition you will have to disable keys and sessid in Services (Site Building > Services > Settings). Also you have to allow anonymous access to services, and allow anonymous creation of story nodes (both in User management > Permissions). So you really do not want to do this on any kind of production site. </p> <p> The iPhone calls the node.save method by posting the following XML:</p> <p><methodName>node.save</methodName><br /> <params><br /> <param><value><struct><br /> <member><name>type</name><value><string>story</string></value></member><br /> <member><name>title</name><value><string>title text</string></value></member><br /> <member><name>body</name><value><string>body text</string></value></member><br /> </struct></value></param><br /> </params></methodCall></p> <p> The iPhone app provides two ways to accomplish this. The first (commented out in the code) creates a HTTP POST request with the XML above as the body. This is not very useful since you have to provide the raw XML, but it shows how to execute an HTTP POST which is useful for many other things. The second uses XML-RPC functionality borrowed from the open-source <a target="_blank">wordpress app</a> (which itself is a version of the <a target="_blank">Cocoa XML-RPC Framework</a> ). This makes it much easier to formulate and execute XML-RPC calls, and the whole thing boils down to this:</p> <div id="35pvhfx" class="codeblock"><code>    XMLRPCRequest *request = [[XMLRPCRequest alloc] initWithHost:[NSURL URLWithString: @"http://192.168.1.14/drupal-6.6/services/xmlrpc"]];<br /> NSMutableDictionary *postParams = [NSMutableDictionary dictionary];<br /> [postParams setObject:@"story" forKey:@"type"];     <br /> [postParams setObject:titleString forKey:@"title"];  // title input from iphone<br /> [postParams setObject:bodyString forKey:@"body"];    // body input from iphone<br /> [request setMethod:@"node.save" withObject:postParams];<br /> XMLRPCResponse *nodeSaveResponse = [XMLRPCConnection sendSynchronousXMLRPCRequest:request];</code></div> <p> The full app below. Developed with iPhone SDK 2.2.</p> <table id="attachments" class="sticky-enabled"> <thead> <tr> <th>Attachment</th><th>Size</th> </tr> </thead> <tbody> <tr class="odd"> <td><a >simpleNodeTitleBody-XMLRPC.zip</a></td> <td>899.47 KB</td> </tr> </tbody> </table> <img src ="http://www.tkk7.com/sealyu/aggbug/332066.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/sealyu/" target="_blank">seal</a> 2010-09-15 13:53 <a href="http://www.tkk7.com/sealyu/archive/2010/09/15/332066.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title> An overview of Mobile modules for Drupalhttp://www.tkk7.com/sealyu/archive/2010/09/03/330834.htmlsealsealFri, 03 Sep 2010 02:51:00 GMThttp://www.tkk7.com/sealyu/archive/2010/09/03/330834.htmlhttp://www.tkk7.com/sealyu/comments/330834.htmlhttp://www.tkk7.com/sealyu/archive/2010/09/03/330834.html#Feedback0http://www.tkk7.com/sealyu/comments/commentRss/330834.htmlhttp://www.tkk7.com/sealyu/services/trackbacks/330834.html闃呰鍏ㄦ枃

seal 2010-09-03 10:51 鍙戣〃璇勮
]]>
301 Redirecthttp://www.tkk7.com/sealyu/archive/2010/08/26/329968.htmlsealsealThu, 26 Aug 2010 06:17:00 GMThttp://www.tkk7.com/sealyu/archive/2010/08/26/329968.htmlhttp://www.tkk7.com/sealyu/comments/329968.htmlhttp://www.tkk7.com/sealyu/archive/2010/08/26/329968.html#Feedback0http://www.tkk7.com/sealyu/comments/commentRss/329968.htmlhttp://www.tkk7.com/sealyu/services/trackbacks/329968.html RewriteEngine on
rewritecond %{http_host} ^coolexample.com [nc]
rewriterule ^(.*)$ http://www.coolexample.com/$1 [r=301,nc]

榪欐牱灝辮兘灝哻oolexample.com鐨剈rl姘鎬箙鎬ч噸瀹氬悜鍒皐ww.coolexample.com錛屼粠鑰屽疄鐜版悳绱㈠紩鎿庣殑鍙嬪ソ鎬э紝鎻愰珮鎼滅儲鎺掑悕銆?br /> 娉細鍓嶆彁瑕佸紑濮媟ewrite妯″潡


seal 2010-08-26 14:17 鍙戣〃璇勮
]]>
Drupal SEO 鍏ラ棬(杞?http://www.tkk7.com/sealyu/archive/2010/08/20/329505.htmlsealsealFri, 20 Aug 2010 13:08:00 GMThttp://www.tkk7.com/sealyu/archive/2010/08/20/329505.htmlhttp://www.tkk7.com/sealyu/comments/329505.htmlhttp://www.tkk7.com/sealyu/archive/2010/08/20/329505.html#Feedback0http://www.tkk7.com/sealyu/comments/commentRss/329505.htmlhttp://www.tkk7.com/sealyu/services/trackbacks/329505.htmlDrupal 鏍稿績妯″潡涓氨鍖呭惈浜嗗彲閫夌殑 SEO 浼樺寲閫夐」錛屾澶栬繕鏈変竴浜涙湁鐩婄殑 Drupal 鐨勭涓夋柟妯″潡錛屼粬浠兘鍙互甯姪 Drupal 鐨勪嬌鐢ㄨ呮彁鍗囨悳绱㈠紩鎿庣殑鎺掑悕銆傛湰鏂囧氨灝嗕粙緇嶄竴浜?Drupal SEO 鏃跺繀瑁呮ā鍧楀拰鐩稿簲鐨勮緗紝甯屾湜瀵規偍鏈夋墍甯姪銆備絾鏄繖鍙槸 Drupal SEO 鐨勫紑濮?#8230;…

寮鍚畝媧侀摼鎺?Clean URLs)
寮鍚?Path 妯″潡 (浠?Drupal 4.3 寮濮嬭繘鍏?Drupal 鏍稿績妯″潡)
Path 妯″潡鍙互璁╂偍閫氳繃娣誨姞璺緞鍒悕(path alias)錛屾潵杈懼埌鑷畾涔夐摼鎺ュ悕鐨勬晥鏋溿備緥濡?http://www.mypetal.com/node/7 鍙互瀹氫箟涓?http://www.mypetal.com/library/drupal-seo 銆?/p>

寮鍚?Pathauto 妯″潡 錛坔ttp://drupal.org/project/pathauto錛?br /> Pathauto 妯″潡鑳藉涓轟笉鍚岀被鍨嬬殑欏甸潰錛坣odes, categories, users錛夎嚜鍔ㄧ敓鎴愯礬緇忓埆鍚?path alias)錛岃屼笉鍦ㄩ渶瑕佺敤鎴鋒墜鍔ㄥ畾涔夎礬寰勫埆鍚嶃?/p>

璁劇疆 Pathauto 妯″潡錛屽湪淇敼 node 鐨勬爣棰樻椂錛岀姝?Pathauto 妯″潡浜屾淇敼璺緞鍒悕銆?br /> 寮鍚?Global Redirect 妯″潡錛坔ttp://drupal.org/project/globalredirect錛?br /> Global Redirect 妯″潡鍦ㄩ〉闈㈡嫢鏈夎礬寰勫埆鍚嶇殑鎯呭喌涓嬶紝縐婚櫎璇ラ〉闈㈢殑鍘熷璺緞錛岃繖鏍峰彲浠ュ噺灝戠綉绔欑殑閲嶅鍐呭欏甸潰錛屾湁鍒╀簬 SEO銆?/p>

寮鍚?Meta Tags 錛坣odewords錛夋ā鍧楋紙http://drupal.org/project/nodewords錛?br /> Meta Tags 妯″潡鍙互璁╂偍涓烘瘡涓?node銆乽ser銆乿iew 鎴?panel 欏甸潰璁劇疆澶氱 meta tags錛屼緥濡傦細keywords 鍜?description錛屾湁鍒╀簬 SEO銆?/p>

寮鍚?Page Title 妯″潡錛坔ttp://drupal.org/project/page_title錛?br /> Page Title 妯″潡鑳借鎮ㄨ嚜瀹氫箟欏甸潰鏍囬錛屾湁鍒╀簬 SEO銆?/p>

浣跨敤 Drupal XML Sitemap 妯″潡
璋冩暣 .htaccess 鏂囦歡to redirect to "www" or remove the "www" subdomain.
璋冩暣鎮ㄧ綉绔欎富棰樼殑 HTML headers -- 璁稿涓婚璁劇疆涓嶆紜?br /> 璋冩暣鎮ㄧ綉绔欑殑 robots.txt 鏂囦歡銆傚湪 Drupal 6 涓?Drupal 榛樿鐨?robots.txt 鏂囦歡榪樻槸鏈変竴浜涢棶棰樸?br /> 媯鏌ュ畨瑁呯殑絎笁鏂規ā鍧楁槸鍚︽柊澧炰簡涓浜涢噸澶嶇殑閾炬帴錛屽鏋滄湁錛屼嬌鐢ㄥ湪 robots.txt 娣誨姞瑙勫垯瀵規悳绱㈠紩鎿庣殑鐖櫕榪涜灞忚斀銆?/p>

seal 2010-08-20 21:08 鍙戣〃璇勮
]]>
drupal's audio modulehttp://www.tkk7.com/sealyu/archive/2010/08/19/329351.htmlsealsealThu, 19 Aug 2010 04:01:00 GMThttp://www.tkk7.com/sealyu/archive/2010/08/19/329351.htmlhttp://www.tkk7.com/sealyu/comments/329351.htmlhttp://www.tkk7.com/sealyu/archive/2010/08/19/329351.html#Feedback0http://www.tkk7.com/sealyu/comments/commentRss/329351.htmlhttp://www.tkk7.com/sealyu/services/trackbacks/329351.htmlches

Updated for Drupal 5.1! See the bottom of the article.

I have a growing backlog of stories that I've been meaning to type up here, including several articles of interest for folks getting started with drupal, but I've just finished setting up the audio module, so I thought I'd share my experience while it's fresh on the mind.

You'll notice that you can now play the "two out of three" mp3 from my last post direct from the site without the need to download, and this is thanks to the audio module. Since it utilizes drupal's node model for content types, this module is able to harness much of the power and flexibility inherent in the CMS, including the taxonomy system and automatic RSS/podcast feed generation. It can also be readily extended through modules like the playlist toolkit for sites with sophisticated audio needs.

My intent here, though, is just to offer a quick step-by-step guide for a simpler application: a blog or some other site seeking to include audio files attached to other content types (pages and stories, for instance). Still, this should be helpful for anyone getting started with the audio module.

Installation and Configuration

  1. Let's obtain the audio module from the project page. I'm using version 4.7.0 for this guide. Untar the file in your site's modules directory.

    > tar xzvf audio-4.7.0.tar.gz

  2. Next we need to download the getid3 PHP libraries and unzip the downloaded file into the same directory as audio.module.

    > unzip getid3-1.7.7.zip -d <yoursitepath>/modules/audio/

    Version 1.7.7 of getid3 is recommended in the audio module's documentation.

  3. Open the site in your browser and go to administer >> modules. Enable the audio, audio_attach and audio_getid3 modules. I don't need to add audio files in bulk or use cover art, so I don't use audio_import or audio_images. Configuration for those modules is not covered here.
  4. I don't want audio entries in my navigation menu, so I disabled "audio" and "browse by" at administer >> menus. You can optionally enable audio-related blocks at, you guessed it, administer >> blocks.
  5. You'll need to set user privelages according to your needs: at administer >> access control I gave my blog user "create audio" and "edit own audio" permissions in addition to the defaults.
  6. In order to attach audio nodes to other content types, we need to enable this capability for each type at administer >> settings >> content types. I first configured audio, disabling Attach Images and Attachments since I have the image_attach and upload modules enabled. I also disabled comments and promotion to front page. Then, enable Attach audio files for the content types that suit your needs. I did so for story. You might do the same for page, CCK types or others.
  7. Finally, check your settings at administer >> settings >> audio. Typical PHP configurations will default to a 2MB upload limit -- you'll probably need to adjust your php.ini as suggested if you haven't already done so. Disable Downloadable by default if you want to make it more difficult for users to save copies of your music. Check that settings on the metadata tags tab are to your liking, and check the getid3 tab to assure that your installation is detected correctly.
  8. That's it! You should now be able to create a new node -- of a type set up in step six -- with the option to attach an audio file. This will create an audio node behind the scenes, which you can browse (and edit id3 tags for) at yoursite.com/audio. If you don't want this behavior, uncheck Published when attaching the audio file to your node.

Taking it Further

Of course, if audio plays a more prominent role at your site, there's much more that you can do with the audio module, incorporating taxonomy, changing the look of the player, and so on. Here are some links to get you started.

Update for Drupal 5.1

For the most part, updating my audio module for use as outlined above was intuitive, with one exception: the audio_attach module has just been contributed to CVS for 5.x by zirafa. He's also contributed a new audio_playlist module, but I haven't tried that out yet. To get audio_attach (and get my existing nodes with attached audio back to working order), I checked out the audio module from CVS with the following commands:

> cd <yoursitepath>/modules
> cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -d audio contributions/modules/audio

I installed the modules as normal and ran update.php. At this point I received an SQL error as the script attempted to set multiple primary keys for the audio_attach table. I manually set nid, aid and weight as primary keys using phpMyAdmin, and I was back in business. I've found that my Flash players are not visible when using the handy admin_menu module, but that probably shouldn't effect many of your users.

I'll try to update all of these instructions soon. In the meantime, comment if you have questions!



seal 2010-08-19 12:01 鍙戣〃璇勮
]]>
45涓彲鐢ㄤ簬Drupal涓婚鐨勫厤璐筆SD緗戦〉妯$増涓嬭澆錛堣漿錛?/title><link>http://www.tkk7.com/sealyu/archive/2010/08/19/329309.html</link><dc:creator>seal</dc:creator><author>seal</author><pubDate>Thu, 19 Aug 2010 01:59:00 GMT</pubDate><guid>http://www.tkk7.com/sealyu/archive/2010/08/19/329309.html</guid><wfw:comment>http://www.tkk7.com/sealyu/comments/329309.html</wfw:comment><comments>http://www.tkk7.com/sealyu/archive/2010/08/19/329309.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/sealyu/comments/commentRss/329309.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/sealyu/services/trackbacks/329309.html</trackback:ping><description><![CDATA[     鎽樿: 榪欎簺PSD瀵逛簬璁捐甯堣呮潵璇寸湡鏄ぉ澶х殑紱忛煶錛屽啀涔熶笉鐢ㄤ負緇炲敖鑴戞眮鐨勮璁℃ā鐗堣屽ご鐤間簡銆傝璁″笀浠彲浠ヤ笅杞芥敹钘忎竴涓嬶紝浠ュ闇瑕佷箣鏃訛紝鎷挎潵鐢ㄤ笂銆?1.) Solitude 2.) Dusky 3.) Tour 4.) Anticipated 5.) Shape 6.) Fashio...  <a href='http://www.tkk7.com/sealyu/archive/2010/08/19/329309.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/sealyu/aggbug/329309.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/sealyu/" target="_blank">seal</a> 2010-08-19 09:59 <a href="http://www.tkk7.com/sealyu/archive/2010/08/19/329309.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Drupal Clean URLs -- Apache 2 Configuration on Ubuntuhttp://www.tkk7.com/sealyu/archive/2010/08/19/329304.htmlsealsealThu, 19 Aug 2010 01:32:00 GMThttp://www.tkk7.com/sealyu/archive/2010/08/19/329304.htmlhttp://www.tkk7.com/sealyu/comments/329304.htmlhttp://www.tkk7.com/sealyu/archive/2010/08/19/329304.html#Feedback0http://www.tkk7.com/sealyu/comments/commentRss/329304.htmlhttp://www.tkk7.com/sealyu/services/trackbacks/329304.htmlThere are two methods for setting up Drupal 5.x/6.x with Apache on Ubuntu. The first (preferred) method edits the virtual host configuration, which is the default setup on Ubuntu (even for a single-site web server). The second edits the main apache2.conf, which is typical for an older setup.

Step 1 - Method A: "Virtual Host" Setup

First, from the Linux command line, enable the rewrite module for apache with this command:

sudo a2enmod rewrite

You can check to see if this worked by running:

apache2ctl -M

and seeing if it is on the list.

Next, use an editor (such as nano) to edit the appropriate Apache configuration file for your Drupal site in the /etc/apache2/sites-available/ directory. For a single site, the file is /etc/apache2/sites-available/default; if you have multiple sites, the file names should reflect the names of the sites to which they refer. Thus, to edit the default site configuration, use

sudo nano /etc/apache2/sites-available/default

Look for the Directory section referring to the folder where your Drupal site lives (in /etc/apache2/sites-available/default, this is typically <Directory /var/www>), and change the line:

AllowOverride None to AllowOverride All

(This directive permits an .htaccess file, such as Drupal's, to be used to override Apache's default settings, and is necessary to allow the URL rewriting to work. See https://help.ubuntu.com/community/EnablingUseOfApacheHtaccessFiles for more information).

Save this file and then reload Apache as follows:

sudo /etc/init.d/apache2 reload

Subdomain Setup

Instead of creating multiple virtual host files, you can create one virtual host file that uses a wildcard in the ServerAlias. Both a simple multi-site Drupal setup and multiple Drupal versions can run this way, if the different subdomains are defined for each site in settings.php.

Consider the following and modify your configuration file to fit your needs.

  1. http://myproject.dr5.example/
  2. http://myproject.dr6.example/
  3. http://myproject2.dr6.example/

Here is a partial listing of a virtual host configuration file that would support the last two lines in the above example. Note this is not intended to be a COMPLETE configuration file, but rather provide guidance for your development setup.

<VirtualHost *>
DocumentRoot "/www/Dr6"
ServerName example
ServerAlias *.dr6.example

<Directory "/www/Dr6">
AllowOverride All
</Directory>

Edit & save your config file to suit your development needs. Assuming the site is already enabled, then reload Apache.

Step 1 - Method B: apache2.conf

In Apache version 2, httpd.conf has been deprecated and the new file is located at:
/etc/apache2/apache2.conf.

Thus, it's no longer necessary to do the following in httpd.conf to enable the rewrite module (mod_rewrite):

LoadModule rewrite_module modules/mod_rewrite.so
AddModule mod_rewrite.c

Simply run the following from the Linux command line:
sudo a2enmod rewrite

To disable the module you can run:
sudo a2dismod rewrite
(Note that this would cause clean URLs to break.)

Once mod_rewrite is enabled, open apache2.conf in a text editor. Note that it will probably be read-only, so you will need sudo privileges to edit it. Use a command such as:
sudo nano /etc/apache2/apache2.conf

Find where the sections are in your apache2.conf and add another one for your Drupal site similar to this:

<Directory /var/www/your_drupal_site>
    AllowOverride All
</Directory>

After you edit apache2.conf as listed above, you need to restart the server by:
sudo /etc/init.d/apache2 reload

Step 1 - Method C: Add Rewrite Rules Directly to Virtual Host or apache2.conf

If you do not wish to allow .htaccess overrides, you can add the rewrite rules directly to a virtual host file or apache2.conf. The following should work:

<Directory /var/www/your_drupal_site>
         RewriteEngine On
         RewriteBase /
         RewriteCond %{REQUEST_FILENAME} !-f
         RewriteCond %{REQUEST_FILENAME} !-d
         RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
      </Directory>

This can provide slightly faster server performance since Apache will not look in every directory for an .htaccess file.

Note that, for proper security, you will need to add in the rules from the Drupal files directory's .htaccess file as well.

Debugging Rewrite Issues

If you are having problems with getting your rewrite to work you can set Apache to log rewrite errors. To do that add this to the end of /etc/apache2/apache2.conf:

RewriteLog "/var/log/apache2/rewrite.log"
RewriteLogLevel 3

Level 0 does no logging. Level 9 logs everything. Choose the level necessary for resolving your issue.

Security Warning: Make sure to either remove or comment the logging code out when finished, or else put the log file in a directory that can't be read by normal users (such as /var/log/apache2). If this is not done, it can result in a security breach. Also, note that rewrite logging adds somewhat to server load, and can easily generate large amounts of output not needed on a production server.

Step 2: Enable Clean URLs

Now go to http://yoursite.com/?q=admin/settings/clean-urls, and run the test for "Clean URLs" (In Drupal 4.6 - 5.x this is buried in the paragraph explaining what "clean urls" are).

Then, select the radio button to set clean URLs to "enabled" and submit the form. You should now be able to access your site using URLs without the query string in them.



seal 2010-08-19 09:32 鍙戣〃璇勮
]]>
Create a page to list users by role-Drupalhttp://www.tkk7.com/sealyu/archive/2010/08/18/329222.htmlsealsealWed, 18 Aug 2010 07:39:00 GMThttp://www.tkk7.com/sealyu/archive/2010/08/18/329222.htmlhttp://www.tkk7.com/sealyu/comments/329222.htmlhttp://www.tkk7.com/sealyu/archive/2010/08/18/329222.html#Feedback0http://www.tkk7.com/sealyu/comments/commentRss/329222.htmlhttp://www.tkk7.com/sealyu/services/trackbacks/329222.htmlIn this example you will create a page view listing users on your site. Through this step-by-step process, you will become familiar with some basic steps in creating a view, and familiarize yourself with the Views User Interface.

  1. Creating a new view

    Go to add new view. Give your new view the name 'user_list', description 'A simple user listing.', tag 'users', type 'User' and click Next.

  2. About the Interface

    You have been brought to the Views User Interface. As you start, you are editing the "Default" options for the view. In the 1st column on the left you can see the drop-down menu offers 'block', for example, to select settings specific only to block views. In the remaining columns, you will be able to add or change options by clicking on links or icons. These options will then appear below this main area. Most likely, you will need to scroll to see the options appear. As you make changes, these options will appear in bold until you save your view.

  3. Creating a page display; choosing a URL and creating a menu link

    1. In the 1st column, ensure that 'Page' is selected in the drop-down menu, and click Add Display.
    2. Next we'll define the path for this page. A page must have a path, and we define it early so that Views doesn't warn us "Display Page uses path but path is undefined." Locate the Page settings in the 2nd column, and click the None link next to the Path setting. In the options editing area that appears below, set the path to 'user_list' (or something else if you prefer) and click Update.
    3. Next to Menu setting, Click the No menu link. In the options which appear below, select Normal menu entry, and set the title to 'User list' and click Update.
    4. Scroll up to Basic settings, in that same 2nd column, and click the No link next to Use pager. Below, in the options, select Full pager and click Update default display.
  4. Selecting the fields to display

    1. In 3rd column locate the Fields options. Click the + icon to add fields.
    2. Scroll down to Defaults: Add fields. In the Groups drop-down menu select 'User', then check the following fields: User: Created date, User: Delete link, User: Edit link, User: Last access, User: Name and User: Picture. Then click Add.
    3. You will be taken through the fields you added one at a time. Click Update default display to go to each next field. Leave the default options on all fields except Delete link; change that field's label to 'Operations'.
    4. Scroll back up to Fields and click the ↑↓ icon to rearrange fields. Down below, drag the Name field, by dragging its four-sided arrow, to the top. Drag the Delete link (Operations) field to the bottom, and the Edit link field just above it. Then click Update.
  5. Seeing what we've done so far

    At this point, you have done enough to create a valid view. If you scroll down, you will see a preview of your view. If it doesn't show already, click the Preview button; but generally this display updates automatically whenever you finish working in one of the mini forms.

  6. Styling the view as a table; combining related fields into columns

    1. Under Basic settings, in the 1st column, click the Unformatted link next to the Style setting. In the options below, under Page: How should this view be styled, choose Table and click Update default display.
    2. You will be taken to a Page: Style options form to edit the table settings. Locate our Edit link field in this mini form, and notice the Column drop-down. Change this drop-down to show Operations. In the Separator column next to the Operations field, type ' | ' (note the spaces around the | symbol). Check all of the Sortable checkboxes, and set Default sort to Name. When finished, click Update default display.
  7. Filtering the user list to exclude unwanted entries

    1. Click the + icon next to Filters.
    2. In the Groups drop-down menu select 'User', then check the User: Name filter, and click Add.
    3. Select Is not one of and enter 'Anonymous' in the Usernames box. Click Update default display.
  8. Adding an argument to list users by role dynamically

    1. Scroll up to Arguments, and click its + icon.
    2. Check the User: Roles argument, and click Add. Set the title to '%1' (don't type the quotes), and under Action to take if argument is not present select Summary, sorted ascending. Leave the other settings as they are. Click Update default display, and click Update through the prompts that follow to accept their default values.
  9. Saving the view

    Finally, click the Save button to save your work. At the very top, click View "Page" to go to your new view!



seal 2010-08-18 15:39 鍙戣〃璇勮
]]>
Play Media files in Drupal 6http://www.tkk7.com/sealyu/archive/2010/08/18/329191.htmlsealsealWed, 18 Aug 2010 02:55:00 GMThttp://www.tkk7.com/sealyu/archive/2010/08/18/329191.htmlhttp://www.tkk7.com/sealyu/comments/329191.htmlhttp://www.tkk7.com/sealyu/archive/2010/08/18/329191.html#Feedback0http://www.tkk7.com/sealyu/comments/commentRss/329191.htmlhttp://www.tkk7.com/sealyu/services/trackbacks/329191.html

The best media file handle is Embedded Media Field module
http://drupal.org/project/emfield

The problem: one needs to modify: zzz_custom_url.inc
to play mp3.

Sample site: http://www.thanhsiang.org/en/av

How to use jQuery Media module to play flv and mp3 files?

Another module is jQuery Media module
http://drupal.org/project/jquery_media

1. Install modules
jQuery Media module
jQ module

2. Install player
flv (mp3) player:
http://www.jeroenwijering.com/?item=JW_FLV_Player
Download the player something like: mediaplayer-3-16.zip
You only need one file: mediaplayer.swf
copy that file to your drupal directory, http://localhost/drupal/files/mediaplayer.swf

3. configure
admin/settings/jq

Select "Auto-invoke Media class"

setting player
flve player:
http://localhost/drupal/files/mediaplayer.swf

mp3 player:
http://localhost/drupal/files/mediaplayer.swf

Default settings
Media Width: 320
Media Height: 240

4. create a page use link (a class="media" href=)
Example:

<a class="media" href="http://localhost/files/flvfiles.flv">Movie Files</a>

<a class="media" href="http://localhost/files/mp3files.mp3"> MP3 Files</a>


seal 2010-08-18 10:55 鍙戣〃璇勮
]]>瀹氬埗Drupal棣栭〉錛堣漿錛?/title><link>http://www.tkk7.com/sealyu/archive/2010/08/13/328781.html</link><dc:creator>seal</dc:creator><author>seal</author><pubDate>Fri, 13 Aug 2010 06:42:00 GMT</pubDate><guid>http://www.tkk7.com/sealyu/archive/2010/08/13/328781.html</guid><wfw:comment>http://www.tkk7.com/sealyu/comments/328781.html</wfw:comment><comments>http://www.tkk7.com/sealyu/archive/2010/08/13/328781.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/sealyu/comments/commentRss/328781.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/sealyu/services/trackbacks/328781.html</trackback:ping><description><![CDATA[<div> <p>Drupal榛樿鐨勯欏靛儚鏄竴涓崥瀹㈢殑鏂囩珷鍒楄〃錛屽浣曞畾鍒舵垚鑷繁鎯寵鐨勬牱瀛愬憿錛熸湁浠ヤ笅鍑犵鏂規硶鏉ュ疄鐜幫細</p> <h4>浣跨敤Front Page妯″潡</h4> <p>澶у鏁頒漢瀹炵幇鏌愪釜鍔熻兘鏃墮鍏堟兂鍒扮殑灝辨槸鐢ㄦā鍧楋紙<a target="_blank">Front Page</a>棣栭〉妯″潡錛夛紝浣嗕釜浜哄茍涓嶈鍚屽姩涓嶅姩灝變嬌鐢ㄦā鍧楋紝澶妯″潡澧炲姞緋葷粺璐熸媴錛屼笅闈㈢殑鏂規硶鍚屾牱瑙e喅浜嗗畾鍒墮欏電殑闂鑰屼笉蹇呬嬌鐢ㄦā鍧椼?/p> <h4>浣跨敤page-front.tpl.php欏甸潰妯℃澘</h4> <p>page-front.tpl.php鏄欏電殑欏甸潰妯℃澘錛屾妸page.tpl.php澶嶅埗騫舵敼鍚嶄負page-front.tpl.php錛屼慨鏀歸噷闈㈢殑鍐呭灝卞彲浠ュ畾鍒墮欏典簡銆?/p> <h4>浣跨敤node-front.tpl.php鑺傜偣妯℃澘</h4> <p>濡傛灉鍙槸鏇存敼棣栭〉鑺傜偣鏄劇ず鐨勬牱寮忥紝浠呮洿鏀硅妭鐐圭駭鍒殑妯℃澘鍗沖彲銆傛妸node.tpl.php澶嶅埗騫舵敼鍚嶄負node-front_page.tpl.php錛屼慨鏀歸噷闈㈢殑鑺傜偣鏄劇ず鏍峰紡銆?/p> <h4>浣跨敤涓涓猵age欏甸潰浣滀負棣栭〉</h4> <p>鏂板緩涓涓猵age欏甸潰錛屽姞鍏tml浠g爜錛岀劧鍚庨夋嫨full html錛岃浣廔D鍙楓傚鑸埌admin/settings/site-information錛屽湪鏈涓嬮潰鐨?#8220;Default front page”杈撳叆妗嗕腑錛岀幇鍦ㄩ粯璁や負node錛屾垜浠妸瀹冩敼涓簄ode/1錛堟敞1鏀逛負璁句負棣栭〉鐨刾age欏甸潰鐨処D鍙鳳級銆?/p> <h4>浣跨敤block鍖哄潡</h4> <p>鍦╝dmin/build/block涓愪釜瀹氫箟block鐨勬樉紺哄睘鎬э紝鎶婇渶瑕佹樉紺哄湪棣栭〉block鐨勯〉闈㈠彲瑙佹э紙鍙湪涓嬪垪欏甸潰涓樉紺猴級涓~ 鍏?lt;front>錛岄偅涔堣繖涓猙lock浠呭湪棣栭〉鍙錛屼慨鏀硅繖涓猙lock灝卞彲浠ュ畾鍒墮欏電殑鍐呭錛屽悓鏃跺彲浠ュ鍔犲涓猙lock鍦ㄩ欏墊樉紺恒?/p> <h4>浣跨敤drupal鑷甫鐨?mission鍙橀噺</h4> <p>$mission鍙橀噺鏈澶х殑鐗圭偣灝辨槸鍙兘鏄劇ず鍦ㄩ欏碉紝鍒╃敤榪欎釜鐗規э紝鎴戜滑灝卞彲浠ヨ交鏉懼畾鍒墮欏典簡銆傚湪admin/settings/site- information涓畾涔塵ission浠誨姟錛堟妸棣栭〉浠g爜鍐欒繘鍘伙級錛岀劧鍚庣紪杈憄age.tpl.php鏂囦歡錛屾妸$mission縐誨姩鍒版兂瑕佺殑浣嶇疆錛屽 鏋滄枃浠朵腑娌℃湁榪欎釜鍙橀噺錛屽姞鍏ヤ互涓嬩唬鐮佸嵆鍙細</p> <div php="" id="highlighter_432329"> <div> <div><a viewsource="" style="width: 16px; height: 16px;" title="view source" >view source</a> <div copytoclipboard=""><embed id="highlighter_432329_clipboard" type="application/x-shockwave-flash" title="copy to clipboard" allowscriptaccess="always" wmode="transparent" flashvars="highlighterId=highlighter_432329" menu="false" src="http://tugesha.com/wp-content/libraries/syntaxhighlighter/scripts/clipboard.swf" height="16" width="16"></div> <a printsource="" style="width: 16px; height: 16px;" title="print" >print</a><a about="" style="width: 16px; height: 16px;" title="?" >?</a></div> </div> <div> <div alt1=""> <table> <tbody> <tr> <td><code>1</code></td> <td><code plain=""><?php </code><code keyword="">if</code> <code plain="">(</code><code variable="">$mission</code><code plain="">): ?></code></td> </tr> </tbody> </table> </div> <div alt2=""> <table> <tbody> <tr> <td><code>2</code></td> <td><code>        </code><code plain=""><div id=</code><code string="">"missions"</code><code plain="">></code></td> </tr> </tbody> </table> </div> <div alt1=""> <table> <tbody> <tr> <td><code>3</code></td> <td><code>            </code><code plain=""><?php print </code><code variable="">$mission</code><code plain="">; ?></code></td> </tr> </tbody> </table> </div> <div alt2=""> <table> <tbody> <tr> <td><code>4</code></td> <td><code>        </code><code plain=""></div></code></td> </tr> </tbody> </table> </div> <div alt1=""> <table> <tbody> <tr> <td><code>5</code></td> <td><code plain=""><?php </code><code keyword="">endif</code><code plain="">; ?></code></td> </tr> </tbody> </table> </div> </div> </div> <p>浠ヤ笂鏂規硶鍙互鍗曠嫭浣跨敤錛屼篃鍙互鎸夐渶瑕佺粨鍚堣搗鏉ヤ嬌鐢ㄣ傝繕鏈変竴縐嶅姙娉曞氨鏄洿鎺ヤ嬌鐢╥ndex.html闈欐侀〉闈紝浣嗚繖宸茬粡鑴辯浜哾rupal錛屽洜姝ゅ茍涓嶆帹鑽愩?/p> </div> <blockquote> <p>澹版槑錛氬钂欒漿杞斤紝璇蜂互瓚呴摼鎺ョ殑褰㈠紡鏍囨槑鏂囩珷鍘熷鍑哄鍜屼綔鑰呬俊鎭?/p> <p>鏉ヨ嚜錛氬浘涓暐 | http://tugesha.com</p> <p>鏍囬錛氬畾鍒禗rupal棣栭〉</p> <p>閾炬帴錛歨ttp://tugesha.com/blog/drupal/dp-design/dp-design-theme/custom-drupal-front-page/</p> </blockquote> <img src ="http://www.tkk7.com/sealyu/aggbug/328781.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/sealyu/" target="_blank">seal</a> 2010-08-13 14:42 <a href="http://www.tkk7.com/sealyu/archive/2010/08/13/328781.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Drupal涓撲笟寮鍙戞寚鍗?Drupal6鐗?(杞?http://www.tkk7.com/sealyu/archive/2010/08/13/328738.htmlsealsealFri, 13 Aug 2010 01:30:00 GMThttp://www.tkk7.com/sealyu/archive/2010/08/13/328738.htmlhttp://www.tkk7.com/sealyu/comments/328738.htmlhttp://www.tkk7.com/sealyu/archive/2010/08/13/328738.html#Feedback0http://www.tkk7.com/sealyu/comments/commentRss/328738.htmlhttp://www.tkk7.com/sealyu/services/trackbacks/328738.html闃呰鍏ㄦ枃

seal 2010-08-13 09:30 鍙戣〃璇勮
]]>
HowTo: Create a local environment using MAMPhttp://www.tkk7.com/sealyu/archive/2010/08/12/328711.htmlsealsealThu, 12 Aug 2010 12:35:00 GMThttp://www.tkk7.com/sealyu/archive/2010/08/12/328711.htmlhttp://www.tkk7.com/sealyu/comments/328711.htmlhttp://www.tkk7.com/sealyu/archive/2010/08/12/328711.html#Feedback0http://www.tkk7.com/sealyu/comments/commentRss/328711.htmlhttp://www.tkk7.com/sealyu/services/trackbacks/328711.htmlMAMP creates a local server environment on Mac OS X by installing PHP, MySQL, and Apache right out of the box. This will make Drupal much easier to install because the components don't have to be installed separately. This page is to be used in conjunction with the installation instructions for Drupal on Mac OS X.

Also you may want to check out this video in the Videocasts section of the handbook: Installing a Local Web Server on Mac OS X.

Download MAMP

(This will install Apache, MySQL, and PHP in one step.)
Find the latest version here: http://www.mamp.info/
Download and drag to Applications folder to install. Open MAMP and click "start servers," then "Open start page."

Download Drupal

Find the latest Drupal release here: http://drupal.org/.

Move the directory containing the Drupal files into the MAMP htdocs directory:

mv drupal-x.x.x/* drupal-x.x.x/.htaccess /Applications/MAMP/htdocs/yourdrupaldir

where yourdrupaldir is whatever you want the directory to be called.

Note: if you use Finder you may miss moving the .htaccess file which is necessary for clean URLs to work. It is generally best to download and unzip Drupal directly in the document root (default is htdocs) so you don't miss the .htaccess.

Create the Drupal database

To create a database for Drupal

  1. Go to the MAMP start page
  2. Click "phpMyAdmin"
  3. On the next page click "Databases"
  4. On the "Databases" page enter a name for your Drupal database in the "Create new database" field at the bottom of the page
  5. Select "utf8_general_ci" under the "Collation" drop-down (must be utf8!)
  6. Click "Create"
  7. Next you must create a user name with the privileges Drupal requires to use the new database
  8. Go back to the main phpMyAdmin page and click "Privileges"
  9. On the next page click "Add a new User".
  10. Fill out the "Login Information" form, making sure to change the "Host" field to "Local" and not leave it as "Any host" (for some reason Drupal will not be able to connect to your local database if you select "Any host")
  11. Leave the "None" radio button selected under the "Database for user" section, and under the "Global privileges" section leave everything unchecked
  12. Click "Go"
  13. On the next page scroll down to the "Database-specific privileges" section and select the new Drupal database you created from the dropdown
  14. Check the SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX and ALTER checkboxes and then click "Go".

You can also use a GUI such as Sequel Pro, just remember to use this as your Socket:

/Applications/MAMP/tmp/mysql/mysql.sock

Changing your password

The default username/password for your MySQL install is now root/root! For security purposes, it's always best to change this. If you're connected to the internet, this is a must.

When you are changing the default user/password from root/root, you need to do two things. Only the first is documented in the MAMP start page FAQ, but if you don't do the second then you get an error message when you try to access anything from the MAMP start page.

  1. Use command line to change the password (as documented in the MAMP start page FAQ)

    Open the terminal and type the following:
    /Applications/MAMP/Library/bin/mysqladmin -u root -p password [NEWPASSWORD]

    It will ask for the current password after you hit enter. Once you have entered that, the MySQL password is changed.

  2. Open a text editor and change the password in the three following files:
    • /Applications/MAMP/bin/phpMyAdmin-X.X.X/config.inc.php

      Find the line that reads...
      $cfg['Servers'][$i]['password']      = 'root';
      ...and change the value 'root' to your new password, retaining the quotes.

    • /Applications/MAMP/bin/mamp/index.php

      Find the line that reads...
      $link = @mysql_connect(':/Applications/MAMP/tmp/mysql/mysql.sock', 'root', 'root');
      ...and change the last parameter to your new password.

    • /Applications/MAMP/bin/stopMysql.sh

      Replace the -proot with your password. (If you don't change this one you can have zombie mysqld's running after you thought you stopped the server)

Optional: Adjust PHP's memory limit for scripts

By default, MAMP has the memory limit that a script can use set at 8MB, which is the PHP default. Looking at PHP's php.ini-recommended file, this memory limit is normally set at 128MB. To adjust this amount, open the php.ini file in a text editor and change the following line (approximately on line 232):

memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)

PHP.ini file locations:

  • /Applications/MAMP/conf/php4/php.ini
  • /Applications/MAMP/conf/php5/php.ini

In MAMP PRO, don't alter the file directly since it will be recreated at each server start. Please edit the appropriate template (menu File > Edit template > ...) instead.

Even with larger PHP memory limits you can get timeout errors trying to import large Drupal databases into MySQL. These issues are discussed at length elsewhere with regards to the cache and views cache. Generally the solution is to empty the Drupal cache before importing/exporting databases to/from MySQL.

Connect Drupal

Navigate to http://localhost:8888/yourdrupaldir/install.php and fill in the installation fields using the information provided on the MAMP start page and the name you used for the database you created in step 3.

Start configuring Drupal!

Go to http://localhost:8888/yourdrupaldir/ and create the first account.
Continue with instructions in INSTALL.txt.

If you changed your MySQL username and password you will need to modify that in your local Drupal settings.php file as well.

Temporary Files Note:

By default the File System settings (admin/settings/file-system) will place the temporary files directory inside /Applications/MAMP/tmp/php which should be changed to something like files/tmp or sites/files/tmp to avoid later confusion.

Clean up your Localhost URL

If you would like to shorten your URL from "http://localhost:8888" to "http://localhost" follow these instructions:

  • Open the MAMP application
  • Click on "Preferences" and then "Ports"
  • Change the Apache Port to 80 (the standard web server port)
In MAMP PRO, change the port of apache to 80 and click on apply.

seal 2010-08-12 20:35 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 67194成手机免费观看| 精品国产日韩亚洲一区| 四虎成人精品国产永久免费无码| 亚洲AV永久无码精品一区二区国产| 91国内免费在线视频| 亚洲成A∨人片在线观看无码| 日韩视频在线免费观看| 国内精品久久久久影院免费| 亚洲香蕉在线观看| 亚洲日韩精品射精日| 久久不见久久见免费影院| 中文在线免费视频| 亚洲欧美日韩中文字幕在线一区 | 免费观看一级毛片| 97在线免费观看视频| 亚洲国产精品无码久久98| 亚洲av永久无码精品漫画| 国产色爽免费视频| 18女人水真多免费高清毛片| 添bbb免费观看高清视频| 亚洲同性男gay网站在线观看| 久久久久亚洲爆乳少妇无| 成年人免费网站在线观看| 久操免费在线观看| 一级片在线免费看| 亚洲国产成人AV在线播放| 亚洲男人电影天堂| 国产亚洲精品资源在线26u| 国产免费观看a大片的网站| 成人浮力影院免费看| 久久国产乱子精品免费女| 人妻仑乱A级毛片免费看| 亚洲国产精品嫩草影院| 亚洲精品成人久久| 亚洲国产精品无码av| 亚洲av成人一区二区三区在线观看| 丁香花在线观看免费观看| 最近免费中文字幕mv在线电影| 三级黄色片免费看| caoporm超免费公开视频| 狠狠热精品免费观看|