锘??xml version="1.0" encoding="utf-8" standalone="yes"?> 璇戣呮敞錛?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
Cellar Heat
Simply Ornate
Agregado
Notepad Chaos
WordPress Fun
Infinity
Outdoorsy Theme
Curious
Brightness
japan-style
BizTheme
SCRUFFY
Aspire
Pixeled
Wilderness
SuperFresh
WP CODA
Vikiworks V5
MyWall
Firebug
Illacrimo
iTheme
Tigerpress
Mahiwaga
Photo Clip
Dilectio
Typebased
The Original Premium News
Snapshot
Portfolio
Mimbo 2
ColdBlue
Sharpfolio
Yoghourt
BlogBus
Ashford
SubtleZen
Vistalicious
Small Magazine
Sp142 theme
Chronicles
DailyPress
Portfolio Press
Wordpress Magazine theme
Brilliance
Simple Balance 2.0
The Unstandard
Modicus Remix
Lightning
]]>
Drupal 瀹炲湪鏄竴涓緢寮哄ぇ鐨勭綉緇滄搷浣滅郴緇燂紝瀹冨唴寤虹殑澶氱珯鐐瑰畨瑁呮満鍒墮潪甯稿己澶э紝浣嗕篃姣旇緝澶嶆潅錛屼笅闈㈡垜鏉ユ葷粨涓涓嬫湰绔?robinlord.org)鐨勫绔欑偣瀹夎鏂規銆?/p>
寰堝鏈嬪弸璐拱鐨勮櫄鎷熶富鏈哄鏁版嵁搴撴垨鑰呯┖闂存垨鑰呭彲浠ョ粦瀹氱殑鍩熷悕鎴栬呰兘澶熻緗殑瀛愬煙鍚嶉檺鍒墮潪甯稿帀瀹籌紝浣嗘槸浣跨敤 drupal 榪欎竴鍒囧皢涓嶅啀鏄棶棰樸侱rupal 鍙互浣跨敤涓涓暟鎹簱鏉ュ畨瑁呭涓珯鐐癸紝榪欎釜鍙鍦ㄥ畨瑁呰繃紼嬩腑璁懼畾鏁版嵁琛ㄥ墠緙鍗沖彲銆?/p>
鎴戞潵鍒嗘瀽涓嬫湰绔?robinlord.org)鐨勭粨鏋勩傛湰绔欑洰鍓嶅叡浣跨敤鍚屼竴濂?Drupal 浠g爜鎼緩浜嗕笁涓嫭绔嬬殑绔欑偣錛歜logs.robinlord.org銆乨rupal.robinlord.org銆? drupal.robinlord.org/hanhua銆傛槸鐨勶紝娌¢敊錛屾渶鍚庨偅涓槸鐙珛鐨勭珯鐐癸紝涓嶆槸涓涓礬寰勶紝榪欎釜鏄埄鐢?drupal 鐨勫瓙鐩綍鏉ュ仛鐙珛绔欑偣鐨勶紝鏈枃鐨勫叧閿篃灝卞湪榪欎竴鍒囩殑瀹炵幇銆?/p>
鏈珯鏄噰鐢?strong>娉涘煙鍚嶈В鏋?/strong>+.htacess鐨勬柟妗堟潵瀹炵幇鐨勩?/p>
棣栧厛闇瑕佷簡瑙d粈涔堟槸娉涘煙鍚嶈В鏋?/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>
涓嬮潰鏄珯鐐圭殑鐩綍緇撴瀯: 涓嬮潰鏄牴鐩綍涓?.htacess 鐨勫唴瀹癸細 榪欐牱灝卞疄鐜頒簡澶氫釜绔欑偣鐨勮闂紝涓嬮潰鏄绔欑偣鐨勫畨瑁呭強鍏敤鐢ㄦ埛鏁版嵁鐨勮緗?/p>
棣栧厛錛屽湪瀹夎涔嬪墠鎵嬪姩寤虹珛濂藉悇涓珯鐐圭殑閰嶇疆鏂囦歡錛岄伒寰绔欑偣鐩綍鐨勫懡鍚嶈鍒欍傛湰绔欏垯寤虹珛浜嗗涓嬪嚑涓洰褰曪細 鍦ㄦ瘡涓洰褰曟墜鍔ㄥ緩绔嬬浉搴旂殑 settings.php 錛屼笅闈㈡槸 blogs.robinlord.org 鐨?settings.php 閰嶇疆鏂囦歡涓渶瑕佹墜鍔ㄨ瀹氱殑鍦版柟錛屽叾浠栭厤緗湪瀹夎榪囩▼涓細鑷姩璁劇疆銆?/p>
$db_url 鏄暟鎹簱閰嶇疆銆?/p>
$db_prefix 璁懼畾琛ㄥ墠緙錛宒efault 璁懼畾绔欑偣榛樿鐨勮〃鍓嶇紑錛屽叾浠栫殑鍒欐槸鏁版嵁琛ㄧ殑鍚嶇О鍙婂叾瀵瑰簲鐨勫墠緙璁懼畾錛屼竴鑸兘璁句負 'shared_'銆?/p>
$base_url 璁懼畾绔欑偣鏍瑰煙鍚嶏紝榪欎釜蹇呴』鏍規嵁鍏蜂綋鎯呭喌璁劇疆錛岃礋璐g珯鐐硅礬寰勫彲鑳戒細鍑洪敊銆?/p>
$cookie_domain 榪欎釜灝辨槸澶氱珯鐐瑰叕鐢ㄧ櫥闄嗙殑鍏抽敭錛岃緗負绔欑偣鐨勬牴鍩燂紝鍗沖彲瀹炵幇鍦ㄥ绔欑偣鐧婚檰涓嬈″嵆鍙傚綋鐒惰繕闇瑕佸叕鐢?user 鍜?session 鐩稿叧鐨勮〃錛岃繖涓墠闈㈠凡緇忛厤緗ソ浜嗐?/p>
璁懼畾濂介厤緗枃浠跺悗錛屽氨鍙互寮濮嬪畨瑁呰繘紼嬨傚洜涓哄凡緇忚瀹氫簡鏁版嵁搴撻厤緗紝鎵浠ュ畨瑁呯▼搴忎細鐩存帴璺寵繃榪欎簺璁劇疆鐨勯〉闈㈣岀洿鎺ュ紑濮嬪畨瑁呫?/p>
瀹夎濂絑en Cart v1.2.1鎴栨洿楂樼増鏈紝騫朵笖浣犲湪瀹夎Zen Cart鏃舵病鏈夐夋嫨闆嗘垚phpBB銆?br />
2. 瀹夎phpBB騫朵繚璇佽兘姝e父宸ヤ綔銆備負浜嗗鏄撻厤緗紝寤鴻鍦ㄦ牴鐩綍涓嬪畨瑁卲hpBB錛屼緥濡傦細http://mysite.com/forums鎴栬卙ttp://mysite.com/phpbb 璺緞蹇呴』鏄墿鐞嗚礬寰勶紝濡?/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鐨勬楠ゅ拰鏂規硶,鍩烘湰閮芥湁浜涢敊璇強涓嶆紜殑鍦版柟,鎴戜簡鑷繁璁板綍鏂逛究,鎴戝皢姝ラ鍙婃柟娉曚粙緇嶅涓? On the Drupal end, you will need the Services, the XML-RPC
server, and the Node Service modules enabled (these are all bundled with
Services).
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. The iPhone calls the node.save method by posting the following XML: <methodName>node.save</methodName> 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 wordpress app (which itself is a version of the Cocoa XML-RPC Framework ). This makes it much easier to formulate and execute XML-RPC calls, and the whole thing boils down to this: The full app below. Developed with iPhone SDK 2.2. 寮鍚畝媧侀摼鎺?Clean URLs) 寮鍚?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 妯″潡 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. Version 1.7.7 of getid3 is recommended in the audio module's documentation. 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. 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: 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! First, from the Linux command line, enable the rewrite module for apache with this command: You can check to see if this worked by running: and seeing if it is on the list. Next, use an editor (such as Look for the (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: 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. 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. Edit & save your config file to suit your development needs. Assuming the site is already enabled, then reload Apache. In Apache version 2, httpd.conf has been deprecated and the new file is located at: 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 Simply run the following from the Linux command line: To disable the module you can run: 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: Find where the sections are in your apache2.conf and add another one for your Drupal site similar to this: After you edit apache2.conf as listed above, you need to restart the server by: 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: 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. 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 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. Now go to 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. 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. 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. 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. Finally, click the Save button to save your work. At the very top, click View "Page" to go to your new view! The best media file handle is Embedded Media Field module The problem: one needs to modify: zzz_custom_url.inc Sample site: http://www.thanhsiang.org/en/av Another module is jQuery Media module 1. Install modules 2. Install player 3. configure Select "Auto-invoke Media class" setting player mp3 player: Default settings 4. create a page use link (a class="media" href=) Drupal榛樿鐨勯欏靛儚鏄竴涓崥瀹㈢殑鏂囩珷鍒楄〃錛屽浣曞畾鍒舵垚鑷繁鎯寵鐨勬牱瀛愬憿錛熸湁浠ヤ笅鍑犵鏂規硶鏉ュ疄鐜幫細 澶у鏁頒漢瀹炵幇鏌愪釜鍔熻兘鏃墮鍏堟兂鍒扮殑灝辨槸鐢ㄦā鍧楋紙Front Page棣栭〉妯″潡錛夛紝浣嗕釜浜哄茍涓嶈鍚屽姩涓嶅姩灝變嬌鐢ㄦā鍧楋紝澶妯″潡澧炲姞緋葷粺璐熸媴錛屼笅闈㈢殑鏂規硶鍚屾牱瑙e喅浜嗗畾鍒墮欏電殑闂鑰屼笉蹇呬嬌鐢ㄦā鍧椼?/p>
page-front.tpl.php鏄欏電殑欏甸潰妯℃澘錛屾妸page.tpl.php澶嶅埗騫舵敼鍚嶄負page-front.tpl.php錛屼慨鏀歸噷闈㈢殑鍐呭灝卞彲浠ュ畾鍒墮欏典簡銆?/p>
濡傛灉鍙槸鏇存敼棣栭〉鑺傜偣鏄劇ず鐨勬牱寮忥紝浠呮洿鏀硅妭鐐圭駭鍒殑妯℃澘鍗沖彲銆傛妸node.tpl.php澶嶅埗騫舵敼鍚嶄負node-front_page.tpl.php錛屼慨鏀歸噷闈㈢殑鑺傜偣鏄劇ず鏍峰紡銆?/p>
鏂板緩涓涓猵age欏甸潰錛屽姞鍏tml浠g爜錛岀劧鍚庨夋嫨full
html錛岃浣廔D鍙楓傚鑸埌admin/settings/site-information錛屽湪鏈涓嬮潰鐨?#8220;Default front
page”杈撳叆妗嗕腑錛岀幇鍦ㄩ粯璁や負node錛屾垜浠妸瀹冩敼涓簄ode/1錛堟敞1鏀逛負璁句負棣栭〉鐨刾age欏甸潰鐨処D鍙鳳級銆?/p>
鍦╝dmin/build/block涓愪釜瀹氫箟block鐨勬樉紺哄睘鎬э紝鎶婇渶瑕佹樉紺哄湪棣栭〉block鐨勯〉闈㈠彲瑙佹э紙鍙湪涓嬪垪欏甸潰涓樉紺猴級涓~
鍏?lt;front>錛岄偅涔堣繖涓猙lock浠呭湪棣栭〉鍙錛屼慨鏀硅繖涓猙lock灝卞彲浠ュ畾鍒墮欏電殑鍐呭錛屽悓鏃跺彲浠ュ鍔犲涓猙lock鍦ㄩ欏墊樉紺恒?/p>
$mission鍙橀噺鏈澶х殑鐗圭偣灝辨槸鍙兘鏄劇ず鍦ㄩ欏碉紝鍒╃敤榪欎釜鐗規э紝鎴戜滑灝卞彲浠ヨ交鏉懼畾鍒墮欏典簡銆傚湪admin/settings/site-
information涓畾涔塵ission浠誨姟錛堟妸棣栭〉浠g爜鍐欒繘鍘伙級錛岀劧鍚庣紪杈憄age.tpl.php鏂囦歡錛屾妸$mission縐誨姩鍒版兂瑕佺殑浣嶇疆錛屽
鏋滄枃浠朵腑娌℃湁榪欎釜鍙橀噺錛屽姞鍏ヤ互涓嬩唬鐮佸嵆鍙細 浠ヤ笂鏂規硶鍙互鍗曠嫭浣跨敤錛屼篃鍙互鎸夐渶瑕佺粨鍚堣搗鏉ヤ嬌鐢ㄣ傝繕鏈変竴縐嶅姙娉曞氨鏄洿鎺ヤ嬌鐢╥ndex.html闈欐侀〉闈紝浣嗚繖宸茬粡鑴辯浜哾rupal錛屽洜姝ゅ茍涓嶆帹鑽愩?/p>
澹版槑錛氬钂欒漿杞斤紝璇蜂互瓚呴摼鎺ョ殑褰㈠紡鏍囨槑鏂囩珷鍘熷鍑哄鍜屼綔鑰呬俊鎭?/p>
鏉ヨ嚜錛氬浘涓暐 | http://tugesha.com 鏍囬錛氬畾鍒禗rupal棣栭〉 閾炬帴錛歨ttp://tugesha.com/blog/drupal/dp-design/dp-design-theme/custom-drupal-front-page/ 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. (This will install Apache, MySQL, and PHP in one step.) Find the latest Drupal release here: http://drupal.org/. Move the directory containing the Drupal files into the MAMP htdocs directory: 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. To create a database for Drupal You can also use a GUI such as Sequel Pro, just remember to use this as your Socket: 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. Open the terminal and type the following: It will ask for the current password after you hit enter. Once you have entered that, the MySQL password is changed.
Find the line that reads... Find the line that reads... Replace the 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): PHP.ini file locations: 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. 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. Go to http://localhost:8888/yourdrupaldir/ and create the first account. If you changed your MySQL username and password you will need to modify that in your local Drupal settings.php file as well. 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. If you would like to shorten your URL from "http://localhost:8888" to "http://localhost" follow these instructions:public_html/ --|
|-- drupal/ #[鐩綍]榪欎釜鏄?drupal 鐨勭▼搴忕洰褰?br />
|--hanhua/ #[鐩綍]榪欎釜鏄埌 drupal 鐨勮蔣閾炬帴
|--.htacess #[鏂囦歡]榪欓噷閰嶇疆鐩綍鐨?URL 閲嶅啓瑙勫垯
<IfModule mod_rewrite.c>
RewriteEngine on
#閲嶅啓浜岀駭鍩熷悕鐨勮礬寰?br />
RewriteCond %{HTTP_HOST} ^blogs".robinlord".org$
RewriteRule ^(.*)$ drupal/$1 [L]
RewriteCond %{HTTP_HOST} ^drupal".robinlord".org$
#瀵逛簬瀛愮洰褰曠嫭绔嬬珯鐐圭殑閰嶇疆
RewriteCond %{REQUEST_URI} !^hanhua
RewriteRule ^(.*)$ drupal/$1 [L]
</IfModule>
sites/--|
|-- blogs.robinlord.org
|-- drupal.robinlord.org
|-- drupal.robinlord.org.hanhua
$db_url = 'mysql://username:password@localhost/databasename';
$db_prefix = array(
'default' => 'blogs_',
'users' => 'shared_',
'access' => 'shared_',
'authmap' => 'shared_',
'sessions' => 'shared_',
'profile_fields' => 'shared_',
'profile_values' => 'shared_',
'languages' => 'shared_',
'locales_source' => 'shared_',
'locales_target' => 'shared_',
);
$base_url = 'http://blogs.robinlord.org';
$cookie_domain = 'robinlord.org';
3. 緙栬緫鏂囦歡/includes/configure.php錛屽湪涓嬮潰榪欒瀹氫箟phpBB鐩綍鐨勮礬寰勶細define(‘DIR_WS_PHPBB’, ‘/phpBB2/’);
璁劇疆瀹屾垚鍚庯紝鏂扮敤鎴鋒敞鍐屾椂錛岀郴緇熶細璁╃敤鎴瘋緭鍏ヤ竴涓鍧涚殑鐢ㄦ埛鍚?
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>
<params>
<param><value><struct>
<member><name>type</name><value><string>story</string></value></member>
<member><name>title</name><value><string>title text</string></value></member>
<member><name>body</name><value><string>body text</string></value></member>
</struct></value></param>
</params></methodCall> XMLRPCRequest *request =
[[XMLRPCRequest alloc] initWithHost:[NSURL URLWithString:
@"http://192.168.1.14/drupal-6.6/services/xmlrpc"]];
NSMutableDictionary *postParams = [NSMutableDictionary dictionary];
[postParams setObject:@"story" forKey:@"type"];
[postParams setObject:titleString forKey:@"title"]; // title input from iphone
[postParams setObject:bodyString forKey:@"body"]; // body input from iphone
[request setMethod:@"node.save" withObject:postParams];
XMLRPCResponse *nodeSaveResponse = [XMLRPCConnection sendSynchronousXMLRPCRequest:request];
Attachment Size
simpleNodeTitleBody-XMLRPC.zip
899.47 KB
]]>
]]>
rewritecond %{http_host} ^coolexample.com [nc]
rewriterule ^(.*)$ http://www.coolexample.com/$1 [r=301,nc]
榪欐牱灝辮兘灝哻oolexample.com鐨剈rl姘鎬箙鎬ч噸瀹氬悜鍒皐ww.coolexample.com錛屼粠鑰屽疄鐜版悳绱㈠紩鎿庣殑鍙嬪ソ鎬э紝鎻愰珮鎼滅儲鎺掑悕銆?br />
娉細鍓嶆彁瑕佸紑濮媟ewrite妯″潡
]]>
寮鍚?Path 妯″潡 (浠?Drupal 4.3 寮濮嬭繘鍏?Drupal 鏍稿績妯″潡)
Path 妯″潡鍙互璁╂偍閫氳繃娣誨姞璺緞鍒悕(path alias)錛屾潵杈懼埌鑷畾涔夐摼鎺ュ悕鐨勬晥鏋溿備緥濡?http://www.mypetal.com/node/7 鍙互瀹氫箟涓?http://www.mypetal.com/library/drupal-seo 銆?/p>
璋冩暣 .htaccess 鏂囦歡to redirect to "www" or remove the "www" subdomain.
璋冩暣鎮ㄧ綉绔欎富棰樼殑 HTML headers -- 璁稿涓婚璁劇疆涓嶆紜?br />
璋冩暣鎮ㄧ綉绔欑殑 robots.txt 鏂囦歡銆傚湪 Drupal 6 涓?Drupal 榛樿鐨?robots.txt 鏂囦歡榪樻槸鏈変竴浜涢棶棰樸?br />
媯鏌ュ畨瑁呯殑絎笁鏂規ā鍧楁槸鍚︽柊澧炰簡涓浜涢噸澶嶇殑閾炬帴錛屽鏋滄湁錛屼嬌鐢ㄥ湪 robots.txt 娣誨姞瑙勫垯瀵規悳绱㈠紩鎿庣殑鐖櫕榪涜灞忚斀銆?/p>
Installation and Configuration
> tar xzvf audio-4.7.0.tar.gz
> unzip getid3-1.7.7.zip -d <yoursitepath>/modules/audio/
Taking it Further
Update for Drupal 5.1
> cd <yoursitepath>/modules
> cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -d audio contributions/modules/audio
]]>
]]>Step 1 - Method A: "Virtual Host" Setup
sudo a2enmod rewrite
apache2ctl -M
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, usesudo nano /etc/apache2/sites-available/default
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
sudo /etc/init.d/apache2 reload
Subdomain Setup
<VirtualHost *>
DocumentRoot "/www/Dr6"
ServerName example
ServerAlias *.dr6.example
<Directory "/www/Dr6">
AllowOverride All
</Directory>Step 1 - Method B: apache2.conf
/etc/apache2/apache2.conf
.
AddModule mod_rewrite.c
sudo a2enmod rewrite
sudo a2dismod rewrite
(Note that this would cause clean URLs to break.)
sudo nano /etc/apache2/apache2.conf
<Directory /var/www/your_drupal_site>
AllowOverride All
</Directory>
sudo /etc/init.d/apache2 reload
Step 1 - Method C: Add Rewrite Rules Directly to Virtual Host or apache2.conf
<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>Debugging Rewrite Issues
/etc/apache2/apache2.conf
:
RewriteLog "/var/log/apache2/rewrite.log"
RewriteLogLevel 3Step 2: Enable Clean URLs
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).
]]>
Creating a new view
About the Interface
Creating a page display; choosing a URL and creating a menu link
Selecting the fields to display
Seeing what we've done so far
Styling the view as a table; combining related fields into columns
Filtering the user list to exclude unwanted entries
Adding an argument to list users by role dynamically
Saving the view
]]>
http://drupal.org/project/emfield
to play mp3.How to use jQuery Media module to play flv and mp3 files?
http://drupal.org/project/jquery_media
jQuery Media module
jQ module
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
admin/settings/jq
flve player:
http://localhost/drupal/files/mediaplayer.swf
http://localhost/drupal/files/mediaplayer.swf
Media Width: 320
Media Height: 240
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>
]]>浣跨敤Front Page妯″潡
浣跨敤page-front.tpl.php欏甸潰妯℃澘
浣跨敤node-front.tpl.php鑺傜偣妯℃澘
浣跨敤涓涓猵age欏甸潰浣滀負棣栭〉
浣跨敤block鍖哄潡
浣跨敤drupal鑷甫鐨?mission鍙橀噺
1
<?php
if
(
$mission
): ?>
2
<div id=
"missions"
>
3
<?php print
$mission
; ?>
4
</div>
5
<?php
endif
; ?>
]]>
]]>Download MAMP
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
mv drupal-x.x.x/* drupal-x.x.x/.htaccess /Applications/MAMP/htdocs/yourdrupaldir
Create the Drupal database
/Applications/MAMP/tmp/mysql/mysql.sock
Changing your password
/Applications/MAMP/Library/bin/mysqladmin -u root -p password [NEWPASSWORD]
/Applications/MAMP/bin/phpMyAdmin-X.X.X/config.inc.php
$cfg['Servers'][$i]['password'] = 'root';
...and change the value 'root'
to your new password, retaining the quotes.
/Applications/MAMP/bin/mamp/index.php
$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
-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
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
/Applications/MAMP/conf/php4/php.ini
/Applications/MAMP/conf/php5/php.ini
Connect Drupal
Start configuring Drupal!
Continue with instructions in INSTALL.txt.Temporary Files Note:
Clean up your Localhost URL
In MAMP PRO, change the port of apache to 80 and click on apply.
]]>