the install directions are on the second tab of the plugin page
http://wordpress.org/extend/plugins/user-theme/installation/
Thread Starter
4k
(@4k)
Yes I have read that, however, it shows two fields changed which I have done here*, but what of the other fields?
*the theme and ID
When I activate it based on this code I get a blank page front end, so not working for me.
function fb_user_theme($template = 'WP-Andreas09') {
// en_US: replace space in the name of a theme-folder with _ (underline)!
// de_DE: Leerzeichen im Namen des Themes muessen mit _ (underline) ersetzt werden!
// when Profil-ID
// see in backend exmaple.org/wp-admin/users.php
if (get_profile('3') == 1) {
$template = 'default';
}
// when IP
if ($_SERVER['REMOTE_ADDR'] == '127.0.0.1') {
$template = 'classic';
}
// when User_Level (example: Admin -> level_10)
// see http://codex.wordpress.org/Roles_and_Capabilities#Roles
if (current_user_can('level_10')) {
$template = 'test-theme';
}
return $template;
}
add_filter('template', 'fb_user_theme');
add_filter('stylesheet', 'fb_user_theme');
?>
I think you misunderstood the instructions….
the part that needs to be changed comes after ==
// when Profil-ID
// see in backend exmaple.org/wp-admin/users.php
if (get_profile('ID') == 1) {
$template = 'default';
}
change the 1 to the user id for the template ‘default’ where default is the requested template
// when IP
if ($_SERVER['REMOTE_ADDR'] == 127.0.0.1 {
$template = 'classic';
}
change the 127.0.0.1 to the IP of the person you want to match if you are going to use IP…same goes with $template here