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 ?
- as a Site Admin we can overwrite a theme css parameter with our own code, customized by our users.
- put some additional HTML code in the head section displayed by all users,
- etc … independent from theme that users select.

Save this as a PHP file (right click, Save As … and don’t forget to rename the file, I put it here as a JPG ones), and put it in your mu-plugins for automatic execution, or in the plugins if you want to activate it manually.

After that, you will get an additional option in the [Site Admin][Options] menu (to input your main code), and additional menu in the [Design][Header Insert] for users to input their own text.

Hope it is usefull,