The following bypasses wordpress by not going through index.php:
http://prompter.rareapps.org/prompter.php?p=2193
I’d recommend that instead of doing that, you place prompter.php in your theme directory and then hijack the page to display when someone clicks the link to view full screen using the template_redirect filter:
function my_special_display_view( $template ) {
if ( is_page() && isset($_REQUEST['special_view']) ) {
global $post;
$post_id = $post->ID;
$new_template = locate_template( array('prompter.php') );
if ( !empty( $new_template ) ) {
$template = $new_template;
}
}
return $template;
}
add_filter( 'template_include', 'my_special_display_view', 99 );
This assumes a couple of things:
- Your links to your special view look like http://…/?p=2193&special_view=1
- Your prompter.php file uses wordpress internals to do things
- prompter.php is in the theme root directory
You might need to unenqueue your normal style sheet and queue up another in the same place that you do $template = $new_template;
add_action('wp_enqueue_scripts', 'do_change_styles_significantly', 11);
and a function to go with it:
function do_change_styles_significantly() {
wp_dequeue_style( HOOK_FOR_YOUR_THEMES_STYLESHEET );
wp_register_style( 'special_shiny', full_url_to_alternate_styles, array(), '1.0.0', 'all');
}
A bit more complicated, but it would be done within wordpress and give you what you are looking for.