Custom-User-CSS – WordPress Plugin
I hacked up a new wordpress plugin that gives users more control over the appearance of their blogs. This plugin is especially useful for WordPressMU maintainers and users. Read more about it or visit its wordpress.org home.
sethb 9:18 am on February 12, 2009 Permalink |
Thanks, Jeremy. I hope to use this to practice some basic CSS experiments with my blog. It’ll be very helpful and I really appreciate your work.
Frederick 3:12 pm on February 15, 2009 Permalink |
Hello and thanks.
I have a few recommendations for this plugin, especially when used on WordPress µ.
First of all, add the menu page under the Appearance menu. This can be accomplished with
add_theme_page('Custom CSS Options', 'Custom CSS', 'switch_themes', __FILE__, 'custom_user_css_options');as opposed to the current call under the custom_user_css_menu() function.
Secondly, when installing for WordPress µ, it is wise to place the plugin folder under /wp-content/plugins/ BUT also to move the main plugin file to /wp-content/mu-plugins/. This will enable the Custom CSS feature for all blogs and users. It is necessary to rewrite the include() function so that the menu page, which exists in /wp-content/plugins/custom-user-css/, can be included or required by the plugin file.
Hope this helps the plugin.
Regards,
Frederick
oremj 11:00 am on July 16, 2009 Permalink |
Thanks for the advice. I’ve moved the options page to the appearance menu and fixed a couple of other bugs in version 0.2.
Philip M. Hofer (Frumph) 5:51 pm on March 26, 2009 Permalink |
custom_user_css.php line(52)
$css_val = $wpdb->escape(strip_tags($_POST[ $opt_name ]));
….
Yeah I know, redundant, but still helpful. Makes it extra secure.
Philip M. Hofer (Frumph) 5:59 pm on March 26, 2009 Permalink |
function custom_user_css_menu() {
add_submenu_page(‘themes.php’, ‘Custom User CSS’, ‘Custom User CSS’, 8, ‘Custom User CSS’, ‘custom_user_css_options’);
}
This puts the Custom CSS inside the Appearance Menu for users.
Wayne 5:02 pm on August 3, 2009 Permalink |
Do you know whether it’s possible to have a slide-out menu that contains a tag cloud or some other way to browse an archive?
It would be something like this:
ARCHIVE (top menu item)
> TAGS
>> (all tags listed as slideout)
> CATEGORIES
>> (all categories listed as a slideout)
> MONTH
>> (all months listed as a slideout)