iamnotabc
Forum Replies Created
-
Forum: Plugins
In reply to: [WP-Polls] Loading full page in widget area.!! :(I had added a following function to prevent dashboard access for subscriber..
add_action(‘admin_init’, ‘no_mo_dashboard’);
function no_mo_dashboard() {
if (!current_user_can(‘manage_options’) && $_SERVER[‘DOING_AJAX’] != ‘/wp-admin/admin-ajax.php’) {
wp_redirect(home_url()); exit;
}
}Because of this function wp-poll and some other plugins were not working properly..
So I have modified above function as below:
add_action(‘init’, ‘block_dashboard’);
function block_dashboard() {
$file = basename($_SERVER[‘PHP_SELF’]);
if (is_user_logged_in() && is_admin() && !current_user_can(‘edit_posts’) && $file != ‘admin-ajax.php’){
wp_redirect( home_url() );
exit();
}
}Forum: Plugins
In reply to: [WP-Polls] Loading full page in widget area.!! :(It may be.. But my changes were related to css only.. I have changed my theme and now its working..
Thanks.
Forum: Plugins
In reply to: [WP-Polls] Loading full page in widget area.!! :(I haven’t verified, as I have made so many changes in my current theme. I am using twenty twelve theme.
Forum: Plugins
In reply to: [WP-Polls] Loading full page in widget area.!! :(Also I have observed that it is working fine in firefox.. but not in latest chrome and IE..
Forum: Plugins
In reply to: [DW Question & Answer] How to keep side bar on question list page?Hey Thank you very much for your reply.
But can you help me to display latest questions(same as question list page but not all questions) on my home page? I mean display style of question should be same, i.e. should display question with owner name, total views, answers and vote etc..
Also how to remove ‘Was this post useful to you? Yes No’ and display same up and down arrow as shown in front of answer to vote for question….
Thanks.