Showing posts with label drupal. Show all posts
Showing posts with label drupal. Show all posts

Sunday, May 29, 2011

管理員常用 Path

0. 網站下線 Off-line
Home › Administer › Site configuration › Site Maintenance › Off-line › Save Configuration

1. 啟動或者關閉某些模組 (Enable/Disable modules)
Home › Administer › Site building › Modules › check/uncheck the target modules › Save Configuration

2. Off-line 模式下登入的 url
   http://sitexxx.com/drupaldir?q=user/ 

3. 升級(Upgrade)/更新(Update)

[Upgrade.txt的步驟摘要]
  • Back up "files" and "sites" directories
  • Do not close your browser until the final step is complete.
  • Place the site in "Off-line" mode
  • Switch to a core theme, such as Garland or Bluemarine.
  • Disable all custom and contributed modules.
  • Remove all old files and directories from the Drupal installation directory.
  • Unpack the new files and directories into the Drupal installation directory.
  • Copy the backed up "files" and "sites" directories to the Drupal
        installation directory. 
  • Verify the new configuration file
    e.g. sites/default/settings.php
         sites/example.com/settings.php
  • Run update.php by
    http://sitexxx.com/drupaldir/update.php

Sunday, July 6, 2008

drupal and fckeditor

fckeditor Introduction, FAQ, ...
http://drupal.fckeditor.net/
http://www.fckeditor.net/
http://docs.fckeditor.net/


drupal fckeditor module(shell) Download [只是一個殼]
http://drupal.org/node/16118/release

FCKeditor Download(core)[真正的汝視即汝得(WYSIWYG)的編輯器]
http://www.fckeditor.net/download

*** we have to download both the drupal fckeditor module(say fckeditor-6.x-1.3-beta.tar.gz) and FCKeditor(FCKeditor_2.6.2.tar.gz)
兩個軟件均需下載

*** fckeditor-6.x-1.3-beta.tar.gz shd be extracted to be under drupalsite/modules
*** FCKeditor_2.6.2.tar.gz shd be extracted to be under drupalsite/modules/fckeditor

i.e.,
fckeditor-6.x-1.3-beta.tar.gz == drupalsite/modules/fckeditor
FCKeditor_2.6.2.tar.gz == drupalsite/modules/fckeditor/fckeditor

Friday, June 20, 2008

Search Module for Drupal

Google Site Search Enhanced Module
http://drupal.org/node/59150


  • The search engine does its indexing at intervals you choose by setting "cron runs."...

  • To trigger the indexing, we have to regularly visit cron page
    say, http://www.example.com/cron.php or http://www.any2flash.com/o2/cron.php


Use Sphinx in Drupal

http://sphinxsearch.com


http://drupal4hu.com/node/129
" ... sql_query_range = SELECT MIN(nid), MAX(nid) FROM node
sql_range_step = 1000
sql_query = \
SELECT n.nid, n.title, body, changed \
FROM node n \
INNER JOIN node_revisions USING(vid) \
WHERE n.nid BETWEEN $start AND $end AND status = 1

...
require_once ('./sphinxapi.php');
$start_from = $_GET['page'] ? $_GET['page'] : 0;
$index = ...;
$page_increment = 10; // number of nodes shown
$amount = 10;
$sphinx = new SphinxClient ();
$sphinx->SetServer ('localhost', 3312);
$sphinx->SetWeights (array(100, 1));
$sphinx->SetMatchMode (SPH_MATCH_ALL);
$sphinx->SetLimits($start_from * $page_increment, $page_increment);
$sphinx->SetSortMode(SPH_SORT_TIME_SEGMENTS, 'changed');
// you can add filters with $sphinx->SetFilter etc
$result = $sphinx->Query(implode(' ', $keys), $index);
...
"

Monday, June 9, 2008

Smart Eureka! Science News


e!Eureka Science News - Drupal Success Story

Eureka! Science News 是一個科學新聞的入口網站,或者說是科學新聞的自動收集站(aggregator of science news/feeds),具有將新聞進行收集、分類、排序的功能,...

網站開發者在 Eureka! Science News just launched! 介紹了開發方式、所使用的其他模組,...

參考連結
http://drupal.org/node/261340
http://www.biologynews.net/
http://esciencenews.com/



The Vintage Aviator(古典航空器, LKK航空器)

Drupal Success Story - The Vintage Aviator(古典航空器)
http://thevintageaviator.co.nz

這是介紹第一次世界大戰(WW1)的戰鬥機(LKK航空器)的網站,是一個內容豐富 美工設計卓越的網站。



作者在 http://drupal.org/node/267393 描述了該網站的建置網站的過程,使用及修改的模組,是一個很棒的參考資源。