WordPress MU Question

projext

Regular Member
Joined
Jan 23, 2009
Messages
248
Reaction score
50
All,

Couple of questions...

1) Anyway I can activate plugins automatically when a new blog is created?

2) Anyway I can assign a random theme to the new blog (obviously from the ones on the folder)

Any help would be appreciated...thanks
 
Use the plugin commander plugin:
h**p://wpmudev.org/project/Plugin-Commander
 
To edit your template settings, update your wp_x_posts table and set the relevant (random) value for 'template' and 'stylesheet'.
Example:
update wp_1_posts set option_value = 'home' where option_name = 'template';
update wp_1_posts set option_value = 'home' where option_name = 'stylesheet';
Haven't tested this myself, but it's a start.
 
Yes, you can do both very elegantly with xmlrpc. Check the xmlrpc interface of wordpress (it is setoptions or so, don't remember) and write some lines of code.

All,

Couple of questions...

1) Anyway I can activate plugins automatically when a new blog is created?

2) Anyway I can assign a random theme to the new blog (obviously from the ones on the folder)

Any help would be appreciated...thanks
 
Back
Top