Travel

Categories

Set slideshow delay at gallery 2.3

Change the default from 10s to 4s

edit modules/slideshow/templates/Slideshow.tpl, change delay 10 to delay 4 edit modules/slideshow/module.inc, change delay 10 to delay 4

Migrate gallery2 photo album

今天打算將我個gallery2 photo album由我部linux搬落個central web server到行, 順便將個gallery2 version 由原本2.2.5 upgrade 到 2.3. 其實做落都幾複雜, 又係試咗好幾次同用咗成個下晏先至整到.

首先就係 Linux到 export 個 gallery2 database 出嚟先 : mysqldump -p gallery2 > gallery2.sql. 然後就import 番佢入去個central mysql server到 tar 個g2data directory, 然後scp落去個central data server 我個homedir到. 我個g2data directory成6GB幾, 所以剩係呢到都成個鐘. untar個clean gallery2.3, 佢會有個installation procedure, 跟住會叫你行個upgrade procedure 最後upgrade完, 個gallery2就瓜咗. 我重頭做咗兩次先整到, 首先我用咗個Xtreme theme. 但係呢個theme唔係跟gallery2就有. 所以係migrate前要改番用classic theme先得. 個新gallery2行到後, […]