{"id":2551,"date":"2008-02-20T19:24:45","date_gmt":"2008-02-20T19:24:45","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/user-theme\/"},"modified":"2014-04-17T10:04:32","modified_gmt":"2014-04-17T10:04:32","slug":"user-theme","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/user-theme\/","author":149916,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.4.1","stable_tag":"trunk","tested":"3.6.1","requires":"1.5","requires_php":"","requires_plugins":"","header_name":"User Theme","header_author":"Frank B\u00fcltge","header_description":"","assets_banners_color":"","last_updated":"2014-04-17 10:04:32","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/bueltge.de\/wordpress-theme-in-abhaengigkeit-der-benuzter-id-oder-remote-adresse\/530\/","header_author_uri":"http:\/\/bueltge.de\/","rating":3.8,"author_block_rating":0,"active_installs":10,"downloads":11380,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":0,"4":"1","5":"2"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[83,586,1141,1249,2153],"plugin_category":[43],"plugin_contributors":[77677],"plugin_business_model":[],"class_list":["post-2551","plugin","type-plugin","status-closed","hentry","plugin_tags-admin","plugin_tags-test","plugin_tags-theme","plugin_tags-themes","plugin_tags-user","plugin_category-customization","plugin_contributors-bueltge","plugin_committers-bueltge"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/user-theme.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>It's a simple Plugin to load a Theme for a special user based on IP, User-ID, category or User-Level.\nThis plugin allows you to safely test an development drive a theme on your live-blog.<\/p>\n\n<h4>No longer maintained<\/h4>\n\n<p><em>This plugin is no longer maintained. It is actively tested up to version 3.4.2.<\/em><\/p>\n\n<p>You can use a different Theme for different user. The pluginis very small and easy, no options in the database-table and no options in backend of WordPress. You must always change the source.<\/p>\n\n<p><strong>Hint:<\/strong> if you use a Theme-Framework, then is the hook <code>template<\/code> the name of the framework and the hook <code>stylesheet<\/code> the name of the activate child-theme. You must copy the function and add this with a different name. Follow a small example.<\/p>\n\n<pre><code>add_filter('template', 'fb_user_theme_template' );\nadd_filter( 'option_template', 'fb_user_theme_template' );\nfunction fb_user_theme_template( $template = '' ) {\n\n    if ( current_user_can('manage_options') ) {\n        $template = 'genesis'; \/\/ framework\n    } elseif ( current_user_can('read') ) {\n        $template = 'twentyten';\n    }\n\n    return $template;\n}\n\n\nadd_filter( 'stylesheet', 'fb_user_theme_stylesheet' );\nadd_filter( 'option_stylesheet', 'fb_user_theme_stylesheet' );\nfunction fb_user_theme_stylesheet( $stylesheet = '' ) {\n\n    if ( current_user_can('manage_options') ) {\n        $stylesheet = 'enterprise'; \/\/ childtheme\n    } elseif ( current_user_can('read') ) {\n        $stylesheet = 'twentyten';\n    }\n\n    return $stylesheet;\n}\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Unpack the download-package<\/li>\n<li><p>Edit the php-file with your ID, User-Level or IP and Theme-Name etc.<\/p>\n\n<ul>\n<li><code>$template<\/code> Variable for theme-name (db-name of theme)<\/li>\n<li><code>if ( array( 1, 21 ) )<\/code> ID of user<\/li>\n<\/ul><\/li>\n<li><p>Upload the files to the <code>\/wp-content\/plugins\/<\/code> directory<\/p><\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Ready<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>0.4.1 (06\/12\/2013)<\/h4>\n\n<ul>\n<li>Remove BOM on file<\/li>\n<\/ul>","raw_excerpt":"It&#039;s a simple Plugin to load a Theme for a special user based on IP, User-ID, category or User-Level.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/2551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=2551"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bueltge"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=2551"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=2551"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=2551"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=2551"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=2551"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=2551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}