Friday, September 19, 2008

Sphinx Community Articles

Sphinx Community Articles

http://www.sphinxsearch.com/articles.html
"... In the Internet age, people want information packaged like fast food: served instantly, hassle-free, and in bite-size (or is that byte-size?) morsels.

...
RSS is your pizza guy, bringing fresh-baked data right to your door.
The weblog is your local Chinese take-out, delivering your favorite spicy dish.
The forum is the neighborhood potluck (or perhaps more aptly, the food fight scene in "Animal House").
And search is like all-you-can-eat night at your local cafeteriaplex:

..."

值得學習的網頁美工

http://www.liptongreenmint.ro/

麻吉List(buddyList) modules

buddylist module version 1(lightweight) and version 2
friend module for Drupal 6
User Relationships module

Drupal theme function override

drupal theme function override
http://drupalsn.com/drupal-tutorials/drupal-theme-function-overriding

"... Drupal can run on different theme engines but as of Drupal 4.7 the phptemplate theme engine became standard, so that’s what we’ll focus on in this tutorial. ...
"

i.e. phptemplate is the default theme engine for Drupal
Drupal 預設的 西門(Theme, 版面 樣式 門面 門板 "神門" "西門" ) 引擎為 "phpTemplate"
How about smarty?

theme function === theme_xxx()
"PHP function within Drupal that is prefixed with theme_"


"...By override I mean declaring a new version of a theme function (in template.php) and completely by passing the original theme function in order to alter its output. ...
"

Saturday, September 13, 2008

Drupal7 GoPhp5

http://drupal.org/gophp5

Drupal 7 將使用 php5.2 的許多新特性
--> Drupal7 將與 php4 不相容!


One Comment quoted:
"
I know that PHP 5 is going
Deeporange1 - July 13, 2007 - 07:53

I know that PHP 5 is going to be much improved over the current standard so that is good, however doesn't anyone worry that rolling out new versions of Drupal so rapidly may suppress module development and what not? The thing is, it takes time to develop modules for new "Major" releases (typically) as there are new methods that have to be taken into account (For D5 it was new form systems). So, if one has a few modules that they support doesn't this kind of stuff up their time?

I am not against new developments but phasing out old platforms so rapidly would seem to stifle growth of contributed modules just a bit.

Is Drupal 6 and 7 going to be fairly compatible with Drupal 5 or are all the modules going to need a lot of patchwork?

Best regards, Derek Webb

...

"

Monday, September 1, 2008

如何自訂block region(區塊範圍)?

0. template.php
1. page.tpl.php


//===

template.php:
function YOUR_THEMES_NAME_regions() {
return array(
'left' => t('left sidebar'),
'right' => t('right sidebar'),
'content' => t('content'),
'header' => t('header'),
'footer' => t('footer'),
...
);
}
?>



page.tpl.php code:

*** The location of < div class="sidebar_left" > ...</div> within the page.tpl.php determines the location of the div shown in the layout.

class="sidebar_left" corresponds to some CSS layout code, for example:
.sidebar_left{
width:25%;
float:left;
margin-right:2%;
overflow: hidden;
}


[ref] http://drupalsn.com/drupal-tutorials/custom-drupal-theme-regions