??xml version="1.0" encoding="utf-8" standalone="yes"?> 译者注Q?em>WordPress是最受欢q的博客发布q_之一Q具有免费,高度可定制、容易安装和使用{特艌Ӏ由于Wordpress是如此流行和受欢q,你可以找到大量的Wordpress开发以及管理等斚w的资源,丰富的用h南让你能够快速的上手使用。参考资料:30个顶UWordpress培训视频指南与教E?/a> 有很多天才设计师选择发表免费?a title="wordpress" >wordpress主题。大多数时候,对于他们来说唯一的一点小要求是保留他们的设计元素,q接到他们的网站(非常合理的要求)?/p>
在本文中Q我们整理了50个优U的、高质量的?a >免费的Wordpress主题l大家。这些主题包含了制作_且华丽的主题Q也有简z清爽的主题Q你可以扑ֈ适合你的设计品位的wordpress主题?/p>
说明: 请务必检查主题的许可协议Q不要违反用限Ӟ如果有的话)Qƈ且保留设计师的设计属性[footer中的设计信息]Q即使设计师没有要求你这么做。[互联|营销博客?/strong>Q设 计一个漂亮的wordpress themeQ需要花费设计师很多的时间和_֊Q如果你喜欢q些免费的wordpress主题Q请重设计师的力_成果。] 译者注Q在本文中介l的wordpress主题均ؓ英文模板Q对于用英文写博客的朋友来_q里q有我收集的3个英文写作Y件可以参考,都有免费试用版本可供下蝲Q??a title="whitesmoke" >Whitesmoke Q?最适合ESL使用的英文写作和语法U错软gQ支持mac os??a title="stylewriter" >Stylewriter Q?最适合公司Q组l,作家使用的plain english写作软g??a title="ginger software" >Ginger Software - 英文拼写和语法检查YӞ和whitesmoke差不多,但更Z业的英文写作工具?/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 实在是一个很强大的网l操作系l,它内建的多站点安装机刉常强大,但也比较复杂Q下面我来ȝ一下本?robinlord.org)的多站点安装Ҏ?/p>
很多朋友购买的虚拟主机对数据库或者空间或者可以绑定的域名或者能够设|的子域名限刉常厉宻I但是使用 drupal q一切将不再是问题。Drupal 可以使用一个数据库来安装多个站点,q个只要在安装过E中讑֮数据表前~卛_?/p>
我来分析下本?robinlord.org)的结构。本站目前共使用同一?Drupal 代码搭徏了三个独立的站点Qblogs.robinlord.org、drupal.robinlord.org? drupal.robinlord.org/hanhua。是的,没错Q最后那个是独立的站点,不是一个\径,q个是利?drupal 的子目录来做独立站点的,本文的关键也在q一切的实现?/p>
本站是采?strong>泛域名解?/strong>+.htacess的方案来实现的?/p>
首先需要了解什么是泛域名解?/strong>Q然后把所有的 *.roginlord.org 解析到站点的 web
根目?public_html)Q接着在根目录下徏?drupal 目录做ؓ drupal 的代码目录,接着在根目录下的 .htacess d
urlrewrite 规则Q把?drupal.robinlord.org ?blogs.robinlord.org 的请求全部定向到
drupal 目录Q其它的二域名目录q样做。至?drupal.robinlord.org/hanhua Q则是徏立一个名?hanhua
软链接到 drupal 目录(Linux LQwindows L再行研究)。比?/public_html/hanhua 是?
/public_html/drupal 的Y链接Q同时在l?drupal.robinlord.org 做url重写旉开?hanhua
的重写,实C?/p>
下面是站点的目录l构: 下面是根目录?.htacess 的内容: q样实C多个站点的访问,下面是多站点的安装及公用用户数据的设|?/p>
首先Q在安装之前手动建立好各个站点的配置文gQ遵循多站点目录的命名规则。本站则建立了如下几个目录: 在每个目录手动徏立相应的 settings.php Q下面是 blogs.robinlord.org ?settings.php 配置文g中需要手动设定的地方Q其他配|在安装q程中会自动讄?/p>
$db_url 是数据库配置?/p>
$db_prefix 讑֮表前~Qdefault 讑֮站点默认的表前缀Q其他的则是数据表的名称及其对应的前~讑֮Q一般都设ؓ 'shared_'?/p>
$base_url 讑֮站点根域名,q个必须Ҏ具体情况讄Q负责站点\径可能会出错?/p>
$cookie_domain q个是多站点公用登陆的关键Q设|ؓ站点的根域,卛_实现在多站点登陆一ơ即可。当然还需要公?user ?session 相关的表Q这个前面已l配|好了?/p>
讑֮好配|文件后Q就可以开始安装进E。因为已l设定了数据库配|,所以安装程序会直接跌q些讄的页面而直接开始安装?/p>
安装好Zen Cart v1.2.1或更高版本,q且你在安装Zen Cart时没有选择集成phpBB?br />
2. 安装phpBBq保证能正常工作。ؓ了容易配|,在根目录下安装phpBBQ例如:http://mysite.com/forums或者http://mysite.com/phpbb 路径必须是物理\径,?/var/www/client/public_html/ q样的格式。可以参?DIR_FS_CATALOGQ然后加上phpBB ?forum 或相应目录名?br />
必须?/ l尾?br />
4. 在Zen Cart的管理页面,Configuration->My Store下,讄”Enable phpBB Linkage?” ?TRUE 看了一个网站关于zen-cart安装集成phpbb3的步骤和Ҏ,基本都有些错误及不正的地方,我了自己记录方便,我将步骤及方法介l如? 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. 开启简z链?Clean URLs) 开?Pathauto 模块 Qhttp://drupal.org/project/pathautoQ?br />
Pathauto 模块能够Z同类型的面Qnodes, categories, usersQ自动生成\l别?path alias)Q而不在需要用h动定义\径别名?/p>
讄 Pathauto 模块Q在修改 node 的标题时Q禁?Pathauto 模块二次修改路径别名?br />
开?Global Redirect 模块Qhttp://drupal.org/project/globalredirectQ?br />
Global Redirect 模块在页面拥有\径别名的情况下,U除该页面的原始路径Q这样可以减网站的重复内容面Q有利于 SEO?/p>
开?Meta Tags QnodewordsQ模块(http://drupal.org/project/nodewordsQ?br />
Meta Tags 模块可以让您为每?node、user、view ?panel 面讄多种 meta tagsQ例如:keywords ?descriptionQ有利于 SEO?/p>
开?Page Title 模块Qhttp://drupal.org/project/page_titleQ?br />
Page Title 模块能让您自定义面标题Q有利于 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默认的首像是一个博客的文章列表Q如何定制成自己惌的样子呢Q有以下几种Ҏ来实玎ͼ 大多Ch实现某个功能旉先想到的是用模块(Front Page首页模块Q,但个人ƈ不认同动不动׃用模块,太多模块增加pȝ负担Q下面的Ҏ同样解决了定刉늚问题而不必用模块?/p>
page-front.tpl.php是首늚面模板Q把page.tpl.php复制q改名ؓpage-front.tpl.phpQ修攚w面的内容可以定刉了?/p>
如果只是更改首页节点昄的样式,仅更改节点别的模板卛_。把node.tpl.php复制q改名ؓnode-front_page.tpl.phpQ修攚w面的节点昄样式?/p>
新徏一个page面Q加入html代码Q然后选择full
htmlQ记住ID受导航到admin/settings/site-informationQ在最下面?#8220;Default front
page”输入框中Q现在默认ؓnodeQ我们把它改为node/1Q注1改ؓ设ؓ首页的page面的IDP?/p>
在admin/build/block中逐个定义block的显C属性,把需要显C在首页block的页面可见性(只在下列面中显C)中填
?lt;front>Q那么这个block仅在首页可见Q修改这个block可以定刉늚内容Q同时可以增加多个block在首|C?/p>
$mission变量最大的特点是只能昄在首,利用q个Ҏ,我们可以轻村֮刉了。在admin/settings/site-
information中定义missiondQ把首页代码写进去)Q然后编辑page.tpl.php文gQ把$missionUd到想要的位置Q如
果文件中没有q个变量Q加入以下代码即可: 以上Ҏ可以单独使用Q也可以按需要结合v来用。还有一U办法就是直接用index.html静态页面,但这已经q了drupalQ因此ƈ不推荐?/p>
声明Q如蒙{载,请以链接的形式标明文章原始出处和作者信息?/p>
来自Q图个啥 | http://tugesha.com 标题Q定制Drupal首页 链接Qhttp://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/ #[目录]q个?drupal 的程序目?br />
|--hanhua/ #[目录]q个是到 drupal 的Y链接
|--.htacess #[文g]q里配置目录?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. ~辑文g/includes/configure.phpQ在下面q行定义phpBB目录的\径:define(‘DIR_WS_PHPBB’, ‘/phpBB2/’);
讄完成后,新用h册时Q系l会让用戯入一个论坛的用户?
1 ?a >www.phpbb.com 官方下蝲一个最新版,然后Ҏ需要在http://www.phpbb.com/languages/,下蝲指定的语a,q把相应的目录language?
2 在指定的zen-cart目录下徏立一个forums或bbs的目?phpbb3代码攑օ目录?扑ֈ指定的数据库用户名密码资?可以安?安装q程中可选择指定的语a,当然安装后也可重新选择默认的语a.
3 ׃phpbb3需要将zencart的一个类文g换掉,|上传的代码有问题,我做了修正和补充./includes/classes/class.phpbb.php
4 在configure.php中的define(‘DIR_WS_PHPBB’, ‘/home/|站?public_html/forums/’);讄完整的\?br />
5 在admin/基本讄 ??nbsp; 打开phpBB链接? 讄成true.
完成上述5个步?卛_在用h册时,注册信息同时注入到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]
q样pcoolexample.com的url怹性重定向到www.coolexample.comQ从而实现搜索引擎的友好性,提高搜烦排名?br />
注:前提要开始rewrite模块
]]>
开?Path 模块 (?Drupal 4.3 开始进?Drupal 核心模块)
Path 模块可以让您通过d路径别名(path alias)Q来辑ֈ自定义链接名的效果。例?http://www.mypetal.com/node/7 可以定义?http://www.mypetal.com/library/drupal-seo ?/p>
调整 .htaccess 文gto redirect to "www" or remove the "www" subdomain.
调整您网站主题的 HTML headers -- 许多主题讄不正?br />
调整您网站的 robots.txt 文g。在 Drupal 6 ?Drupal 默认?robots.txt 文gq是有一些问题?br />
查安装的W三Ҏ块是否新增了一些重复的链接Q如果有Q用在 robots.txt d规则Ҏ索引擎的爬虫q行屏蔽?/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节点模板
使用一个page面作ؓ首页
使用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.
]]>