Articles, Script, wordpress by rizapn, 24 October 2008 10:06 am

Photo GalleryFinally, I finish my own photoblog gallery plugin for Wordpress MU. What will we get after installing this plugin? We will be able to display the page in a thumbnail format, just like photo gallery. The display will become normal in a single post condition or in admin mode. The advantage of this method is : we still can use all of available theme without any modification needed.

* This plugin is tested under WPMU 2.6.2 only *

Download this file (right click, Save As … rename it to photoblog_gallery.zip), and then extract it. Copy photob_gallery.php into your plugins directory, and plugopt.php into the mu-plugins directory. Yes, there are two plugins : one is the photoblog gallery and the other is plugin options. Plugin Options plugin (sorry for the name), will give us an additional [Plugins Options] sub-menu under Plugins menu. This submenu is usefull to change the plugins option. I make it customizable, so anyone who want to add their own plugin options part can do it very easily.

The plugin will add three option : Gallery Title, Display Format, and Image Type. (Read more details …)

Hacking, Script, wordpress by rizapn, 23 October 2008 3:30 pm

Wordpress MU again … :p

I wrote a plugin, I call it : Header Insert Plugin, which can insert a HTML code into the head section. Using this plugin, Site Admin can insert a specific HTML into the head admin, and users can supply their own value.

For example, Site Admin enter this code :

<style>.myimage { url(%image_url%); }</style>

and the user enter this as ‘image_url’ parameter in the Header Insert Options :

http://myserver.com/username/files/2008/10/test.jpg

then, the plugin will display :

<style>.myimage { url(http://myserver.com/username/files/2008/10/test.jpg); }</style>

in the user’s client.

What is this for ? (Read more details …)

Hacking, Script, wordpress by rizapn, 19 October 2008 2:35 pm

Searching, reading, learning … then improve … :p)

After knowing more about Wordpress MU (wpmu), I know that my first plugin for Wordpress MU (Custom CSS menu) is not good in term of coding. It use two separate file, which is actually possible to use only one. Not only two files, but also need to copy one of them to wp-admin folder.

For you who like that plugin (like me :p), just download the latest ones from here. Save the file as a PHP file (if you don’t know how: right click, and then Save Link As … / Save Target As … rename the destination file to “ccss.php”), and copy it to your wp-content/mu-plugins folder, and you will get the additional Custom CSS sub-menu under the Design menu.

The difference between the 1st version and this update is (Read more details …)

Hacking, Script, wordpress by rizapn, 12 October 2008 9:27 am

Wordpress MUBeberapa hari yang lalu, atas saran seorang teman, dan bantuan teman yang lain, akhirnya sukses juga meng-install Wordpress MU (multi-users). Rencananya sih dipake untuk ngeblog rame-rame di intranet. Biasa … begitu ada mainan baru, langsung tertarik untuk ngoprek :p). Setelah baca-baca dan berkunjung ke forum, baru tahu kalo ternyata wordpress MU tidak sama persis dengan wordpress (biasa), dalam hal pengaturan Theme. Kalau di wordpress (seperti yang ada disini juga, blogsome), theme bisa dimodifikasi dengan leluasa oleh masing-masing user. Di wordpress MU, theme disediakan di satu direktori, dan digunakan secara bersama-sama oleh semua user. User hanya bisa memilih theme mana yang akan dipakai, tetapi tidak bisa meng-customize-nya lebih jauh.

Some days ago, based on a friend’s suggestion, and a help from another friend, finally our Wordpress MU (multi-users) had been installed. The plan is using that for blogging activities via our intranet. Like another day … if there is a new toy, there is an adrenaline to hack (learn more about) it :p) After googling and reading from forum, just found that wordpress MU is not really identic with wordpress, especially when talking about theme setting feature. Wordpress MU using a “public” theme. Users can only select one of them, but can not customize it.

(Read more details …)